From e244b91d19f0ff249b73374588c11065f51f579b Mon Sep 17 00:00:00 2001 From: Hamdan <96612374+s-hamdananwar@users.noreply.github.com> Date: Fri, 6 Dec 2024 00:36:32 -0600 Subject: [PATCH] fixed agent_dispatch.py typos --- examples/agent_dispatch.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/agent_dispatch.py b/examples/agent_dispatch.py index cf8ddb3e..13a00b79 100644 --- a/examples/agent_dispatch.py +++ b/examples/agent_dispatch.py @@ -22,8 +22,8 @@ """ -async def create_explicit_disptach(http_session: aiohttp.ClientSession): - agent_disptach_service = AgentDispatchService( +async def create_explicit_dispatch(http_session: aiohttp.ClientSession): + agent_dispatch_service = AgentDispatchService( session=http_session, url=os.getenv("LIVEKIT_URL"), api_key=os.getenv("LIVEKIT_API_KEY"), @@ -32,9 +32,9 @@ async def create_explicit_disptach(http_session: aiohttp.ClientSession): dispatch_request = CreateAgentDispatchRequest( agent_name=agent_name, room=room_name, metadata="my_metadata" ) - dispatch = await agent_disptach_service.create_dispatch(dispatch_request) + dispatch = await agent_dispatch_service.create_dispatch(dispatch_request) print("created dispatch", dispatch) - dispatches = await agent_disptach_service.list_dispatch(room_name=room_name) + dispatches = await agent_dispatch_service.list_dispatch(room_name=room_name) print(f"there are {len(dispatches)} dispatches in {room_name}") @@ -68,7 +68,7 @@ async def main(): token = await create_token_with_agent_dispatch() print("created participant token", token) print("creating explicit dispatch") - await create_explicit_disptach(http_session) + await create_explicit_dispatch(http_session) asyncio.run(main())