join_room
join_room
Join a RELAY room using SWML. Rooms enable multi-party communication and collaboration between participants.
Parameters
name
Name of the room to join.
Returns
FunctionResult — self, for chaining.
join_room
Join a RELAY room using SWML. Rooms enable multi-party communication and collaboration between participants.
Name of the room to join.
FunctionResult — self, for chaining.
1 from signalwire import AgentBase 2 from signalwire import FunctionResult 3 4 agent = AgentBase(name="my-agent", route="/agent") 5 agent.set_prompt_text("You are a helpful assistant.") 6 7 @agent.tool(name="join_support_room", description="Join the support room") 8 def join_support_room(args, raw_data): 9 return ( 10 FunctionResult("Connecting to the support room.") 11 .join_room(name="support-room-1") 12 ) 13 14 agent.serve()