librechat-data-provider 0.8.523 → 0.8.524
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/dist/{data-service-Bx6IFaSa.mjs → data-service-B-WUVvTH.mjs} +434 -174
- package/dist/data-service-B-WUVvTH.mjs.map +1 -0
- package/dist/{data-service-CTX0tVO5.js → data-service-CUG1qdeC.js} +577 -203
- package/dist/data-service-CUG1qdeC.js.map +1 -0
- package/dist/index.js +346 -72
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +307 -68
- package/dist/index.mjs.map +1 -1
- package/dist/react-query/index.js +1 -1
- package/dist/react-query/index.mjs +1 -1
- package/dist/types/actions.d.ts +1 -1
- package/dist/types/agentToolOptions.d.ts +1 -1
- package/dist/types/api-endpoints.d.ts +1 -0
- package/dist/types/backgroundResults.d.ts +13 -0
- package/dist/types/balance.d.ts +4 -0
- package/dist/types/bedrock.d.ts +77 -70
- package/dist/types/code/workspace.d.ts +22 -0
- package/dist/types/config.d.ts +5362 -4206
- package/dist/types/data-service.d.ts +14 -12
- package/dist/types/file-config.d.ts +81 -42
- package/dist/types/filters.d.ts +205 -205
- package/dist/types/footer.d.ts +20 -0
- package/dist/types/generate.d.ts +28 -28
- package/dist/types/index.d.ts +4 -0
- package/dist/types/keys.d.ts +2 -1
- package/dist/types/limits.d.ts +8 -0
- package/dist/types/mcp.d.ts +999 -352
- package/dist/types/messages.d.ts +12 -7
- package/dist/types/models.d.ts +429 -429
- package/dist/types/parameterSettings.d.ts +2 -1
- package/dist/types/parsers.d.ts +25 -1
- package/dist/types/resolve-llm-delivery-path.d.ts +97 -4
- package/dist/types/schemas.d.ts +646 -643
- package/dist/types/types/agents.d.ts +233 -2
- package/dist/types/types/assistants.d.ts +2 -641
- package/dist/types/types/content.d.ts +286 -0
- package/dist/types/types/files.d.ts +14 -1
- package/dist/types/types/mutations.d.ts +3 -2
- package/dist/types/types/queuedTurns.d.ts +124 -90
- package/dist/types/types/runs.d.ts +9 -0
- package/dist/types/types/schedules.d.ts +10 -10
- package/dist/types/types/skills.d.ts +43 -0
- package/dist/types/types/tools.d.ts +132 -0
- package/dist/types/types/traces.d.ts +49 -0
- package/dist/types/types.d.ts +31 -1
- package/package.json +1 -1
- package/dist/data-service-Bx6IFaSa.mjs.map +0 -1
- package/dist/data-service-CTX0tVO5.js.map +0 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TStartupConfig } from './config';
|
|
2
|
+
/**
|
|
3
|
+
* The startup-config fields that put a footer bar beneath a conversation's
|
|
4
|
+
* composer. Narrow on purpose: the server answers the same question while it
|
|
5
|
+
* serves the HTML shell, reading these fields off its own configuration instead
|
|
6
|
+
* of assembling a startup payload it has no request for.
|
|
7
|
+
*/
|
|
8
|
+
export type TConfiguredFooterSource = Pick<Partial<TStartupConfig>, 'customFooter'> & {
|
|
9
|
+
interface?: Pick<NonNullable<TStartupConfig['interface']>, 'privacyPolicy' | 'termsOfService'> | null;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Whether a deployment configured footer content of its own — a custom footer,
|
|
13
|
+
* a privacy policy or terms of service.
|
|
14
|
+
*
|
|
15
|
+
* The footer bar is absolutely positioned in a zero-height wrapper, so the
|
|
16
|
+
* composer above it is what reserves its band: this answer decides both the
|
|
17
|
+
* bar and the clearance. The client and the server share it because the two
|
|
18
|
+
* answering differently is exactly the layout correction it exists to remove.
|
|
19
|
+
*/
|
|
20
|
+
export declare function hasConfiguredFooter(source?: TConfiguredFooterSource | null): boolean;
|
package/dist/types/generate.d.ts
CHANGED
|
@@ -142,14 +142,14 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
|
|
|
142
142
|
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
143
143
|
}, "strip", z.ZodTypeAny, {
|
|
144
144
|
description: string;
|
|
145
|
-
authField: string;
|
|
146
145
|
label: string;
|
|
146
|
+
authField: string;
|
|
147
147
|
optional?: boolean | undefined;
|
|
148
148
|
sensitive?: boolean | undefined;
|
|
149
149
|
}, {
|
|
150
150
|
description: string;
|
|
151
|
-
authField: string;
|
|
152
151
|
label: string;
|
|
152
|
+
authField: string;
|
|
153
153
|
optional?: boolean | undefined;
|
|
154
154
|
sensitive?: boolean | undefined;
|
|
155
155
|
}>, "many">>;
|
|
@@ -165,8 +165,8 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
|
|
|
165
165
|
icon?: string | undefined;
|
|
166
166
|
authConfig?: {
|
|
167
167
|
description: string;
|
|
168
|
-
authField: string;
|
|
169
168
|
label: string;
|
|
169
|
+
authField: string;
|
|
170
170
|
optional?: boolean | undefined;
|
|
171
171
|
sensitive?: boolean | undefined;
|
|
172
172
|
}[] | undefined;
|
|
@@ -182,8 +182,8 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
|
|
|
182
182
|
icon?: string | undefined;
|
|
183
183
|
authConfig?: {
|
|
184
184
|
description: string;
|
|
185
|
-
authField: string;
|
|
186
185
|
label: string;
|
|
186
|
+
authField: string;
|
|
187
187
|
optional?: boolean | undefined;
|
|
188
188
|
sensitive?: boolean | undefined;
|
|
189
189
|
}[] | undefined;
|
|
@@ -232,19 +232,19 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
|
|
|
232
232
|
content: string;
|
|
233
233
|
}>;
|
|
234
234
|
}, "strip", z.ZodTypeAny, {
|
|
235
|
-
input: {
|
|
236
|
-
content: string;
|
|
237
|
-
};
|
|
238
235
|
output: {
|
|
239
236
|
content: string;
|
|
240
237
|
};
|
|
241
|
-
}, {
|
|
242
238
|
input: {
|
|
243
239
|
content: string;
|
|
244
240
|
};
|
|
241
|
+
}, {
|
|
245
242
|
output: {
|
|
246
243
|
content: string;
|
|
247
244
|
};
|
|
245
|
+
input: {
|
|
246
|
+
content: string;
|
|
247
|
+
};
|
|
248
248
|
}>, "many">>;
|
|
249
249
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
250
250
|
chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -276,21 +276,21 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
|
|
|
276
276
|
subagentKind: z.ZodEnum<["agent", "graph"]>;
|
|
277
277
|
depth: z.ZodNumber;
|
|
278
278
|
}, "strip", z.ZodTypeAny, {
|
|
279
|
-
subagentKind: "agent" | "graph";
|
|
280
279
|
parentMessageId: string;
|
|
281
280
|
rootConversationId: string;
|
|
282
281
|
parentConversationId: string;
|
|
283
282
|
parentToolCallId: string;
|
|
284
283
|
subagentType: string;
|
|
284
|
+
subagentKind: "agent" | "graph";
|
|
285
285
|
depth: number;
|
|
286
286
|
parentAgentId?: string | undefined;
|
|
287
287
|
}, {
|
|
288
|
-
subagentKind: "agent" | "graph";
|
|
289
288
|
parentMessageId: string;
|
|
290
289
|
rootConversationId: string;
|
|
291
290
|
parentConversationId: string;
|
|
292
291
|
parentToolCallId: string;
|
|
293
292
|
subagentType: string;
|
|
293
|
+
subagentKind: "agent" | "graph";
|
|
294
294
|
depth: number;
|
|
295
295
|
parentAgentId?: string | undefined;
|
|
296
296
|
}>>;
|
|
@@ -439,14 +439,14 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
|
|
|
439
439
|
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
440
440
|
}, "strip", z.ZodTypeAny, {
|
|
441
441
|
description: string;
|
|
442
|
-
authField: string;
|
|
443
442
|
label: string;
|
|
443
|
+
authField: string;
|
|
444
444
|
optional?: boolean | undefined;
|
|
445
445
|
sensitive?: boolean | undefined;
|
|
446
446
|
}, {
|
|
447
447
|
description: string;
|
|
448
|
-
authField: string;
|
|
449
448
|
label: string;
|
|
449
|
+
authField: string;
|
|
450
450
|
optional?: boolean | undefined;
|
|
451
451
|
sensitive?: boolean | undefined;
|
|
452
452
|
}>, "many">>;
|
|
@@ -462,8 +462,8 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
|
|
|
462
462
|
icon?: string | undefined;
|
|
463
463
|
authConfig?: {
|
|
464
464
|
description: string;
|
|
465
|
-
authField: string;
|
|
466
465
|
label: string;
|
|
466
|
+
authField: string;
|
|
467
467
|
optional?: boolean | undefined;
|
|
468
468
|
sensitive?: boolean | undefined;
|
|
469
469
|
}[] | undefined;
|
|
@@ -479,8 +479,8 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
|
|
|
479
479
|
icon?: string | undefined;
|
|
480
480
|
authConfig?: {
|
|
481
481
|
description: string;
|
|
482
|
-
authField: string;
|
|
483
482
|
label: string;
|
|
483
|
+
authField: string;
|
|
484
484
|
optional?: boolean | undefined;
|
|
485
485
|
sensitive?: boolean | undefined;
|
|
486
486
|
}[] | undefined;
|
|
@@ -529,19 +529,19 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
|
|
|
529
529
|
content: string;
|
|
530
530
|
}>;
|
|
531
531
|
}, "strip", z.ZodTypeAny, {
|
|
532
|
-
input: {
|
|
533
|
-
content: string;
|
|
534
|
-
};
|
|
535
532
|
output: {
|
|
536
533
|
content: string;
|
|
537
534
|
};
|
|
538
|
-
}, {
|
|
539
535
|
input: {
|
|
540
536
|
content: string;
|
|
541
537
|
};
|
|
538
|
+
}, {
|
|
542
539
|
output: {
|
|
543
540
|
content: string;
|
|
544
541
|
};
|
|
542
|
+
input: {
|
|
543
|
+
content: string;
|
|
544
|
+
};
|
|
545
545
|
}>, "many">>;
|
|
546
546
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
547
547
|
chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -573,21 +573,21 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
|
|
|
573
573
|
subagentKind: z.ZodEnum<["agent", "graph"]>;
|
|
574
574
|
depth: z.ZodNumber;
|
|
575
575
|
}, "strip", z.ZodTypeAny, {
|
|
576
|
-
subagentKind: "agent" | "graph";
|
|
577
576
|
parentMessageId: string;
|
|
578
577
|
rootConversationId: string;
|
|
579
578
|
parentConversationId: string;
|
|
580
579
|
parentToolCallId: string;
|
|
581
580
|
subagentType: string;
|
|
581
|
+
subagentKind: "agent" | "graph";
|
|
582
582
|
depth: number;
|
|
583
583
|
parentAgentId?: string | undefined;
|
|
584
584
|
}, {
|
|
585
|
-
subagentKind: "agent" | "graph";
|
|
586
585
|
parentMessageId: string;
|
|
587
586
|
rootConversationId: string;
|
|
588
587
|
parentConversationId: string;
|
|
589
588
|
parentToolCallId: string;
|
|
590
589
|
subagentType: string;
|
|
590
|
+
subagentKind: "agent" | "graph";
|
|
591
591
|
depth: number;
|
|
592
592
|
parentAgentId?: string | undefined;
|
|
593
593
|
}>>;
|
|
@@ -665,10 +665,10 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
|
|
|
665
665
|
maxOutputTokens?: number | null | undefined;
|
|
666
666
|
maxContextTokens?: number | undefined;
|
|
667
667
|
examples?: {
|
|
668
|
-
|
|
668
|
+
output: {
|
|
669
669
|
content: string;
|
|
670
670
|
};
|
|
671
|
-
|
|
671
|
+
input: {
|
|
672
672
|
content: string;
|
|
673
673
|
};
|
|
674
674
|
}[] | undefined;
|
|
@@ -682,10 +682,10 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
|
|
|
682
682
|
maxOutputTokens?: string | number | null | undefined;
|
|
683
683
|
maxContextTokens?: string | number | undefined;
|
|
684
684
|
examples?: {
|
|
685
|
-
|
|
685
|
+
output: {
|
|
686
686
|
content: string;
|
|
687
687
|
};
|
|
688
|
-
|
|
688
|
+
input: {
|
|
689
689
|
content: string;
|
|
690
690
|
};
|
|
691
691
|
}[] | undefined;
|
|
@@ -694,10 +694,10 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
|
|
|
694
694
|
modelLabel: string | null;
|
|
695
695
|
promptPrefix: string | null;
|
|
696
696
|
examples: {
|
|
697
|
-
|
|
697
|
+
output: {
|
|
698
698
|
content: string;
|
|
699
699
|
};
|
|
700
|
-
|
|
700
|
+
input: {
|
|
701
701
|
content: string;
|
|
702
702
|
};
|
|
703
703
|
}[];
|
|
@@ -716,10 +716,10 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
|
|
|
716
716
|
maxOutputTokens?: string | number | null | undefined;
|
|
717
717
|
maxContextTokens?: string | number | undefined;
|
|
718
718
|
examples?: {
|
|
719
|
-
|
|
719
|
+
output: {
|
|
720
720
|
content: string;
|
|
721
721
|
};
|
|
722
|
-
|
|
722
|
+
input: {
|
|
723
723
|
content: string;
|
|
724
724
|
};
|
|
725
725
|
}[] | undefined;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './azure';
|
|
|
2
2
|
export * from './bedrock';
|
|
3
3
|
export * from './balance';
|
|
4
4
|
export * from './config';
|
|
5
|
+
export * from './footer';
|
|
5
6
|
export * from './langchain';
|
|
6
7
|
export * from './filters';
|
|
7
8
|
export * from './file-config';
|
|
@@ -19,6 +20,8 @@ export * from './roles';
|
|
|
19
20
|
export * from './types';
|
|
20
21
|
export * from './types/agents';
|
|
21
22
|
export * from './types/assistants';
|
|
23
|
+
export * from './types/content';
|
|
24
|
+
export * from './types/tools';
|
|
22
25
|
export * from './types/files';
|
|
23
26
|
export * from './types/mcpServers';
|
|
24
27
|
export * from './types/mutations';
|
|
@@ -48,6 +51,7 @@ export { default as createPayload } from './createPayload';
|
|
|
48
51
|
export * from './feedback';
|
|
49
52
|
export * from './parameterSettings';
|
|
50
53
|
export * from './agentToolOptions';
|
|
54
|
+
export * from './backgroundResults';
|
|
51
55
|
export * from './codeEnvRef';
|
|
52
56
|
export * from './code/worker';
|
|
53
57
|
export * from './code/approval';
|
package/dist/types/keys.d.ts
CHANGED
|
@@ -149,5 +149,6 @@ export declare enum MutationKeys {
|
|
|
149
149
|
runSchedule = "runSchedule",
|
|
150
150
|
pairCodeEnvironment = "pairCodeEnvironment",
|
|
151
151
|
updateCodeEnvironmentSettings = "updateCodeEnvironmentSettings",
|
|
152
|
-
deleteCodeEnvironment = "deleteCodeEnvironment"
|
|
152
|
+
deleteCodeEnvironment = "deleteCodeEnvironment",
|
|
153
|
+
moveConversationCodeEnvironment = "moveConversationCodeEnvironment"
|
|
153
154
|
}
|
package/dist/types/limits.d.ts
CHANGED
|
@@ -13,3 +13,11 @@ export declare const MAX_CHAT_PROJECT_NAME_LENGTH = 100;
|
|
|
13
13
|
export declare const MAX_CHAT_PROJECT_DESCRIPTION_LENGTH = 1000;
|
|
14
14
|
/** Mirrors the bounded graph-child member limit in `@librechat/agents`. */
|
|
15
15
|
export declare const MAX_GRAPH_SUBAGENT_MEMBERS = 32;
|
|
16
|
+
/** Characters of retained tool output one stopped turn may be tokenized for, so the
|
|
17
|
+
* context gauge can add an exact figure instead of an estimate. The schema default
|
|
18
|
+
* and the save path share it; tokenizing runs ~60 ms/MB, once per stopped turn. */
|
|
19
|
+
export declare const DEFAULT_MAX_RETAINED_TOOL_COUNT_CHARS: number;
|
|
20
|
+
/** Token ceiling for the block of Ask User answers carried verbatim in an agent's
|
|
21
|
+
* user context (`endpoints.agents.askUserQuestion.retainedAnswers.maxTokens`).
|
|
22
|
+
* Older answers drop first once the block exceeds it; the newest set is always kept. */
|
|
23
|
+
export declare const DEFAULT_RETAINED_ANSWER_TOKENS = 4096;
|