StoryTeller Agent is an interactive and narrative story generator that creates adventorous stories in the worlds of their Choice. User is prompted with the world they want to explore and story evolves based on their choices.
notebookscontainsplayground.ipynbthat served as a playground during the implementation phase.srccontains all the core logicconfig.pyhas all the metadata it requires to functionedges.pyincludes conditional routing logic for LangGraphgraph.pyactual implementation of the LangGraph workflowllm_model.pyhas logic to create LLM clientnodes.pyincludes all the nodes for LangGraphresponse.pya simple wrapper around LangGraph's streaming capabilities to output everything in console in real timestate.pycontains State metadata for LangGraphmain.pylogic related to whole app execution
To run the project clone the repo:
https://github.com/georgetsouvaltzis/storyteller-agent.gitthen navigate to project repo by using
cd storyteller-agent/srccreate .env file based on .env.example
cp .env.example .envprovide GROQ_API_KEY (required) in .env file:
GROQ_API_KEY="your-key-here"create and activate virtual environment(.venv):
python3 -m venv .venv
source .venv/bin/activateinstall project requirements:
pip install -r requirements.txtrun the project:
python main.py