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

    Class SimpleAgent

    Simple concrete agent implementation for testing and basic use cases.

    This agent processes tasks by sending them directly to the model adapter and returning the response.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    id: string

    Unique agent identifier

    role: AgentRole

    Agent role

    capabilities: readonly AgentCapability[]

    Agent capabilities

    stateMachine: AgentStateMachine
    budgetTracker: ITokenBudgetTracker
    adapter: IModelAdapter | undefined
    logger: ILogger
    config: AgentConfig | undefined
    sharedState: Record<string, unknown> = {}
    history: Message[] = []
    systemPrompt: string | undefined
    temperature: number
    maxTokens: number
    eventBus: IEventBus
    emitMessageEvents: boolean

    Accessors

    Methods

    • Parameters

      • content: string
      • Optionalpriority: 20 | 60 | 80 | 100 | 40
      • Optionalcategory: "system" | "task" | "active"

      Returns Promise<void>