@honua/sdk-js
    Preparing search index...

    Interface StudioAgentToolDispatchExperimental

    The outcome of one dispatched tool call.

    interface StudioAgentToolDispatch {
        content: string;
        draft?: StudioMcpDraft;
        errorCode?: string;
        errorMessage?: string;
        ok: boolean;
        plane: "unknown" | StudioAgentToolPlane;
        retriedAfterConflict?: boolean;
        runtimeResult?: HonuaAgentToolResult<unknown>;
        toolCallId: string;
        toolName: string;
    }
    Index

    Properties

    content: string

    The exact JSON string sent back to the model as the role: "tool" message.

    The draft the composition tool returned, for plane: "composition".

    errorCode?: string

    Structured MCP tool error code, when the composition server supplied one.

    errorMessage?: string
    ok: boolean
    plane: "unknown" | StudioAgentToolPlane
    retriedAfterConflict?: boolean

    Set when the composition call succeeded only after one generation-conflict reload+retry.

    runtimeResult?: HonuaAgentToolResult<unknown>

    The local executor's structured result, for plane: "runtime".

    toolCallId: string
    toolName: string