Example
1
Run Postgres
Install docker desktop and run Postgres on port 5532 using:
2
Create an Agent with Storage
Create a file
agent_with_storage.py
with the following contents3
Run the agent
Install librariesRun the agentNow the agent continues across sessions. Ask a question:Then message
bye
to exit, start the app again and ask:4
Start a new run
Run the
agent_with_storage.py
file with the --new
flag to start a new run.Params
Parameter | Type | Default | Description |
---|---|---|---|
storage | Optional[AgentStorage] | None | Storage mechanism for the agent, if applicable. |