Skip to main content
By default the stored payload goes to AgentFS on the agent’s database. The fs setting points payloads at any AgentFS backend instead: a local directory, a different table, a different database. The index rows stay in agno_tool_results on the agent’s db either way, and carry the namespace and path of each payload, so the read-back tools and the session-delete cascade find it.
payloads_on_disk.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Run the example

Save the code above as payloads_on_disk.py, then run:
Full source: cookbook/02_agents/22_result_offloading/05_payloads_on_disk.py