# ChainOfThoughtPrimitive URL: /docs/api-reference/primitives/chain-of-thought Chain of thought primitives for rendering assistant reasoning, step lists, and collapsible disclosure UI in message content. {/* AUTO-GENERATED PAGE by scripts/generate-api-reference.mts */} {/* Do not edit manually. */} For examples and usage patterns, see [ChainOfThought](/docs/primitives/chain-of-thought). {/* api-reference:start */} {/* AUTO-GENERATED by scripts/generate-api-reference.mts */} {/* Do not edit this block manually. */} ## API Reference \[#api-reference] ### Root \[#root] {ChainOfThoughtPrimitiveDocs.Root?.deprecated && ( Deprecated. {ChainOfThoughtPrimitiveDocs.Root.deprecated} )} {ChainOfThoughtPrimitiveDocs.Root?.description} {ChainOfThoughtPrimitiveDocs.Root?.element && (

This primitive renders a {`<${ChainOfThoughtPrimitiveDocs.Root?.element}>`} element unless asChild is set.

)} ### AccordionTrigger \[#accordiontrigger] {ChainOfThoughtPrimitiveDocs.AccordionTrigger?.deprecated && ( Deprecated. {ChainOfThoughtPrimitiveDocs.AccordionTrigger.deprecated} )} {ChainOfThoughtPrimitiveDocs.AccordionTrigger?.description} {ChainOfThoughtPrimitiveDocs.AccordionTrigger?.element && (

This primitive renders a {`<${ChainOfThoughtPrimitiveDocs.AccordionTrigger?.element}>`} element unless asChild is set.

)} ### Parts \[#parts] {ChainOfThoughtPrimitiveDocs.Parts?.deprecated && ( Deprecated. {ChainOfThoughtPrimitiveDocs.Parts.deprecated} )} {ChainOfThoughtPrimitiveDocs.Parts?.description} {ChainOfThoughtPrimitiveDocs.Parts?.element && (

This primitive renders a {`<${ChainOfThoughtPrimitiveDocs.Parts?.element}>`} element unless asChild is set.

)} {/* api-reference:end */}