Skip to content

Commit f9cfb91

Browse files
authored
Merge branch 'main' into jpr5/prevent-binary-artifacts
2 parents 627e919 + a5ce8ab commit f9cfb91

144 files changed

Lines changed: 2465 additions & 570 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/big-hornets-shake.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/nice-trainers-pay.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

.changeset/olive-birds-repair.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/pre.json

Lines changed: 29 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -13,45 +13,39 @@
1313
"@copilotkit-examples/travel": "0.1.0",
1414
"@copilotkitnext/angular-demo": "0.0.0",
1515
"@copilotkitnext/angular-demo-server": "0.0.0",
16-
"@copilotkit-storybook/angular": "0.0.3",
17-
"@copilotkitnext/docs": "0.1.6",
18-
"langgraph-js-starter": "0.1.2",
16+
"@copilotkit-storybook/angular": "0.0.4",
17+
"@copilotkitnext/docs": "0.1.7",
18+
"langgraph-js-starter": "0.1.3",
1919
"agent-langraph-interrupt": "0.0.1",
2020
"web-langraph-interrupt": "0.1.0",
21-
"@copilotkitnext/next-pages-router": "1.52.1",
21+
"@copilotkitnext/next-pages-router": "1.53.0",
2222
"@apps/node": "0.0.1",
23-
"@copilotkitnext/node-express": "1.52.1",
23+
"@copilotkitnext/node-express": "1.53.0",
2424
"demo": "0.1.4-next.0",
2525
"@copilotkit-storybook/react": "0.0.0",
26-
"@copilotkit/a2ui-renderer": "1.52.1",
27-
"eslint-config-custom": "1.4.10",
28-
"@copilotkit/react-core": "1.52.1",
29-
"@copilotkit/react-textarea": "1.52.1",
30-
"@copilotkit/react-ui": "1.52.1",
31-
"@copilotkit/runtime": "1.52.1",
32-
"@copilotkit/runtime-client-gql": "1.52.1",
33-
"@copilotkit/sdk-js": "1.52.1",
34-
"@copilotkit/shared": "1.52.1",
35-
"tailwind-config": "1.4.10",
36-
"tsconfig": "1.4.10",
37-
"@copilotkitnext/agent": "1.52.1",
38-
"@copilotkitnext/angular": "1.52.1",
39-
"@copilotkitnext/core": "1.52.1",
40-
"@copilotkitnext/demo-agents": "1.52.1",
41-
"@copilotkitnext/eslint-config": "1.52.1",
42-
"@copilotkitnext/react": "1.52.1",
43-
"@copilotkitnext/runtime": "1.52.1",
44-
"@copilotkitnext/shared": "1.52.1",
45-
"@copilotkitnext/sqlite-runner": "1.52.1",
46-
"@copilotkitnext/typescript-config": "1.52.1",
47-
"@copilotkit/voice": "1.52.1",
48-
"@copilotkitnext/web-inspector": "1.52.1"
26+
"@copilotkit/a2ui-renderer": "1.53.0",
27+
"eslint-config-custom": "1.4.11",
28+
"@copilotkit/react-core": "1.53.0",
29+
"@copilotkit/react-textarea": "1.53.0",
30+
"@copilotkit/react-ui": "1.53.0",
31+
"@copilotkit/runtime": "1.53.0",
32+
"@copilotkit/runtime-client-gql": "1.53.0",
33+
"@copilotkit/sdk-js": "1.53.0",
34+
"@copilotkit/shared": "1.53.0",
35+
"tailwind-config": "1.4.11",
36+
"tsconfig": "1.4.11",
37+
"@copilotkitnext/agent": "1.53.0",
38+
"@copilotkitnext/angular": "1.53.0",
39+
"@copilotkitnext/core": "1.53.0",
40+
"@copilotkitnext/demo-agents": "1.53.0",
41+
"@copilotkitnext/eslint-config": "1.53.0",
42+
"@copilotkitnext/react": "1.53.0",
43+
"@copilotkitnext/runtime": "1.53.0",
44+
"@copilotkitnext/shared": "1.53.0",
45+
"@copilotkitnext/sqlite-runner": "1.53.0",
46+
"@copilotkitnext/typescript-config": "1.53.0",
47+
"@copilotkit/voice": "1.53.0",
48+
"@copilotkitnext/web-inspector": "1.53.0"
4949
},
50-
"changesets": [
51-
"big-hornets-shake",
52-
"olive-birds-repair",
53-
"shaggy-camels-unite",
54-
"tender-jars-check",
55-
"wild-paws-jam"
56-
]
50+
"changesets": []
5751
}

.changeset/shaggy-camels-unite.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/tender-jars-check.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/wild-paws-jam.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/content/docs/(root)/headless.mdx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,19 @@ Bring your own design system and render everything your way.
1515
<Tabs items={['chat.tsx']}>
1616
<Tab value="chat.tsx">
1717
```tsx
18-
import { useAgent } from "@copilotkit/react-core/v2";
18+
import { useAgent, useCopilotKit } from "@copilotkit/react-core/v2";
1919

2020
export default function Chat() {
21-
const { run, messages, isRunning } = useAgent();
21+
const { agent } = useAgent();
22+
const { copilotkit } = useCopilotKit();
2223

2324
return (
2425
<div>
25-
{messages.map((m) => (
26+
{agent.messages.map((m) => (
2627
<p key={m.id}>{m.content}</p>
2728
))}
28-
<button onClick={() => run("Hello!")}>
29-
{isRunning ? "Thinking..." : "Send"}
29+
<button onClick={() => copilotkit.runAgent({ agent })}>
30+
{agent.isRunning ? "Thinking..." : "Send"}
3031
</button>
3132
</div>
3233
);

docs/content/docs/integrations/adk/generative-ui/state-rendering.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ is a situation where a user and an agent are working together to solve a problem
112112
// [!code highlight:13]
113113
// styles omitted for brevity
114114
useAgent({
115-
name: "my_agent", // MUST match the agent name in CopilotRuntime
115+
agentId: "my_agent",
116116
render: ({ state }) => (
117117
<div>
118118
Current language: {state.language || 'not set'}
@@ -150,7 +150,7 @@ is a situation where a user and an agent are working together to solve a problem
150150

151151
// [!code highlight:3]
152152
const { agent } = useAgent({
153-
name: "my_agent", // MUST match the agent name in CopilotRuntime
153+
agentId: "my_agent",
154154
})
155155

156156
// ...

docs/content/docs/integrations/adk/shared-state/in-app-agent-read.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ state updates, you can reflect these updates natively in your application.
113113
function YourMainContent() {
114114
// [!code highlight:4]
115115
const { agent } = useAgent({
116-
name: "my_agent", // MUST match the agent name in CopilotRuntime
116+
agentId: "my_agent",
117117
initialState: { language: "english" } // optionally provide an initial state
118118
});
119119

@@ -163,7 +163,7 @@ function YourMainContent() {
163163
// ...
164164
// [!code highlight:7]
165165
useAgent({
166-
name: "my_agent", // MUST match the agent name in CopilotRuntime
166+
agentId: "my_agent",
167167
render: ({ state }) => {
168168
if (!state.language) return null;
169169
return <div>Language: {state.language}</div>;

0 commit comments

Comments
 (0)