Search Results for

    Show / Hide Table of Contents

    Class Attachment

    Inheritance
    object
    Attachment
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.AIDevKit.OpenAI
    Assembly: Glitch9.AIDevKit.Provider.OpenAI.dll
    Syntax
    public class Attachment

    Constructors

    | Edit this page View Source

    Attachment(params ToolEnvelope[])

    Declaration
    public Attachment(params ToolEnvelope[] tools)
    Parameters
    Type Name Description
    ToolEnvelope[] tools
    | Edit this page View Source

    Attachment(string, string)

    Declaration
    public Attachment(string fileId, string targetTool = "none")
    Parameters
    Type Name Description
    string fileId
    string targetTool

    Properties

    | Edit this page View Source

    FileId

    Declaration
    [JsonProperty("file_id")]
    public string FileId { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    IsFileId

    Declaration
    [JsonIgnore]
    public bool IsFileId { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    IsTools

    Declaration
    [JsonIgnore]
    public bool IsTools { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Tools

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

    Declaration
    [JsonProperty("tools")]
    public ToolEnvelope[] Tools { get; set; }
    Property Value
    Type Description
    ToolEnvelope[]

    Methods

    | Edit this page View Source

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)
    | Edit this page View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()
    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Operators

    | Edit this page View Source

    implicit operator Attachment(ToolEnvelope[])

    Declaration
    public static implicit operator Attachment(ToolEnvelope[] tools)
    Parameters
    Type Name Description
    ToolEnvelope[] tools
    Returns
    Type Description
    Attachment
    | Edit this page View Source

    implicit operator Attachment(string)

    Declaration
    public static implicit operator Attachment(string fileId)
    Parameters
    Type Name Description
    string fileId
    Returns
    Type Description
    Attachment

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation