Skip to content

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>

View source

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

public static LanguageModelV4ToolChoice Required { get; }

One of the available tools must be selected.

Value: LanguageModelV4ToolChoice

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

public static LanguageModelV4ToolChoice Tool(string toolName)

A specific tool must be selected.

Parameters

Name Type Description
toolName string

Returns: LanguageModelV4ToolChoice