mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
fix: always include output in function call result message (#2414)
This follows the official OpenAI API schema
This commit is contained in:
committed by
GitHub
Unverified
parent
a610a4769c
commit
c78edda64f
@@ -518,9 +518,8 @@ class OpenAIBaseResponsesClient(OpenAIBase, BaseChatClient):
|
||||
args: dict[str, Any] = {
|
||||
"call_id": content.call_id,
|
||||
"type": "function_call_output",
|
||||
"output": prepare_function_call_results(content.result),
|
||||
}
|
||||
if content.result:
|
||||
args["output"] = prepare_function_call_results(content.result)
|
||||
return args
|
||||
case FunctionApprovalRequestContent():
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user