stop_background_file
stop_background_file
Stop the currently playing background audio file.
Parameters
None.
Returns
FunctionResult — self, for chaining.
stop_background_file
Stop the currently playing background audio file.
None.
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_hold_music", description="Stop hold music playback") 8 def stop_hold_music(args, raw_data): 9 return ( 10 FunctionResult("I'm back.") 11 .stop_background_file() 12 ) 13 14 agent.serve()