forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfiles.ts
More file actions
243 lines (240 loc) · 9.11 KB
/
Copy pathfiles.ts
File metadata and controls
243 lines (240 loc) · 9.11 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
import type { ReferenceDocConfiguration } from "./reference-doc";
export const REFERENCE_DOCS: ReferenceDocConfiguration[] = [
/* Runtime */
{
sourcePath:
"packages/runtime/src/service-adapters/google/google-genai-adapter.ts",
destinationPath:
"showcase/shell-docs/src/content/reference/v1/classes/llm-adapters/GoogleGenerativeAIAdapter.mdx",
className: "GoogleGenerativeAIAdapter",
description:
"Copilot Runtime adapter for Google Generative AI (e.g. Gemini).",
},
{
sourcePath: "packages/runtime/src/service-adapters/groq/groq-adapter.ts",
destinationPath:
"showcase/shell-docs/src/content/reference/v1/classes/llm-adapters/GroqAdapter.mdx",
className: "GroqAdapter",
description: "Copilot Runtime adapter for Groq.",
},
{
sourcePath:
"packages/runtime/src/service-adapters/langchain/langchain-adapter.ts",
destinationPath:
"showcase/shell-docs/src/content/reference/v1/classes/llm-adapters/LangChainAdapter.mdx",
className: "LangChainAdapter",
description: "Copilot Runtime adapter for LangChain.",
},
{
sourcePath:
"packages/runtime/src/service-adapters/openai/openai-adapter.ts",
destinationPath:
"showcase/shell-docs/src/content/reference/v1/classes/llm-adapters/OpenAIAdapter.mdx",
className: "OpenAIAdapter",
description: "Copilot Runtime adapter for OpenAI.",
},
{
sourcePath:
"packages/runtime/src/service-adapters/openai/openai-assistant-adapter.ts",
destinationPath:
"showcase/shell-docs/src/content/reference/v1/classes/llm-adapters/OpenAIAssistantAdapter.mdx",
className: "OpenAIAssistantAdapter",
description: "Copilot Runtime adapter for OpenAI Assistant API.",
},
{
sourcePath:
"packages/runtime/src/service-adapters/anthropic/anthropic-adapter.ts",
destinationPath:
"showcase/shell-docs/src/content/reference/v1/classes/llm-adapters/AnthropicAdapter.mdx",
className: "AnthropicAdapter",
description: "Copilot Runtime adapter for Anthropic.",
},
/* Classes */
{
sourcePath: "packages/react-core/src/lib/copilot-task.ts",
destinationPath:
"showcase/shell-docs/src/content/reference/v1/classes/CopilotTask.mdx",
className: "CopilotTask",
description:
"CopilotTask is used to execute one-off tasks, for example on button click.",
},
{
sourcePath: "packages/runtime/src/lib/runtime/copilot-runtime.ts",
destinationPath:
"showcase/shell-docs/src/content/reference/v1/classes/CopilotRuntime.mdx",
className: "CopilotRuntime",
description:
"Copilot Runtime is the back-end component of CopilotKit, enabling interaction with LLMs.",
},
/* Components */
{
sourcePath: "packages/react-ui/src/components/chat/Chat.tsx",
destinationPath:
"showcase/shell-docs/src/content/reference/v1/components/chat/CopilotChat.mdx",
component: "CopilotChat",
description:
"The CopilotChat component, providing a chat interface for interacting with your copilot.",
},
{
sourcePath:
"packages/react-core/src/components/copilot-provider/copilotkit.tsx",
destinationPath:
"showcase/shell-docs/src/content/reference/v1/components/CopilotKit.mdx",
component: "CopilotKit",
description:
"The CopilotKit provider component, wrapping your application.",
},
{
sourcePath: "packages/react-ui/src/components/chat/Popup.tsx",
destinationPath:
"showcase/shell-docs/src/content/reference/v1/components/chat/CopilotPopup.mdx",
component: "CopilotPopup",
description:
"The CopilotPopup component, providing a popup interface for interacting with your copilot.",
},
{
sourcePath: "packages/react-ui/src/components/chat/Sidebar.tsx",
destinationPath:
"showcase/shell-docs/src/content/reference/v1/components/chat/CopilotSidebar.mdx",
component: "CopilotSidebar",
description:
"The CopilotSidebar component, providing a sidebar interface for interacting with your copilot.",
},
{
sourcePath:
"packages/react-textarea/src/components/copilot-textarea/copilot-textarea.tsx",
destinationPath:
"showcase/shell-docs/src/content/reference/v1/components/CopilotTextarea.mdx",
component: "CopilotTextarea",
description:
"An AI-powered textarea component for your application, which serves as a drop-in replacement for any textarea.",
},
/* Hooks */
{
sourcePath: "packages/react-core/src/hooks/use-copilot-chat.ts",
destinationPath:
"showcase/shell-docs/src/content/reference/v1/hooks/useCopilotChat.mdx",
hook: "useCopilotChat",
},
{
sourcePath: "packages/react-core/src/hooks/use-copilot-chat-headless_c.ts",
destinationPath:
"showcase/shell-docs/src/content/reference/v1/hooks/useCopilotChatHeadless_c.mdx",
hook: "useCopilotChatHeadless_c",
},
{
sourcePath: "packages/react-ui/src/hooks/use-copilot-chat-suggestions.tsx",
destinationPath:
"showcase/shell-docs/src/content/reference/v1/hooks/useCopilotChatSuggestions.mdx",
hook: "useCopilotChatSuggestions",
description:
"The useCopilotChatSuggestions hook generates suggestions in the chat window based on real-time app state.",
},
{
sourcePath: "packages/react-core/src/hooks/use-copilot-readable.ts",
destinationPath:
"showcase/shell-docs/src/content/reference/v1/hooks/useCopilotReadable.mdx",
hook: "useCopilotReadable",
description:
"The useCopilotReadable hook allows you to provide knowledge to your copilot (e.g. application state).",
},
{
sourcePath: "packages/react-core/src/hooks/use-coagent-state-render.ts",
destinationPath:
"showcase/shell-docs/src/content/reference/v1/hooks/useCoAgentStateRender.mdx",
hook: "useCoAgentStateRender",
description:
"The useCoAgentStateRender hook allows you to render the state of the agent in the chat.",
},
{
sourcePath: "packages/react-core/src/hooks/use-coagent.ts",
destinationPath:
"showcase/shell-docs/src/content/reference/v1/hooks/useCoAgent.mdx",
hook: "useCoAgent",
description:
"The useCoAgent hook allows you to share state bidirectionally between your application and the agent.",
},
{
sourcePath:
"packages/react-core/src/hooks/use-copilot-additional-instructions.ts",
destinationPath:
"showcase/shell-docs/src/content/reference/v1/hooks/useCopilotAdditionalInstructions.mdx",
hook: "useCopilotAdditionalInstructions",
description:
"The useCopilotAdditionalInstructions hook allows you to provide additional instructions to the agent.",
},
/* SDKs */
{
sourcePath: "sdk-python/copilotkit/langgraph.py",
destinationPath:
"showcase/shell-docs/src/content/reference/sdk/python/LangGraph.mdx",
title: "LangGraph SDK",
description:
"The CopilotKit LangGraph SDK for Python allows you to build and run LangGraph workflows with CopilotKit.",
pythonSymbols: [
"copilotkit_customize_config",
"copilotkit_exit",
"copilotkit_emit_state",
"copilotkit_emit_message",
"copilotkit_emit_tool_call",
],
},
{
sourcePath: "sdk-python/copilotkit/crewai/crewai_sdk.py",
destinationPath:
"showcase/shell-docs/src/content/reference/sdk/python/CrewAI.mdx",
title: "CrewAI SDK",
description:
"The CopilotKit CrewAI SDK for Python allows you to build and run CrewAI agents with CopilotKit.",
pythonSymbols: [
"copilotkit_emit_state",
"copilotkit_predict_state",
"copilotkit_exit",
"copilotkit_emit_message",
"copilotkit_emit_tool_call",
],
},
/* Agents */
{
sourcePath: "sdk-python/copilotkit/langgraph_agui_agent.py",
destinationPath:
"showcase/shell-docs/src/content/reference/sdk/python/LangGraphAGUIAgent.mdx",
title: "LangGraphAGUIAgent",
description:
"LangGraphAGUIAgent lets you define your agent for use with CopilotKit.",
pythonSymbols: ["LangGraphAGUIAgent", "CopilotKitConfig"],
},
{
sourcePath: "sdk-python/copilotkit/crewai/crewai_agent.py",
destinationPath:
"showcase/shell-docs/src/content/reference/sdk/python/CrewAIAgent.mdx",
title: "CrewAIAgent",
description:
"CrewAIAgent lets you define your agent for use with CopilotKit.",
pythonSymbols: ["CrewAIAgent", "CopilotKitConfig"],
},
{
sourcePath: "sdk-python/copilotkit/sdk.py",
destinationPath:
"showcase/shell-docs/src/content/reference/sdk/python/RemoteEndpoints.mdx",
title: "Remote Endpoints",
description:
"CopilotKit Remote Endpoints allow you to connect actions and agents written in Python to your CopilotKit application.",
pythonSymbols: ["CopilotKitRemoteEndpoint", "CopilotKitContext"],
},
{
sourcePath: "packages/sdk-js/src/langgraph/index.ts",
destinationPath:
"showcase/shell-docs/src/content/reference/sdk/js/LangGraph.mdx",
title: "LangGraph SDK",
description:
"The CopilotKit LangGraph SDK for JavaScript allows you to build and run LangGraph workflows with CopilotKit.",
typescriptSymbols: [
"copilotkitCustomizeConfig",
"copilotkitExit",
"copilotkitEmitState",
"copilotkitEmitMessage",
"copilotkitEmitToolCall",
],
},
];