IAgentParams

Interface representing the runtime parameters for an agent. Combines schema properties (excluding certain fields) with callbacks and runtime dependencies.

clientId: string

The ID of the client interacting with the agent.

logger: ILogger

The logger instance for recording agent activity and errors.

bus: IBus

The bus instance for event communication within the swarm.

history: IHistory

The history instance for tracking agent interactions.

completion: ICompletion

The completion instance for generating responses or outputs.

tools: IAgentTool<Record<string, ToolValue>>[]

Optional array of tools available to the agent for execution.

validate: (output: string) => Promise<string>

Validates the agent's output before finalization.