The unique name of the agent within the swarm.
OptionalcallbacksOptional lifecycle callbacks for the agent, allowing customization of execution flow.
OptionalcompletionThe name of the completion mechanism used by the agent. REQUIRED WHEN AGENT IS NOT OPERATOR
OptionalconnectOperator connection function to passthrough the chat into operator dashboard
OptionaldependsOptional array of agent names this agent depends on for transitions (e.g., via changeToAgent).
OptionaldocOptional description for documentation purposes, aiding in agent usage understanding.
OptionalkeepOptional maximum number of messages to maintain context size
OptionalmapOptional function to map assistant messages, e.g., converting JSON to tool calls for specific models.
OptionalmapOptional function to filter or modify tool calls before execution.
OptionalmaxOptional maximum number of tool calls allowed per completion cycle.
OptionalmcpOptional array of mcp names managed by the agent
OptionaloperatorFlag means the operator is going to chat with customer on another side
OptionalpromptThe primary prompt guiding the agent's behavior.
OptionalstatesOptional array of state names managed by the agent.
OptionalstoragesOptional array of storage names utilized by the agent.
OptionalsystemOptional array of system prompts, typically used for tool-calling protocols.
OptionalsystemOptional dynamic array of system prompts from the callback
OptionalsystemOptional array of system prompts, alias for system
OptionaltoolsOptional array of tool names available to the agent.
OptionaltransformOptional function to transform the model's output before further processing.
OptionalvalidateOptional function to validate the agent's output before finalization.
Interface representing the configuration schema for an agent. Defines the agent's properties, tools, and lifecycle behavior.