langchain.js
    Preparing search index...

    Interface AgentRuntime<ContextType>

    LangChain Agents

    interface AgentRuntime<ContextType = Record<string, unknown>> {
        context?: ContextType;
        signal?: AbortSignal;
        store?: BaseStore;
        writer?: (chunk: unknown) => void;
    }

    Type Parameters

    • ContextType = Record<string, unknown>
    Index

    Properties

    context?: ContextType

    The context of the agent.

    signal?: AbortSignal

    An optional abort signal that indicates that the overall operation should be aborted.

    store?: BaseStore

    The store passed to the agent.

    writer?: (chunk: unknown) => void

    The writer of the agent to write to the output stream.