breezy-knife-25008
11/07/2025, 3:54 PMrefined-appointment-81829
11/07/2025, 4:00 PMrefined-appointment-81829
11/07/2025, 4:01 PMrefined-appointment-81829
11/07/2025, 4:01 PMrefined-appointment-81829
11/07/2025, 4:01 PMbreezy-knife-25008
11/07/2025, 4:03 PM@pytest.mark.asyncio
async def test_greeter_offers_assistance() -> None:
"""Evaluation of the greeter agent's friendly greeting."""
instructions = _get_instructions()
userdata = UserData()
async with (
_llm() as llm,
AgentSession(llm=llm, userdata=userdata) as session,
):
await session.start(Greeter(instructions["greeter"]))
# Run an agent turn following the user's greeting
result = await session.run(user_input="Hello")
# Evaluate the agent's response for friendliness
await (
> result.expect.next_event()
.is_message(role="assistant")
.judge(
llm,
intent="""
Greets the user in a friendly manner and offers assistance with restaurant services like dining/reservations or ordering/takeaway.
The response should:
- Be welcoming and friendly
- Mention or imply the restaurant's services (e.g., reservations/booking/dine in, takeaway/pickup/delivery/order)
- Ask how they can help
""",
)
)
E AssertionError: Expected another event, but none left.
E Context around failure:
WARNING livekit.agents:llm.py:208 failed to generate LLM completion, retrying in 0.1s
Traceback (most recent call last):
File "/Users/matthew/AIAgents/livekit/hello-world-restaurant-agent/.venv/lib/python3.13/site-packages/livekit/agents/llm/llm.py", line 190, in _main_task
return await self._run()
^^^^^^^^^^^^^^^^^
File "/Users/matthew/AIAgents/livekit/hello-world-restaurant-agent/.venv/lib/python3.13/site-packages/livekit/agents/inference/llm.py", line 341, in _run
raise APIStatusError(
...<5 lines>...
) from None
livekit.agents._exceptions.APIStatusError: invalid API key for domain agent-gateway.livekit.cloud (status_code=401, request_id=None, body=invalid API key for domain agent-gateway.livekit.cloud, retryable=True)
Local and cloud both stopped working. I tried changing my apikeys and that didn't work eitherrefined-appointment-81829
11/07/2025, 4:04 PMblue-napkin-7975
11/07/2025, 6:25 PMfancy-lifeguard-70250
11/07/2025, 6:42 PMbreezy-knife-25008
11/07/2025, 7:08 PMfancy-lifeguard-70250
11/07/2025, 7:09 PMbreezy-knife-25008
11/07/2025, 7:18 PM