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
-
objectToolChoice
Constructors
ToolChoice(ToolType)
public ToolChoice(ToolType type)
Parameters
typeToolType
ToolChoice(string)
public ToolChoice(string functionName)
Parameters
functionNamestring
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
typeToolType
Returns
implicit operator ToolChoice(string)
public static implicit operator ToolChoice(string functionName)
Parameters
functionNamestring