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
| Field | Type | Required | Description |
|---|---|---|---|
type | "function" | ✔️ | The type of the tool. Currently only 'function' is supported. |
function | components.FunctionT | ✔️ | The function definition |