Class ToolChoice
- Namespace
- OpenAI.ObjectModels.RequestModels
- Assembly
- AntRunnerLib.dll
public class ToolChoice
- Inheritance
-
System.ObjectToolChoice
- Inherited Members
-
System.Object.Equals(System.Object)System.Object.Equals(System.Object, System.Object)System.Object.GetHashCode()System.Object.GetType()System.Object.MemberwiseClone()System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ToString()
Properties
Auto
public static ToolChoice Auto { get; }
Property Value
Function
[JsonPropertyName("function")]
public ToolChoice.FunctionTool Function { get; set; }
Property Value
None
public static ToolChoice None { get; }
Property Value
Type
"none" is the default when no functions are present.
"auto" is the default if functions are present.
"function" has to be assigned if user Function is not null
Check StaticValues.CompletionStatics.ToolChoiceType for possible values.
[JsonPropertyName("type")]
public string Type { get; set; }
Property Value
- System.String
Methods
FunctionChoice(String)
public static ToolChoice FunctionChoice(string functionName)
Parameters
functionNameSystem.String