@hbbio/nanoagent
    Preparing search index...

    Type Alias AgentState<Memory>

    Immutable state passed between steps.

    type AgentState<Memory> = {
        halted?: HaltStatus;
        id?: string;
        memory?: Memory;
        messages: readonly Message[];
        model: Model;
    }

    Type Parameters

    • Memory
    Index

    Properties

    halted?: HaltStatus

    Halt condition (undefined when still running).

    id?: string

    Optional identifier for debugging/telemetry.

    memory?: Memory

    Opaque functional memory – can be any serialisable structure.

    messages: readonly Message[]

    Full conversation so far (immutable).

    model: Model

    Reference to a callable model implementation.