@librechat/agents-types 1.4.4 → 1.4.6

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.
Files changed (3) hide show
  1. package/package.json +2 -2
  2. package/run.ts +1 -0
  3. package/stream.ts +7 -1
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@librechat/agents-types",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
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.4.4"
10
+ "@librechat/agents": "^1.4.6"
11
11
  }
12
12
  }
package/run.ts CHANGED
@@ -52,5 +52,6 @@ export type TaskManagerGraphConfig = {
52
52
  export type RunConfig = {
53
53
  graphConfig: StandardGraphConfig | CollaborativeGraphConfig | TaskManagerGraphConfig;
54
54
  customHandlers?: Record<string, g.EventHandler>;
55
+ returnContent?: boolean;
55
56
  runId?: string;
56
57
  };
package/stream.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // src/types/stream.ts
2
2
  import type { MessageContentImageUrl, MessageContentText, ToolMessage } from '@langchain/core/messages';
3
3
  import type { ToolCall, ToolCallChunk } from '@langchain/core/messages/tool';
4
- import { StepTypes } from '@/common/enum';
4
+ import { StepTypes, ContentTypes } from '@/common/enum';
5
5
 
6
6
  /** Event names are of the format: on_[runnable_type]_(start|stream|end).
7
7
 
@@ -158,8 +158,14 @@ export interface MessageDelta {
158
158
  * The content of the message in array of text and/or images.
159
159
  */
160
160
  content?: MessageContentComplex[];
161
+ /**
162
+ * The tool call ids associated with the message.
163
+ */
164
+ tool_call_ids?: string[];
161
165
  }
162
166
 
167
+ export type MessageDeltaUpdate = { type: ContentTypes.TEXT; text: string; tool_call_ids?: string[] };
168
+
163
169
  export type ContentType = 'text' | 'image_url' | 'tool_call' | string;
164
170
 
165
171
  // eslint-disable-next-line @typescript-eslint/no-explicit-any