nexus-agents - v2.80.0
    Preparing search index...

    Interface BaseAgentOptions

    Options for creating a BaseAgent.

    interface BaseAgentOptions {
        id: string;
        role: AgentRole;
        capabilities: readonly AgentCapability[];
        adapter?: IModelAdapter;
        logger?: ILogger;
        systemPrompt?: string;
        temperature?: number;
        maxTokens?: number;
        eventBus?: IEventBus;
        emitMessageEvents?: boolean;
        stateMachineOptions?: StateMachineOptions;
        tokenBudget?: TokenBudgetConfig;
        contextPruning?: ContextPrunerAgentConfig;
        memory?: AgentMemoryConfig;
    }
    Index

    Properties

    id: string

    Unique agent identifier

    role: AgentRole

    Agent role

    capabilities: readonly AgentCapability[]

    Agent capabilities

    adapter?: IModelAdapter

    Model adapter for LLM interactions

    logger?: ILogger

    Custom logger instance

    systemPrompt?: string

    System prompt for the agent

    temperature?: number

    Default temperature for completions

    maxTokens?: number

    Maximum tokens for responses

    eventBus?: IEventBus

    Event bus for message observability (uses global bus if not provided)

    emitMessageEvents?: boolean

    Whether to emit events for message handling (default: true)

    stateMachineOptions?: StateMachineOptions

    State machine options for validated state transitions

    tokenBudget?: TokenBudgetConfig

    Token budget configuration for EMA-based tracking (Issue #304)

    contextPruning?: ContextPrunerAgentConfig

    Configuration for automatic context pruning (Issue #306)

    memory?: AgentMemoryConfig

    Configuration for memory backend integration (Issue #348)