Skip to content

Commit faaba28

Browse files
authored
Simple agent allows non-json tool responses (#35)
Signed-off-by: Brian Yu <bxyu@nvidia.com>
1 parent 64d6408 commit faaba28

File tree

1 file changed

+1
-1
lines changed
  • responses_api_agents/simple_agent

1 file changed

+1
-1
lines changed

responses_api_agents/simple_agent/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ async def responses(self, body: NeMoGymResponseCreateParamsNonStreaming = Body()
104104
tool_response = NeMoGymFunctionCallOutput(
105105
type="function_call_output",
106106
call_id=output_function_call.call_id,
107-
output=json.dumps(api_response.json()),
107+
output=api_response.content.decode(),
108108
)
109109
new_outputs.append(tool_response)
110110

0 commit comments

Comments
 (0)