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.
Inheritance
object
ToolChoice
Assembly: .dll
Constructors
Declaration
public ToolChoice(ToolType type)
Parameters
Declaration
public ToolChoice(string functionName)
Parameters
Type |
Name |
Description |
string |
functionName |
|
Properties
Declaration
public NameModel Function { get; set; }
Property Value
Type |
Description |
NameModel |
|
Declaration
public bool IsObject { get; }
Property Value
Declaration
public bool IsString { get; }
Property Value
[Required] The type of the tool.
If type is function, the function name must be set
Declaration
public string Type { get; set; }
Property Value
Operators
Declaration
public static implicit operator ToolChoice(ToolType type)
Parameters
Returns
Declaration
public static implicit operator ToolChoice(string functionName)
Parameters
Type |
Name |
Description |
string |
functionName |
|
Returns