The agent name (required). Identifies the agent context for the completion.
client identifier for tracking and error handling.
An array of messages providing the conversation history or context for the completion.
The source of the last message, indicating whether it originated from a tool or user.
OptionaltoolsOptional array of tools available for this completion. Enables the model to call functions and interact with external systems.
Interface representing the arguments for swarm (chat) completions. Extends base completion args with swarm-specific fields for agent-based interactions. Used for agent completions with tool support, client tracking, and multi-agent context. ISwarmCompletionArgs