-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Cannot get the last tool_call_output event in stream_events when MaxTurnsExceeded #526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hmm yeah the bug here is within Instead, we should probably push events like I'll try to get to this soon! PR welcome as well. |
Hi, |
But what’s important is that I don’t understand why it decides to run the tool again even though the first run already produced the correct output. This seems to contradict the documentation, which states:
If you need to see it, here’s a snippet of my agent defined as a tool:
|
Please read this first
Describe the bug
Here is my code
When i start a conversation and the llm's response with a tool call, the code cannot into
event.item.type == "tool_call_output_item":
branch, but actually the tool call was invoked, i can find tool call result inresult.to_input_list()
Debug information
Repro steps
Use the code I provided above
Expected behavior
put tool_call_output event to stream_events before throw MaxTurnsExceeded
The text was updated successfully, but these errors were encountered: