Skip to content

Commit c78edda

Browse files
authored
fix: always include output in function call result message (#2414)
This follows the official OpenAI API schema
1 parent a610a47 commit c78edda

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python/packages/core/agent_framework/openai/_responses_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,9 +518,8 @@ def _openai_content_parser(
518518
args: dict[str, Any] = {
519519
"call_id": content.call_id,
520520
"type": "function_call_output",
521+
"output": prepare_function_call_results(content.result),
521522
}
522-
if content.result:
523-
args["output"] = prepare_function_call_results(content.result)
524523
return args
525524
case FunctionApprovalRequestContent():
526525
return {

0 commit comments

Comments
 (0)