stop_record_call

View as MarkdownOpen in Claude

Stop an active background call recording.

Parameters

control_id
str | NoneDefaults to None

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

Returns

FunctionResult — self, for chaining.

Example

from signalwire import AgentBase
from signalwire import FunctionResult
agent = AgentBase(name="my-agent", route="/agent")
agent.set_prompt_text("You are a helpful assistant.")
@agent.tool(name="stop_recording", description="Stop recording the call")
def stop_recording(args, raw_data):
return (
FunctionResult("Recording stopped.")
.stop_record_call(control_id="main_recording")
)
agent.serve()