AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class ThreadMessageRequest

    Inheritance
    object
    RequestBody
    ModelRequest
    ThreadMessageRequest
    Inherited Members
    ModelRequest.Model
    ModelRequest.N
    ModelRequest.Metadata
    ModelRequest.User
    Namespace: Glitch9.AIDevKit.OpenAI
    Assembly: .dll
    Syntax
    public class ThreadMessageRequest : ModelRequest

    Properties

    Attachments

    A list of files attached to the message, and the tools they should be added to.

    Declaration
    public List<Attachment> Attachments { get; set; }
    Property Value
    Type Description
    List<Attachment>

    Content

    Required. The content of the message.

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

    LocalFiles

    Locally stored files for the message.

    Declaration
    public List<UniFile> LocalFiles { get; set; }
    Property Value
    Type Description
    List<UniFile>

    LocalImages

    Locally stored images for the message.

    Declaration
    public List<UniImageFile> LocalImages { get; set; }
    Property Value
    Type Description
    List<UniImageFile>

    Role

    Required. The role of the entity that is creating the message. Currently only User is supported.

    Declaration
    public ChatRole Role { get; }
    Property Value
    Type Description
    ChatRole

    Methods

    SetFiles(IEnumerable<string>)

    Declaration
    public void SetFiles(IEnumerable<string> attachmentFileIds)
    Parameters
    Type Name Description
    IEnumerable<string> attachmentFileIds

    SetImages(IEnumerable<string>)

    Declaration
    public void SetImages(IEnumerable<string> imageFileIds)
    Parameters
    Type Name Description
    IEnumerable<string> imageFileIds
    In this article
    Back to top Generated by DocFX