Skip to main content
A member’s answer reaches the team leader as the result of the delegation tool, so it is the payload that grows a team session. With offload_tool_results set, the leader’s transcript holds a short envelope with a result id, and the full answer is stored as a file the leader can read back.
offload_member_results.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 offload_member_results.py, then run:
Full source: cookbook/03_teams/27_result_offloading/offload_member_results.py