Skip to content

Commit 98bf162

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

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
@@ -29,6 +29,7 @@ def __init__(
2929
):
3030
self.client = client
3131
self.agent_config = agent_config
32+
self.agent_config["client_tools"] = [client_tool.get_tool_definition() for client_tool in client_tools]
3233
self.agent_id = self._create_agent(agent_config)
3334
self.client_tools = {t.get_name(): t for t in client_tools}
3435
self.sessions = []

0 commit comments

Comments
 (0)