Download apps/vis/web/src/components/subagents/SubagentTree.tsx from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 573 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/apps/vis/web/src/components/subagents/SubagentTree.tsx
- Command line
-
hf download hf://SaylorTwift/kimi-code/apps/vis/web/src/components/subagents/SubagentTree.tsx
-
curl -L -o SubagentTree.tsx https://huggingface.co/SaylorTwift/kimi-code/resolve/main/apps/vis/web/src/components/subagents/SubagentTree.tsx
573 Bytes
| import type { AgentNode } from '../../types'; | |
| import { SubagentNode } from './SubagentNode'; | |
| interface SubagentTreeProps { | |
| tree: AgentNode[]; | |
| sessionId: string; | |
| } | |
| export function SubagentTree({ tree, sessionId }: SubagentTreeProps) { | |
| if (tree.length === 0) { | |
| return ( | |
| <div className="p-6 font-mono text-[12px] text-fg-3"> | |
| no agents found in state.json | |
| </div> | |
| ); | |
| } | |
| return ( | |
| <div className="p-3"> | |
| {tree.map((node) => ( | |
| <SubagentNode key={node.agentId} node={node} sessionId={sessionId} /> | |
| ))} | |
| </div> | |
| ); | |
| } | |