Skip to content

Commit a0169dc

Browse files
committed
Revert output change.
1 parent 60091e9 commit a0169dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

azure/durable_functions/openai_agents/model_invocation_activity.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,9 @@ def make_tool_info(tool: Tool) -> ToolInput:
365365
self.activity_name, activity_input_json
366366
)
367367

368-
return response
368+
json_response = json.loads(response)
369+
model_response = ModelResponse(**json_response)
370+
return model_response
369371

370372
def stream_response(
371373
self,

0 commit comments

Comments
 (0)