ChatCompletionNamedToolChoice

Forces the model to call a specific tool.

Construct via the JSON the DeepSeek API expects, e.g. {"type": "function", "function": {"name": "my_function"}}.

Properties

Link copied to clipboard

Reference to the tool that must be called; only the name field is consumed by the API.

Link copied to clipboard

Tool type discriminator; currently always ToolCallType.FUNCTION.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String