Skip to content

Commit b2a75d6

Browse files
update react agent with new client_tools api
Signed-off-by: Michael Clifford <[email protected]>
1 parent 686a1ba commit b2a75d6

File tree

1 file changed

+1
-2
lines changed
  • src/llama_stack_client/lib/agents/react

1 file changed

+1
-2
lines changed

src/llama_stack_client/lib/agents/react/agent.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def get_tool_defs():
8383
model=model,
8484
instructions=instruction,
8585
toolgroups=builtin_toolgroups,
86-
client_tools=[client_tool.get_tool_definition() for client_tool in client_tools],
86+
client_tools=client_tools,
8787
tool_config={
8888
"tool_choice": "auto",
8989
"tool_prompt_format": "json" if "3.1" in model else "python_list",
@@ -105,6 +105,5 @@ def get_tool_defs():
105105
super().__init__(
106106
client=client,
107107
agent_config=agent_config,
108-
client_tools=client_tools,
109108
tool_parser=tool_parser,
110109
)

0 commit comments

Comments
 (0)