stop_record_call

View as MarkdownOpen in Claude

Stop an active background call recording.

Parameters

control_id
Optional[str]Defaults to None

Identifier of the recording to stop. If not provided, the most recent recording is stopped.

Returns

FunctionResult — self, for chaining.

Example

1from signalwire import AgentBase
2from signalwire import FunctionResult
3
4agent = AgentBase(name="my-agent", route="/agent")
5agent.set_prompt_text("You are a helpful assistant.")
6
7@agent.tool(name="stop_recording", description="Stop recording the call")
8def stop_recording(args, raw_data):
9 return (
10 FunctionResult("Recording stopped.")
11 .stop_record_call(control_id="main_recording")
12 )
13
14agent.serve()