From 1cfb8306f190559b2892249e86ac91b478cac8a4 Mon Sep 17 00:00:00 2001 From: Hardik Shah Date: Thu, 27 Feb 2025 11:51:55 -0800 Subject: [PATCH] fix react agent --- src/llama_stack_client/lib/agents/react/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llama_stack_client/lib/agents/react/agent.py b/src/llama_stack_client/lib/agents/react/agent.py index bad7e46e..c71bd6ac 100644 --- a/src/llama_stack_client/lib/agents/react/agent.py +++ b/src/llama_stack_client/lib/agents/react/agent.py @@ -97,7 +97,7 @@ def get_tool_defs(): agent_config = custom_agent_config if json_response_format: - agent_config.response_format = { + agent_config["response_format"] = { "type": "json_schema", "json_schema": ReActOutput.model_json_schema(), }