LanguageModelV4ToolChoice
Namespace: E2E.Decision.Sdk
public sealed record LanguageModelV4ToolChoice : IEquatable<LanguageModelV4ToolChoice>How the tool is selected (LanguageModelV4ToolChoice): automatic, none, required, or a specific tool.
Inheritance: object
Implements: IEquatable<LanguageModelV4ToolChoice>
Properties
Section titled “Properties”public static LanguageModelV4ToolChoice Auto { get; }The tool selection is automatic; the model may call no tool.
Value: LanguageModelV4ToolChoice
public static LanguageModelV4ToolChoice None { get; }No tool must be selected.
Value: LanguageModelV4ToolChoice
Required
Section titled “Required”public static LanguageModelV4ToolChoice Required { get; }One of the available tools must be selected.
Value: LanguageModelV4ToolChoice
ToolName
Section titled “ToolName”public string? ToolName { get; init; }The name of the tool that must be selected (tool only).
Value: string
public required string Type { get; init; }The choice type: auto, none, required, or tool.
Value: string
Methods
Section titled “Methods”Tool(string)
Section titled “Tool(string)”public static LanguageModelV4ToolChoice Tool(string toolName)A specific tool must be selected.
Parameters
| Name | Type | Description |
|---|---|---|
toolName |
string |
Returns: LanguageModelV4ToolChoice