PreparedToolChoice
Namespace: Vercel.AI.Prompt
public sealed class PreparedToolChoiceA tool choice sent to a language model. Maps to the result of prepareToolChoice.
Inheritance: object
Constructors
Section titled “Constructors”PreparedToolChoice(string, string?)
Section titled “PreparedToolChoice(string, string?)”public PreparedToolChoice(string type, string? toolName = null)Creates a tool choice.
Parameters
| Name | Type | Description |
|---|---|---|
type |
string | |
toolName |
string |
Properties
Section titled “Properties”ToolName
Section titled “ToolName”public string? ToolName { get; }Tool name when Type is tool.
Value: string
public string Type { get; }Choice type: auto, none, required, or tool.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product