IntelligenceX
Class

ToolChoice

IntelligenceX.OpenAI.ToolCalling

Namespace
IntelligenceX.OpenAI.ToolCalling
Assembly
IntelligenceX
Modifiers
sealed

Represents the tool selection strategy for a request.

Inheritance

  • object
  • ToolChoice

Usage

Explore 5 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 5

Methods

public static ToolChoice Custom(string name) #

Forces the model to call a specific tool.

Parameters

name string required
Tool name.

Returns

ToolChoice

Properties

public string Type { get; } #

Gets the tool choice type.

public string? Name { get; } #

Gets the tool name when a specific tool is required.

public static ToolChoice Auto { get; } #

Allows the model to decide which tool to call.

public static ToolChoice None { get; } #

Disables tool calling.