stop_record_call
stop_record_call
Stop an active background call recording.
Parameters
control_id
Identifier of the recording to stop. If not provided, the most recent recording is stopped.
Returns
FunctionResult — self, for chaining.
stop_record_call
Stop an active background call recording.
Identifier of the recording to stop. If not provided, the most recent recording 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_recording", description="Stop recording the call") 8 def stop_recording(args, raw_data): 9 return ( 10 FunctionResult("Recording stopped.") 11 .stop_record_call(control_id="main_recording") 12 ) 13 14 agent.serve()