Skip to content

OpenAIToolDefinition

A tool the model may call while generating a response.

Example Usage

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

let value: OpenAIToolDefinition = {
  type: "function",
  function: {
    name: "<value>",
  },
};

Fields

FieldTypeRequiredDescription
type"function"✔️The type of the tool. Currently only 'function' is supported.
functioncomponents.FunctionT✔️The function definition