ThoughtChain

The ThoughtChain component is used to visualize and track the call chain of Actions and Tools invoked by an Agent.
Import

何时使用#

  • Debug and trace complex call chains in the Agent System.
  • Similar chain-like scenarios.

Examples#

1
Thought Chain Item Title description
2
Thought Chain Item Title description

Basic usage.

      Loading...
    


1
Thought Chain Item Title description
2
Thought Chain Item Title description

The ThoughtChain supports three sizes of small, middle and large. Default size is middle.

      Loading...
    
Thought Chain Item Title description
Thought Chain Item Title description
Thought Chain Item Title description

Basic usage.The thought chain nodes support configuring the status property to clearly indicate the current execution status of the node.

      Loading...
    
1
Thought Chain Item Title description
2
Thought Chain Item Title description

Configure collapsible to enable the expand for the content area of thought chain nodes.

      Loading...
    
Thought Chain Item Title description
Thought Chain Item Title description
Thought Chain Item Title description

The items property supports flexible customization. For more details, refer to the ThoughtChainItem definition.

      Loading...
    
1
Thought Chain Item Title description
2
Thought Chain Item Title description

The ThoughtChain component supports nested usage.

      Loading...
    

API#

nx-thought-chain#

PropertyDescriptionTypeDefaultGlobal Config
[nxCollapsible]Whether collapsibleboolean | NxCollapsibleOptionsfalse-
[nxItems]Chain itemsNxThoughtChainItem[]--
[nxSize]Sizelarge | middle | smallmiddle-

NxThoughtChainItem#

PropertyDescriptionTypeDefaultGlobal Config
[content]Thought chain item contentTemplateRef<void>--
[description]Thought chain item descriptionTemplateRef<void> | string--
[extra]Thought chain item extra contentTemplateRef<void>--
[footer]Thought chain item footerTemplateRef<void>--
[icon]Thought chain item iconstring--
[key]Unique identifierstring--
[status]Thought chain item statuspending | success | error--
[title]Thought chain item titleTemplateRef<void> | string--

NxCollapsibleOptions#

PropertyDescriptionTypeDefaultGlobal Config
[expandedKeys]Current expanded keysstring[]--
[onExpand]Callback function when expanded keys change(expandedKeys: string[]) => void--