Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/resources/beta/mod.ts>AssistantToolChoice

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
interface AssistantToolChoice
import { type AssistantToolChoice } from "https://deno.land/x/openai@v4.51.0/resources/beta/mod.ts";

Specifies a tool the model should use. Use to force the model to call a specific tool.

Properties

type: "function" | "code_interpreter" | "file_search"

The type of the tool. If type is function, the function name must be set

optional
function: AssistantToolChoiceFunction