clear_dynamic_hints

View as MarkdownOpen in Claude

Remove all dynamically added speech recognition hints. This clears every hint that was previously added via add_dynamic_hints(). Static hints defined on the agent at configuration time are not affected.

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="reset_context", description="Reset speech recognition context")
def reset_context(args, raw_data):
return (
FunctionResult("Context reset.")
.clear_dynamic_hints()
)
agent.serve()