Skip to content

Commit 95952a2

Browse files
Allow client_tools to be defined only once
Signed-off-by: Michael Clifford <[email protected]>
1 parent ee5dd2b commit 95952a2

File tree

1 file changed

+1
-0
lines changed
  • src/llama_stack_client/lib/agents

1 file changed

+1
-0
lines changed

src/llama_stack_client/lib/agents/agent.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def __init__(
3232
):
3333
self.client = client
3434
self.agent_config = agent_config
35+
self.agent_config["client_tools"] = [client_tool.get_tool_definition() for client_tool in client_tools]
3536
self.agent_id = self._create_agent(agent_config)
3637
self.client_tools = {t.get_name(): t for t in client_tools}
3738
self.sessions = []

0 commit comments

Comments
 (0)