Skip to content

Commit f73771e

Browse files
committed
docs(shell-docs): import CopilotKit from v2
1 parent 5b0ff5a commit f73771e

36 files changed

Lines changed: 66 additions & 73 deletions

showcase/shell-docs/src/content/docs/agent-spec/quickstart.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ hideTOC: true
345345
Wrap your application with the CopilotKit provider:
346346
347347
```tsx title="app/layout.tsx"
348-
import { CopilotKit } from "@copilotkit/react-core"; // [!code highlight]
348+
import { CopilotKit } from "@copilotkit/react-core/v2"; // [!code highlight]
349349
import "@copilotkit/react-ui/v2/styles.css";
350350
import './globals.css';
351351

showcase/shell-docs/src/content/docs/agentic-protocols/mcp.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ For further reading, check out the [Model Context Protocol](https://modelcontext
102102
```tsx
103103
"use client";
104104

105-
import { CopilotKit } from "@copilotkit/react-core";
105+
import { CopilotKit } from "@copilotkit/react-core/v2";
106106

107107
export default function App() {
108108
return (
@@ -200,7 +200,7 @@ For further reading, check out the [Model Context Protocol](https://modelcontext
200200
```tsx
201201
"use client";
202202

203-
import { CopilotKit } from "@copilotkit/react-core";
203+
import { CopilotKit } from "@copilotkit/react-core/v2";
204204
import { CopilotChat } from "@copilotkit/react-core/v2";
205205

206206
export default function Page() {

showcase/shell-docs/src/content/docs/auth.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ If you don't need any of those, skip auth entirely. The agent runs anonymously a
2525
Pass your token via the `headers` prop on `<CopilotKit>`. CopilotKit forwards every request with that header attached.
2626

2727
```tsx title="frontend/src/app/page.tsx"
28-
import { CopilotKit } from "@copilotkit/react-core";
28+
import { CopilotKit } from "@copilotkit/react-core/v2";
2929

3030
<CopilotKit
3131
runtimeUrl="/api/copilotkit"
@@ -84,7 +84,7 @@ export const GET = (req: NextRequest) => handler(req);
8484
Pass your token via the `properties` prop. CopilotKit forwards it to LangGraph as a Bearer token automatically.
8585

8686
```tsx title="frontend/src/app/page.tsx"
87-
import { CopilotKit } from "@copilotkit/react-core";
87+
import { CopilotKit } from "@copilotkit/react-core/v2";
8888

8989
<CopilotKit
9090
runtimeUrl="/api/copilotkit"
@@ -189,7 +189,7 @@ async def my_agent_node(state: AgentState, config: RunnableConfig):
189189
Pass your token via the `properties` prop. CopilotKit forwards it to AG2's `/chat` endpoint as a request header.
190190

191191
```tsx title="frontend/src/app/page.tsx"
192-
import { CopilotKit } from "@copilotkit/react-core";
192+
import { CopilotKit } from "@copilotkit/react-core/v2";
193193

194194
<CopilotKit
195195
runtimeUrl="/api/copilotkit"
@@ -274,7 +274,7 @@ def get_account_data(
274274
Microsoft Agent Framework's AG-UI host expects authentication on a request header rather than the runtime properties channel. Pass the token via `<CopilotKit headers={...}>`:
275275

276276
```tsx title="frontend/src/app/page.tsx"
277-
import { CopilotKit } from "@copilotkit/react-core";
277+
import { CopilotKit } from "@copilotkit/react-core/v2";
278278

279279
<CopilotKit
280280
runtimeUrl="/api/copilotkit"

showcase/shell-docs/src/content/docs/backend/copilot-runtime.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const POST = async (req: NextRequest) => {
4040
Then point your frontend at the endpoint:
4141

4242
```tsx
43-
import { CopilotKit } from "@copilotkit/react-core";
43+
import { CopilotKit } from "@copilotkit/react-core/v2";
4444

4545
<CopilotKit runtimeUrl="/api/copilotkit">
4646
<YourApp />
@@ -115,7 +115,7 @@ a2ui: { agents: ["my-agent"] }
115115
On the frontend, the A2UI renderer activates automatically — no extra configuration needed. If you want to override the default theme, pass an `a2ui` prop to `<CopilotKit>`:
116116

117117
```tsx
118-
import { CopilotKit } from "@copilotkit/react-core";
118+
import { CopilotKit } from "@copilotkit/react-core/v2";
119119

120120
<CopilotKit runtimeUrl="/api/copilotkit" a2ui={{ theme: myCustomTheme }}>
121121
{children}
@@ -145,7 +145,7 @@ CopilotKit is built on the [AG-UI protocol](./ag-ui), which is an open standard.
145145

146146
```tsx
147147
import { HttpAgent } from "@ag-ui/client";
148-
import { CopilotKit } from "@copilotkit/react-core";
148+
import { CopilotKit } from "@copilotkit/react-core/v2";
149149

150150
const myAgent = new HttpAgent({
151151
url: "https://my-agent.example.com",

showcase/shell-docs/src/content/docs/deepagents/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ Before you begin, you'll need the following:
261261

262262
```tsx title="app/layout.tsx"
263263
// [!code highlight:2]
264-
import { CopilotKit } from "@copilotkit/react-core";
264+
import { CopilotKit } from "@copilotkit/react-core/v2";
265265
import "@copilotkit/react-core/v2/styles.css";
266266

267267
// ...

showcase/shell-docs/src/content/docs/deploy/agentcore.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ Browser → CopilotKit Runtime → AgentCore Runtime → your agent
272272
### Add the CopilotKit provider
273273

274274
```tsx title="app/layout.tsx"
275-
import { CopilotKit } from "@copilotkit/react-core";
275+
import { CopilotKit } from "@copilotkit/react-core/v2";
276276
import "@copilotkit/react-core/v2/styles.css";
277277

278278
export default function RootLayout({ children }: { children: React.ReactNode }) {

showcase/shell-docs/src/content/docs/integrations/adk/quickstart.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ Before you begin, you'll need the following:
253253
Wrap your application with the CopilotKit provider:
254254

255255
```tsx title="app/layout.tsx"
256-
import { CopilotKit } from "@copilotkit/react-core"; // [!code highlight]
256+
import { CopilotKit } from "@copilotkit/react-core/v2"; // [!code highlight]
257257
import "@copilotkit/react-ui/v2/styles.css";
258258
import './globals.css';
259259

showcase/shell-docs/src/content/docs/integrations/agent-spec/quickstart.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ hideTOC: true
345345
Wrap your application with the CopilotKit provider:
346346
347347
```tsx title="app/layout.tsx"
348-
import { CopilotKit } from "@copilotkit/react-core"; // [!code highlight]
348+
import { CopilotKit } from "@copilotkit/react-core/v2"; // [!code highlight]
349349
import "@copilotkit/react-ui/v2/styles.css";
350350
import './globals.css';
351351

showcase/shell-docs/src/content/docs/integrations/aws-strands/quickstart.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ Before you begin, you'll need the following:
308308
Wrap your application with the CopilotKit provider:
309309

310310
```tsx title="app/layout.tsx"
311-
import { CopilotKit } from "@copilotkit/react-core"; // [!code highlight]
311+
import { CopilotKit } from "@copilotkit/react-core/v2"; // [!code highlight]
312312
import "@copilotkit/react-ui/v2/styles.css";
313313
import './globals.css';
314314

showcase/shell-docs/src/content/docs/integrations/deepagents/quickstart.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ Before you begin, you'll need the following:
340340
Wrap your application with the CopilotKit provider:
341341

342342
```tsx title="app/layout.tsx"
343-
import { CopilotKit } from "@copilotkit/react-core";
343+
import { CopilotKit } from "@copilotkit/react-core/v2";
344344
import "@copilotkit/react-ui/v2/styles.css";
345345

346346
// ...

0 commit comments

Comments
 (0)