AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class Attachment

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

    Constructors

    Attachment(params ToolCall[])

    Declaration
    public Attachment(params ToolCall[] tools)
    Parameters
    Type Name Description
    ToolCall[] tools

    Attachment(string, ToolType)

    Declaration
    public Attachment(string fileId, ToolType targetTool = ToolType.None)
    Parameters
    Type Name Description
    string fileId
    ToolType targetTool

    Properties

    FileId

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

    IsFileId

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

    IsTools

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

    Tools

    This is only for 'code_interpreter' and 'file_search'. This is not for 'function'.

    Declaration
    public ToolCall[] Tools { get; set; }
    Property Value
    Type Description
    ToolCall[]

    Methods

    Equals(object)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current object.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    Overrides
    object.Equals(object)

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Overrides
    object.GetHashCode()

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents the current object.

    Overrides
    object.ToString()

    Operators

    implicit operator Attachment(ToolCall[])

    Declaration
    public static implicit operator Attachment(ToolCall[] tools)
    Parameters
    Type Name Description
    ToolCall[] tools
    Returns
    Type Description
    Attachment

    implicit operator Attachment(string)

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