AI Dev Kit
Search Results for

    Show / Hide 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.

    Inheritance
    object
    ToolChoice
    Namespace: Glitch9.AIDevKit.OpenAI
    Assembly: .dll
    Syntax
    public class ToolChoice

    Constructors

    ToolChoice(ToolType)

    Declaration
    public ToolChoice(ToolType type)
    Parameters
    Type Name Description
    ToolType type

    ToolChoice(string)

    Declaration
    public ToolChoice(string functionName)
    Parameters
    Type Name Description
    string functionName

    Properties

    Function

    Declaration
    public NameModel Function { get; set; }
    Property Value
    Type Description
    NameModel

    IsObject

    Declaration
    public bool IsObject { get; }
    Property Value
    Type Description
    bool

    IsString

    Declaration
    public bool IsString { get; }
    Property Value
    Type Description
    bool

    Type

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

    Declaration
    public string Type { get; set; }
    Property Value
    Type Description
    string

    Operators

    implicit operator ToolChoice(ToolType)

    Declaration
    public static implicit operator ToolChoice(ToolType type)
    Parameters
    Type Name Description
    ToolType type
    Returns
    Type Description
    ToolChoice

    implicit operator ToolChoice(string)

    Declaration
    public static implicit operator ToolChoice(string functionName)
    Parameters
    Type Name Description
    string functionName
    Returns
    Type Description
    ToolChoice
    In this article
    Back to top Generated by DocFX