@librechat/agents-types 2.3.1 → 2.3.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/stream.ts +5 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@librechat/agents-types",
3
- "version": "2.3.1",
3
+ "version": "2.3.3",
4
4
  "description": "Type definitions for @librechat/agents",
5
5
  "types": "index.d.ts",
6
6
  "scripts": {
package/stream.ts CHANGED
@@ -56,12 +56,13 @@ export type RunStep = {
56
56
  index: number; // #new
57
57
  stepIndex?: number; // #new
58
58
  stepDetails: StepDetails;
59
- usage?: null | {
59
+ usage?: null | object;
60
+ // {
60
61
  // Define usage structure if it's ever non-null
61
62
  // prompt_tokens: number; // #new
62
63
  // completion_tokens: number; // #new
63
64
  // total_tokens: number; // #new
64
- };
65
+ // };
65
66
  };
66
67
 
67
68
  /**
@@ -242,7 +243,7 @@ export type ThinkingContentText = {
242
243
  export type BedrockReasoningContentText = {
243
244
  type: ContentTypes.REASONING_CONTENT;
244
245
  index?: number;
245
- reasoningText: { text?: string; signature?: string; }
246
+ reasoningText?: { text?: string; signature?: string; }
246
247
  };
247
248
 
248
249
  /**
@@ -285,7 +286,7 @@ export type MessageContentComplex = (ThinkingContentText | AgentUpdate | ToolCal
285
286
  export interface TMessage {
286
287
  role?: string;
287
288
  content?: MessageContentComplex[] | string;
288
- [key: string]: any;
289
+ [key: string]: unknown;
289
290
  }
290
291
 
291
292
  export type TPayload = Array<Partial<TMessage>>;