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

    Interface IAgent

    Base interface for all agents.

    interface IAgent {
        id: string;
        role: AgentRole;
        state: AgentState;
        capabilities: readonly AgentCapability[];
        execute(task: Task): Promise<Result<TaskResult, AgentError>>;
        handleMessage(
            msg: AgentMessage,
        ): Promise<Result<AgentResponse, AgentError>>;
        initialize(ctx: AgentContext): Promise<Result<void, AgentError>>;
        cleanup(): Promise<void>;
    }

    Implemented by

    Index

    Properties

    id: string

    Unique agent identifier

    role: AgentRole

    Agent role

    state: AgentState

    Current state

    capabilities: readonly AgentCapability[]

    Agent capabilities

    Methods