Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.38.5/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