@hbbio/nanoagent
    Preparing search index...

    Type Alias ToolCallResponse<Memory, Out>

    Response returned by a ToolHandler.

    type ToolCallResponse<Memory extends ChatMemory, Out> = {
        content?: readonly Content[];
        error?: string;
        "x-content"?: Out;
        "x-memLambda"?: string;
        "x-memPatch"?: ChatMemoryPatch;
    }

    Type Parameters

    Index

    Properties

    content?: readonly Content[]

    Preferred rich content payload.

    error?: string

    Error string; mutually exclusive with content.

    "x-content"?: Out

    Structured output for providers lacking content.

    "x-memLambda"?: string

    Lambdascript program to mutate memory.

    "x-memPatch"?: ChatMemoryPatch

    Internal non‑serialisable mutation.