stop_background_file

View as MarkdownOpen in Claude

Stop the currently playing background audio file.

Parameters

None.

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_hold_music", description="Stop hold music playback")
def stop_hold_music(args, raw_data):
return (
FunctionResult("I'm back.")
.stop_background_file()
)
agent.serve()