@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.
- package/package.json +1 -1
- package/stream.ts +5 -4
package/package.json
CHANGED
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
|
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]:
|
289
|
+
[key: string]: unknown;
|
289
290
|
}
|
290
291
|
|
291
292
|
export type TPayload = Array<Partial<TMessage>>;
|