@orq-ai/node 4.11.0-rc.4 → 4.11.0-rc.6
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/index.d.ts +23 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +23 -0
- package/models/components/index.js.map +1 -1
- 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/publicresponseresource.d.ts +105 -0
- package/models/components/publicresponseresource.d.ts.map +1 -0
- package/models/components/publicresponseresource.js +138 -0
- package/models/components/publicresponseresource.js.map +1 -0
- 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/components/responsecodeinterpretercodedeltastreamevent.d.ts +61 -0
- package/models/components/responsecodeinterpretercodedeltastreamevent.d.ts.map +1 -0
- package/models/components/responsecodeinterpretercodedeltastreamevent.js +89 -0
- package/models/components/responsecodeinterpretercodedeltastreamevent.js.map +1 -0
- package/models/components/responsecodeinterpretercodedonestreamevent.d.ts +61 -0
- package/models/components/responsecodeinterpretercodedonestreamevent.d.ts.map +1 -0
- package/models/components/responsecodeinterpretercodedonestreamevent.js +89 -0
- package/models/components/responsecodeinterpretercodedonestreamevent.js.map +1 -0
- package/models/components/responsecontentpartstreamevent.d.ts +81 -0
- package/models/components/responsecontentpartstreamevent.d.ts.map +1 -0
- package/models/components/responsecontentpartstreamevent.js +100 -0
- package/models/components/responsecontentpartstreamevent.js.map +1 -0
- package/models/components/responseerrorstreamevent.d.ts +51 -0
- package/models/components/responseerrorstreamevent.d.ts.map +1 -0
- package/models/components/responseerrorstreamevent.js +85 -0
- package/models/components/responseerrorstreamevent.js.map +1 -0
- package/models/components/responsefunctioncallargumentsdeltastreamevent.d.ts +65 -0
- package/models/components/responsefunctioncallargumentsdeltastreamevent.d.ts.map +1 -0
- package/models/components/responsefunctioncallargumentsdeltastreamevent.js +90 -0
- package/models/components/responsefunctioncallargumentsdeltastreamevent.js.map +1 -0
- package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts +61 -0
- package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts.map +1 -0
- package/models/components/responsefunctioncallargumentsdonestreamevent.js +89 -0
- package/models/components/responsefunctioncallargumentsdonestreamevent.js.map +1 -0
- package/models/components/responsehostedtoolcallstreamevent.d.ts +97 -0
- package/models/components/responsehostedtoolcallstreamevent.d.ts.map +1 -0
- package/models/components/responsehostedtoolcallstreamevent.js +123 -0
- package/models/components/responsehostedtoolcallstreamevent.js.map +1 -0
- package/models/components/responseimagegenerationpartialimagestreamevent.d.ts +65 -0
- package/models/components/responseimagegenerationpartialimagestreamevent.d.ts.map +1 -0
- package/models/components/responseimagegenerationpartialimagestreamevent.js +92 -0
- package/models/components/responseimagegenerationpartialimagestreamevent.js.map +1 -0
- package/models/components/responselifecyclestreamevent.d.ts +73 -0
- package/models/components/responselifecyclestreamevent.d.ts.map +1 -0
- package/models/components/responselifecyclestreamevent.js +103 -0
- package/models/components/responselifecyclestreamevent.js.map +1 -0
- package/models/components/responsemcpcallargumentsdeltastreamevent.d.ts +61 -0
- package/models/components/responsemcpcallargumentsdeltastreamevent.d.ts.map +1 -0
- package/models/components/responsemcpcallargumentsdeltastreamevent.js +89 -0
- package/models/components/responsemcpcallargumentsdeltastreamevent.js.map +1 -0
- package/models/components/responsemcpcallargumentsdonestreamevent.d.ts +61 -0
- package/models/components/responsemcpcallargumentsdonestreamevent.d.ts.map +1 -0
- package/models/components/responsemcpcallargumentsdonestreamevent.js +89 -0
- package/models/components/responsemcpcallargumentsdonestreamevent.js.map +1 -0
- package/models/components/responseoutputitemstreamevent.d.ts +73 -0
- package/models/components/responseoutputitemstreamevent.d.ts.map +1 -0
- package/models/components/responseoutputitemstreamevent.js +96 -0
- package/models/components/responseoutputitemstreamevent.js.map +1 -0
- package/models/components/responseoutputtextannotationaddedstreamevent.d.ts +71 -0
- package/models/components/responseoutputtextannotationaddedstreamevent.d.ts.map +1 -0
- package/models/components/responseoutputtextannotationaddedstreamevent.js +93 -0
- package/models/components/responseoutputtextannotationaddedstreamevent.js.map +1 -0
- package/models/components/responseoutputtextdeltastreamevent.d.ts +75 -0
- package/models/components/responseoutputtextdeltastreamevent.d.ts.map +1 -0
- package/models/components/responseoutputtextdeltastreamevent.js +92 -0
- package/models/components/responseoutputtextdeltastreamevent.js.map +1 -0
- package/models/components/responseoutputtextdonestreamevent.d.ts +71 -0
- package/models/components/responseoutputtextdonestreamevent.d.ts.map +1 -0
- package/models/components/responseoutputtextdonestreamevent.js +91 -0
- package/models/components/responseoutputtextdonestreamevent.js.map +1 -0
- package/models/components/responsereasoningdeltastreamevent.d.ts +83 -0
- package/models/components/responsereasoningdeltastreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningdeltastreamevent.js +101 -0
- package/models/components/responsereasoningdeltastreamevent.js.map +1 -0
- package/models/components/responsereasoningdonestreamevent.d.ts +79 -0
- package/models/components/responsereasoningdonestreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningdonestreamevent.js +100 -0
- package/models/components/responsereasoningdonestreamevent.js.map +1 -0
- package/models/components/responsereasoningsummarypartstreamevent.d.ts +81 -0
- package/models/components/responsereasoningsummarypartstreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningsummarypartstreamevent.js +102 -0
- package/models/components/responsereasoningsummarypartstreamevent.js.map +1 -0
- package/models/components/responsereasoningsummarytextdeltastreamevent.d.ts +69 -0
- package/models/components/responsereasoningsummarytextdeltastreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningsummarytextdeltastreamevent.js +92 -0
- package/models/components/responsereasoningsummarytextdeltastreamevent.js.map +1 -0
- package/models/components/responsereasoningsummarytextdonestreamevent.d.ts +65 -0
- package/models/components/responsereasoningsummarytextdonestreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningsummarytextdonestreamevent.js +91 -0
- package/models/components/responsereasoningsummarytextdonestreamevent.js.map +1 -0
- package/models/components/responserefusaldeltastreamevent.d.ts +65 -0
- package/models/components/responserefusaldeltastreamevent.d.ts.map +1 -0
- package/models/components/responserefusaldeltastreamevent.js +90 -0
- package/models/components/responserefusaldeltastreamevent.js.map +1 -0
- package/models/components/responserefusaldonestreamevent.d.ts +65 -0
- package/models/components/responserefusaldonestreamevent.d.ts.map +1 -0
- package/models/components/responserefusaldonestreamevent.js +90 -0
- package/models/components/responserefusaldonestreamevent.js.map +1 -0
- 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 +476 -61
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +332 -60
- 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 +3 -3
- package/sdk/feedback.d.ts +2 -2
- package/sdk/feedback.js +2 -2
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +23 -0
- package/src/models/components/modelmetadata.ts +6 -0
- package/src/models/components/publicresponseresource.ts +196 -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/components/responsecodeinterpretercodedeltastreamevent.ts +149 -0
- package/src/models/components/responsecodeinterpretercodedonestreamevent.ts +146 -0
- package/src/models/components/responsecontentpartstreamevent.ts +157 -0
- package/src/models/components/responseerrorstreamevent.ts +116 -0
- package/src/models/components/responsefunctioncallargumentsdeltastreamevent.ts +153 -0
- package/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +148 -0
- package/src/models/components/responsehostedtoolcallstreamevent.ts +186 -0
- package/src/models/components/responseimagegenerationpartialimagestreamevent.ts +156 -0
- package/src/models/components/responselifecyclestreamevent.ts +145 -0
- package/src/models/components/responsemcpcallargumentsdeltastreamevent.ts +145 -0
- package/src/models/components/responsemcpcallargumentsdonestreamevent.ts +145 -0
- package/src/models/components/responseoutputitemstreamevent.ts +144 -0
- package/src/models/components/responseoutputtextannotationaddedstreamevent.ts +160 -0
- package/src/models/components/responseoutputtextdeltastreamevent.ts +149 -0
- package/src/models/components/responseoutputtextdonestreamevent.ts +143 -0
- package/src/models/components/responsereasoningdeltastreamevent.ts +164 -0
- package/src/models/components/responsereasoningdonestreamevent.ts +159 -0
- package/src/models/components/responsereasoningsummarypartstreamevent.ts +171 -0
- package/src/models/components/responsereasoningsummarytextdeltastreamevent.ts +159 -0
- package/src/models/components/responsereasoningsummarytextdonestreamevent.ts +154 -0
- package/src/models/components/responserefusaldeltastreamevent.ts +137 -0
- package/src/models/components/responserefusaldonestreamevent.ts +137 -0
- 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 +1000 -109
- 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 +2 -2
|
@@ -535,6 +535,61 @@ export type UpdatePromptTimeout = {
|
|
|
535
535
|
*/
|
|
536
536
|
callTimeout: number;
|
|
537
537
|
};
|
|
538
|
+
/**
|
|
539
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
540
|
+
*/
|
|
541
|
+
export declare const UpdatePromptPromptsType: {
|
|
542
|
+
readonly Ephemeral: "ephemeral";
|
|
543
|
+
};
|
|
544
|
+
/**
|
|
545
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
546
|
+
*/
|
|
547
|
+
export type UpdatePromptPromptsType = ClosedEnum<typeof UpdatePromptPromptsType>;
|
|
548
|
+
/**
|
|
549
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
550
|
+
*
|
|
551
|
+
* @remarks
|
|
552
|
+
*
|
|
553
|
+
* - `5m`: 5 minutes
|
|
554
|
+
* - `1h`: 1 hour
|
|
555
|
+
*
|
|
556
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
557
|
+
*/
|
|
558
|
+
export declare const UpdatePromptTtl: {
|
|
559
|
+
readonly Fivem: "5m";
|
|
560
|
+
readonly Oneh: "1h";
|
|
561
|
+
};
|
|
562
|
+
/**
|
|
563
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
564
|
+
*
|
|
565
|
+
* @remarks
|
|
566
|
+
*
|
|
567
|
+
* - `5m`: 5 minutes
|
|
568
|
+
* - `1h`: 1 hour
|
|
569
|
+
*
|
|
570
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
571
|
+
*/
|
|
572
|
+
export type UpdatePromptTtl = ClosedEnum<typeof UpdatePromptTtl>;
|
|
573
|
+
/**
|
|
574
|
+
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
575
|
+
*/
|
|
576
|
+
export type UpdatePromptCacheControl = {
|
|
577
|
+
/**
|
|
578
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
579
|
+
*/
|
|
580
|
+
type: UpdatePromptPromptsType;
|
|
581
|
+
/**
|
|
582
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
583
|
+
*
|
|
584
|
+
* @remarks
|
|
585
|
+
*
|
|
586
|
+
* - `5m`: 5 minutes
|
|
587
|
+
* - `1h`: 1 hour
|
|
588
|
+
*
|
|
589
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
590
|
+
*/
|
|
591
|
+
ttl?: UpdatePromptTtl | undefined;
|
|
592
|
+
};
|
|
538
593
|
/**
|
|
539
594
|
* Prompt configuration with model and messages. Use this to update the prompt.
|
|
540
595
|
*/
|
|
@@ -669,6 +724,14 @@ export type UpdatePromptPromptInput = {
|
|
|
669
724
|
* 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.
|
|
670
725
|
*/
|
|
671
726
|
timeout?: UpdatePromptTimeout | undefined;
|
|
727
|
+
/**
|
|
728
|
+
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
729
|
+
*/
|
|
730
|
+
cacheControl?: UpdatePromptCacheControl | undefined;
|
|
731
|
+
/**
|
|
732
|
+
* Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
|
|
733
|
+
*/
|
|
734
|
+
promptCacheKey?: string | undefined;
|
|
672
735
|
};
|
|
673
736
|
export declare const UpdatePromptUseCases: {
|
|
674
737
|
readonly AgentsSimulations: "Agents simulations";
|
|
@@ -757,10 +820,10 @@ export type UpdatePromptRequest = {
|
|
|
757
820
|
id: string;
|
|
758
821
|
requestBody?: UpdatePromptRequestBody | undefined;
|
|
759
822
|
};
|
|
760
|
-
export declare const
|
|
823
|
+
export declare const UpdatePromptPromptsResponseType: {
|
|
761
824
|
readonly Prompt: "prompt";
|
|
762
825
|
};
|
|
763
|
-
export type
|
|
826
|
+
export type UpdatePromptPromptsResponseType = ClosedEnum<typeof UpdatePromptPromptsResponseType>;
|
|
764
827
|
/**
|
|
765
828
|
* The modality of the model
|
|
766
829
|
*/
|
|
@@ -858,6 +921,61 @@ export type UpdatePromptResponseFormat1 = {
|
|
|
858
921
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
859
922
|
*/
|
|
860
923
|
export type UpdatePromptPromptsResponseResponseFormat = UpdatePromptResponseFormat1 | UpdatePromptResponseFormat2 | UpdatePromptResponseFormat3 | UpdatePromptResponseFormat4 | UpdatePromptResponseFormat5 | UpdatePromptResponseFormat6;
|
|
924
|
+
/**
|
|
925
|
+
* Create a cache control breakpoint. Accepts only the value "ephemeral".
|
|
926
|
+
*/
|
|
927
|
+
export declare const UpdatePromptPromptsResponse200ApplicationJSONResponseBodyType: {
|
|
928
|
+
readonly Ephemeral: "ephemeral";
|
|
929
|
+
};
|
|
930
|
+
/**
|
|
931
|
+
* Create a cache control breakpoint. Accepts only the value "ephemeral".
|
|
932
|
+
*/
|
|
933
|
+
export type UpdatePromptPromptsResponse200ApplicationJSONResponseBodyType = ClosedEnum<typeof UpdatePromptPromptsResponse200ApplicationJSONResponseBodyType>;
|
|
934
|
+
/**
|
|
935
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
936
|
+
*
|
|
937
|
+
* @remarks
|
|
938
|
+
*
|
|
939
|
+
* - `5m`: 5 minutes
|
|
940
|
+
* - `1h`: 1 hour
|
|
941
|
+
*
|
|
942
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
943
|
+
*/
|
|
944
|
+
export declare const UpdatePromptPromptsResponseTtl: {
|
|
945
|
+
readonly Fivem: "5m";
|
|
946
|
+
readonly Oneh: "1h";
|
|
947
|
+
};
|
|
948
|
+
/**
|
|
949
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
950
|
+
*
|
|
951
|
+
* @remarks
|
|
952
|
+
*
|
|
953
|
+
* - `5m`: 5 minutes
|
|
954
|
+
* - `1h`: 1 hour
|
|
955
|
+
*
|
|
956
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
957
|
+
*/
|
|
958
|
+
export type UpdatePromptPromptsResponseTtl = ClosedEnum<typeof UpdatePromptPromptsResponseTtl>;
|
|
959
|
+
/**
|
|
960
|
+
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
961
|
+
*/
|
|
962
|
+
export type UpdatePromptPromptsResponseCacheControl = {
|
|
963
|
+
/**
|
|
964
|
+
* Create a cache control breakpoint. Accepts only the value "ephemeral".
|
|
965
|
+
*/
|
|
966
|
+
type: UpdatePromptPromptsResponse200ApplicationJSONResponseBodyType;
|
|
967
|
+
/**
|
|
968
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
969
|
+
*
|
|
970
|
+
* @remarks
|
|
971
|
+
*
|
|
972
|
+
* - `5m`: 5 minutes
|
|
973
|
+
* - `1h`: 1 hour
|
|
974
|
+
*
|
|
975
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
976
|
+
*/
|
|
977
|
+
ttl: UpdatePromptPromptsResponseTtl;
|
|
978
|
+
};
|
|
861
979
|
/**
|
|
862
980
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
863
981
|
*/
|
|
@@ -983,6 +1101,10 @@ export type UpdatePromptModelParameters = {
|
|
|
983
1101
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
984
1102
|
*/
|
|
985
1103
|
responseFormat?: UpdatePromptResponseFormat1 | UpdatePromptResponseFormat2 | UpdatePromptResponseFormat3 | UpdatePromptResponseFormat4 | UpdatePromptResponseFormat5 | UpdatePromptResponseFormat6 | null | undefined;
|
|
1104
|
+
/**
|
|
1105
|
+
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
1106
|
+
*/
|
|
1107
|
+
cacheControl?: UpdatePromptPromptsResponseCacheControl | null | undefined;
|
|
986
1108
|
/**
|
|
987
1109
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
988
1110
|
*/
|
|
@@ -1122,10 +1244,10 @@ export type UpdatePromptContentPromptsResponse2 = UpdatePrompt21 | UpdatePrompt2
|
|
|
1122
1244
|
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Can be null for tool messages in certain scenarios.
|
|
1123
1245
|
*/
|
|
1124
1246
|
export type UpdatePromptContent = string | Array<UpdatePrompt21 | UpdatePrompt22 | UpdatePrompt23>;
|
|
1125
|
-
export declare const
|
|
1247
|
+
export declare const UpdatePromptPromptsResponse200ApplicationJSONResponseBodyPromptConfigType: {
|
|
1126
1248
|
readonly Function: "function";
|
|
1127
1249
|
};
|
|
1128
|
-
export type
|
|
1250
|
+
export type UpdatePromptPromptsResponse200ApplicationJSONResponseBodyPromptConfigType = ClosedEnum<typeof UpdatePromptPromptsResponse200ApplicationJSONResponseBodyPromptConfigType>;
|
|
1129
1251
|
export type UpdatePromptFunction = {
|
|
1130
1252
|
name: string;
|
|
1131
1253
|
/**
|
|
@@ -1136,7 +1258,7 @@ export type UpdatePromptFunction = {
|
|
|
1136
1258
|
export type UpdatePromptToolCalls = {
|
|
1137
1259
|
id?: string | undefined;
|
|
1138
1260
|
index?: number | undefined;
|
|
1139
|
-
type:
|
|
1261
|
+
type: UpdatePromptPromptsResponse200ApplicationJSONResponseBodyPromptConfigType;
|
|
1140
1262
|
function: UpdatePromptFunction;
|
|
1141
1263
|
};
|
|
1142
1264
|
export type UpdatePromptPromptsMessages = {
|
|
@@ -1403,10 +1525,10 @@ export type UpdatePromptPromptsRetry = {
|
|
|
1403
1525
|
*/
|
|
1404
1526
|
onCodes?: Array<number> | undefined;
|
|
1405
1527
|
};
|
|
1406
|
-
export declare const
|
|
1528
|
+
export declare const UpdatePromptPromptsResponse200Type: {
|
|
1407
1529
|
readonly ExactMatch: "exact_match";
|
|
1408
1530
|
};
|
|
1409
|
-
export type
|
|
1531
|
+
export type UpdatePromptPromptsResponse200Type = ClosedEnum<typeof UpdatePromptPromptsResponse200Type>;
|
|
1410
1532
|
/**
|
|
1411
1533
|
* Cache configuration for the request.
|
|
1412
1534
|
*/
|
|
@@ -1415,7 +1537,7 @@ export type UpdatePromptPromptsCache = {
|
|
|
1415
1537
|
* Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
|
|
1416
1538
|
*/
|
|
1417
1539
|
ttl: number;
|
|
1418
|
-
type:
|
|
1540
|
+
type: UpdatePromptPromptsResponse200Type;
|
|
1419
1541
|
};
|
|
1420
1542
|
export declare const UpdatePromptLoadBalancerPromptsType: {
|
|
1421
1543
|
readonly WeightBased: "weight_based";
|
|
@@ -1448,6 +1570,61 @@ export type UpdatePromptPromptsTimeout = {
|
|
|
1448
1570
|
*/
|
|
1449
1571
|
callTimeout: number;
|
|
1450
1572
|
};
|
|
1573
|
+
/**
|
|
1574
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1575
|
+
*/
|
|
1576
|
+
export declare const UpdatePromptPromptsResponse200ApplicationJSONType: {
|
|
1577
|
+
readonly Ephemeral: "ephemeral";
|
|
1578
|
+
};
|
|
1579
|
+
/**
|
|
1580
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1581
|
+
*/
|
|
1582
|
+
export type UpdatePromptPromptsResponse200ApplicationJSONType = ClosedEnum<typeof UpdatePromptPromptsResponse200ApplicationJSONType>;
|
|
1583
|
+
/**
|
|
1584
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1585
|
+
*
|
|
1586
|
+
* @remarks
|
|
1587
|
+
*
|
|
1588
|
+
* - `5m`: 5 minutes
|
|
1589
|
+
* - `1h`: 1 hour
|
|
1590
|
+
*
|
|
1591
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1592
|
+
*/
|
|
1593
|
+
export declare const UpdatePromptPromptsTtl: {
|
|
1594
|
+
readonly Fivem: "5m";
|
|
1595
|
+
readonly Oneh: "1h";
|
|
1596
|
+
};
|
|
1597
|
+
/**
|
|
1598
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1599
|
+
*
|
|
1600
|
+
* @remarks
|
|
1601
|
+
*
|
|
1602
|
+
* - `5m`: 5 minutes
|
|
1603
|
+
* - `1h`: 1 hour
|
|
1604
|
+
*
|
|
1605
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1606
|
+
*/
|
|
1607
|
+
export type UpdatePromptPromptsTtl = ClosedEnum<typeof UpdatePromptPromptsTtl>;
|
|
1608
|
+
/**
|
|
1609
|
+
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
1610
|
+
*/
|
|
1611
|
+
export type UpdatePromptPromptsCacheControl = {
|
|
1612
|
+
/**
|
|
1613
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1614
|
+
*/
|
|
1615
|
+
type: UpdatePromptPromptsResponse200ApplicationJSONType;
|
|
1616
|
+
/**
|
|
1617
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1618
|
+
*
|
|
1619
|
+
* @remarks
|
|
1620
|
+
*
|
|
1621
|
+
* - `5m`: 5 minutes
|
|
1622
|
+
* - `1h`: 1 hour
|
|
1623
|
+
*
|
|
1624
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1625
|
+
*/
|
|
1626
|
+
ttl: UpdatePromptPromptsTtl;
|
|
1627
|
+
};
|
|
1451
1628
|
export type UpdatePromptContentPromptsResponse200ApplicationJSONResponseBody2 = components.TextContentPartSchema;
|
|
1452
1629
|
/**
|
|
1453
1630
|
* The contents of the tool message.
|
|
@@ -1837,6 +2014,14 @@ export type UpdatePromptPromptField = {
|
|
|
1837
2014
|
* 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.
|
|
1838
2015
|
*/
|
|
1839
2016
|
timeout?: UpdatePromptPromptsTimeout | undefined;
|
|
2017
|
+
/**
|
|
2018
|
+
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
2019
|
+
*/
|
|
2020
|
+
cacheControl?: UpdatePromptPromptsCacheControl | undefined;
|
|
2021
|
+
/**
|
|
2022
|
+
* Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
|
|
2023
|
+
*/
|
|
2024
|
+
promptCacheKey?: string | undefined;
|
|
1840
2025
|
/**
|
|
1841
2026
|
* Array of messages that make up the conversation. Each message has a role (system, user, assistant, or tool) and content.
|
|
1842
2027
|
*/
|
|
@@ -1901,7 +2086,7 @@ export type UpdatePromptPromptsMetadata = {
|
|
|
1901
2086
|
*/
|
|
1902
2087
|
export type UpdatePromptPrompt = {
|
|
1903
2088
|
id: string;
|
|
1904
|
-
type:
|
|
2089
|
+
type: UpdatePromptPromptsResponseType;
|
|
1905
2090
|
owner: string;
|
|
1906
2091
|
domainId: string;
|
|
1907
2092
|
created: string;
|
|
@@ -2247,6 +2432,18 @@ export type UpdatePromptTimeout$Outbound = {
|
|
|
2247
2432
|
export declare const UpdatePromptTimeout$outboundSchema: z.ZodType<UpdatePromptTimeout$Outbound, z.ZodTypeDef, UpdatePromptTimeout>;
|
|
2248
2433
|
export declare function updatePromptTimeoutToJSON(updatePromptTimeout: UpdatePromptTimeout): string;
|
|
2249
2434
|
/** @internal */
|
|
2435
|
+
export declare const UpdatePromptPromptsType$outboundSchema: z.ZodNativeEnum<typeof UpdatePromptPromptsType>;
|
|
2436
|
+
/** @internal */
|
|
2437
|
+
export declare const UpdatePromptTtl$outboundSchema: z.ZodNativeEnum<typeof UpdatePromptTtl>;
|
|
2438
|
+
/** @internal */
|
|
2439
|
+
export type UpdatePromptCacheControl$Outbound = {
|
|
2440
|
+
type: string;
|
|
2441
|
+
ttl: string;
|
|
2442
|
+
};
|
|
2443
|
+
/** @internal */
|
|
2444
|
+
export declare const UpdatePromptCacheControl$outboundSchema: z.ZodType<UpdatePromptCacheControl$Outbound, z.ZodTypeDef, UpdatePromptCacheControl>;
|
|
2445
|
+
export declare function updatePromptCacheControlToJSON(updatePromptCacheControl: UpdatePromptCacheControl): string;
|
|
2446
|
+
/** @internal */
|
|
2250
2447
|
export type UpdatePromptPromptInput$Outbound = {
|
|
2251
2448
|
messages?: Array<UpdatePromptMessagesSystemMessage$Outbound | UpdatePromptMessagesUserMessage$Outbound | UpdatePromptMessagesAssistantMessage$Outbound | UpdatePromptMessagesToolMessage$Outbound> | undefined;
|
|
2252
2449
|
model?: string | null | undefined;
|
|
@@ -2278,6 +2475,8 @@ export type UpdatePromptPromptInput$Outbound = {
|
|
|
2278
2475
|
cache?: UpdatePromptCache$Outbound | undefined;
|
|
2279
2476
|
load_balancer?: UpdatePromptLoadBalancer1$Outbound | undefined;
|
|
2280
2477
|
timeout?: UpdatePromptTimeout$Outbound | undefined;
|
|
2478
|
+
cache_control?: UpdatePromptCacheControl$Outbound | undefined;
|
|
2479
|
+
prompt_cache_key?: string | undefined;
|
|
2281
2480
|
};
|
|
2282
2481
|
/** @internal */
|
|
2283
2482
|
export declare const UpdatePromptPromptInput$outboundSchema: z.ZodType<UpdatePromptPromptInput$Outbound, z.ZodTypeDef, UpdatePromptPromptInput>;
|
|
@@ -2320,7 +2519,7 @@ export type UpdatePromptRequest$Outbound = {
|
|
|
2320
2519
|
export declare const UpdatePromptRequest$outboundSchema: z.ZodType<UpdatePromptRequest$Outbound, z.ZodTypeDef, UpdatePromptRequest>;
|
|
2321
2520
|
export declare function updatePromptRequestToJSON(updatePromptRequest: UpdatePromptRequest): string;
|
|
2322
2521
|
/** @internal */
|
|
2323
|
-
export declare const
|
|
2522
|
+
export declare const UpdatePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<typeof UpdatePromptPromptsResponseType>;
|
|
2324
2523
|
/** @internal */
|
|
2325
2524
|
export declare const UpdatePromptModelType$inboundSchema: z.ZodNativeEnum<typeof UpdatePromptModelType>;
|
|
2326
2525
|
/** @internal */
|
|
@@ -2353,6 +2552,13 @@ export declare function updatePromptResponseFormat1FromJSON(jsonString: string):
|
|
|
2353
2552
|
export declare const UpdatePromptPromptsResponseResponseFormat$inboundSchema: z.ZodType<UpdatePromptPromptsResponseResponseFormat, z.ZodTypeDef, unknown>;
|
|
2354
2553
|
export declare function updatePromptPromptsResponseResponseFormatFromJSON(jsonString: string): SafeParseResult<UpdatePromptPromptsResponseResponseFormat, SDKValidationError>;
|
|
2355
2554
|
/** @internal */
|
|
2555
|
+
export declare const UpdatePromptPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema: z.ZodNativeEnum<typeof UpdatePromptPromptsResponse200ApplicationJSONResponseBodyType>;
|
|
2556
|
+
/** @internal */
|
|
2557
|
+
export declare const UpdatePromptPromptsResponseTtl$inboundSchema: z.ZodNativeEnum<typeof UpdatePromptPromptsResponseTtl>;
|
|
2558
|
+
/** @internal */
|
|
2559
|
+
export declare const UpdatePromptPromptsResponseCacheControl$inboundSchema: z.ZodType<UpdatePromptPromptsResponseCacheControl, z.ZodTypeDef, unknown>;
|
|
2560
|
+
export declare function updatePromptPromptsResponseCacheControlFromJSON(jsonString: string): SafeParseResult<UpdatePromptPromptsResponseCacheControl, SDKValidationError>;
|
|
2561
|
+
/** @internal */
|
|
2356
2562
|
export declare const UpdatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<typeof UpdatePromptPhotoRealVersion>;
|
|
2357
2563
|
/** @internal */
|
|
2358
2564
|
export declare const UpdatePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<typeof UpdatePromptEncodingFormat>;
|
|
@@ -2391,7 +2597,7 @@ export declare function updatePromptContentPromptsResponse2FromJSON(jsonString:
|
|
|
2391
2597
|
export declare const UpdatePromptContent$inboundSchema: z.ZodType<UpdatePromptContent, z.ZodTypeDef, unknown>;
|
|
2392
2598
|
export declare function updatePromptContentFromJSON(jsonString: string): SafeParseResult<UpdatePromptContent, SDKValidationError>;
|
|
2393
2599
|
/** @internal */
|
|
2394
|
-
export declare const
|
|
2600
|
+
export declare const UpdatePromptPromptsResponse200ApplicationJSONResponseBodyPromptConfigType$inboundSchema: z.ZodNativeEnum<typeof UpdatePromptPromptsResponse200ApplicationJSONResponseBodyPromptConfigType>;
|
|
2395
2601
|
/** @internal */
|
|
2396
2602
|
export declare const UpdatePromptFunction$inboundSchema: z.ZodType<UpdatePromptFunction, z.ZodTypeDef, unknown>;
|
|
2397
2603
|
export declare function updatePromptFunctionFromJSON(jsonString: string): SafeParseResult<UpdatePromptFunction, SDKValidationError>;
|
|
@@ -2469,7 +2675,7 @@ export declare function updatePromptPromptsFallbacksFromJSON(jsonString: string)
|
|
|
2469
2675
|
export declare const UpdatePromptPromptsRetry$inboundSchema: z.ZodType<UpdatePromptPromptsRetry, z.ZodTypeDef, unknown>;
|
|
2470
2676
|
export declare function updatePromptPromptsRetryFromJSON(jsonString: string): SafeParseResult<UpdatePromptPromptsRetry, SDKValidationError>;
|
|
2471
2677
|
/** @internal */
|
|
2472
|
-
export declare const
|
|
2678
|
+
export declare const UpdatePromptPromptsResponse200Type$inboundSchema: z.ZodNativeEnum<typeof UpdatePromptPromptsResponse200Type>;
|
|
2473
2679
|
/** @internal */
|
|
2474
2680
|
export declare const UpdatePromptPromptsCache$inboundSchema: z.ZodType<UpdatePromptPromptsCache, z.ZodTypeDef, unknown>;
|
|
2475
2681
|
export declare function updatePromptPromptsCacheFromJSON(jsonString: string): SafeParseResult<UpdatePromptPromptsCache, SDKValidationError>;
|
|
@@ -2488,6 +2694,13 @@ export declare function updatePromptPromptsLoadBalancerFromJSON(jsonString: stri
|
|
|
2488
2694
|
export declare const UpdatePromptPromptsTimeout$inboundSchema: z.ZodType<UpdatePromptPromptsTimeout, z.ZodTypeDef, unknown>;
|
|
2489
2695
|
export declare function updatePromptPromptsTimeoutFromJSON(jsonString: string): SafeParseResult<UpdatePromptPromptsTimeout, SDKValidationError>;
|
|
2490
2696
|
/** @internal */
|
|
2697
|
+
export declare const UpdatePromptPromptsResponse200ApplicationJSONType$inboundSchema: z.ZodNativeEnum<typeof UpdatePromptPromptsResponse200ApplicationJSONType>;
|
|
2698
|
+
/** @internal */
|
|
2699
|
+
export declare const UpdatePromptPromptsTtl$inboundSchema: z.ZodNativeEnum<typeof UpdatePromptPromptsTtl>;
|
|
2700
|
+
/** @internal */
|
|
2701
|
+
export declare const UpdatePromptPromptsCacheControl$inboundSchema: z.ZodType<UpdatePromptPromptsCacheControl, z.ZodTypeDef, unknown>;
|
|
2702
|
+
export declare function updatePromptPromptsCacheControlFromJSON(jsonString: string): SafeParseResult<UpdatePromptPromptsCacheControl, SDKValidationError>;
|
|
2703
|
+
/** @internal */
|
|
2491
2704
|
export declare const UpdatePromptContentPromptsResponse200ApplicationJSONResponseBody2$inboundSchema: z.ZodType<UpdatePromptContentPromptsResponse200ApplicationJSONResponseBody2, z.ZodTypeDef, unknown>;
|
|
2492
2705
|
export declare function updatePromptContentPromptsResponse200ApplicationJSONResponseBody2FromJSON(jsonString: string): SafeParseResult<UpdatePromptContentPromptsResponse200ApplicationJSONResponseBody2, SDKValidationError>;
|
|
2493
2706
|
/** @internal */
|