Search Results for

    Show / Hide Table of Contents

    Class AmazonTitanTextEvent.ChunkData

    Inheritance
    object
    AmazonTitanTextEvent.ChunkData
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.AmazonAws
    Assembly: Glitch9.AIDevKit.Provider.AmazonAws.dll
    Syntax
    public class AmazonTitanTextEvent.ChunkData

    Properties

    | Edit this page View Source

    CompletionReason

    Required. The reason the response finished being generated. The following reasons are possible:

    FINISHED -The response was fully generated. LENGTH -The response was truncated because of the response length you set. STOP_CRITERIA_MET -The response was truncated because the stop criteria was reached. RAG_QUERY_WHEN_RAG_DISABLED -The feature is disabled and cannot complete the query. CONTENT_FILTERED -The contents were filtered or removed by the filter applied.

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

    Index

    Required. The index of the chunk in the streaming response.

    Declaration
    [JsonProperty("index")]
    public int Index { get; set; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    InputTextTokenCount

    Required. The number of tokens in the prompt.

    Declaration
    [JsonProperty("inputTextTokenCount")]
    public int InputTextTokenCount { get; set; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    OutputText

    Required. The text in the response.

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

    TotalOutputTextTokenCount

    Required. The number of tokens in the response.

    Declaration
    [JsonProperty("totalOutputTextTokenCount")]
    public int TotalOutputTextTokenCount { get; set; }
    Property Value
    Type Description
    int

    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