AI DevKit
Search Results for

    Show / Hide Table of Contents

    Class Thread

    Thread object that assistants can interact with.

    Renamed from ThreadObject to Thread (2024.06.14)

    Inheritance
    object
    OpenAIModelBase
    Thread
    Implements
    IChatConversation<ThreadMessage>
    Inherited Members
    OpenAIModelBase.Id
    OpenAIModelBase.Object
    OpenAIModelBase.Model
    OpenAIModelBase.CreatedAt
    OpenAIModelBase.Metadata
    OpenAIModelBase.Usage
    Namespace: Glitch9.AIDevKit.OpenAI
    Assembly: .dll
    Syntax
    public class Thread : OpenAIModelBase, IChatConversation<ThreadMessage>

    Properties

    Messages

    Only used internally by AIDevKit to track messages in the thread.

    Declaration
    public List<ThreadMessage> Messages { get; set; }
    Property Value
    Type Description
    List<ThreadMessage>

    Name

    Name of this data.

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

    ToolResources

    A set of resources that are made available to the assistant's tools in this thread. The resources are specific to the type of tool. For example, the code_interpreter tool requires a list of file IDs, while the file_search tool requires a list of vector store IDs.

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

    Implements

    IChatConversation<TMessage>

    Extension Methods

    ThreadExtensions.GetMessagesAsync(Thread, int)
    In this article
    Back to top Generated by DocFX