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

x/openai/resources/beta/threads/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.52.1/resources/beta/threads/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