-
Notifications
You must be signed in to change notification settings - Fork 788
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
Handoff does not work with Claude 3.7 Sonnet #270
Comments
I tried the attached example on Anthropic, and it worked ok. I'm guessing yours is more complex - could you share a script please?
|
@rm-openai thanks for your reply, hmm thats interesting. Here is the script:
|
@rm-openai so I dug into this more, and looks like I am running into this error if a Claude powered Agent tries to handoff to an OpenAI powered Agent. Handoff is working if Claude Agent hands off to a Claude Agent and if an OpenAI Agent hands off to a Claude Agent or to another OpenAI Agent. I verified this behavior in the example script you shared, by changing the Spanish Agent to use
Error:
|
@nishant-satpathy just debugged this, and looks like it's the issue we mention here
The easiest fix is to use Chat Completions everywhere. For example, this addition fixed it
|
@rm-openai good callout. Changing the default model shape worked! Are there any particular features I would be sacrificing by defaulting to using the Completions Model over the Responses Model? |
Yes, hosted tools (e.g. web search, file search, computer use). You can still use web search in chat completions but via a specific model rather than as a tool. I'm going to see if I can do something to improve this though, since we want you to be able to mix and match models without issues. |
@rm-openai sounds good, thanks! |
You can always run a proxy to transform Anthropic calls to OpenAI and viceversa btw. Done that before so I can use OpenAI tools with Claude. |
I am attempting use
claude-3.7-sonnet
with the Agents SDK. I have it set up like this:When I execute this, I get the following error:
I noticed that there was some documentation around
__fake_id__
here:From the examples, it looks like we have to use
OpenAIChatCompletionsModel
for using an LLM not provided by OpenAI, so does this mean that handoffs are not possible with any non OpenAI LLM?Side Note: I noticed that there was a comment on issue #120 that mentions that if the model does not support tool calling, handoff calling is not supported, but claude-3.7 does support tool calling IIRC.
Would appreciate any insights on this, thanks!
The text was updated successfully, but these errors were encountered: