You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to access intermediate results when MaxTurnExceededException is thrown.
I have a workflow broken into 2 phases.
Phase 1 is investigation.
Phase 2 is writing up a report based on the investigation results.
I'm feeding the results of phase 1 into phase 2 like so:
result = Runner.run(investigation_agent, max_turns=5)
report = Runner.run(report_agent, result.to_input_list())
I want to limit the number of turns in Phase 1.
If a MaxTurnExceededException is thrown in Phase 1, I still want to make use of the available information in Phase 2.
Currently this doesn't seem possible to do. I have no way to access the intermediate results (tool calls, etc.) if I reach max turns in Phase 1.