You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Implemented the NetworkInfoPanel component to display network details, including:
- Overview of the selected network with its name, description, category, and features.
- List of agents associated with the network, highlighting active agents.
- Collapsible sections for different network categories (routing, pipeline, research) with the ability to select networks.
- Created the NetworkRoutingPanel component to visualize the routing flow, featuring:
- Status indicators for each routing step (completed, active, error).
- Display of available agents in the network.
- Dynamic updates based on the current network status (idle, routing, executing, completed, error).
Copy file name to clipboardExpand all lines: app/networks/AGENTS.md
+51-28Lines changed: 51 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,29 +2,39 @@
2
2
3
3
## Overview
4
4
5
-
The networks page provides an interface for interacting with Mastra agent networks using `@ai-sdk/react`and`DefaultChatTransport` to stream responses from the `/network` route.
5
+
The networks page provides an advanced chat interface for interacting with Mastra agent networks. It uses `@ai-sdk/react`with`DefaultChatTransport` to stream responses from the `/network` route, and leverages **AI Elements** components for a rich chat experience.
6
6
7
7
## Architecture
8
8
9
-
Follows the same modular pattern as chat and workflows:
10
-
11
9
```text
12
10
app/networks/
13
-
├── page.tsx # Main page component
11
+
├── page.tsx # Main page with chat + routing panel
14
12
├── config/
15
-
│ └── networks.ts # Network definitions and types
13
+
│ └── networks.ts # Network definitions and types
16
14
├── providers/
17
-
│ └── network-context.tsx # State management with useChat
15
+
│ └── network-context.tsx # State management with useChat
18
16
└── components/
19
-
├── network-header.tsx # Header with network selector
20
-
├── network-agents.tsx # Agent list sidebar
21
-
├── network-messages.tsx # Conversation display
22
-
└── network-input.tsx # Message input
17
+
├── network-header.tsx # Header with network selector
18
+
├── network-chat.tsx # AI Elements chat (Conversation, Message, Reasoning, Tool)
0 commit comments