ToolChoices
Namespace: Vercel.AI.Prompt
public static class ToolChoicesTool-choice normalization. Maps to prepareToolChoice.
Inheritance: object
Methods
Section titled “Methods”PrepareToolChoice(string?)
Section titled “PrepareToolChoice(string?)”public static PreparedToolChoice PrepareToolChoice(string? toolChoice)Returns auto when <code class=“paramref”>toolChoice</code> is null. String values are auto, none, or required.
Parameters
| Name | Type | Description |
|---|---|---|
toolChoice |
string |
Returns: PreparedToolChoice
PrepareToolChoice(ToolChoice?)
Section titled “PrepareToolChoice(ToolChoice?)”public static PreparedToolChoice PrepareToolChoice(ToolChoice? toolChoice)Returns auto when <code class=“paramref”>toolChoice</code> is null.
Parameters
| Name | Type | Description |
|---|---|---|
toolChoice |
ToolChoice |
Returns: PreparedToolChoice
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product