Kanshō

Docs / Reasoning and traces /

ReasoningActivity

Collapsible panel that surfaces the agent's internal reasoning steps as they arrive.

Preview

Searching "postgres cascade delete foreign key"
Postgres constraint docs·postgresql.org/docs/current/ddl-constraints.html
Foreign key behaviour on delete·postgresql.org/docs/current/tutorial-fk.html
Schema migration best practices·prisma.io/dataguide/schema-design

Variants

Atom: ThinkingProcess

Analyzing the user's schema0.4s

Parsed table definitions and identified 14 foreign key relationships.

Checking for constraint violations1.1s

No orphaned rows detected. Nullable columns are safe to tighten.

Searching "cascade delete edge cases"
Schema migration best practices/prisma.io
Drafting migration plan

ThinkingProcess — compact & inspector variants

compact

Analyzed user schema0.4s

Parsed 14 foreign key relationships. No circular dependencies found.

Verified constraint safety1.1s

inspector

Analyzing the user's schema0.4s

Parsed table definitions and identified 14 foreign key relationships.

Checking for constraint violations1.1s

No orphaned rows detected. Nullable columns are safe to tighten.

Searching "cascade delete edge cases"
Schema migration best practices/prisma.io

Props

PropTypeDescription
action*stringVerb describing what the agent is doing (e.g. "Searching", "Reading").
thoughtForstringLabel shown in the disclosure trigger. Defaults to "Thought for 2s".
querystringOptional search query rendered in bold after the action label.
sourcesReasoningSource[]List of sources read or being read. Each renders with a status glyph.
expandedbooleanWhether the disclosure starts open. Defaults to true.
runningbooleanWhen true, shows the Stop button and pulses the sparkle icon.
onStop() => voidCalled when the user clicks Stop.
classNamestringAdditional class names applied to the root Disclosure element.

* required.

Usage

import { ReasoningActivity } from "@/components/agent/reasoning-activity";

<ReasoningActivity
  thoughtFor="Thought for 4s"
  action="Searching"
  query="postgres cascade delete foreign key"
  sources={[
    { title: "Postgres constraint docs", url: "postgresql.org/docs/…", status: "complete" },
    { title: "Schema migration best practices", url: "prisma.io/dataguide/…", status: "active" },
  ]}
  expanded
  running={false}
/>