lloyal-agents API Reference
    Preparing search index...

    Interface AgentHandle<E>

    Handle returned by initAgents containing all agent resources

    interface AgentHandle<E = AgentEvent> {
        ctx: SessionContext;
        events: Channel<E, void>;
        session: Session;
        store: BranchStore;
    }

    Type Parameters

    Index

    Properties

    Properties

    ctx: SessionContext

    The session context (model, tokenizer, KV cache)

    events: Channel<E, void>

    Channel for subscribing to agent events

    session: Session

    Session managing conversation trunk and branch lifecycle

    store: BranchStore

    Branch store for batched commit/prefill across branches