# 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 && (
  <Callout type="warn">
    <strong>Deprecated.</strong> {ChainOfThoughtPrimitiveDocs.Root.deprecated}
  </Callout>
  )}

{ChainOfThoughtPrimitiveDocs.Root?.description}

{ChainOfThoughtPrimitiveDocs.Root?.element && (
  <p>This primitive renders a <code>{`<${ChainOfThoughtPrimitiveDocs.Root?.element}>`}</code> element unless <code>asChild</code> is set.</p>
  )}

<ParametersTable />

### AccordionTrigger \[#accordiontrigger]

{ChainOfThoughtPrimitiveDocs.AccordionTrigger?.deprecated && (
  <Callout type="warn">
    <strong>Deprecated.</strong> {ChainOfThoughtPrimitiveDocs.AccordionTrigger.deprecated}
  </Callout>
  )}

{ChainOfThoughtPrimitiveDocs.AccordionTrigger?.description}

{ChainOfThoughtPrimitiveDocs.AccordionTrigger?.element && (
  <p>This primitive renders a <code>{`<${ChainOfThoughtPrimitiveDocs.AccordionTrigger?.element}>`}</code> element unless <code>asChild</code> is set.</p>
  )}

<ParametersTable />

### Parts \[#parts]

{ChainOfThoughtPrimitiveDocs.Parts?.deprecated && (
  <Callout type="warn">
    <strong>Deprecated.</strong> {ChainOfThoughtPrimitiveDocs.Parts.deprecated}
  </Callout>
  )}

{ChainOfThoughtPrimitiveDocs.Parts?.description}

{ChainOfThoughtPrimitiveDocs.Parts?.element && (
  <p>This primitive renders a <code>{`<${ChainOfThoughtPrimitiveDocs.Parts?.element}>`}</code> element unless <code>asChild</code> is set.</p>
  )}

<ParametersTable />

{/* api-reference:end */}
