Skip to content

Where is the agent running? #127

Answered by JoshuaC215
apsquared asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @apsquared - This repo provides a template for running the LangGraph agent manually in your own service and interacting with it through a simple REST API. In the repo it just uses a SQLite database for checkpointing, so it isn't as persisted as e.g. a Redis setup, but you could swap that in easily too.

Specifically, you can see the provided agents enumerated in src/agents/agents.py and then retrieved and invoked when the service endpoint is called

So, if you do python src/run_service.py it spins up the FastAPI service, and the agent will run in that python process and checkpoint to a SQLite checkpointer on the local filesystem.

There's a YouTube walkthrough of the architecture linked i…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by JoshuaC215
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants