fix(test): fix an age old test and record

This commit is contained in:
Ashwin Bharambe 2025-08-18 12:49:18 -07:00
parent ac78e9f66a
commit a01c2ae583
5 changed files with 313 additions and 21 deletions

View file

@ -135,22 +135,12 @@ def test_agent_simple(llama_stack_client, agent_config):
def test_agent_name(llama_stack_client, text_model_id):
agent_name = f"test-agent-{uuid4()}"
try:
agent = Agent(
llama_stack_client,
model=text_model_id,
instructions="You are a helpful assistant",
name=agent_name,
)
except TypeError:
agent = Agent(
llama_stack_client,
model=text_model_id,
instructions="You are a helpful assistant",
)
return
agent = Agent(
llama_stack_client,
model=text_model_id,
instructions="You are a helpful assistant",
name=agent_name,
)
session_id = agent.create_session(f"test-session-{uuid4()}")
agent.create_turn(