Creating Plot Twists
    Preparing search index...

    Interface ToolExecutionOptions

    Options passed to tool execution functions.

    interface ToolExecutionOptions {
        toolCallId: string;
        messages: AIMessage[];
        abortSignal?: AbortSignal;
    }
    Index

    Properties

    toolCallId: string

    The ID of the tool call. You can use it e.g. when sending tool-call related information with stream data.

    messages: AIMessage[]

    Messages that were sent to the language model to initiate the response that contained the tool call. The messages do not include the system prompt nor the assistant response that contained the tool call.

    abortSignal?: AbortSignal

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