Agent Configuration Options
Agent Configuration Options
The Agent(...) constructor accepts defaults that apply to every call handled by that worker.
AI components
You can pass defaults for:
llmstttts
These are typically plugin instances (for example openai.LLM()), or config dicts depending on your plugin.
If you don’t pass them, the worker can still run. Components can be injected dynamically per call via metadata.
Instructions and greeting
system_instructions- The agent's main behavior/prompt.
send_greeting- Whether the agent should greet immediately.
greeting_instructions- The greeting text/instructions.
Defaults:
send_greeting=True
Conversation control
allow_interruptionsmin_interruption_duration
Defaults:
allow_interruptions=Truemin_interruption_duration=0.08
Turn-taking / VAD-style parameters
These parameters influence when the agent decides the user stopped speaking:
min_silence_durationactivation_thresholdprefix_padding_durationmin_endpointing_delaymax_endpointing_delay
Defaults:
min_silence_duration=0.25activation_threshold=0.55prefix_padding_duration=0.25min_endpointing_delay=0.45max_endpointing_delay=0.9
Tools
tools- A list of tool mixin classes to extend agent behavior.
See: Tools