Neutrome SDK reference
    Preparing search index...

    Type Alias ToolCall

    A partial tool call carried by one streaming chunk.

    Providers stream tool calls in fragments: the first fragment usually carries id and name, later fragments append to arguments. index correlates fragments belonging to the same call.

    type ToolCall = {
        arguments?: string;
        id?: string;
        index: number;
        name?: string;
    }
    Index
    arguments?: string

    Argument JSON fragment, to be concatenated across fragments.

    id?: string

    Provider-assigned call id, sent on the first fragment.

    index: number

    Position of the call in the message, shared by all of its fragments.

    name?: string

    Called tool name, sent on the first fragment.