Table of Contents

Class ToolChoice

Namespace
OpenAI.ObjectModels.RequestModels
Assembly
AntRunnerLib.dll
public class ToolChoice
Inheritance
System.Object
ToolChoice
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

ToolChoice

Function

[JsonPropertyName("function")]
public ToolChoice.FunctionTool Function { get; set; }

Property Value

ToolChoice.FunctionTool

None

public static ToolChoice None { get; }

Property Value

ToolChoice

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

functionName System.String

Returns

ToolChoice