Class InteractionToolChoice
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
Tool choice: either a Mode string (see InteractionToolChoiceModes) or an AllowedTools configuration.
[JsonConverter(typeof(InteractionToolChoiceConverter))]
public sealed class InteractionToolChoice
- Inheritance
-
InteractionToolChoice
- Inherited Members
- Extension Methods
Properties
AllowedTools
The allowed tools configuration, written as {"allowed_tools": {...}}.
public InteractionAllowedTools? AllowedTools { get; set; }
Property Value
Mode
The tool choice mode, written as a plain string when AllowedTools is not set.
public string? Mode { get; set; }