Skip to main content
Members share the leader’s result store, and every member of a team runs under the same session id. So a result id is a handle the whole team can use: the leader can pass “res_…” to the next member in the task text instead of pasting the payload, and that member reads it back itself.
handing_a_result_to_a_member.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 handing_a_result_to_a_member.py, then run:
Full source: cookbook/03_teams/27_result_offloading/handing_a_result_to_a_member.py