MCPcopy Create free account
hub / github.com/livekit/agents / _a_long_running_task

Method _a_long_running_task

examples/voice_agents/long_running_function.py:56–59  ·  view source on GitHub ↗

Simulate a long running task.

(self, query: str)

Source from the content-addressed store, hash-verified

54 return output
55
56 async def _a_long_running_task(self, query: str) -> str:
57 """Simulate a long running task."""
58 await asyncio.sleep(5)
59 return f"I got some results for {query}"
60
61
62server = AgentServer()

Callers 1

search_webMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected