@dudousxd/nestjs-agent-react 0.14.0 → 0.16.0
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/README.md +119 -1
- package/dist/genui.d.cts +1 -1
- package/dist/genui.d.ts +1 -1
- package/dist/index.cjs +1101 -432
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +388 -31
- package/dist/index.d.ts +388 -31
- package/dist/index.js +1055 -394
- package/dist/index.js.map +1 -1
- package/dist/{model-CMNhyau6.d.cts → model-gHqjNjLJ.d.cts} +5 -1
- package/dist/{model-CMNhyau6.d.ts → model-gHqjNjLJ.d.ts} +5 -1
- package/package.json +2 -2
|
@@ -189,7 +189,11 @@ declare function groupToolActivity(calls: readonly TranscriptToolCall[], options
|
|
|
189
189
|
|
|
190
190
|
/** A tool UI part on a `UIMessage` — a static `tool-*` part or the `dynamic-tool` part. */
|
|
191
191
|
type AnyToolUIPart = ToolUIPart | DynamicToolUIPart;
|
|
192
|
-
|
|
192
|
+
/**
|
|
193
|
+
* The AI SDK's chat status, plus `reconnecting`: a turn is in flight and its stream dropped, and the
|
|
194
|
+
* transport is re-attaching (`useAgentChat`). A busy status, like `streaming`.
|
|
195
|
+
*/
|
|
196
|
+
type ChatStatus = 'ready' | 'submitted' | 'streaming' | 'reconnecting' | 'error';
|
|
193
197
|
/** Server-aggregated usage for an assistant turn. */
|
|
194
198
|
interface MessageUsageInfo {
|
|
195
199
|
inputTokens: number;
|
|
@@ -189,7 +189,11 @@ declare function groupToolActivity(calls: readonly TranscriptToolCall[], options
|
|
|
189
189
|
|
|
190
190
|
/** A tool UI part on a `UIMessage` — a static `tool-*` part or the `dynamic-tool` part. */
|
|
191
191
|
type AnyToolUIPart = ToolUIPart | DynamicToolUIPart;
|
|
192
|
-
|
|
192
|
+
/**
|
|
193
|
+
* The AI SDK's chat status, plus `reconnecting`: a turn is in flight and its stream dropped, and the
|
|
194
|
+
* transport is re-attaching (`useAgentChat`). A busy status, like `streaming`.
|
|
195
|
+
*/
|
|
196
|
+
type ChatStatus = 'ready' | 'submitted' | 'streaming' | 'reconnecting' | 'error';
|
|
193
197
|
/** Server-aggregated usage for an assistant turn. */
|
|
194
198
|
interface MessageUsageInfo {
|
|
195
199
|
inputTokens: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dudousxd/nestjs-agent-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/DavideCarvalho/nestjs-agent.git",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"dist"
|
|
74
74
|
],
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@dudousxd/nestjs-agent-core": "0.
|
|
76
|
+
"@dudousxd/nestjs-agent-core": "0.24.0"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"@ai-sdk/react": "^4.0.0",
|