File tree Expand file tree Collapse file tree 4 files changed +1
-9
lines changed
agents-core/vision_agents/core/agents
examples/other_examples/09_github_mcp_demo Expand file tree Collapse file tree 4 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -529,6 +529,7 @@ async def create_user(self) -> None:
529529 if not self .agent_user .id :
530530 self .agent_user .id = f"agent-{ uuid4 ()} "
531531 await self .edge .create_user (self .agent_user )
532+ self ._agent_user_initialized = True
532533
533534 return None
534535
Original file line number Diff line number Diff line change @@ -70,9 +70,6 @@ async def start_agent():
7070 logger .info (f"GitHub server: { github_server } " )
7171
7272 try :
73- # Create the agent user
74- await agent .create_user ()
75-
7673 # Set up event handler for when participants join
7774 @agent .subscribe
7875 async def on_participant_joined (event : CallSessionParticipantJoinedEvent ):
Original file line number Diff line number Diff line change @@ -88,9 +88,6 @@ async def start_agent():
8888 )
8989 logger .info ("MCP tools are now available to the LLM for function calling!" )
9090
91- # Create the agent user
92- await agent .create_user ()
93-
9491 # Set up event handler for when participants join
9592 @agent .subscribe
9693 async def on_participant_joined (event : CallSessionParticipantJoinedEvent ):
Original file line number Diff line number Diff line change @@ -72,9 +72,6 @@ async def start_agent():
7272 logger .info (f"GitHub server: { github_server } " )
7373
7474 try :
75- # Create the agent user
76- await agent .create_user ()
77-
7875 # Set up event handler for when participants join
7976 @agent .subscribe
8077 async def on_participant_joined (event : CallSessionParticipantJoinedEvent ):
You can’t perform that action at this time.
0 commit comments