Agent
A composable component for displaying AI agent configuration with model, instructions, tools, and output schema.
The Agent component displays an interface for showing AI agent configuration details. It's designed to represent a configured agent from the AI SDK, showing the agent's model, system instructions, available tools (with expandable input schemas), and output schema.
Install using CLI
Install Manually
Copy and paste the following files into the same folder.
Usage with AI SDK
Display an agent's configuration alongside your chat interface. Tools are displayed in an accordion where clicking the description expands to show the input schema.
Features
- Model badge in header
- Instructions rendered as markdown
- Tools displayed as accordion items with expandable input schemas
- Output schema display with syntax highlighting
- Composable structure for flexible layouts
- Works with AI SDK
Tooltype
Props
<Agent />
[...props]HTMLAttributes
<AgentHeader />
namerequiredstring
modelstring
...propsHTMLAttributes
<AgentContent />
...propsHTMLAttributes
<AgentInstructions />
defaultSlot
...propsHTMLAttributes
<AgentTools />
...propsAccordionProps
<AgentTool />
toolrequiredTool
valuerequiredstring
...propsAccordionItemProps
<AgentOutput />
schemarequiredstring
...propsHTMLAttributes