Skip to content

ToolCalls

Example Usage

typescript
import { ToolCalls } from "@meetkai/mka1/models/components";

let value: ToolCalls = {
  id: "<id>",
  type: "function",
  function: {
    name: "<value>",
    arguments: "<value>",
  },
};

Fields

FieldTypeRequiredDescription
idstring✔️The ID of the tool call
type"function"✔️The type of the tool. Currently only 'function' is supported.
functioncomponents.OpenAIRequestMessageFunction✔️The function to be called