forked from phoenix-oss/llama-stack-mirror
parent
187524d4ae
commit
c9e08cc0a8
1 changed files with 5 additions and 2 deletions
|
@ -332,8 +332,11 @@ def test_tool_choice(llama_stack_client, agent_config):
|
|||
]
|
||||
client_tool = TestClientTool()
|
||||
for tool_choice, expected_tool in data:
|
||||
agent_config["tool_config"] = {"tool_choice": tool_choice}
|
||||
agent_config["client_tools"] = [client_tool.get_tool_definition()]
|
||||
agent_config = {
|
||||
**agent_config,
|
||||
"tool_config": {"tool_choice": tool_choice},
|
||||
"client_tools": [client_tool.get_tool_definition()],
|
||||
}
|
||||
|
||||
agent = Agent(llama_stack_client, agent_config, client_tools=(client_tool,))
|
||||
session_id = agent.create_session(f"test-session-{uuid4()}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue