@copilotkit/runtime 1.9.3-next.3 → 1.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +39 -102
- package/dist/{chunk-PVBUOB6U.mjs → chunk-27ICMTNV.mjs} +2 -2
- package/dist/{chunk-L3G4PP6B.mjs → chunk-DC55PN5M.mjs} +2 -2
- package/dist/{chunk-LU6X2UVD.mjs → chunk-IWD3ZNTV.mjs} +2 -2
- package/dist/chunk-IWD3ZNTV.mjs.map +1 -0
- package/dist/{chunk-JU4BWL22.mjs → chunk-TPT4AKCH.mjs} +2 -2
- package/dist/{chunk-WEDJ5Q4R.mjs → chunk-YKUWJR33.mjs} +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/lib/index.js +1 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +5 -5
- package/dist/lib/integrations/index.js +1 -1
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +4 -4
- package/dist/lib/integrations/nest/index.js +1 -1
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +2 -2
- package/dist/lib/integrations/node-express/index.js +1 -1
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +2 -2
- package/dist/lib/integrations/node-http/index.js +1 -1
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +1 -1
- package/package.json +4 -4
- package/dist/chunk-LU6X2UVD.mjs.map +0 -1
- /package/dist/{chunk-PVBUOB6U.mjs.map → chunk-27ICMTNV.mjs.map} +0 -0
- /package/dist/{chunk-L3G4PP6B.mjs.map → chunk-DC55PN5M.mjs.map} +0 -0
- /package/dist/{chunk-JU4BWL22.mjs.map → chunk-TPT4AKCH.mjs.map} +0 -0
- /package/dist/{chunk-WEDJ5Q4R.mjs.map → chunk-YKUWJR33.mjs.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @copilotkit/runtime
|
|
2
2
|
|
|
3
|
+
## 1.9.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1bda332: - chore(telemetry): integrate Scarf for usage analytics
|
|
8
|
+
- df25f34: - feat: add agui fastAPI compatible langgraph agent
|
|
9
|
+
- chore: release 0.1.55 with agui langgraph fastapi support
|
|
10
|
+
- 589ae52: - adds scarf deps to runtime
|
|
11
|
+
- 88ceae2: - upgrade AG-UI packages
|
|
12
|
+
- Updated dependencies [1bda332]
|
|
13
|
+
- @copilotkit/shared@1.9.3
|
|
14
|
+
|
|
15
|
+
## 1.9.3-next.4
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- @copilotkit/shared@1.9.3-next.4
|
|
20
|
+
|
|
3
21
|
## 1.9.3-next.3
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,124 +1,61 @@
|
|
|
1
|
-
|
|
2
|
-
<a href="https://copilotkit.ai" target="_blank">
|
|
3
|
-
<img src="https://github.com/copilotkit/copilotkit/raw/main/assets/banner.png" alt="CopilotKit Logo">
|
|
4
|
-
</a>
|
|
1
|
+
# CopilotKit - Runtime
|
|
5
2
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<strong>
|
|
9
|
-
CopilotKit is the open-source framework for integrating powerful AI Copilots into any application. Easily implement custom AI Chatbots, AI Agents, AI Textareas, and more.
|
|
10
|
-
</strong>
|
|
11
|
-
</div>
|
|
3
|
+
<img src="https://github.com/user-attachments/assets/0a6b64d9-e193-4940-a3f6-60334ac34084" alt="banner" style="border-radius: 12px; border: 2px solid #d6d4fa;" />
|
|
12
4
|
|
|
13
|
-
<br
|
|
14
|
-
|
|
15
|
-
<div align="center">
|
|
5
|
+
<br>
|
|
6
|
+
<div align="center" style="display:flex;justify-content:center;gap:16px;height:20px;margin: 0;">
|
|
16
7
|
<a href="https://www.npmjs.com/package/@copilotkit/react-core" target="_blank">
|
|
17
|
-
<img src="https://img.shields.io/npm/v/%40copilotkit%
|
|
8
|
+
<img src="https://img.shields.io/npm/v/%40copilotkit%2Fruntime?logo=npm&logoColor=%23FFFFFF&label=Version&color=%236963ff" alt="NPM">
|
|
9
|
+
</a>
|
|
10
|
+
<a href="https://github.com/copilotkit/copilotkit/blob/main/LICENSE" target="_blank">
|
|
11
|
+
<img src="https://img.shields.io/github/license/copilotkit/copilotkit?color=%236963ff&label=License" alt="MIT">
|
|
18
12
|
</a>
|
|
19
|
-
<img src="https://img.shields.io/github/license/copilotkit/copilotkit?color=%236963ff&label=License" alt="MIT">
|
|
20
13
|
<a href="https://discord.gg/6dffbvGU3D" target="_blank">
|
|
21
14
|
<img src="https://img.shields.io/discord/1122926057641742418?logo=discord&logoColor=%23FFFFFF&label=Discord&color=%236963ff" alt="Discord">
|
|
22
15
|
</a>
|
|
23
16
|
</div>
|
|
24
17
|
<br/>
|
|
25
|
-
|
|
26
18
|
<div align="center">
|
|
27
|
-
<a href="https://
|
|
28
|
-
<img src="https://
|
|
29
|
-
</a>
|
|
30
|
-
<a href="https://docs.copilotkit.ai?ref=github_readme" target="_blank">
|
|
31
|
-
<img src="https://github.com/copilotkit/copilotkit/raw/main/assets/btn_docs.png" alt="CopilotKit GitHub" height="40px">
|
|
32
|
-
</a>
|
|
33
|
-
<a href="https://cloud.copilotkit.ai?ref=github_readme" target="_blank">
|
|
34
|
-
<img src="https://github.com/copilotkit/copilotkit/raw/main/assets/btn_cloud.png" alt="CopilotKit GitHub" height="40px">
|
|
19
|
+
<a href="https://www.producthunt.com/posts/copilotkit" target="_blank">
|
|
20
|
+
<img src="https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=428778&theme=light&period=daily">
|
|
35
21
|
</a>
|
|
36
22
|
</div>
|
|
37
23
|
|
|
38
|
-
|
|
24
|
+
## ✨ Why CopilotKit?
|
|
39
25
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
26
|
+
- Minutes to integrate - Get started quickly with our CLI
|
|
27
|
+
- Framework agnostic - Works with React, Next.js, AGUI and more
|
|
28
|
+
- Production-ready UI - Use customizable components or build with headless UI
|
|
29
|
+
- Built-in security - Prompt injection protection
|
|
30
|
+
- Open source - Full transparency and community-driven
|
|
43
31
|
|
|
44
|
-
#
|
|
32
|
+
<img src="https://github.com/user-attachments/assets/6cb425f8-ffcb-49d2-9bbb-87cab5995b78" alt="class-support-ecosystem" style="border-radius: 12px; border: 2px solid #d6d4fa;">
|
|
45
33
|
|
|
46
|
-
|
|
34
|
+
## 🧑💻 Real life use cases
|
|
47
35
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
CopilotKit now supports LangFuse logging integration to help you monitor, analyze, and debug your LLM requests and responses.
|
|
51
|
-
|
|
52
|
-
### Setup
|
|
53
|
-
|
|
54
|
-
To enable LangFuse logging, you can configure it when initializing the CopilotRuntime:
|
|
55
|
-
|
|
56
|
-
```typescript
|
|
57
|
-
import { CopilotRuntime, OpenAIAdapter } from "@copilotkit/runtime";
|
|
58
|
-
import { LangfuseClient } from "langfuse";
|
|
59
|
-
|
|
60
|
-
// Initialize your LangFuse client
|
|
61
|
-
const langfuse = new LangfuseClient({
|
|
62
|
-
publicKey: process.env.LANGFUSE_PUBLIC_KEY!,
|
|
63
|
-
secretKey: process.env.LANGFUSE_SECRET_KEY!,
|
|
64
|
-
baseUrl: process.env.LANGFUSE_BASE_URL,
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
// Create a CopilotRuntime with LangFuse logging enabled
|
|
68
|
-
const runtime = new CopilotRuntime({
|
|
69
|
-
adapter: new OpenAIAdapter({ apiKey: process.env.OPENAI_API_KEY }),
|
|
70
|
-
logging: {
|
|
71
|
-
enabled: true,
|
|
72
|
-
progressive: true, // Set to false for buffered logging
|
|
73
|
-
logger: {
|
|
74
|
-
logRequest: (data) => langfuse.trace({ name: "LLM Request", input: data }),
|
|
75
|
-
logResponse: (data) => langfuse.trace({ name: "LLM Response", output: data }),
|
|
76
|
-
logError: (errorData) => langfuse.trace({ name: "LLM Error", metadata: errorData }),
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
});
|
|
80
|
-
```
|
|
36
|
+
<span>Deploy deeply-integrated AI assistants & agents that work alongside your users inside your applications.</span>
|
|
81
37
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
progressive: false,
|
|
103
|
-
logger: {
|
|
104
|
-
logRequest: (data) => {
|
|
105
|
-
// Implement your custom logging logic
|
|
106
|
-
console.log("LLM Request:", JSON.stringify(data));
|
|
107
|
-
},
|
|
108
|
-
logResponse: (data) => {
|
|
109
|
-
// Implement your custom logging logic
|
|
110
|
-
console.log("LLM Response:", JSON.stringify(data));
|
|
111
|
-
},
|
|
112
|
-
logError: (error) => {
|
|
113
|
-
// Implement your custom error logging
|
|
114
|
-
console.error("LLM Error:", error);
|
|
115
|
-
},
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
});
|
|
119
|
-
```
|
|
38
|
+
<img src="https://github.com/user-attachments/assets/3b810240-e9f8-43ae-acec-31a58095e223" alt="headless-ui" style="border-radius: 12px; border: 2px solid #d6d4fa;">
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
## 🏆 Featured Examples
|
|
42
|
+
|
|
43
|
+
<p align="center">
|
|
44
|
+
<a href="https://www.copilotkit.ai/examples/form-filling-copilot">
|
|
45
|
+
<img src="https://github.com/user-attachments/assets/874da84a-67ff-47fa-a6b4-cbc3c65eb704" width="300" style="border-radius: 16px;" />
|
|
46
|
+
</a>
|
|
47
|
+
<a href="https://www.copilotkit.ai/examples/state-machine-copilot">
|
|
48
|
+
<img src="https://github.com/user-attachments/assets/0b5e45b3-2704-4678-82dc-2f3e1c58e2dd" width="300" style="border-radius: 16px;" />
|
|
49
|
+
</a>
|
|
50
|
+
<a href="https://www.copilotkit.ai/examples/chat-with-your-data">
|
|
51
|
+
<img src="https://github.com/user-attachments/assets/0fed66be-a4c2-4093-8eab-75c0b27a62f6" width="300" style="border-radius: 16px;" />
|
|
52
|
+
</a>
|
|
53
|
+
</p>
|
|
54
|
+
|
|
55
|
+
## Documentation
|
|
56
|
+
|
|
57
|
+
To get started with CopilotKit, please check out the [documentation](https://docs.copilotkit.ai).
|
|
120
58
|
|
|
121
|
-
This allows you to send your logs to any system or service that you prefer.
|
|
122
59
|
|
|
123
60
|
## Analytics & Privacy
|
|
124
61
|
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
copilotRuntimeNodeHttpEndpoint,
|
|
3
3
|
getRuntimeInstanceTelemetryInfo,
|
|
4
4
|
telemetry_client_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IWD3ZNTV.mjs";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-FHD4JECV.mjs";
|
|
@@ -22,4 +22,4 @@ __name(copilotRuntimeNodeExpressEndpoint, "copilotRuntimeNodeExpressEndpoint");
|
|
|
22
22
|
export {
|
|
23
23
|
copilotRuntimeNodeExpressEndpoint
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-27ICMTNV.mjs.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
copilotRuntimeNodeHttpEndpoint,
|
|
3
3
|
getRuntimeInstanceTelemetryInfo,
|
|
4
4
|
telemetry_client_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IWD3ZNTV.mjs";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-FHD4JECV.mjs";
|
|
@@ -22,4 +22,4 @@ __name(copilotRuntimeNestEndpoint, "copilotRuntimeNestEndpoint");
|
|
|
22
22
|
export {
|
|
23
23
|
copilotRuntimeNestEndpoint
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-DC55PN5M.mjs.map
|
|
@@ -40,7 +40,7 @@ var require_package = __commonJS({
|
|
|
40
40
|
publishConfig: {
|
|
41
41
|
access: "public"
|
|
42
42
|
},
|
|
43
|
-
version: "1.9.3
|
|
43
|
+
version: "1.9.3",
|
|
44
44
|
sideEffects: false,
|
|
45
45
|
main: "./dist/index.js",
|
|
46
46
|
module: "./dist/index.mjs",
|
|
@@ -5918,4 +5918,4 @@ export {
|
|
|
5918
5918
|
getCommonConfig,
|
|
5919
5919
|
copilotRuntimeNodeHttpEndpoint
|
|
5920
5920
|
};
|
|
5921
|
-
//# sourceMappingURL=chunk-
|
|
5921
|
+
//# sourceMappingURL=chunk-IWD3ZNTV.mjs.map
|