alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class ThinkingStageTemplateContext

    Provides context data and references for custom thinking stage templates in the SfAIAssistView component.

    Inheritance
    object
    ThinkingStageTemplateContext
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.InteractiveChat
    Assembly: Syncfusion.Blazor.InteractiveChat.dll
    Syntax
    public class ThinkingStageTemplateContext
    Remarks

    This context class is passed to the ThinkingStageTemplate render fragment, enabling custom rendering of individual thinking stages with full access to stage data and hierarchical position information.

    Use this context to access the stage's content, context items, status, and metadata when implementing custom stage templates within thinking blocks.

    Constructors

    ThinkingStageTemplateContext()

    Declaration
    public ThinkingStageTemplateContext()

    Properties

    Stage

    Gets the thinking stage being rendered.

    Declaration
    public ThinkingStage Stage { get; set; }
    Property Value
    Type Description
    ThinkingStage

    The ThinkingStage object containing ID, status, content, icon CSS, and editable context items collection.

    Remarks

    This property provides access to the complete stage data structure, allowing you to customize rendering based on all available stage properties including status, content, and context items.

    StageIndex

    Gets the zero-based index of this thinking stage within its parent thinking block's stages collection.

    Declaration
    public int StageIndex { get; set; }
    Property Value
    Type Description
    int

    An int representing the position of this stage within the parent block's stages. The default value is 0.

    Remarks

    Use this index to identify the stage's position in the timeline sequence or to create stage-specific identifiers. The first stage has index 0, the second has index 1, etc.

    This is useful for numbering stages or applying different styling to stages in different positions.

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved