Page - Agent Workflow

abstract

Visualizes the multi-agent LLM pipeline execution — shows recent pipeline runs, expands individual runs to see each agent step's input/output, timing, and status for debugging AI decision chains.

Route

PropertyValue
Path/agent-workflow
Filefrontend/src/app/agent-workflow/page.tsx
Auth RequiredNo
LayoutRoot layout with sidebar
Dynamic SegmentNone

Component Tree

AgentWorkflowPage (page.tsx)
├── AppHeader (title="Agent Workflow")
├── Filters: account selector, symbol filter, date range
├── Pipeline Run List
│   └── PipelineRunCard × N
│       ├── Header: symbol + timeframe + task_type badge + status badge
│       ├── Duration + timestamp
│       ├── Final action badge (BUY / SELL / HOLD)
│       └── Expandable: Step Timeline
│           └── StepRow × N (seq, step_name, status, duration_ms)
│               └── Expandable: JSON input/output viewer
└── Empty state (no runs in selected range)

Data Layer

Server State — Direct fetch

CallAPITriggered When
Fetch runsGET /api/v1/pipeline/runsOn mount + filter changes
Fetch run detailGET /api/v1/pipeline/runs/{id}On run card expand

Validation & Conditions

Step Status Colors

statusColor
okGreen
skipYellow
errorRed

Render Conditions

ConditionWhat Shows
runs.length === 0Empty state
Run expandedStep timeline with all PipelineStep rows
Step expandedJSON viewer for input_json / output_json
step.status === "error"Error message from step.error
run.final_action === "BUY"Green action badge
RoleLink
Backend APIAPI-Pipeline
DB SchemaDB - pipeline_runs
DB SchemaDB - pipeline_steps