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

Function trigger_pose

examples/avatar/actions.py:50–63  ·  view source on GitHub ↗
(session_id: str, name: str)

Source from the content-addressed store, hash-verified

48
49
50async def trigger_pose(session_id: str, name: str) -> bool:
51 url = _control_url(session_id)
52 payload = {"event": "pose-trigger", "pose_trigger": {"name": name}}
53 timeout = aiohttp.ClientTimeout(total=30.0)
54 async with aiohttp.ClientSession(timeout=timeout) as session:
55 async with session.post(
56 url,
57 headers={
58 "Content-Type": "application/json",
59 "X-API-Key": os.environ["LEMONSLICE_API_KEY"],
60 },
61 json=payload,
62 ) as response:
63 return response.ok
64
65
66@dataclass

Callers 2

cancelMethod · 0.85
playMethod · 0.85

Calls 2

_control_urlFunction · 0.85
postMethod · 0.80

Tested by

no test coverage detected