Table of Contents

Class ToolChoice

This can be a String or an Object Specifies a tool the model should use. Use to force the model to call a specific tool.

public class ToolChoice
Inheritance
object
ToolChoice

Constructors

ToolChoice(ToolType)

public ToolChoice(ToolType type)

Parameters

type ToolType

ToolChoice(string)

public ToolChoice(string functionName)

Parameters

functionName string

Properties

Function

public NameModel Function { get; set; }

Property Value

NameModel

IsObject

public bool IsObject { get; }

Property Value

bool

IsString

public bool IsString { get; }

Property Value

bool

Type

[Required] The type of the tool. If type is function, the function name must be set

public string Type { get; set; }

Property Value

string

Operators

implicit operator ToolChoice(ToolType)

public static implicit operator ToolChoice(ToolType type)

Parameters

type ToolType

Returns

ToolChoice

implicit operator ToolChoice(string)

public static implicit operator ToolChoice(string functionName)

Parameters

functionName string

Returns

ToolChoice