stop_tap
stop_tap
Stop an active media tap stream.
Parameters
control_id
Identifier of the tap to stop. If not provided, the most recently started tap is stopped.
Returns
FunctionResult — self, for chaining.
stop_tap
Stop an active media tap stream.
Identifier of the tap to stop. If not provided, the most recently started tap is stopped.
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="stop_monitoring", description="Stop monitoring the call") 8 def stop_monitoring(args, raw_data): 9 return ( 10 FunctionResult("Monitoring stopped.") 11 .stop_tap(control_id="supervisor_tap") 12 ) 13 14 agent.serve()