AgentsAgentBase

set_internal_fillers

View as MarkdownOpen in Claude

Set filler phrases for native SWAIG functions. Internal fillers are phrases the AI speaks while executing built-in functions like check_time, next_step, or wait_for_user. They prevent silence during processing and make the conversation feel more natural.

Parameters

internal_fillers
dict[str, dict[str, list[str]]]Required

Nested dictionary mapping function names to language-specific filler phrases. Format: {"function_name": {"language_code": ["phrase1", "phrase2"]}}.

Returns

AgentBase — Returns self for method chaining.

Example

1from signalwire import AgentBase
2
3agent = AgentBase(name="support", route="/support")
4agent.set_prompt_text("You are a helpful assistant.")
5agent.set_internal_fillers({
6 "next_step": {
7 "en-US": ["Moving on...", "Great, let's continue..."],
8 "es": ["Pasando al siguiente paso...", "Continuemos..."]
9 },
10 "check_time": {
11 "en-US": ["Let me check the time...", "One moment..."]
12 }
13})
14agent.serve()