forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintegration-grid.tsx
More file actions
161 lines (155 loc) · 4.41 KB
/
Copy pathintegration-grid.tsx
File metadata and controls
161 lines (155 loc) · 4.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
import Link from "next/link";
import { AgentSpecMarkIcon } from "@/lib/icons/custom-icons";
import AdkIcon from "@/components/ui/icons/adk";
import Ag2Icon from "@/components/ui/icons/ag2";
import CrewaiIcon from "@/components/ui/icons/crewai";
import CopilotKitMarkIcon from "@/components/ui/icons/copilotkit-mark";
import LanggraphIcon from "@/components/ui/icons/langgraph";
import DeepAgentsIcon from "@/components/ui/icons/deepagents";
import LlamaIndexIcon from "@/components/ui/icons/llama-index";
import MastraIcon from "@/components/ui/icons/mastra";
import AgnoIcon from "@/components/ui/icons/agno";
import PydanticAiIcon from "@/components/ui/icons/pydantic-ai";
import { MicrosoftIcon } from "@/components/ui/icons/microsoft";
import { AwsStrandsIcon } from "@/components/ui/icons/aws-strands";
import type { ComponentType } from "react";
export type IntegrationName =
| "built-in-agent"
| "langgraph"
| "deepagents"
| "adk"
| "microsoft-agent-framework"
| "aws-strands"
| "mastra"
| "pydantic-ai"
| "crewai-flows"
| "agno"
| "ag2"
| "agent-spec"
| "llamaindex";
interface Integration {
name: IntegrationName;
label: string;
description: string;
icon: ComponentType<{ className?: string }>;
}
const INTEGRATIONS: Integration[] = [
{
name: "built-in-agent",
label: "Built-in Agent",
description:
"Use CopilotKit's built-in agent — no external framework required.",
icon: CopilotKitMarkIcon,
},
{
name: "langgraph",
label: "LangChain",
description: "Build and deploy stateful AI agents with LangChain.",
icon: LanggraphIcon,
},
{
name: "deepagents",
label: "Deep Agents",
description: "Build sophisticated AI agents with LangChain's Deep Agents framework.",
icon: DeepAgentsIcon,
},
{
name: "adk",
label: "ADK",
description: "Google's Agent Development Kit for building AI agents.",
icon: AdkIcon,
},
{
name: "microsoft-agent-framework",
label: "Microsoft Agent Framework",
description: "Microsoft's framework for building AI agents.",
icon: MicrosoftIcon,
},
{
name: "aws-strands",
label: "AWS Strands",
description: "AWS SDK for building and orchestrating AI agents.",
icon: AwsStrandsIcon,
},
{
name: "mastra",
label: "Mastra",
description: "TypeScript framework for building AI agents.",
icon: MastraIcon,
},
{
name: "pydantic-ai",
label: "Pydantic AI",
description: "Type-safe Python framework for AI agents.",
icon: PydanticAiIcon,
},
{
name: "crewai-flows",
label: "CrewAI Flows",
description: "Orchestrate sequential AI agent workflows.",
icon: CrewaiIcon,
},
{
name: "agno",
label: "Agno",
description: "Lightweight framework for building AI agents.",
icon: AgnoIcon,
},
{
name: "ag2",
label: "AG2",
description: "The open-source multi-agent OS.",
icon: Ag2Icon,
},
{
name: "agent-spec",
label: "Open Agent Spec",
description: "Open standard for defining AI agent interfaces.",
icon: AgentSpecMarkIcon,
},
{
name: "llamaindex",
label: "LlamaIndex",
description: "Framework for building LLM-powered data applications.",
icon: LlamaIndexIcon,
},
];
interface IntegrationGridProps {
path?: string;
include?: IntegrationName[];
exclude?: IntegrationName[];
}
export const IntegrationGrid = ({
path = "",
include,
exclude,
}: IntegrationGridProps) => {
const filtered = INTEGRATIONS.filter((integration) => {
if (include && !include.includes(integration.name)) return false;
if (exclude && exclude.includes(integration.name)) return false;
return true;
});
return (
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-x-12 gap-y-8 mt-6 mb-16 not-prose">
{filtered.map(({ name, label, description, icon: Icon }) => (
<Link
key={name}
href={`/${name}/${path}`}
className="group flex items-start gap-4 no-underline"
>
<div className="shrink-0 mt-1">
<Icon className="h-6 w-6 text-primary" />
</div>
<div>
<div className="font-semibold text-foreground group-hover:text-primary transition-colors">
{label} ›
</div>
<div className="text-sm text-muted-foreground leading-relaxed mt-0.5">
{description}
</div>
</div>
</Link>
))}
</div>
);
};