docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ChatMessageMetaContext

    What renderMessageMeta is told about an assistant message.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.AppUI.UI
    Assembly: Unity.AppUI.dll
    Syntax
    public readonly struct ChatMessageMetaContext

    Constructors

    ChatMessageMetaContext(ChatMessage, ChatMessage, int)

    Constructs the context.

    Declaration
    public ChatMessageMetaContext(ChatMessage message, ChatMessage precedingUserMessage, int answerElapsedMs)
    Parameters
    Type Name Description
    ChatMessage message

    The assistant message.

    ChatMessage precedingUserMessage

    The prompt that started the turn.

    int answerElapsedMs

    Elapsed time to the answer.

    Properties

    answerElapsedMs

    Time from that prompt to this reply, in milliseconds, or unknownDuration.

    Declaration
    public int answerElapsedMs { get; }
    Property Value
    Type Description
    int

    message

    The assistant message being rendered.

    Declaration
    public ChatMessage message { get; }
    Property Value
    Type Description
    ChatMessage

    precedingUserMessage

    The nearest user message before it, or null if the answer was unprompted.

    Declaration
    public ChatMessage precedingUserMessage { get; }
    Property Value
    Type Description
    ChatMessage
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)