Skip to content

PreparedToolChoice

Namespace: Vercel.AI.Prompt

public sealed class PreparedToolChoice

A tool choice sent to a language model. Maps to the result of prepareToolChoice.

Inheritance: object

View source

public PreparedToolChoice(string type, string? toolName = null)

Creates a tool choice.

Parameters

Name Type Description
type string
toolName string

View source

public string? ToolName { get; }

Tool name when Type is tool.

Value: string

View source

public string Type { get; }

Choice type: auto, none, required, or tool.

Value: string

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product