Search Results for

    Show / Hide Table of Contents

    Class ConversationItem

    Inheritance
    object
    ConversationItem
    ItemReference
    McpApprovalRequest
    McpApprovalResponse
    Message
    Reasoning
    RedactedReasoning
    ToolCall
    ToolOutput
    UnknownItem
    Implements
    IPrompt
    IValidatable
    IHasId<string>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    [JsonConverter(typeof(ConversationItemConverter))]
    public abstract class ConversationItem : IPrompt, IValidatable, IHasId<string>

    Constructors

    | Edit this page View Source

    ConversationItem(string)

    Declaration
    protected ConversationItem(string type)
    Parameters
    Type Name Description
    string type

    Properties

    | Edit this page View Source

    Id

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

    Status

    Declaration
    [JsonProperty("status")]
    public virtual ResponseStatus? Status { get; set; }
    Property Value
    Type Description
    ResponseStatus?
    | Edit this page View Source

    Type

    Declaration
    [JsonProperty("type")]
    public string Type { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    GetPromptText()

    Declaration
    public virtual string GetPromptText()
    Returns
    Type Description
    string
    | Edit this page View Source

    IsValid()

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

    Validate()

    Validates the object's parameters and throws if invalid.

    Declaration
    public virtual void Validate()

    Implements

    IPrompt
    IValidatable
    IHasId<TId>

    Extension Methods

    UnifiedApiCallerExtensions.GENResponse(ConversationItem)
    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.GetIdOrNull(IHasId<string>)
    CoreLibTypeExtensions.IsNullOrEmptyId(IHasId<string>)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation