Type alias FunctionToolsExecutedEvent

FunctionToolsExecutedEvent: {
    createdAt: number;
    functionCallOutputs: FunctionCallOutput[];
    functionCalls: FunctionCall[];
    hasToolReply: boolean;
    type: "function_tools_executed";
    cancelToolReply(): void;
}

Type declaration

  • createdAt: number
  • functionCallOutputs: FunctionCallOutput[]
  • functionCalls: FunctionCall[]

    Function calls and outputs are parallel arrays: the output at a given index belongs to the call at the same index, and its callId matches the paired function call's callId.

  • Readonly hasToolReply: boolean

    Whether any output in this batch asks the model to reply.

  • type: "function_tools_executed"
  • cancelToolReply:function
    • Ask the model not to reply to this batch. Each output is still delivered, since a realtime model holds the call open until it is answered.

      Returns void