librechat-data-provider 0.8.501 → 0.8.502

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.
@@ -184,6 +184,18 @@ export declare const defaultAgentFormValues: {
184
184
  name: string;
185
185
  email: string;
186
186
  };
187
+ /** Optional allowlist. Only applies when `skills_enabled === true`.
188
+ * Empty/undefined + enabled = full catalog; non-empty + enabled = narrow to ids. */
189
+ skills: string[] | undefined;
190
+ /** Master toggle for skill use on this agent. `true` activates skills
191
+ * (full catalog unless `skills` narrows it). Anything else = inactive. */
192
+ skills_enabled: boolean | undefined;
193
+ /** `undefined` = feature disabled by default (no subagent tool injected). */
194
+ subagents: {
195
+ enabled?: boolean | undefined;
196
+ allowSelf?: boolean | undefined;
197
+ agent_ids?: string[] | undefined;
198
+ } | undefined;
187
199
  };
188
200
  export declare const ImageVisionTool: FunctionTool;
189
201
  export declare const isImageVisionTool: (tool: FunctionTool | FunctionToolCall) => boolean;
@@ -785,6 +797,23 @@ export declare const tMessageSchema: z.ZodObject<{
785
797
  calibrationRatio?: number | undefined;
786
798
  encoding?: string | undefined;
787
799
  }>>;
800
+ /**
801
+ * Skill names the user invoked manually via the `$` popover on this turn.
802
+ * Purely UI metadata — `SkillPills` renders these above the message
803
+ * bubble so users can see which skills they asked for in history and on
804
+ * reload. Runtime resolution uses the top-level payload field with the
805
+ * same name. Empty / absent for model-invoked skills (shown as tool_call
806
+ * content parts on the assistant message instead).
807
+ */
808
+ manualSkills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
809
+ /**
810
+ * Skill names auto-primed on this turn because their `always-apply`
811
+ * frontmatter flag is set. Persisted at turn time so the pinned-variant
812
+ * pills on the user bubble survive reload and stay stable across later
813
+ * edits to the skill's `alwaysApply` flag (the user bubble reflects
814
+ * what actually ran, not the current catalog).
815
+ */
816
+ alwaysAppliedSkills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
788
817
  }, "strip", z.ZodTypeAny, {
789
818
  messageId: string;
790
819
  conversationId: string | null;
@@ -820,6 +849,8 @@ export declare const tMessageSchema: z.ZodObject<{
820
849
  calibrationRatio?: number | undefined;
821
850
  encoding?: string | undefined;
822
851
  } | undefined;
852
+ manualSkills?: string[] | undefined;
853
+ alwaysAppliedSkills?: string[] | undefined;
823
854
  }, {
824
855
  messageId: string;
825
856
  conversationId: string | null;
@@ -855,6 +886,8 @@ export declare const tMessageSchema: z.ZodObject<{
855
886
  calibrationRatio?: number | undefined;
856
887
  encoding?: string | undefined;
857
888
  } | undefined;
889
+ manualSkills?: string[] | undefined;
890
+ alwaysAppliedSkills?: string[] | undefined;
858
891
  }>;
859
892
  export type MemoryArtifact = {
860
893
  key: string;
@@ -2083,7 +2116,13 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
2083
2116
  spec?: string | null | undefined;
2084
2117
  fileTokenLimit?: string | number | undefined;
2085
2118
  }>;
2086
- /** Narrowed preset schema for use in model specs — omits system/DB/deprecated fields */
2119
+ /** Narrowed preset schema for use in model specs — omits system/DB/deprecated fields.
2120
+ *
2121
+ * `greeting` and `iconURL` are admin-configurable display fields on a model spec's
2122
+ * preset (landing greeting, preset-level icon fallback) and must be preserved.
2123
+ * `spec` is set by the client from `modelSpec.name` via `getModelSpecPreset` and is
2124
+ * omitted to avoid duplicate configuration surface.
2125
+ */
2087
2126
  export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
2088
2127
  parentMessageId: z.ZodOptional<z.ZodString>;
2089
2128
  model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2233,9 +2272,10 @@ export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
2233
2272
  defaultPreset: z.ZodOptional<z.ZodBoolean>;
2234
2273
  order: z.ZodOptional<z.ZodNumber>;
2235
2274
  endpoint: z.ZodNullable<z.ZodUnion<[z.ZodNativeEnum<typeof EModelEndpoint>, z.ZodString]>>;
2236
- }, "conversationId" | "parentMessageId" | "title" | "iconURL" | "user" | "isArchived" | "messages" | "tags" | "file_ids" | "presetOverride" | "greeting" | "spec" | "expiredAt" | "resendImages" | "chatGptLabel" | "presetId" | "defaultPreset" | "order">, "strip", z.ZodTypeAny, {
2275
+ }, "conversationId" | "parentMessageId" | "title" | "user" | "isArchived" | "messages" | "tags" | "file_ids" | "presetOverride" | "spec" | "expiredAt" | "resendImages" | "chatGptLabel" | "presetId" | "defaultPreset" | "order">, "strip", z.ZodTypeAny, {
2237
2276
  endpoint: string | null;
2238
2277
  model?: string | null | undefined;
2278
+ iconURL?: string | null | undefined;
2239
2279
  context?: string | null | undefined;
2240
2280
  endpointType?: EModelEndpoint | null | undefined;
2241
2281
  tools?: string[] | {
@@ -2300,10 +2340,12 @@ export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
2300
2340
  additional_instructions?: string | undefined;
2301
2341
  append_current_datetime?: boolean | undefined;
2302
2342
  stop?: string[] | undefined;
2343
+ greeting?: string | undefined;
2303
2344
  fileTokenLimit?: number | undefined;
2304
2345
  }, {
2305
2346
  endpoint: string | null;
2306
2347
  model?: string | null | undefined;
2348
+ iconURL?: string | null | undefined;
2307
2349
  context?: string | null | undefined;
2308
2350
  endpointType?: EModelEndpoint | null | undefined;
2309
2351
  tools?: string[] | {
@@ -2368,6 +2410,7 @@ export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
2368
2410
  additional_instructions?: string | undefined;
2369
2411
  append_current_datetime?: boolean | undefined;
2370
2412
  stop?: string[] | undefined;
2413
+ greeting?: string | undefined;
2371
2414
  fileTokenLimit?: string | number | undefined;
2372
2415
  }>;
2373
2416
  export type TModelSpecPreset = z.infer<typeof tModelSpecPresetSchema>;
@@ -4119,6 +4162,385 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4119
4162
  fileTokenLimit?: string | number | undefined;
4120
4163
  chatGptLabel?: string | null | undefined;
4121
4164
  }>>;
4165
+ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4166
+ conversationId: z.ZodNullable<z.ZodString>;
4167
+ endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
4168
+ endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
4169
+ isArchived: z.ZodOptional<z.ZodBoolean>;
4170
+ title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
4171
+ user: z.ZodOptional<z.ZodString>;
4172
+ messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4173
+ tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
4174
+ name: z.ZodString;
4175
+ pluginKey: z.ZodString;
4176
+ description: z.ZodOptional<z.ZodString>;
4177
+ icon: z.ZodOptional<z.ZodString>;
4178
+ authConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
4179
+ authField: z.ZodString;
4180
+ label: z.ZodString;
4181
+ description: z.ZodString;
4182
+ optional: z.ZodOptional<z.ZodBoolean>;
4183
+ }, "strip", z.ZodTypeAny, {
4184
+ description: string;
4185
+ authField: string;
4186
+ label: string;
4187
+ optional?: boolean | undefined;
4188
+ }, {
4189
+ description: string;
4190
+ authField: string;
4191
+ label: string;
4192
+ optional?: boolean | undefined;
4193
+ }>, "many">>;
4194
+ authenticated: z.ZodOptional<z.ZodBoolean>;
4195
+ chatMenu: z.ZodOptional<z.ZodBoolean>;
4196
+ isButton: z.ZodOptional<z.ZodBoolean>;
4197
+ toolkit: z.ZodOptional<z.ZodBoolean>;
4198
+ }, "strip", z.ZodTypeAny, {
4199
+ name: string;
4200
+ pluginKey: string;
4201
+ description?: string | undefined;
4202
+ icon?: string | undefined;
4203
+ authConfig?: {
4204
+ description: string;
4205
+ authField: string;
4206
+ label: string;
4207
+ optional?: boolean | undefined;
4208
+ }[] | undefined;
4209
+ authenticated?: boolean | undefined;
4210
+ chatMenu?: boolean | undefined;
4211
+ isButton?: boolean | undefined;
4212
+ toolkit?: boolean | undefined;
4213
+ }, {
4214
+ name: string;
4215
+ pluginKey: string;
4216
+ description?: string | undefined;
4217
+ icon?: string | undefined;
4218
+ authConfig?: {
4219
+ description: string;
4220
+ authField: string;
4221
+ label: string;
4222
+ optional?: boolean | undefined;
4223
+ }[] | undefined;
4224
+ authenticated?: boolean | undefined;
4225
+ chatMenu?: boolean | undefined;
4226
+ isButton?: boolean | undefined;
4227
+ toolkit?: boolean | undefined;
4228
+ }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
4229
+ modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4230
+ userLabel: z.ZodOptional<z.ZodString>;
4231
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4232
+ promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4233
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4234
+ topP: z.ZodOptional<z.ZodNumber>;
4235
+ topK: z.ZodOptional<z.ZodNumber>;
4236
+ top_p: z.ZodOptional<z.ZodNumber>;
4237
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
4238
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
4239
+ parentMessageId: z.ZodOptional<z.ZodString>;
4240
+ maxOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>>;
4241
+ maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4242
+ max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4243
+ promptCache: z.ZodOptional<z.ZodBoolean>;
4244
+ system: z.ZodOptional<z.ZodString>;
4245
+ thinking: z.ZodOptional<z.ZodBoolean>;
4246
+ thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4247
+ thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
4248
+ stream: z.ZodOptional<z.ZodBoolean>;
4249
+ artifacts: z.ZodOptional<z.ZodString>;
4250
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4251
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
4252
+ input: z.ZodObject<{
4253
+ content: z.ZodString;
4254
+ }, "strip", z.ZodTypeAny, {
4255
+ content: string;
4256
+ }, {
4257
+ content: string;
4258
+ }>;
4259
+ output: z.ZodObject<{
4260
+ content: z.ZodString;
4261
+ }, "strip", z.ZodTypeAny, {
4262
+ content: string;
4263
+ }, {
4264
+ content: string;
4265
+ }>;
4266
+ }, "strip", z.ZodTypeAny, {
4267
+ input: {
4268
+ content: string;
4269
+ };
4270
+ output: {
4271
+ content: string;
4272
+ };
4273
+ }, {
4274
+ input: {
4275
+ content: string;
4276
+ };
4277
+ output: {
4278
+ content: string;
4279
+ };
4280
+ }>, "many">>;
4281
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4282
+ createdAt: z.ZodString;
4283
+ updatedAt: z.ZodString;
4284
+ resendFiles: z.ZodOptional<z.ZodBoolean>;
4285
+ file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4286
+ imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof ImageDetail>>;
4287
+ reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningEffort>>>;
4288
+ reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningSummary>>>;
4289
+ verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof Verbosity>>>;
4290
+ useResponsesApi: z.ZodOptional<z.ZodBoolean>;
4291
+ effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof AnthropicEffort>>>;
4292
+ thinkingDisplay: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ThinkingDisplay>>>;
4293
+ web_search: z.ZodOptional<z.ZodBoolean>;
4294
+ disableStreaming: z.ZodOptional<z.ZodBoolean>;
4295
+ assistant_id: z.ZodOptional<z.ZodString>;
4296
+ agent_id: z.ZodOptional<z.ZodString>;
4297
+ region: z.ZodOptional<z.ZodString>;
4298
+ maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4299
+ additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
4300
+ instructions: z.ZodOptional<z.ZodString>;
4301
+ additional_instructions: z.ZodOptional<z.ZodString>;
4302
+ append_current_datetime: z.ZodOptional<z.ZodBoolean>;
4303
+ /** Used to overwrite active conversation settings when saving a Preset */
4304
+ presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4305
+ stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4306
+ greeting: z.ZodOptional<z.ZodString>;
4307
+ spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4308
+ iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4309
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4310
+ fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4311
+ /** @deprecated */
4312
+ resendImages: z.ZodOptional<z.ZodBoolean>;
4313
+ /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
4314
+ chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4315
+ }, "model" | "iconURL" | "modelLabel" | "promptPrefix" | "temperature" | "top_p" | "frequency_penalty" | "presence_penalty" | "maxContextTokens" | "max_tokens" | "artifacts" | "resendFiles" | "imageDetail" | "reasoning_effort" | "reasoning_summary" | "verbosity" | "useResponsesApi" | "web_search" | "disableStreaming" | "stop" | "greeting" | "spec" | "fileTokenLimit" | "chatGptLabel"> & Pick<{
4316
+ conversationId: z.ZodNullable<z.ZodString>;
4317
+ endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
4318
+ endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
4319
+ isArchived: z.ZodOptional<z.ZodBoolean>;
4320
+ title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
4321
+ user: z.ZodOptional<z.ZodString>;
4322
+ messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4323
+ tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
4324
+ name: z.ZodString;
4325
+ pluginKey: z.ZodString;
4326
+ description: z.ZodOptional<z.ZodString>;
4327
+ icon: z.ZodOptional<z.ZodString>;
4328
+ authConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
4329
+ authField: z.ZodString;
4330
+ label: z.ZodString;
4331
+ description: z.ZodString;
4332
+ optional: z.ZodOptional<z.ZodBoolean>;
4333
+ }, "strip", z.ZodTypeAny, {
4334
+ description: string;
4335
+ authField: string;
4336
+ label: string;
4337
+ optional?: boolean | undefined;
4338
+ }, {
4339
+ description: string;
4340
+ authField: string;
4341
+ label: string;
4342
+ optional?: boolean | undefined;
4343
+ }>, "many">>;
4344
+ authenticated: z.ZodOptional<z.ZodBoolean>;
4345
+ chatMenu: z.ZodOptional<z.ZodBoolean>;
4346
+ isButton: z.ZodOptional<z.ZodBoolean>;
4347
+ toolkit: z.ZodOptional<z.ZodBoolean>;
4348
+ }, "strip", z.ZodTypeAny, {
4349
+ name: string;
4350
+ pluginKey: string;
4351
+ description?: string | undefined;
4352
+ icon?: string | undefined;
4353
+ authConfig?: {
4354
+ description: string;
4355
+ authField: string;
4356
+ label: string;
4357
+ optional?: boolean | undefined;
4358
+ }[] | undefined;
4359
+ authenticated?: boolean | undefined;
4360
+ chatMenu?: boolean | undefined;
4361
+ isButton?: boolean | undefined;
4362
+ toolkit?: boolean | undefined;
4363
+ }, {
4364
+ name: string;
4365
+ pluginKey: string;
4366
+ description?: string | undefined;
4367
+ icon?: string | undefined;
4368
+ authConfig?: {
4369
+ description: string;
4370
+ authField: string;
4371
+ label: string;
4372
+ optional?: boolean | undefined;
4373
+ }[] | undefined;
4374
+ authenticated?: boolean | undefined;
4375
+ chatMenu?: boolean | undefined;
4376
+ isButton?: boolean | undefined;
4377
+ toolkit?: boolean | undefined;
4378
+ }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
4379
+ modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4380
+ userLabel: z.ZodOptional<z.ZodString>;
4381
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4382
+ promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4383
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4384
+ topP: z.ZodOptional<z.ZodNumber>;
4385
+ topK: z.ZodOptional<z.ZodNumber>;
4386
+ top_p: z.ZodOptional<z.ZodNumber>;
4387
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
4388
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
4389
+ parentMessageId: z.ZodOptional<z.ZodString>;
4390
+ maxOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>>;
4391
+ maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4392
+ max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4393
+ promptCache: z.ZodOptional<z.ZodBoolean>;
4394
+ system: z.ZodOptional<z.ZodString>;
4395
+ thinking: z.ZodOptional<z.ZodBoolean>;
4396
+ thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4397
+ thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
4398
+ stream: z.ZodOptional<z.ZodBoolean>;
4399
+ artifacts: z.ZodOptional<z.ZodString>;
4400
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4401
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
4402
+ input: z.ZodObject<{
4403
+ content: z.ZodString;
4404
+ }, "strip", z.ZodTypeAny, {
4405
+ content: string;
4406
+ }, {
4407
+ content: string;
4408
+ }>;
4409
+ output: z.ZodObject<{
4410
+ content: z.ZodString;
4411
+ }, "strip", z.ZodTypeAny, {
4412
+ content: string;
4413
+ }, {
4414
+ content: string;
4415
+ }>;
4416
+ }, "strip", z.ZodTypeAny, {
4417
+ input: {
4418
+ content: string;
4419
+ };
4420
+ output: {
4421
+ content: string;
4422
+ };
4423
+ }, {
4424
+ input: {
4425
+ content: string;
4426
+ };
4427
+ output: {
4428
+ content: string;
4429
+ };
4430
+ }>, "many">>;
4431
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4432
+ createdAt: z.ZodString;
4433
+ updatedAt: z.ZodString;
4434
+ resendFiles: z.ZodOptional<z.ZodBoolean>;
4435
+ file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4436
+ imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof ImageDetail>>;
4437
+ reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningEffort>>>;
4438
+ reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningSummary>>>;
4439
+ verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof Verbosity>>>;
4440
+ useResponsesApi: z.ZodOptional<z.ZodBoolean>;
4441
+ effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof AnthropicEffort>>>;
4442
+ thinkingDisplay: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ThinkingDisplay>>>;
4443
+ web_search: z.ZodOptional<z.ZodBoolean>;
4444
+ disableStreaming: z.ZodOptional<z.ZodBoolean>;
4445
+ assistant_id: z.ZodOptional<z.ZodString>;
4446
+ agent_id: z.ZodOptional<z.ZodString>;
4447
+ region: z.ZodOptional<z.ZodString>;
4448
+ maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4449
+ additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
4450
+ instructions: z.ZodOptional<z.ZodString>;
4451
+ additional_instructions: z.ZodOptional<z.ZodString>;
4452
+ append_current_datetime: z.ZodOptional<z.ZodBoolean>;
4453
+ /** Used to overwrite active conversation settings when saving a Preset */
4454
+ presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4455
+ stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4456
+ greeting: z.ZodOptional<z.ZodString>;
4457
+ spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4458
+ iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4459
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4460
+ fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4461
+ /** @deprecated */
4462
+ resendImages: z.ZodOptional<z.ZodBoolean>;
4463
+ /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
4464
+ chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4465
+ }, "promptCache">, "strip", z.ZodTypeAny, {
4466
+ model?: string | null | undefined;
4467
+ iconURL?: string | null | undefined;
4468
+ modelLabel?: string | null | undefined;
4469
+ promptPrefix?: string | null | undefined;
4470
+ temperature?: number | null | undefined;
4471
+ top_p?: number | undefined;
4472
+ frequency_penalty?: number | undefined;
4473
+ presence_penalty?: number | undefined;
4474
+ maxContextTokens?: number | undefined;
4475
+ max_tokens?: number | undefined;
4476
+ promptCache?: boolean | undefined;
4477
+ artifacts?: string | undefined;
4478
+ resendFiles?: boolean | undefined;
4479
+ imageDetail?: ImageDetail | undefined;
4480
+ reasoning_effort?: ReasoningEffort | null | undefined;
4481
+ reasoning_summary?: ReasoningSummary | null | undefined;
4482
+ verbosity?: Verbosity | null | undefined;
4483
+ useResponsesApi?: boolean | undefined;
4484
+ web_search?: boolean | undefined;
4485
+ disableStreaming?: boolean | undefined;
4486
+ stop?: string[] | undefined;
4487
+ greeting?: string | undefined;
4488
+ spec?: string | null | undefined;
4489
+ fileTokenLimit?: number | undefined;
4490
+ chatGptLabel?: string | null | undefined;
4491
+ }, {
4492
+ model?: string | null | undefined;
4493
+ iconURL?: string | null | undefined;
4494
+ modelLabel?: string | null | undefined;
4495
+ promptPrefix?: string | null | undefined;
4496
+ temperature?: number | null | undefined;
4497
+ top_p?: number | undefined;
4498
+ frequency_penalty?: number | undefined;
4499
+ presence_penalty?: number | undefined;
4500
+ maxContextTokens?: string | number | undefined;
4501
+ max_tokens?: string | number | undefined;
4502
+ promptCache?: boolean | undefined;
4503
+ artifacts?: string | undefined;
4504
+ resendFiles?: boolean | undefined;
4505
+ imageDetail?: ImageDetail | undefined;
4506
+ reasoning_effort?: ReasoningEffort | null | undefined;
4507
+ reasoning_summary?: ReasoningSummary | null | undefined;
4508
+ verbosity?: Verbosity | null | undefined;
4509
+ useResponsesApi?: boolean | undefined;
4510
+ web_search?: boolean | undefined;
4511
+ disableStreaming?: boolean | undefined;
4512
+ stop?: string[] | undefined;
4513
+ greeting?: string | undefined;
4514
+ spec?: string | null | undefined;
4515
+ fileTokenLimit?: string | number | undefined;
4516
+ chatGptLabel?: string | null | undefined;
4517
+ }>, Partial<Partial<TConversation>>, {
4518
+ model?: string | null | undefined;
4519
+ iconURL?: string | null | undefined;
4520
+ modelLabel?: string | null | undefined;
4521
+ promptPrefix?: string | null | undefined;
4522
+ temperature?: number | null | undefined;
4523
+ top_p?: number | undefined;
4524
+ frequency_penalty?: number | undefined;
4525
+ presence_penalty?: number | undefined;
4526
+ maxContextTokens?: string | number | undefined;
4527
+ max_tokens?: string | number | undefined;
4528
+ promptCache?: boolean | undefined;
4529
+ artifacts?: string | undefined;
4530
+ resendFiles?: boolean | undefined;
4531
+ imageDetail?: ImageDetail | undefined;
4532
+ reasoning_effort?: ReasoningEffort | null | undefined;
4533
+ reasoning_summary?: ReasoningSummary | null | undefined;
4534
+ verbosity?: Verbosity | null | undefined;
4535
+ useResponsesApi?: boolean | undefined;
4536
+ web_search?: boolean | undefined;
4537
+ disableStreaming?: boolean | undefined;
4538
+ stop?: string[] | undefined;
4539
+ greeting?: string | undefined;
4540
+ spec?: string | null | undefined;
4541
+ fileTokenLimit?: string | number | undefined;
4542
+ chatGptLabel?: string | null | undefined;
4543
+ }>>;
4122
4544
  export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4123
4545
  conversationId: z.ZodNullable<z.ZodString>;
4124
4546
  endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
@@ -24,7 +24,10 @@ export declare enum Tools {
24
24
  retrieval = "retrieval",
25
25
  function = "function",
26
26
  memory = "memory",
27
- ui_resources = "ui_resources"
27
+ ui_resources = "ui_resources",
28
+ skill = "skill",
29
+ read_file = "read_file",
30
+ bash_tool = "bash_tool"
28
31
  }
29
32
  export declare enum EToolResources {
30
33
  code_interpreter = "code_interpreter",
@@ -214,6 +217,18 @@ export type ToolOptions = {
214
217
  * Used to customize tool behavior per agent.
215
218
  */
216
219
  export type AgentToolOptions = Record<string, ToolOptions>;
220
+ /**
221
+ * Configuration for spawning subagents (isolated-context child agents) from an agent.
222
+ * When `enabled` is true, the agent gets a subagent-spawn tool that can delegate work
223
+ * to either itself (when `allowSelf` is true) and/or the listed `agent_ids`.
224
+ */
225
+ export type AgentSubagentsConfig = {
226
+ enabled?: boolean;
227
+ /** When true (default), the agent may spawn itself in an isolated context. */
228
+ allowSelf?: boolean;
229
+ /** Specific agents that may be spawned as subagents. */
230
+ agent_ids?: string[];
231
+ };
217
232
  export type Agent = {
218
233
  _id?: string;
219
234
  id: string;
@@ -248,6 +263,13 @@ export type Agent = {
248
263
  support_contact?: SupportContact;
249
264
  /** Per-tool configuration options (deferred loading, allowed callers, etc.) */
250
265
  tool_options?: AgentToolOptions;
266
+ /** Optional allowlist of skill ObjectIds. Only applies when `skills_enabled`. */
267
+ skills?: string[];
268
+ /** Master toggle for skill use on this agent. `true` = active (full catalog unless
269
+ * `skills` narrows it). `false`/undefined = inactive (no skills available). */
270
+ skills_enabled?: boolean;
271
+ /** Subagent spawning configuration — isolated-context child agents. */
272
+ subagents?: AgentSubagentsConfig;
251
273
  };
252
274
  export type TAgentsMap = Record<string, Agent | undefined>;
253
275
  export type AgentCreateParams = {
@@ -260,7 +282,7 @@ export type AgentCreateParams = {
260
282
  provider: AgentProvider;
261
283
  model: string | null;
262
284
  model_parameters: AgentModelParameters;
263
- } & Pick<Agent, 'agent_ids' | 'edges' | 'end_after_tools' | 'hide_sequential_outputs' | 'artifacts' | 'recursion_limit' | 'category' | 'support_contact' | 'tool_options'>;
285
+ } & Pick<Agent, 'agent_ids' | 'edges' | 'end_after_tools' | 'hide_sequential_outputs' | 'artifacts' | 'recursion_limit' | 'category' | 'support_contact' | 'tool_options' | 'skills' | 'skills_enabled' | 'subagents'>;
264
286
  export type AgentUpdateParams = {
265
287
  name?: string | null;
266
288
  description?: string | null;
@@ -272,7 +294,7 @@ export type AgentUpdateParams = {
272
294
  provider?: AgentProvider;
273
295
  model?: string | null;
274
296
  model_parameters?: AgentModelParameters;
275
- } & Pick<Agent, 'agent_ids' | 'edges' | 'end_after_tools' | 'hide_sequential_outputs' | 'artifacts' | 'recursion_limit' | 'category' | 'support_contact' | 'tool_options'>;
297
+ } & Pick<Agent, 'agent_ids' | 'edges' | 'end_after_tools' | 'hide_sequential_outputs' | 'artifacts' | 'recursion_limit' | 'category' | 'support_contact' | 'tool_options' | 'skills' | 'skills_enabled' | 'subagents'>;
276
298
  export type AgentListParams = {
277
299
  limit?: number;
278
300
  requiredPermission: number;