-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Allow returning thought in the tool call responses #5192
Comments
Thank you @osdemah , since this is an API breaking change, let's have a bit more discussion around this. We may take a bit longer on this. I do think it is important. cc @jackgerrits Is there a way to avoid an API breaking change? So that existing code won't break? |
@ekzhu yep, I think that is pretty much the same. essentially we need a text to be returned alongside of the list of tool calls. do you have a proposal for a non-breaking change? Initially I started with turning it into
I think unless if you're thinking of adding a field in the body of |
@ekzhu any update on this? |
@osdemah update, in #5262 , we would like to add a Though, to address the kind you API raw response you are seeing, we need a different client other than |
sounds good, thanks! |
What feature would you like to be added?
Some models include an additional text message in the tool call response. for example:
We need to allow including that message in the response, so that it can be properly surfaced to agent and users.
The proposal in #5173 is to change the
content
field toUnion[str, FunctionCalls]
instead ofUnion[str, List[FunctionCall]]
so that additional fields could be included inFunctionCalls
:Why is this needed?
to include model response properly
The text was updated successfully, but these errors were encountered: