@librechat/agents-types 1.5.0 → 1.5.2
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/graph.ts +5 -2
- package/package.json +2 -2
- package/run.ts +0 -1
package/graph.ts
CHANGED
@@ -19,7 +19,7 @@ export type IState = BaseGraphState;
|
|
19
19
|
// }
|
20
20
|
|
21
21
|
export interface EventHandler {
|
22
|
-
handle(event: string, data: StreamEventData, metadata?: Record<string, unknown>, graph?: Graph): void;
|
22
|
+
handle(event: string, data: StreamEventData | ModelEndData, metadata?: Record<string, unknown>, graph?: Graph): void;
|
23
23
|
}
|
24
24
|
|
25
25
|
export type GraphStateChannels<T extends BaseGraphState> = StateGraphArgs<T>['channels'];
|
@@ -70,6 +70,7 @@ export type StreamEventData = {
|
|
70
70
|
*/
|
71
71
|
result?: unknown;
|
72
72
|
};
|
73
|
+
|
73
74
|
/**
|
74
75
|
* A streaming event.
|
75
76
|
*
|
@@ -131,4 +132,6 @@ export type PartMetadata = {
|
|
131
132
|
status?: string;
|
132
133
|
action?: boolean;
|
133
134
|
output?: string;
|
134
|
-
};
|
135
|
+
};
|
136
|
+
|
137
|
+
export type ModelEndData = StreamEventData & { output: AIMessageChunk | undefined } | undefined;
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@librechat/agents-types",
|
3
|
-
"version": "1.5.
|
3
|
+
"version": "1.5.2",
|
4
4
|
"description": "Type definitions for @librechat/agents",
|
5
5
|
"types": "index.d.ts",
|
6
6
|
"scripts": {
|
7
7
|
"build": "tsc"
|
8
8
|
},
|
9
9
|
"peerDependencies": {
|
10
|
-
"@librechat/agents": "^1.5.
|
10
|
+
"@librechat/agents": "^1.5.2"
|
11
11
|
}
|
12
12
|
}
|