@orq-ai/node 4.11.0-rc.4 → 4.11.0-rc.5
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/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/modelmetadata.d.ts +2 -0
- package/models/components/modelmetadata.d.ts.map +1 -1
- package/models/components/modelmetadata.js +4 -0
- package/models/components/modelmetadata.js.map +1 -1
- package/models/components/reasoning.d.ts +40 -2
- package/models/components/reasoning.d.ts.map +1 -1
- package/models/components/reasoning.js +26 -3
- package/models/components/reasoning.js.map +1 -1
- package/models/components/reasoningparam.d.ts +40 -2
- package/models/components/reasoningparam.d.ts.map +1 -1
- package/models/components/reasoningparam.js +28 -3
- package/models/components/reasoningparam.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createagentrequest.d.ts +298 -4
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +163 -9
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +81 -4
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +45 -7
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createprompt.d.ts +225 -12
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +124 -13
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createrouterresponse.d.ts +353 -8
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +198 -7
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/deploymentgetconfig.d.ts +70 -4
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +43 -8
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deployments.d.ts +74 -8
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +43 -8
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/getallprompts.d.ts +140 -4
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +79 -6
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getoneprompt.d.ts +140 -4
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +79 -6
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +140 -4
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +78 -6
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listagents.d.ts +140 -0
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +79 -3
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listknowledgebases.d.ts +3 -0
- package/models/operations/listknowledgebases.d.ts.map +1 -1
- package/models/operations/listknowledgebases.js +1 -1
- package/models/operations/listknowledgebases.js.map +1 -1
- package/models/operations/listpromptversions.d.ts +140 -4
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +79 -6
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrieveagentrequest.d.ts +140 -0
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +81 -2
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.d.ts +154 -0
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +80 -5
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +154 -0
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +82 -4
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +298 -4
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +162 -9
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateprompt.d.ts +225 -12
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +125 -14
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +5 -5
- package/sdk/feedback.d.ts +1 -4
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +1 -4
- package/sdk/feedback.js.map +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/modelmetadata.ts +6 -0
- package/src/models/components/reasoning.ts +50 -4
- package/src/models/components/reasoningparam.ts +48 -4
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createagentrequest.ts +460 -8
- package/src/models/operations/createchatcompletion.ts +129 -10
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createprompt.ts +356 -27
- package/src/models/operations/createrouterresponse.ts +540 -16
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/deploymentgetconfig.ts +105 -8
- package/src/models/operations/deployments.ts +113 -16
- package/src/models/operations/getallprompts.ts +210 -8
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getoneprompt.ts +208 -8
- package/src/models/operations/getpromptversion.ts +212 -8
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listagents.ts +215 -0
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listknowledgebases.ts +4 -1
- package/src/models/operations/listpromptversions.ts +212 -8
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveagentrequest.ts +222 -0
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +236 -1
- package/src/models/operations/streamrunagent.ts +242 -1
- package/src/models/operations/updateagent.ts +464 -9
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateprompt.ts +356 -27
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/feedback.ts +1 -4
|
@@ -495,6 +495,66 @@ export type ListAgentsTimeout = {
|
|
|
495
495
|
callTimeout: number;
|
|
496
496
|
};
|
|
497
497
|
|
|
498
|
+
/**
|
|
499
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
500
|
+
*/
|
|
501
|
+
export const ListAgentsAgentsResponseType = {
|
|
502
|
+
Ephemeral: "ephemeral",
|
|
503
|
+
} as const;
|
|
504
|
+
/**
|
|
505
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
506
|
+
*/
|
|
507
|
+
export type ListAgentsAgentsResponseType = ClosedEnum<
|
|
508
|
+
typeof ListAgentsAgentsResponseType
|
|
509
|
+
>;
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
513
|
+
*
|
|
514
|
+
* @remarks
|
|
515
|
+
*
|
|
516
|
+
* - `5m`: 5 minutes
|
|
517
|
+
* - `1h`: 1 hour
|
|
518
|
+
*
|
|
519
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
520
|
+
*/
|
|
521
|
+
export const ListAgentsTtl = {
|
|
522
|
+
Fivem: "5m",
|
|
523
|
+
Oneh: "1h",
|
|
524
|
+
} as const;
|
|
525
|
+
/**
|
|
526
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
527
|
+
*
|
|
528
|
+
* @remarks
|
|
529
|
+
*
|
|
530
|
+
* - `5m`: 5 minutes
|
|
531
|
+
* - `1h`: 1 hour
|
|
532
|
+
*
|
|
533
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
534
|
+
*/
|
|
535
|
+
export type ListAgentsTtl = ClosedEnum<typeof ListAgentsTtl>;
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
539
|
+
*/
|
|
540
|
+
export type ListAgentsCacheControl = {
|
|
541
|
+
/**
|
|
542
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
543
|
+
*/
|
|
544
|
+
type: ListAgentsAgentsResponseType;
|
|
545
|
+
/**
|
|
546
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
547
|
+
*
|
|
548
|
+
* @remarks
|
|
549
|
+
*
|
|
550
|
+
* - `5m`: 5 minutes
|
|
551
|
+
* - `1h`: 1 hour
|
|
552
|
+
*
|
|
553
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
554
|
+
*/
|
|
555
|
+
ttl: ListAgentsTtl;
|
|
556
|
+
};
|
|
557
|
+
|
|
498
558
|
/**
|
|
499
559
|
* Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
|
|
500
560
|
*/
|
|
@@ -605,6 +665,14 @@ export type ListAgentsParameters = {
|
|
|
605
665
|
* Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
|
|
606
666
|
*/
|
|
607
667
|
timeout?: ListAgentsTimeout | undefined;
|
|
668
|
+
/**
|
|
669
|
+
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
670
|
+
*/
|
|
671
|
+
cacheControl?: ListAgentsCacheControl | undefined;
|
|
672
|
+
/**
|
|
673
|
+
* Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
|
|
674
|
+
*/
|
|
675
|
+
promptCacheKey?: string | undefined;
|
|
608
676
|
};
|
|
609
677
|
|
|
610
678
|
/**
|
|
@@ -877,6 +945,68 @@ export type ListAgentsFallbackModelConfigurationTimeout = {
|
|
|
877
945
|
callTimeout: number;
|
|
878
946
|
};
|
|
879
947
|
|
|
948
|
+
/**
|
|
949
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
950
|
+
*/
|
|
951
|
+
export const ListAgentsFallbackModelConfigurationAgentsType = {
|
|
952
|
+
Ephemeral: "ephemeral",
|
|
953
|
+
} as const;
|
|
954
|
+
/**
|
|
955
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
956
|
+
*/
|
|
957
|
+
export type ListAgentsFallbackModelConfigurationAgentsType = ClosedEnum<
|
|
958
|
+
typeof ListAgentsFallbackModelConfigurationAgentsType
|
|
959
|
+
>;
|
|
960
|
+
|
|
961
|
+
/**
|
|
962
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
963
|
+
*
|
|
964
|
+
* @remarks
|
|
965
|
+
*
|
|
966
|
+
* - `5m`: 5 minutes
|
|
967
|
+
* - `1h`: 1 hour
|
|
968
|
+
*
|
|
969
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
970
|
+
*/
|
|
971
|
+
export const ListAgentsFallbackModelConfigurationTtl = {
|
|
972
|
+
Fivem: "5m",
|
|
973
|
+
Oneh: "1h",
|
|
974
|
+
} as const;
|
|
975
|
+
/**
|
|
976
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
977
|
+
*
|
|
978
|
+
* @remarks
|
|
979
|
+
*
|
|
980
|
+
* - `5m`: 5 minutes
|
|
981
|
+
* - `1h`: 1 hour
|
|
982
|
+
*
|
|
983
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
984
|
+
*/
|
|
985
|
+
export type ListAgentsFallbackModelConfigurationTtl = ClosedEnum<
|
|
986
|
+
typeof ListAgentsFallbackModelConfigurationTtl
|
|
987
|
+
>;
|
|
988
|
+
|
|
989
|
+
/**
|
|
990
|
+
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
991
|
+
*/
|
|
992
|
+
export type ListAgentsFallbackModelConfigurationCacheControl = {
|
|
993
|
+
/**
|
|
994
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
995
|
+
*/
|
|
996
|
+
type: ListAgentsFallbackModelConfigurationAgentsType;
|
|
997
|
+
/**
|
|
998
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
999
|
+
*
|
|
1000
|
+
* @remarks
|
|
1001
|
+
*
|
|
1002
|
+
* - `5m`: 5 minutes
|
|
1003
|
+
* - `1h`: 1 hour
|
|
1004
|
+
*
|
|
1005
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1006
|
+
*/
|
|
1007
|
+
ttl: ListAgentsFallbackModelConfigurationTtl;
|
|
1008
|
+
};
|
|
1009
|
+
|
|
880
1010
|
/**
|
|
881
1011
|
* Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
|
|
882
1012
|
*/
|
|
@@ -997,6 +1127,14 @@ export type ListAgentsFallbackModelConfigurationParameters = {
|
|
|
997
1127
|
* Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
|
|
998
1128
|
*/
|
|
999
1129
|
timeout?: ListAgentsFallbackModelConfigurationTimeout | undefined;
|
|
1130
|
+
/**
|
|
1131
|
+
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
1132
|
+
*/
|
|
1133
|
+
cacheControl?: ListAgentsFallbackModelConfigurationCacheControl | undefined;
|
|
1134
|
+
/**
|
|
1135
|
+
* Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
|
|
1136
|
+
*/
|
|
1137
|
+
promptCacheKey?: string | undefined;
|
|
1000
1138
|
};
|
|
1001
1139
|
|
|
1002
1140
|
/**
|
|
@@ -1835,6 +1973,36 @@ export function listAgentsTimeoutFromJSON(
|
|
|
1835
1973
|
);
|
|
1836
1974
|
}
|
|
1837
1975
|
|
|
1976
|
+
/** @internal */
|
|
1977
|
+
export const ListAgentsAgentsResponseType$inboundSchema: z.ZodNativeEnum<
|
|
1978
|
+
typeof ListAgentsAgentsResponseType
|
|
1979
|
+
> = z.nativeEnum(ListAgentsAgentsResponseType);
|
|
1980
|
+
|
|
1981
|
+
/** @internal */
|
|
1982
|
+
export const ListAgentsTtl$inboundSchema: z.ZodNativeEnum<
|
|
1983
|
+
typeof ListAgentsTtl
|
|
1984
|
+
> = z.nativeEnum(ListAgentsTtl);
|
|
1985
|
+
|
|
1986
|
+
/** @internal */
|
|
1987
|
+
export const ListAgentsCacheControl$inboundSchema: z.ZodType<
|
|
1988
|
+
ListAgentsCacheControl,
|
|
1989
|
+
z.ZodTypeDef,
|
|
1990
|
+
unknown
|
|
1991
|
+
> = z.object({
|
|
1992
|
+
type: ListAgentsAgentsResponseType$inboundSchema,
|
|
1993
|
+
ttl: ListAgentsTtl$inboundSchema.default("5m"),
|
|
1994
|
+
});
|
|
1995
|
+
|
|
1996
|
+
export function listAgentsCacheControlFromJSON(
|
|
1997
|
+
jsonString: string,
|
|
1998
|
+
): SafeParseResult<ListAgentsCacheControl, SDKValidationError> {
|
|
1999
|
+
return safeParse(
|
|
2000
|
+
jsonString,
|
|
2001
|
+
(x) => ListAgentsCacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
2002
|
+
`Failed to parse 'ListAgentsCacheControl' from JSON`,
|
|
2003
|
+
);
|
|
2004
|
+
}
|
|
2005
|
+
|
|
1838
2006
|
/** @internal */
|
|
1839
2007
|
export const ListAgentsParameters$inboundSchema: z.ZodType<
|
|
1840
2008
|
ListAgentsParameters,
|
|
@@ -1877,6 +2045,8 @@ export const ListAgentsParameters$inboundSchema: z.ZodType<
|
|
|
1877
2045
|
cache: z.lazy(() => ListAgentsCache$inboundSchema).optional(),
|
|
1878
2046
|
load_balancer: z.lazy(() => ListAgentsLoadBalancer1$inboundSchema).optional(),
|
|
1879
2047
|
timeout: z.lazy(() => ListAgentsTimeout$inboundSchema).optional(),
|
|
2048
|
+
cache_control: z.lazy(() => ListAgentsCacheControl$inboundSchema).optional(),
|
|
2049
|
+
prompt_cache_key: z.string().optional(),
|
|
1880
2050
|
}).transform((v) => {
|
|
1881
2051
|
return remap$(v, {
|
|
1882
2052
|
"frequency_penalty": "frequencyPenalty",
|
|
@@ -1890,6 +2060,8 @@ export const ListAgentsParameters$inboundSchema: z.ZodType<
|
|
|
1890
2060
|
"tool_choice": "toolChoice",
|
|
1891
2061
|
"parallel_tool_calls": "parallelToolCalls",
|
|
1892
2062
|
"load_balancer": "loadBalancer",
|
|
2063
|
+
"cache_control": "cacheControl",
|
|
2064
|
+
"prompt_cache_key": "promptCacheKey",
|
|
1893
2065
|
});
|
|
1894
2066
|
});
|
|
1895
2067
|
|
|
@@ -2420,6 +2592,43 @@ export function listAgentsFallbackModelConfigurationTimeoutFromJSON(
|
|
|
2420
2592
|
);
|
|
2421
2593
|
}
|
|
2422
2594
|
|
|
2595
|
+
/** @internal */
|
|
2596
|
+
export const ListAgentsFallbackModelConfigurationAgentsType$inboundSchema:
|
|
2597
|
+
z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationAgentsType> = z
|
|
2598
|
+
.nativeEnum(ListAgentsFallbackModelConfigurationAgentsType);
|
|
2599
|
+
|
|
2600
|
+
/** @internal */
|
|
2601
|
+
export const ListAgentsFallbackModelConfigurationTtl$inboundSchema:
|
|
2602
|
+
z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationTtl> = z
|
|
2603
|
+
.nativeEnum(ListAgentsFallbackModelConfigurationTtl);
|
|
2604
|
+
|
|
2605
|
+
/** @internal */
|
|
2606
|
+
export const ListAgentsFallbackModelConfigurationCacheControl$inboundSchema:
|
|
2607
|
+
z.ZodType<
|
|
2608
|
+
ListAgentsFallbackModelConfigurationCacheControl,
|
|
2609
|
+
z.ZodTypeDef,
|
|
2610
|
+
unknown
|
|
2611
|
+
> = z.object({
|
|
2612
|
+
type: ListAgentsFallbackModelConfigurationAgentsType$inboundSchema,
|
|
2613
|
+
ttl: ListAgentsFallbackModelConfigurationTtl$inboundSchema.default("5m"),
|
|
2614
|
+
});
|
|
2615
|
+
|
|
2616
|
+
export function listAgentsFallbackModelConfigurationCacheControlFromJSON(
|
|
2617
|
+
jsonString: string,
|
|
2618
|
+
): SafeParseResult<
|
|
2619
|
+
ListAgentsFallbackModelConfigurationCacheControl,
|
|
2620
|
+
SDKValidationError
|
|
2621
|
+
> {
|
|
2622
|
+
return safeParse(
|
|
2623
|
+
jsonString,
|
|
2624
|
+
(x) =>
|
|
2625
|
+
ListAgentsFallbackModelConfigurationCacheControl$inboundSchema.parse(
|
|
2626
|
+
JSON.parse(x),
|
|
2627
|
+
),
|
|
2628
|
+
`Failed to parse 'ListAgentsFallbackModelConfigurationCacheControl' from JSON`,
|
|
2629
|
+
);
|
|
2630
|
+
}
|
|
2631
|
+
|
|
2423
2632
|
/** @internal */
|
|
2424
2633
|
export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
|
|
2425
2634
|
z.ZodType<
|
|
@@ -2476,6 +2685,10 @@ export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
|
|
|
2476
2685
|
timeout: z.lazy(() =>
|
|
2477
2686
|
ListAgentsFallbackModelConfigurationTimeout$inboundSchema
|
|
2478
2687
|
).optional(),
|
|
2688
|
+
cache_control: z.lazy(() =>
|
|
2689
|
+
ListAgentsFallbackModelConfigurationCacheControl$inboundSchema
|
|
2690
|
+
).optional(),
|
|
2691
|
+
prompt_cache_key: z.string().optional(),
|
|
2479
2692
|
}).transform((v) => {
|
|
2480
2693
|
return remap$(v, {
|
|
2481
2694
|
"frequency_penalty": "frequencyPenalty",
|
|
@@ -2489,6 +2702,8 @@ export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
|
|
|
2489
2702
|
"tool_choice": "toolChoice",
|
|
2490
2703
|
"parallel_tool_calls": "parallelToolCalls",
|
|
2491
2704
|
"load_balancer": "loadBalancer",
|
|
2705
|
+
"cache_control": "cacheControl",
|
|
2706
|
+
"prompt_cache_key": "promptCacheKey",
|
|
2492
2707
|
});
|
|
2493
2708
|
});
|
|
2494
2709
|
|
|
@@ -1270,7 +1270,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
|
|
|
1270
1270
|
),
|
|
1271
1271
|
reviewed_by_id: z.string(),
|
|
1272
1272
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1273
|
-
"2026-06-
|
|
1273
|
+
"2026-06-09T13:49:51.186Z",
|
|
1274
1274
|
).transform(v => new Date(v)),
|
|
1275
1275
|
type: z.literal("string_array"),
|
|
1276
1276
|
values: z.array(z.string()),
|
|
@@ -1320,7 +1320,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
|
|
|
1320
1320
|
source: ListDatasetDatapointsEvaluationsSource$inboundSchema.default("orq"),
|
|
1321
1321
|
reviewed_by_id: z.string(),
|
|
1322
1322
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1323
|
-
"2026-06-
|
|
1323
|
+
"2026-06-09T13:49:51.185Z",
|
|
1324
1324
|
).transform(v => new Date(v)),
|
|
1325
1325
|
type: z.literal("number"),
|
|
1326
1326
|
value: z.number(),
|
|
@@ -1369,7 +1369,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
|
|
|
1369
1369
|
.default("orq"),
|
|
1370
1370
|
reviewed_by_id: z.string(),
|
|
1371
1371
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1372
|
-
"2026-06-
|
|
1372
|
+
"2026-06-09T13:49:51.184Z",
|
|
1373
1373
|
).transform(v => new Date(v)),
|
|
1374
1374
|
type: z.literal("string"),
|
|
1375
1375
|
value: z.string(),
|
|
@@ -1448,7 +1448,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
1448
1448
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1449
1449
|
.optional(),
|
|
1450
1450
|
updated: z.string().datetime({ offset: true }).default(
|
|
1451
|
-
"2026-06-
|
|
1451
|
+
"2026-06-09T13:49:27.367Z",
|
|
1452
1452
|
).transform(v => new Date(v)),
|
|
1453
1453
|
}).transform((v) => {
|
|
1454
1454
|
return remap$(v, {
|
|
@@ -156,7 +156,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
156
156
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
157
157
|
.optional(),
|
|
158
158
|
updated: z.string().datetime({ offset: true }).default(
|
|
159
|
-
"2026-06-
|
|
159
|
+
"2026-06-09T13:49:27.367Z",
|
|
160
160
|
).transform(v => new Date(v)),
|
|
161
161
|
}).transform((v) => {
|
|
162
162
|
return remap$(v, {
|
|
@@ -182,7 +182,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
|
|
|
182
182
|
z.ZodTypeDef,
|
|
183
183
|
unknown
|
|
184
184
|
> = z.object({
|
|
185
|
-
_id: z.string().default("
|
|
185
|
+
_id: z.string().default("01KTPAB34QN0FP2XPXY1E5JTHD"),
|
|
186
186
|
display_name: z.string(),
|
|
187
187
|
description: z.nullable(z.string()).optional(),
|
|
188
188
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -18,6 +18,9 @@ export type ListKnowledgeBasesRequest = {
|
|
|
18
18
|
* A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
|
|
19
19
|
*/
|
|
20
20
|
endingBefore?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* A limit on the number of objects to be returned. Limit can range between 1 and 300, and the default is 25
|
|
23
|
+
*/
|
|
21
24
|
limit?: number | undefined;
|
|
22
25
|
};
|
|
23
26
|
|
|
@@ -289,7 +292,7 @@ export const ListKnowledgeBasesRequest$outboundSchema: z.ZodType<
|
|
|
289
292
|
> = z.object({
|
|
290
293
|
startingAfter: z.string().optional(),
|
|
291
294
|
endingBefore: z.string().optional(),
|
|
292
|
-
limit: z.number().default(
|
|
295
|
+
limit: z.number().int().default(25),
|
|
293
296
|
}).transform((v) => {
|
|
294
297
|
return remap$(v, {
|
|
295
298
|
startingAfter: "starting_after",
|
|
@@ -168,6 +168,68 @@ export type ListPromptVersionsPromptsResponseFormat =
|
|
|
168
168
|
| ListPromptVersionsResponseFormat5
|
|
169
169
|
| ListPromptVersionsResponseFormat6;
|
|
170
170
|
|
|
171
|
+
/**
|
|
172
|
+
* Create a cache control breakpoint. Accepts only the value "ephemeral".
|
|
173
|
+
*/
|
|
174
|
+
export const ListPromptVersionsPromptsResponseType = {
|
|
175
|
+
Ephemeral: "ephemeral",
|
|
176
|
+
} as const;
|
|
177
|
+
/**
|
|
178
|
+
* Create a cache control breakpoint. Accepts only the value "ephemeral".
|
|
179
|
+
*/
|
|
180
|
+
export type ListPromptVersionsPromptsResponseType = ClosedEnum<
|
|
181
|
+
typeof ListPromptVersionsPromptsResponseType
|
|
182
|
+
>;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
186
|
+
*
|
|
187
|
+
* @remarks
|
|
188
|
+
*
|
|
189
|
+
* - `5m`: 5 minutes
|
|
190
|
+
* - `1h`: 1 hour
|
|
191
|
+
*
|
|
192
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
193
|
+
*/
|
|
194
|
+
export const ListPromptVersionsPromptsTtl = {
|
|
195
|
+
Fivem: "5m",
|
|
196
|
+
Oneh: "1h",
|
|
197
|
+
} as const;
|
|
198
|
+
/**
|
|
199
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
200
|
+
*
|
|
201
|
+
* @remarks
|
|
202
|
+
*
|
|
203
|
+
* - `5m`: 5 minutes
|
|
204
|
+
* - `1h`: 1 hour
|
|
205
|
+
*
|
|
206
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
207
|
+
*/
|
|
208
|
+
export type ListPromptVersionsPromptsTtl = ClosedEnum<
|
|
209
|
+
typeof ListPromptVersionsPromptsTtl
|
|
210
|
+
>;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
214
|
+
*/
|
|
215
|
+
export type ListPromptVersionsPromptsCacheControl = {
|
|
216
|
+
/**
|
|
217
|
+
* Create a cache control breakpoint. Accepts only the value "ephemeral".
|
|
218
|
+
*/
|
|
219
|
+
type: ListPromptVersionsPromptsResponseType;
|
|
220
|
+
/**
|
|
221
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
222
|
+
*
|
|
223
|
+
* @remarks
|
|
224
|
+
*
|
|
225
|
+
* - `5m`: 5 minutes
|
|
226
|
+
* - `1h`: 1 hour
|
|
227
|
+
*
|
|
228
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
229
|
+
*/
|
|
230
|
+
ttl: ListPromptVersionsPromptsTtl;
|
|
231
|
+
};
|
|
232
|
+
|
|
171
233
|
/**
|
|
172
234
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
173
235
|
*/
|
|
@@ -316,6 +378,10 @@ export type ListPromptVersionsModelParameters = {
|
|
|
316
378
|
| ListPromptVersionsResponseFormat6
|
|
317
379
|
| null
|
|
318
380
|
| undefined;
|
|
381
|
+
/**
|
|
382
|
+
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
383
|
+
*/
|
|
384
|
+
cacheControl?: ListPromptVersionsPromptsCacheControl | null | undefined;
|
|
319
385
|
/**
|
|
320
386
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
321
387
|
*/
|
|
@@ -472,11 +538,11 @@ export type ListPromptVersionsContent =
|
|
|
472
538
|
| string
|
|
473
539
|
| Array<ListPromptVersions21 | ListPromptVersions22 | ListPromptVersions23>;
|
|
474
540
|
|
|
475
|
-
export const
|
|
541
|
+
export const ListPromptVersionsPromptsResponse200Type = {
|
|
476
542
|
Function: "function",
|
|
477
543
|
} as const;
|
|
478
|
-
export type
|
|
479
|
-
typeof
|
|
544
|
+
export type ListPromptVersionsPromptsResponse200Type = ClosedEnum<
|
|
545
|
+
typeof ListPromptVersionsPromptsResponse200Type
|
|
480
546
|
>;
|
|
481
547
|
|
|
482
548
|
export type ListPromptVersionsFunction = {
|
|
@@ -490,7 +556,7 @@ export type ListPromptVersionsFunction = {
|
|
|
490
556
|
export type ListPromptVersionsToolCalls = {
|
|
491
557
|
id?: string | undefined;
|
|
492
558
|
index?: number | undefined;
|
|
493
|
-
type:
|
|
559
|
+
type: ListPromptVersionsPromptsResponse200Type;
|
|
494
560
|
function: ListPromptVersionsFunction;
|
|
495
561
|
};
|
|
496
562
|
|
|
@@ -863,6 +929,66 @@ export type ListPromptVersionsTimeout = {
|
|
|
863
929
|
callTimeout: number;
|
|
864
930
|
};
|
|
865
931
|
|
|
932
|
+
/**
|
|
933
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
934
|
+
*/
|
|
935
|
+
export const ListPromptVersionsPromptsType = {
|
|
936
|
+
Ephemeral: "ephemeral",
|
|
937
|
+
} as const;
|
|
938
|
+
/**
|
|
939
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
940
|
+
*/
|
|
941
|
+
export type ListPromptVersionsPromptsType = ClosedEnum<
|
|
942
|
+
typeof ListPromptVersionsPromptsType
|
|
943
|
+
>;
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
947
|
+
*
|
|
948
|
+
* @remarks
|
|
949
|
+
*
|
|
950
|
+
* - `5m`: 5 minutes
|
|
951
|
+
* - `1h`: 1 hour
|
|
952
|
+
*
|
|
953
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
954
|
+
*/
|
|
955
|
+
export const ListPromptVersionsTtl = {
|
|
956
|
+
Fivem: "5m",
|
|
957
|
+
Oneh: "1h",
|
|
958
|
+
} as const;
|
|
959
|
+
/**
|
|
960
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
961
|
+
*
|
|
962
|
+
* @remarks
|
|
963
|
+
*
|
|
964
|
+
* - `5m`: 5 minutes
|
|
965
|
+
* - `1h`: 1 hour
|
|
966
|
+
*
|
|
967
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
968
|
+
*/
|
|
969
|
+
export type ListPromptVersionsTtl = ClosedEnum<typeof ListPromptVersionsTtl>;
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
973
|
+
*/
|
|
974
|
+
export type ListPromptVersionsCacheControl = {
|
|
975
|
+
/**
|
|
976
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
977
|
+
*/
|
|
978
|
+
type: ListPromptVersionsPromptsType;
|
|
979
|
+
/**
|
|
980
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
981
|
+
*
|
|
982
|
+
* @remarks
|
|
983
|
+
*
|
|
984
|
+
* - `5m`: 5 minutes
|
|
985
|
+
* - `1h`: 1 hour
|
|
986
|
+
*
|
|
987
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
988
|
+
*/
|
|
989
|
+
ttl: ListPromptVersionsTtl;
|
|
990
|
+
};
|
|
991
|
+
|
|
866
992
|
export type ListPromptVersionsContentPromptsResponse2002 =
|
|
867
993
|
components.TextContentPartSchema;
|
|
868
994
|
|
|
@@ -1328,6 +1454,14 @@ export type ListPromptVersionsPromptField = {
|
|
|
1328
1454
|
* Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
|
|
1329
1455
|
*/
|
|
1330
1456
|
timeout?: ListPromptVersionsTimeout | undefined;
|
|
1457
|
+
/**
|
|
1458
|
+
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
1459
|
+
*/
|
|
1460
|
+
cacheControl?: ListPromptVersionsCacheControl | undefined;
|
|
1461
|
+
/**
|
|
1462
|
+
* Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
|
|
1463
|
+
*/
|
|
1464
|
+
promptCacheKey?: string | undefined;
|
|
1331
1465
|
/**
|
|
1332
1466
|
* Array of messages that make up the conversation. Each message has a role (system, user, assistant, or tool) and content.
|
|
1333
1467
|
*/
|
|
@@ -1645,6 +1779,38 @@ export function listPromptVersionsPromptsResponseFormatFromJSON(
|
|
|
1645
1779
|
);
|
|
1646
1780
|
}
|
|
1647
1781
|
|
|
1782
|
+
/** @internal */
|
|
1783
|
+
export const ListPromptVersionsPromptsResponseType$inboundSchema:
|
|
1784
|
+
z.ZodNativeEnum<typeof ListPromptVersionsPromptsResponseType> = z.nativeEnum(
|
|
1785
|
+
ListPromptVersionsPromptsResponseType,
|
|
1786
|
+
);
|
|
1787
|
+
|
|
1788
|
+
/** @internal */
|
|
1789
|
+
export const ListPromptVersionsPromptsTtl$inboundSchema: z.ZodNativeEnum<
|
|
1790
|
+
typeof ListPromptVersionsPromptsTtl
|
|
1791
|
+
> = z.nativeEnum(ListPromptVersionsPromptsTtl);
|
|
1792
|
+
|
|
1793
|
+
/** @internal */
|
|
1794
|
+
export const ListPromptVersionsPromptsCacheControl$inboundSchema: z.ZodType<
|
|
1795
|
+
ListPromptVersionsPromptsCacheControl,
|
|
1796
|
+
z.ZodTypeDef,
|
|
1797
|
+
unknown
|
|
1798
|
+
> = z.object({
|
|
1799
|
+
type: ListPromptVersionsPromptsResponseType$inboundSchema,
|
|
1800
|
+
ttl: ListPromptVersionsPromptsTtl$inboundSchema.default("5m"),
|
|
1801
|
+
});
|
|
1802
|
+
|
|
1803
|
+
export function listPromptVersionsPromptsCacheControlFromJSON(
|
|
1804
|
+
jsonString: string,
|
|
1805
|
+
): SafeParseResult<ListPromptVersionsPromptsCacheControl, SDKValidationError> {
|
|
1806
|
+
return safeParse(
|
|
1807
|
+
jsonString,
|
|
1808
|
+
(x) =>
|
|
1809
|
+
ListPromptVersionsPromptsCacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
1810
|
+
`Failed to parse 'ListPromptVersionsPromptsCacheControl' from JSON`,
|
|
1811
|
+
);
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1648
1814
|
/** @internal */
|
|
1649
1815
|
export const ListPromptVersionsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
|
|
1650
1816
|
typeof ListPromptVersionsPhotoRealVersion
|
|
@@ -1698,6 +1864,9 @@ export const ListPromptVersionsModelParameters$inboundSchema: z.ZodType<
|
|
|
1698
1864
|
ListPromptVersionsResponseFormat6$inboundSchema,
|
|
1699
1865
|
]),
|
|
1700
1866
|
).optional(),
|
|
1867
|
+
cacheControl: z.nullable(
|
|
1868
|
+
z.lazy(() => ListPromptVersionsPromptsCacheControl$inboundSchema),
|
|
1869
|
+
).optional(),
|
|
1701
1870
|
photoRealVersion: ListPromptVersionsPhotoRealVersion$inboundSchema.optional(),
|
|
1702
1871
|
encoding_format: ListPromptVersionsEncodingFormat$inboundSchema.optional(),
|
|
1703
1872
|
reasoningEffort: ListPromptVersionsPromptsReasoningEffort$inboundSchema
|
|
@@ -1888,9 +2057,9 @@ export function listPromptVersionsContentFromJSON(
|
|
|
1888
2057
|
}
|
|
1889
2058
|
|
|
1890
2059
|
/** @internal */
|
|
1891
|
-
export const
|
|
1892
|
-
typeof
|
|
1893
|
-
|
|
2060
|
+
export const ListPromptVersionsPromptsResponse200Type$inboundSchema:
|
|
2061
|
+
z.ZodNativeEnum<typeof ListPromptVersionsPromptsResponse200Type> = z
|
|
2062
|
+
.nativeEnum(ListPromptVersionsPromptsResponse200Type);
|
|
1894
2063
|
|
|
1895
2064
|
/** @internal */
|
|
1896
2065
|
export const ListPromptVersionsFunction$inboundSchema: z.ZodType<
|
|
@@ -1920,7 +2089,7 @@ export const ListPromptVersionsToolCalls$inboundSchema: z.ZodType<
|
|
|
1920
2089
|
> = z.object({
|
|
1921
2090
|
id: z.string().optional(),
|
|
1922
2091
|
index: z.number().optional(),
|
|
1923
|
-
type:
|
|
2092
|
+
type: ListPromptVersionsPromptsResponse200Type$inboundSchema,
|
|
1924
2093
|
function: z.lazy(() => ListPromptVersionsFunction$inboundSchema),
|
|
1925
2094
|
});
|
|
1926
2095
|
|
|
@@ -2510,6 +2679,36 @@ export function listPromptVersionsTimeoutFromJSON(
|
|
|
2510
2679
|
);
|
|
2511
2680
|
}
|
|
2512
2681
|
|
|
2682
|
+
/** @internal */
|
|
2683
|
+
export const ListPromptVersionsPromptsType$inboundSchema: z.ZodNativeEnum<
|
|
2684
|
+
typeof ListPromptVersionsPromptsType
|
|
2685
|
+
> = z.nativeEnum(ListPromptVersionsPromptsType);
|
|
2686
|
+
|
|
2687
|
+
/** @internal */
|
|
2688
|
+
export const ListPromptVersionsTtl$inboundSchema: z.ZodNativeEnum<
|
|
2689
|
+
typeof ListPromptVersionsTtl
|
|
2690
|
+
> = z.nativeEnum(ListPromptVersionsTtl);
|
|
2691
|
+
|
|
2692
|
+
/** @internal */
|
|
2693
|
+
export const ListPromptVersionsCacheControl$inboundSchema: z.ZodType<
|
|
2694
|
+
ListPromptVersionsCacheControl,
|
|
2695
|
+
z.ZodTypeDef,
|
|
2696
|
+
unknown
|
|
2697
|
+
> = z.object({
|
|
2698
|
+
type: ListPromptVersionsPromptsType$inboundSchema,
|
|
2699
|
+
ttl: ListPromptVersionsTtl$inboundSchema.default("5m"),
|
|
2700
|
+
});
|
|
2701
|
+
|
|
2702
|
+
export function listPromptVersionsCacheControlFromJSON(
|
|
2703
|
+
jsonString: string,
|
|
2704
|
+
): SafeParseResult<ListPromptVersionsCacheControl, SDKValidationError> {
|
|
2705
|
+
return safeParse(
|
|
2706
|
+
jsonString,
|
|
2707
|
+
(x) => ListPromptVersionsCacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
2708
|
+
`Failed to parse 'ListPromptVersionsCacheControl' from JSON`,
|
|
2709
|
+
);
|
|
2710
|
+
}
|
|
2711
|
+
|
|
2513
2712
|
/** @internal */
|
|
2514
2713
|
export const ListPromptVersionsContentPromptsResponse2002$inboundSchema:
|
|
2515
2714
|
z.ZodType<
|
|
@@ -3090,6 +3289,9 @@ export const ListPromptVersionsPromptField$inboundSchema: z.ZodType<
|
|
|
3090
3289
|
load_balancer: z.lazy(() => ListPromptVersionsLoadBalancer1$inboundSchema)
|
|
3091
3290
|
.optional(),
|
|
3092
3291
|
timeout: z.lazy(() => ListPromptVersionsTimeout$inboundSchema).optional(),
|
|
3292
|
+
cache_control: z.lazy(() => ListPromptVersionsCacheControl$inboundSchema)
|
|
3293
|
+
.optional(),
|
|
3294
|
+
prompt_cache_key: z.string().optional(),
|
|
3093
3295
|
messages: z.array(
|
|
3094
3296
|
z.union([
|
|
3095
3297
|
z.lazy(() => ListPromptVersionsMessagesSystemMessage$inboundSchema),
|
|
@@ -3115,6 +3317,8 @@ export const ListPromptVersionsPromptField$inboundSchema: z.ZodType<
|
|
|
3115
3317
|
"tool_choice": "toolChoice",
|
|
3116
3318
|
"parallel_tool_calls": "parallelToolCalls",
|
|
3117
3319
|
"load_balancer": "loadBalancer",
|
|
3320
|
+
"cache_control": "cacheControl",
|
|
3321
|
+
"prompt_cache_key": "promptCacheKey",
|
|
3118
3322
|
});
|
|
3119
3323
|
});
|
|
3120
3324
|
|
|
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
318
318
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
319
319
|
.optional(),
|
|
320
320
|
updated: z.string().datetime({ offset: true }).default(
|
|
321
|
-
"2026-06-
|
|
321
|
+
"2026-06-09T13:49:27.367Z",
|
|
322
322
|
).transform(v => new Date(v)),
|
|
323
323
|
filter_type: z.literal("name"),
|
|
324
324
|
filter_value: z.string(),
|
|
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
364
364
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
365
365
|
.optional(),
|
|
366
366
|
updated: z.string().datetime({ offset: true }).default(
|
|
367
|
-
"2026-06-
|
|
367
|
+
"2026-06-09T13:49:27.367Z",
|
|
368
368
|
).transform(v => new Date(v)),
|
|
369
369
|
filter_type: z.literal("span_type"),
|
|
370
370
|
filter_values: z.array(z.string()),
|