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
| Prop | Type | Description |
|---|---|---|
| action* | string | Verb describing what the agent is doing (e.g. "Searching", "Reading"). |
| thoughtFor | string | Label shown in the disclosure trigger. Defaults to "Thought for 2s". |
| query | string | Optional search query rendered in bold after the action label. |
| sources | ReasoningSource[] | List of sources read or being read. Each renders with a status glyph. |
| expanded | boolean | Whether the disclosure starts open. Defaults to true. |
| running | boolean | When true, shows the Stop button and pulses the sparkle icon. |
| onStop | () => void | Called when the user clicks Stop. |
| className | string | Additional 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}
/>