AgentsAgentBase

add_internal_filler

View as MarkdownOpen in Claude

Add filler phrases for a specific internal/native SWAIG function and language.

Parameters

function_name
strRequired

Name of the SWAIG function (e.g., "next_step", "check_time").

language_code
strRequired

Language code (e.g., "en-US", "es", "fr").

fillers
list[str]Required

List of filler phrases for this function and language. The AI randomly selects from this list each time the function is invoked.

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.add_internal_filler(
6 "next_step", "en-US",
7 ["Moving to the next step...", "Great, let's continue..."]
8)
9agent.add_internal_filler(
10 "next_step", "es",
11 ["Pasando al siguiente paso...", "Continuemos..."]
12)
13agent.serve()