Search Results for

    Show / Hide Table of Contents

    Class Conversation

    Inheritance
    object
    Conversation
    Thread
    Implements
    IData
    IHasId<string>
    IHasName
    IDeletionStatus
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.AIDevKit.Agents.Conversations
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public class Conversation : IData, IHasId<string>, IHasName, IDeletionStatus

    Properties

    | Edit this page View Source

    AgentId

    Required. Locally used to indicate which agent this conversation belongs to.

    Declaration
    public string AgentId { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    AgentName

    Optional. The name of the agent handling the conversation.

    Declaration
    public string AgentName { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    CreatedAt

    Required. The time at which the conversation was created, measured in seconds since the Unix epoch.

    Declaration
    [JsonProperty("created_at")]
    public UnixTime CreatedAt { get; set; }
    Property Value
    Type Description
    UnixTime
    | Edit this page View Source

    Id

    Required. The unique ID of the conversation.

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

    ItemCount

    Declaration
    public int ItemCount { get; set; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    LastUserMessage

    The last message sent by the user.

    Declaration
    public string LastUserMessage { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Metadata

    Optional. Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.

    Declaration
    [JsonProperty("metadata")]
    public ServerDictionary Metadata { get; set; }
    Property Value
    Type Description
    ServerDictionary
    | Edit this page View Source

    Name

    Optional. The name (title) of the conversation.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Object

    Required. The object type, which is always conversation.

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

    StoreType

    Required. Locally used to indicate which store this conversation belongs to.

    Declaration
    public ConversationStoreType StoreType { get; set; }
    Property Value
    Type Description
    ConversationStoreType
    | Edit this page View Source

    Summary

    The current summary of the session.

    Declaration
    public ConversationSummary Summary { get; set; }
    Property Value
    Type Description
    ConversationSummary
    | Edit this page View Source

    TotalCostInUsd

    Total cost of the session in USD. This is calculated based on the total usage and the cost per token.

    Declaration
    public double TotalCostInUsd { get; set; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    TotalUsage

    Total usage statistics for the session. This includes token usage, cost, and other metrics.

    Declaration
    public Usage TotalUsage { get; set; }
    Property Value
    Type Description
    Usage
    | Edit this page View Source

    UpdatedAt

    Last update timestamp.

    Declaration
    public UnixTime UpdatedAt { get; set; }
    Property Value
    Type Description
    UnixTime

    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

    IsDeleted()

    Declaration
    public bool IsDeleted()
    Returns
    Type Description
    bool
    | Edit this page View Source

    ToString()

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

    Implements

    IData
    IHasId<TId>
    IHasName
    IDeletionStatus

    Extension Methods

    ConversationExtensions.FormatConversationDetails(Conversation)
    ConversationExtensions.GetMetadata<T>(Conversation, string)
    ConversationExtensions.SetMetadata<T>(Conversation, string, T)
    ConversationExtensions.ToReference(Conversation)
    ThreadConversationExtensions.ToOpenAIThread(Conversation)
    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)
    CoreLibTypeExtensions.GetNameOrDash(IData)
    CoreLibTypeExtensions.GetIdOrNull(IHasId<string>)
    CoreLibTypeExtensions.IsNullOrEmptyId(IHasId<string>)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation