Skip to main content
Nothing is lost on the way: a tool hook still sees the whole result, and the payload is readable through the file store. Only what a model reads changes.
where_results_live.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 where_results_live.py, then run:
Full source: cookbook/02_agents/22_result_offloading/03_where_results_live.py