Agent

A visual AI agent card detailing system instructions, model identifiers, registered tool manifests, and output schemas.

The Agent component visualizes autonomous agent definitions, including tool configurations, input schemas, and expected outputs.

Database ArchitectClaude 3.7 Sonnet
Instructions

Analyze SQL performance, suggest compound indexes, and create Drizzle ORM schema migrations.

Output Schema
interface MigrationResult { applied: number; durationMs: number; }

Usage

tsx
import {  Agent,  AgentHeader,  AgentContent,  AgentInstructions,  AgentOutput,} from "@celestia-project/ui"
export function MyAgent() {  return (    <Agent className="w-full max-w-md">      <AgentHeader name="Database Architect" model="Claude 3.7 Sonnet" />      <AgentContent>        <AgentInstructions>          Analyze SQL performance, suggest compound indexes, and create Drizzle ORM schema migrations.        </AgentInstructions>        <AgentOutput schema="interface MigrationResult { applied: number; durationMs: number; }" />      </AgentContent>    </Agent>  )}

Props Reference

ComponentPropTypeDescription
AgentHeadernamestringDisplay name of the agent.
AgentHeadermodelstringAssociated LLM model tag.
AgentInstructionschildrenstringAgent system prompt or operating rules.
AgentOutputschemastringTypeScript or JSON Schema describing output format.