@vertesia/common 0.63.0 → 0.65.0
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/lib/cjs/index.js +1 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/interaction.js.map +1 -1
- package/lib/cjs/model_utility.js +6 -0
- package/lib/cjs/model_utility.js.map +1 -0
- package/lib/cjs/store/workflow.js.map +1 -1
- package/lib/esm/index.js +1 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/interaction.js.map +1 -1
- package/lib/esm/model_utility.js +2 -0
- package/lib/esm/model_utility.js.map +1 -0
- package/lib/esm/store/workflow.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/Progress.d.ts +0 -1
- package/lib/types/access-control.d.ts +0 -1
- package/lib/types/analytics.d.ts +0 -1
- package/lib/types/apikey.d.ts +0 -1
- package/lib/types/common.d.ts +0 -1
- package/lib/types/environment.d.ts +0 -1
- package/lib/types/facets.d.ts +0 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/integrations.d.ts +0 -1
- package/lib/types/interaction.d.ts +4 -1
- package/lib/types/interaction.d.ts.map +1 -1
- package/lib/types/json-schema.d.ts +0 -1
- package/lib/types/json.d.ts +0 -1
- package/lib/types/meters.d.ts +0 -1
- package/lib/types/model_utility.d.ts +1 -0
- package/lib/types/model_utility.d.ts.map +1 -0
- package/lib/types/payload.d.ts +2 -4
- package/lib/types/payload.d.ts.map +1 -1
- package/lib/types/plugin.d.ts +0 -1
- package/lib/types/project.d.ts +0 -1
- package/lib/types/prompt.d.ts +0 -1
- package/lib/types/query.d.ts +0 -1
- package/lib/types/refs.d.ts +0 -1
- package/lib/types/runs.d.ts +0 -1
- package/lib/types/store/activity-catalog.d.ts +0 -1
- package/lib/types/store/agent.d.ts +0 -1
- package/lib/types/store/collections.d.ts +0 -1
- package/lib/types/store/common.d.ts +0 -1
- package/lib/types/store/doc-analyzer.d.ts +0 -1
- package/lib/types/store/dsl-workflow.d.ts +0 -1
- package/lib/types/store/index.d.ts +0 -1
- package/lib/types/store/object-types.d.ts +0 -1
- package/lib/types/store/signals.d.ts +0 -1
- package/lib/types/store/store.d.ts +0 -1
- package/lib/types/store/temporalio.d.ts +0 -1
- package/lib/types/store/workflow.d.ts +54 -1
- package/lib/types/store/workflow.d.ts.map +1 -1
- package/lib/types/tenant.d.ts +0 -1
- package/lib/types/training.d.ts +0 -1
- package/lib/types/transient-tokens.d.ts +0 -1
- package/lib/types/user.d.ts +0 -1
- package/lib/types/utils/auth.d.ts +0 -1
- package/lib/types/utils/schemas.d.ts +0 -1
- package/lib/vertesia-common.js +1 -1
- package/lib/vertesia-common.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -1
- package/src/interaction.ts +5 -0
- package/src/model_utility.ts +1 -0
- package/src/payload.ts +2 -4
- package/src/store/workflow.ts +59 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { JSONSchema4 } from "json-schema";
|
|
2
|
+
import { InteractionRef } from "../interaction.js";
|
|
1
3
|
export declare enum ContentEventName {
|
|
2
4
|
create = "create",
|
|
3
5
|
change_type = "change_type",
|
|
@@ -151,6 +153,29 @@ interface WorkflowRunEvent {
|
|
|
151
153
|
scheduledEventId?: string;
|
|
152
154
|
startedEventId?: string;
|
|
153
155
|
};
|
|
156
|
+
childWorkflow?: {
|
|
157
|
+
workflowId?: string;
|
|
158
|
+
workflowType?: string;
|
|
159
|
+
runId?: string;
|
|
160
|
+
scheduledEventId?: string;
|
|
161
|
+
startedEventId?: string;
|
|
162
|
+
input?: any;
|
|
163
|
+
result?: any;
|
|
164
|
+
};
|
|
165
|
+
signal?: {
|
|
166
|
+
direction: "receiving" | "sending";
|
|
167
|
+
signalName?: string;
|
|
168
|
+
input?: any;
|
|
169
|
+
sender?: {
|
|
170
|
+
workflowId?: string;
|
|
171
|
+
runId?: string;
|
|
172
|
+
};
|
|
173
|
+
recipient?: {
|
|
174
|
+
workflowId?: string;
|
|
175
|
+
runId?: string;
|
|
176
|
+
};
|
|
177
|
+
initiatedEventId?: string;
|
|
178
|
+
};
|
|
154
179
|
error?: {
|
|
155
180
|
message?: string;
|
|
156
181
|
source?: string;
|
|
@@ -173,7 +198,9 @@ export interface WorkflowRun {
|
|
|
173
198
|
run_id?: string;
|
|
174
199
|
workflow_id?: string;
|
|
175
200
|
initiated_by?: string;
|
|
201
|
+
input?: any;
|
|
176
202
|
result?: any;
|
|
203
|
+
error?: any;
|
|
177
204
|
raw?: any;
|
|
178
205
|
/**
|
|
179
206
|
* The Vertesia Workflow Type of this Workflow Run.
|
|
@@ -182,16 +209,43 @@ export interface WorkflowRun {
|
|
|
182
209
|
* - For non-DSL workflows, the vertesia_type is the name of the Temporal Workflow Type.
|
|
183
210
|
*/
|
|
184
211
|
vertesia_workflow_type?: string;
|
|
212
|
+
/**
|
|
213
|
+
* An interaction is used to start the agent, the data is stored on temporal "vars"
|
|
214
|
+
*/
|
|
215
|
+
interactions?: InteractionRef[];
|
|
185
216
|
}
|
|
186
217
|
export interface WorkflowRunWithDetails extends WorkflowRun {
|
|
187
218
|
history?: WorkflowRunEvent[];
|
|
188
219
|
memo?: {
|
|
189
220
|
[key: string]: any;
|
|
190
221
|
} | null;
|
|
222
|
+
pendingActivities?: {
|
|
223
|
+
activityId?: string;
|
|
224
|
+
activityType?: string;
|
|
225
|
+
attempt: number;
|
|
226
|
+
maximumAttempts: number;
|
|
227
|
+
lastFailure?: string;
|
|
228
|
+
lastStartedTime?: number;
|
|
229
|
+
}[];
|
|
191
230
|
}
|
|
192
231
|
export interface ListWorkflowRunsResponse {
|
|
193
232
|
runs: WorkflowRun[];
|
|
194
233
|
}
|
|
234
|
+
export interface ListWorkflowInteractionsResponse {
|
|
235
|
+
workflow_id: string;
|
|
236
|
+
run_id: string;
|
|
237
|
+
interaction: WorkflowInteraction;
|
|
238
|
+
}
|
|
239
|
+
export interface WorkflowInteraction {
|
|
240
|
+
type: string;
|
|
241
|
+
model: string;
|
|
242
|
+
tools: [];
|
|
243
|
+
interaction: string;
|
|
244
|
+
environment: string;
|
|
245
|
+
prompt_data: JSONSchema4;
|
|
246
|
+
interactive: boolean;
|
|
247
|
+
interactionParamsSchema?: JSONSchema4;
|
|
248
|
+
}
|
|
195
249
|
export interface MultiDocumentsInteractionParams extends Omit<WorkflowExecutionPayload, "config"> {
|
|
196
250
|
config: {
|
|
197
251
|
interactionName: string;
|
|
@@ -262,4 +316,3 @@ export interface Plan {
|
|
|
262
316
|
comment?: string;
|
|
263
317
|
}
|
|
264
318
|
export {};
|
|
265
|
-
//# sourceMappingURL=workflow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../../src/store/workflow.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IACxB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,gBAAgB,qBAAqB;IACrC,MAAM,WAAW;IACjB,iBAAiB,sBAAsB;IACvC,0BAA0B,+BAA+B;IACzD,WAAW,gBAAgB;CAC9B;AAED,MAAM,WAAW,2BAA2B,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAChE;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;;;OAQG;IACH,IAAI,EAAE,CAAC,CAAC;IAER;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE;QACL,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;KACnC,CAAC;IAEF;;;OA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H,MAAM,WAAW,YAAY;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,oBAAY,gBAAgB;IACxB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,aAAa,kBAAkB;IAC/B,IAAI,SAAS;CAChB;AAED,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,SAAS,CAAC;CAChE;AAED,MAAM,WAAW,IAAI;IACjB,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
package/lib/types/tenant.d.ts
CHANGED
package/lib/types/training.d.ts
CHANGED
package/lib/types/user.d.ts
CHANGED
|
@@ -5,4 +5,3 @@ import { PopulatedPromptSegmentDef, PromptSegmentDef, PromptTemplateRefWithSchem
|
|
|
5
5
|
export declare function mergeJSONSchemas(schemas: JSONSchema[]): JSONSchema | null;
|
|
6
6
|
export declare function _mergePromptsSchema(prompts: PromptSegmentDef<PromptTemplateRefWithSchema>[] | PopulatedPromptSegmentDef[]): JSONSchema4 | null;
|
|
7
7
|
export declare function mergePromptsSchema(interaction: InteractionRefWithSchema | PopulatedInteraction): JSONSchema4 | null;
|
|
8
|
-
//# sourceMappingURL=schemas.d.ts.map
|
package/lib/vertesia-common.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e,t,n,i,r;!function(e){e.int_read="interaction:read",e.int_write="interaction:write",e.int_delete="interaction:delete",e.int_execute="interaction:execute",e.run_read="run:read",e.run_write="run:write",e.env_manage="environment:manage",e.project_manage="project:manage",e.api_key_create="api_key:create",e.api_key_read="api_key:read",e.account_read="account:read",e.account_manage="account:manage",e.manage_billing="account:billing",e.account_member="account:member",e.content_read="content:read",e.content_create="content:create",e.content_update="content:update",e.content_delete="content:delete",e.content_admin="content:admin",e.workflow_run="workflow:run"}(e||(e={})),function(e){e.project="project",e.environment="environment",e.account="account",e.interaction="interaction"}(t||(t={})),function(e){e.public="pk",e.secret="sk"}(n||(n={})),function(e){e.User="user",e.ApiKey="apikey",e.ServiceAccount="service_account"}(i||(i={})),function(e){e.openai="openai",e.azure_openai="azure_openai",e.huggingface_ie="huggingface_ie",e.replicate="replicate",e.bedrock="bedrock",e.vertexai="vertexai",e.togetherai="togetherai",e.mistralai="mistralai",e.groq="groq",e.watsonx="watsonx",e.virtual_lb="virtual_lb",e.virtual_mediator="virtual_mediator",e.test="test"}(r||(r={}));const a={openai:{id:r.openai,name:"OpenAI",requiresApiKey:!0,requiresEndpointUrl:!1,supportSearch:!1},azure_openai:{id:r.azure_openai,name:"Azure OpenAI",requiresApiKey:!1,requiresEndpointUrl:!0,supportSearch:!1},huggingface_ie:{id:r.huggingface_ie,name:"HuggingFace Inference Endpoint",requiresApiKey:!0,requiresEndpointUrl:!0},replicate:{id:r.replicate,name:"Repicate",requiresApiKey:!0,requiresEndpointUrl:!1,supportSearch:!0},bedrock:{id:r.bedrock,name:"AWS Bedrock",requiresApiKey:!1,requiresEndpointUrl:!1,endpointPlaceholder:"region name (eg. us-east-1)",supportSearch:!1},vertexai:{id:r.vertexai,name:"Google Vertex AI",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},togetherai:{id:r.togetherai,name:"Together AI",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},mistralai:{id:r.mistralai,name:"Mistral AI",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},groq:{id:r.groq,name:"Groq Cloud",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},watsonx:{id:r.watsonx,name:"IBM WatsonX",requiresApiKey:!0,requiresEndpointUrl:!0,supportSearch:!1},virtual_lb:{id:r.virtual_lb,name:"Virtual - Load Balancer",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},virtual_mediator:{id:r.virtual_mediator,name:"Virtual - Mediator",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},test:{id:r.test,name:"Test LLM",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1}},o="id name provider enabled_models default_model endpoint_url allowed_projects account created_at updated_at";var s;!function(e){e.gladia="gladia",e.github="github",e.aws="aws",e.magic_pdf="magic_pdf",e.serper="serper"}(s||(s={}));const c="id name endpoint parent description status version visibility tags updated_at prompts",u=`${c} result_schema`;var p,d,l,_;!function(e){e.draft="draft",e.published="published",e.archived="archived"}(p||(p={})),function(e){e.created="created",e.processing="processing",e.completed="completed",e.failed="failed"}(d||(d={})),function(e){e.STANDARD="STANDARD",e.RESTRICTED="RESTRICTED",e.DEBUG="DEBUG"}(l||(l={})),function(e){e.STANDARD="Run data is stored for both the model inputs and output.",e.RESTRICTED="No run data is stored for the model inputs — only the model output.",e.DEBUG="Run data is stored for the model inputs and output, schema, and final prompt."}(_||(_={}));const h={[l.STANDARD]:_.STANDARD,[l.RESTRICTED]:_.RESTRICTED,[l.DEBUG]:_.DEBUG};var m;!function(e){e.api="api",e.cli="cli",e.ui="ui",e.webhook="webhook",e.test="test-data",e.system="system"}(m||(m={}));const E="-result -parameters -result_schema -prompt";var N,g;!function(e){e.RUN_AND_INTERACTION_CONFIG="RUN_AND_INTERACTION_CONFIG",e.RUN_CONFIG_ONLY="RUN_CONFIG_ONLY",e.INTERACTION_CONFIG_ONLY="INTERACTION_CONFIG_ONLY"}(N||(N={})),function(e){e.RUN_AND_INTERACTION_CONFIG="This run configuration is used. Undefined options are filled with interaction configuration.",e.RUN_CONFIG_ONLY="Only this run configuration is used. Undefined options remain undefined.",e.INTERACTION_CONFIG_ONLY="Only interaction configuration is used."}(g||(g={}));const T={[N.RUN_AND_INTERACTION_CONFIG]:g.RUN_AND_INTERACTION_CONFIG,[N.RUN_CONFIG_ONLY]:g.RUN_CONFIG_ONLY,[N.INTERACTION_CONFIG_ONLY]:g.INTERACTION_CONFIG_ONLY};var f,I,O,A;!function(e){e.analyzed_pages="analyzed_pages",e.extracted_tables="extracted_tables",e.analyzed_images="analyzed_images",e.input_token_used="input_token_used",e.output_token_used="output_token_used",e.task_run="task_run"}(f||(f={}));class D{constructor(e,t,n){this.parent=e,this.parentUnits=t,this.spanUnits=n,this.unitsDone=0}done(e){const t=this.spanUnits-this.unitsDone;t&&((!e||e>t)&&(e=t),this.unitsDone+=e,this.parent.done(e*this.parentUnits/this.spanUnits))}get parentUnitsDone(){return Math.round(this.unitsDone*this.parentUnits/this.spanUnits)}get isDone(){return this.unitsDone>=this.spanUnits}}class b{constructor(e){this.total=e,this.unitsDone=0}get fraction(){return this.unitsDone/this.total}get percent(){return Math.round(100*this.fraction)}get isDone(){return this.unitsDone>=this.total}done(e){const t=this.total-this.unitsDone;t&&((!e||e>t)&&(e=t),this.unitsDone+=e)}span(e,t){return new D(this,e,t||e)}}function U(e,t){switch(t){case I.owner:return!0;case I.admin:return e!==I.billing&&e!==I.owner;case I.developer:return e===I.developer;case I.billing:return e===I.billing;default:return!1}}!function(e){e.owner="owner",e.admin="admin",e.project_admin="project_admin",e.developer="developer",e.application="application",e.executor="executor",e.reader="reader",e.billing="billing",e.member="member"}(I||(I={})),function(e){e.public="public",e.account="account",e.project="project"}(O||(O={})),function(e){e.text="text",e.image="image",e.properties="properties"}(A||(A={}));const y="id name account";var R,C,S,v,M;!function(e){e.draft="draft",e.published="published",e.archived="archived"}(R||(R={})),function(e){e.chat="chat",e.template="template"}(C||(C={})),function(e){e.text="text",e.js="js",e.jst="jst"}(S||(S={})),function(e){e.project="Project",e.environment="Environment",e.user="User",e.account="Account",e.interaction="Interaction"}(v||(v={})),function(e){e.active="active",e.archived="archived"}(M||(M={}));const q="id name description tags created_at updated_at",w={type:"object",description:"Represent a rendition of a file stored in an object. It will be stored as a separate object in the database.",properties:{mime_type:{type:"string",description:"The format of the rendition. This is a MIME type."},source_etag:{type:"string",description:"The ETag of the file used for the rendition.",nullable:!0},height:{type:"integer",description:"The height of the rendition",nullable:!0},width:{type:"integer",description:"The width of the rendition",nullable:!0},multipart:{type:"boolean",description:"If the rendition is a multi-part rendition",nullable:!0,default:!1},total_parts:{type:"integer",description:"The total number of parts in the rendition",nullable:!0}},required:["mime_type"]},k={type:"object",description:"Represent a semantic chunk of a document",properties:{source_etag:{type:"string",description:"The ETag of the file used for the rendition.",nullable:!0},part_number:{type:"integer",description:"The part number of the chunk"},title:{type:"string",description:"The title of the chunk",nullable:!0},source_line_start:{type:"integer",description:"The line number where the chunk starts",nullable:!0},source_line_end:{type:"integer",description:"The line number where the chunk ends",nullable:!0},type:{type:"string",description:"The type of the chunk",enum:["text","image","table","chart","diagram","code","other"],nullable:!0},page_number:{type:"integer",description:"The page number of the document part",nullable:!0},description:{type:"string",description:"The description of the document part, if it's an image, the exhaustive description of the image",nullable:!0},height:{type:"integer",description:"The height of the rendition",nullable:!0},width:{type:"integer",description:"The width of the rendition",nullable:!0}},required:["part_number"]};var L,G,x,j;!function(e){e.created="created",e.processing="processing",e.completed="completed",e.failed="failed",e.archived="archived"}(L||(L={})),function(e){e.single="single",e.multiple="multiple",e.none="none"}(G||(G={})),function(e){e.jpeg="jpeg",e.png="png",e.webp="webp"}(x||(x={})),function(e){e.docx="docx",e.pdf="pdf"}(j||(j={}));const P={TERMINATE:"TERMINATE",ABANDON:"ABANDON",REQUEST_CANCEL:"REQUEST_CANCEL",PARENT_CLOSE_POLICY_UNSPECIFIED:void 0,PARENT_CLOSE_POLICY_TERMINATE:"TERMINATE",PARENT_CLOSE_POLICY_ABANDON:"ABANDON",PARENT_CLOSE_POLICY_REQUEST_CANCEL:"REQUEST_CANCEL"};var K,F,B,Y,z;function W(e){return"objectIds"in e?e.objectIds:[]}!function(e){e.create="create",e.change_type="change_type",e.update="update",e.revision_created="revision_created",e.delete="delete",e.workflow_finished="workflow_finished",e.workflow_execution_request="workflow_execution_request",e.api_request="api_request"}(K||(K={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.RUNNING=1]="RUNNING",e[e.COMPLETED=2]="COMPLETED",e[e.FAILED=3]="FAILED",e[e.CANCELED=4]="CANCELED",e[e.TERMINATED=5]="TERMINATED",e[e.CONTINUED_AS_NEW=6]="CONTINUED_AS_NEW",e[e.TIMED_OUT=7]="TIMED_OUT"}(F||(F={})),function(e){e.SYSTEM="system",e.THOUGHT="thought",e.PLAN="plan",e.UPDATE="update",e.COMPLETE="complete",e.WARNING="warning",e.ERROR="error",e.ANSWER="answer",e.QUESTION="question",e.REQUEST_INPUT="request_input",e.IDLE="idle"}(B||(B={})),function(e){e.created="created",e.building="building",e.prepared="prepared",e.processing="processing",e.completed="completed",e.cancelled="cancelled",e.failed="failed"}(Y||(Y={})),function(e){e.userInvite="user-invite",e.migration="migration"}(z||(z={}));const V="id name email picture";var Z,Q;!function(e){e.aws="aws",e.gcp="gcp",e.azure="azure"}(Z||(Z={})),function(e){e.stripe="stripe",e.invoice="invoice"}(Q||(Q={}));const H="id name";function X(e,t){return e.slice(-6)+"_"+t.slice(-6)}function J(e){return X(e.account,e.id)}var $,ee,te,ne,ie,re,ae,oe,se;function ce(e){const t={};let n=[];for(const i of e)if(i.properties){if(i.required)for(const e of i.required)n.includes(e)||n.push(e);Object.assign(t,i.properties)}return Object.keys(t).length>0?{properties:t,required:n,type:"object"}:null}function ue(e){const t={};let n=[];for(const i of e)if(i.template?.inputSchema?.properties){const e=i.template?.inputSchema;if(e.required)for(const t of e.required)n.includes(t)||n.push(t);Object.assign(t,e.properties)}else i.type===C.chat&&(Object.assign(t,{chat:{type:"array",items:{type:"object",properties:{role:{type:"string",enum:[te.assistant,te.user]},content:{type:"string"}},required:["role","content"]}}}),n.push("chat"));return Object.keys(t).length>0?{properties:t,required:n}:null}function pe(e){return e.prompts?ue(e.prompts):null}!function(e){e.max_tokens="max_tokens",e.temperature="temperature",e.top_p="top_p",e.top_k="top_k",e.presence_penalty="presence_penalty",e.frequency_penalty="frequency_penalty",e.stop_sequence="stop_sequence",e.seed="seed",e.number_of_images="number_of_images"}($||($={})),function(e){e.numeric="numeric",e.enum="enum",e.boolean="boolean",e.string_list="string_list"}(ee||(ee={})),function(e){e.safety="safety",e.system="system",e.user="user",e.assistant="assistant",e.negative="negative",e.mask="mask",e.tool="tool"}(te||(te={})),function(e){e.text="text",e.image="image"}(ne||(ne={})),function(e){e.Available="available",e.Pending="pending",e.Stopped="stopped",e.Unavailable="unavailable",e.Unknown="unknown",e.Legacy="legacy"}(ie||(ie={})),function(e){e.Classifier="classifier",e.Regressor="regressor",e.Clustering="clustering",e.AnomalyDetection="anomaly-detection",e.TimeSeries="time-series",e.Text="text",e.Image="image",e.Audio="audio",e.Video="video",e.Embedding="embedding",e.Chat="chat",e.Code="code",e.NLP="nlp",e.MultiModal="multi-modal",e.Test="test",e.Other="other",e.Unknown="unknown"}(re||(re={})),function(e){e.running="running",e.succeeded="succeeded",e.failed="failed",e.cancelled="cancelled"}(ae||(ae={})),$.max_tokens,ee.numeric,$.temperature,ee.numeric,$.top_p,ee.numeric,$.top_k,ee.numeric,$.presence_penalty,ee.numeric,$.frequency_penalty,ee.numeric,$.stop_sequence,ee.string_list,function(e){e.TEXT_IMAGE="TEXT_IMAGE",e.EDIT_MODE_INPAINT_REMOVAL="EDIT_MODE_INPAINT_REMOVAL",e.EDIT_MODE_INPAINT_INSERTION="EDIT_MODE_INPAINT_INSERTION",e.EDIT_MODE_BGSWAP="EDIT_MODE_BGSWAP",e.EDIT_MODE_OUTPAINT="EDIT_MODE_OUTPAINT",e.CUSTOMIZATION_SUBJECT="CUSTOMIZATION_SUBJECT",e.CUSTOMIZATION_STYLE="CUSTOMIZATION_STYLE",e.CUSTOMIZATION_CONTROLLED="CUSTOMIZATION_CONTROLLED",e.CUSTOMIZATION_INSTRUCT="CUSTOMIZATION_INSTRUCT"}(oe||(oe={})),function(e){e.MASK_MODE_USER_PROVIDED="MASK_MODE_USER_PROVIDED",e.MASK_MODE_BACKGROUND="MASK_MODE_BACKGROUND",e.MASK_MODE_FOREGROUND="MASK_MODE_FOREGROUND",e.MASK_MODE_SEMANTIC="MASK_MODE_SEMANTIC"}(se||(se={}));export{t as AccessControlledResource,H as AccountRefPopulate,B as AgentMessageType,n as ApiKeyTypes,Q as BillingMethod,M as CollectionStatus,N as ConfigModes,g as ConfigModesDescription,T as ConfigModesOptions,K as ContentEventName,L as ContentObjectStatus,Z as Datacenters,k as DocumentPartSchema,o as ExecutionEnvironmentRefPopulate,E as ExecutionRunRefSelect,d as ExecutionRunStatus,x as ImageRenditionFormat,c as InteractionRefPopulate,u as InteractionRefWithSchemaPopulate,p as InteractionStatus,j as MarkdownRenditionFormat,f as MeterNames,P as ParentClosePolicy,e as Permission,i as PrincipalType,b as Progress,y as ProjectRefPopulate,I as ProjectRoles,C as PromptSegmentDefType,R as PromptStatus,w as RenditionSchema,v as ResolvableRefType,O as ResourceVisibility,_ as RunDataStorageDescription,l as RunDataStorageLevel,h as RunDataStorageOptions,m as RunSourceTypes,A as SupportedEmbeddingTypes,s as SupportedIntegrations,r as SupportedProviders,a as SupportedProvidersList,S as TemplateType,Y as TrainingSessionStatus,z as TransientTokenType,V as UserRefPopulate,q as WorkflowDefinitionRefPopulate,F as WorkflowExecutionStatus,G as WorkflowRuleInputType,ue as _mergePromptsSchema,W as getDocumentIds,X as getTenantId,J as getTenantIdFromProject,U as isRoleIncludedIn,ce as mergeJSONSchemas,pe as mergePromptsSchema};
|
|
1
|
+
var e,t,o,i,u;!function(e){e.int_read="interaction:read",e.int_write="interaction:write",e.int_delete="interaction:delete",e.int_execute="interaction:execute",e.run_read="run:read",e.run_write="run:write",e.env_manage="environment:manage",e.project_manage="project:manage",e.api_key_create="api_key:create",e.api_key_read="api_key:read",e.account_read="account:read",e.account_manage="account:manage",e.manage_billing="account:billing",e.account_member="account:member",e.content_read="content:read",e.content_create="content:create",e.content_update="content:update",e.content_delete="content:delete",e.content_admin="content:admin",e.workflow_run="workflow:run"}(e||(e={})),function(e){e.project="project",e.environment="environment",e.account="account",e.interaction="interaction"}(t||(t={})),function(e){e.public="pk",e.secret="sk"}(o||(o={})),function(e){e.User="user",e.ApiKey="apikey",e.ServiceAccount="service_account"}(i||(i={})),function(e){e.openai="openai",e.azure_openai="azure_openai",e.huggingface_ie="huggingface_ie",e.replicate="replicate",e.bedrock="bedrock",e.vertexai="vertexai",e.togetherai="togetherai",e.mistralai="mistralai",e.groq="groq",e.watsonx="watsonx",e.virtual_lb="virtual_lb",e.virtual_mediator="virtual_mediator",e.test="test"}(u||(u={}));const a={openai:{id:u.openai,name:"OpenAI",requiresApiKey:!0,requiresEndpointUrl:!1,supportSearch:!1},azure_openai:{id:u.azure_openai,name:"Azure OpenAI",requiresApiKey:!1,requiresEndpointUrl:!0,supportSearch:!1},huggingface_ie:{id:u.huggingface_ie,name:"HuggingFace Inference Endpoint",requiresApiKey:!0,requiresEndpointUrl:!0},replicate:{id:u.replicate,name:"Repicate",requiresApiKey:!0,requiresEndpointUrl:!1,supportSearch:!0},bedrock:{id:u.bedrock,name:"AWS Bedrock",requiresApiKey:!1,requiresEndpointUrl:!1,endpointPlaceholder:"region name (eg. us-east-1)",supportSearch:!1},vertexai:{id:u.vertexai,name:"Google Vertex AI",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},togetherai:{id:u.togetherai,name:"Together AI",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},mistralai:{id:u.mistralai,name:"Mistral AI",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},groq:{id:u.groq,name:"Groq Cloud",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},watsonx:{id:u.watsonx,name:"IBM WatsonX",requiresApiKey:!0,requiresEndpointUrl:!0,supportSearch:!1},virtual_lb:{id:u.virtual_lb,name:"Virtual - Load Balancer",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},virtual_mediator:{id:u.virtual_mediator,name:"Virtual - Mediator",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},test:{id:u.test,name:"Test LLM",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1}},d="id name provider enabled_models default_model endpoint_url allowed_projects account created_at updated_at";var n;!function(e){e.gladia="gladia",e.github="github",e.aws="aws",e.magic_pdf="magic_pdf",e.serper="serper"}(n||(n={}));const p="id name endpoint parent description status version visibility tags updated_at prompts",r=`${p} result_schema`;var m,s,l,g;!function(e){e.draft="draft",e.published="published",e.archived="archived"}(m||(m={})),function(e){e.created="created",e.processing="processing",e.completed="completed",e.failed="failed"}(s||(s={})),function(e){e.STANDARD="STANDARD",e.RESTRICTED="RESTRICTED",e.DEBUG="DEBUG"}(l||(l={})),function(e){e.STANDARD="Run data is stored for both the model inputs and output.",e.RESTRICTED="No run data is stored for the model inputs — only the model output.",e.DEBUG="Run data is stored for the model inputs and output, schema, and final prompt."}(g||(g={}));const _={[l.STANDARD]:g.STANDARD,[l.RESTRICTED]:g.RESTRICTED,[l.DEBUG]:g.DEBUG};var c;!function(e){e.api="api",e.cli="cli",e.ui="ui",e.webhook="webhook",e.test="test-data",e.system="system"}(c||(c={}));const v="-result -parameters -result_schema -prompt";var b,x;!function(e){e.RUN_AND_INTERACTION_CONFIG="RUN_AND_INTERACTION_CONFIG",e.RUN_CONFIG_ONLY="RUN_CONFIG_ONLY",e.INTERACTION_CONFIG_ONLY="INTERACTION_CONFIG_ONLY"}(b||(b={})),function(e){e.RUN_AND_INTERACTION_CONFIG="This run configuration is used. Undefined options are filled with interaction configuration.",e.RUN_CONFIG_ONLY="Only this run configuration is used. Undefined options remain undefined.",e.INTERACTION_CONFIG_ONLY="Only interaction configuration is used."}(x||(x={}));const f={[b.RUN_AND_INTERACTION_CONFIG]:x.RUN_AND_INTERACTION_CONFIG,[b.RUN_CONFIG_ONLY]:x.RUN_CONFIG_ONLY,[b.INTERACTION_CONFIG_ONLY]:x.INTERACTION_CONFIG_ONLY};var h,E,N,T;!function(e){e.analyzed_pages="analyzed_pages",e.extracted_tables="extracted_tables",e.analyzed_images="analyzed_images",e.input_token_used="input_token_used",e.output_token_used="output_token_used",e.task_run="task_run"}(h||(h={}));class I{constructor(e,t,o){this.parent=e,this.parentUnits=t,this.spanUnits=o,this.unitsDone=0}done(e){const t=this.spanUnits-this.unitsDone;t&&((!e||e>t)&&(e=t),this.unitsDone+=e,this.parent.done(e*this.parentUnits/this.spanUnits))}get parentUnitsDone(){return Math.round(this.unitsDone*this.parentUnits/this.spanUnits)}get isDone(){return this.unitsDone>=this.spanUnits}}class O{constructor(e){this.total=e,this.unitsDone=0}get fraction(){return this.unitsDone/this.total}get percent(){return Math.round(100*this.fraction)}get isDone(){return this.unitsDone>=this.total}done(e){const t=this.total-this.unitsDone;t&&((!e||e>t)&&(e=t),this.unitsDone+=e)}span(e,t){return new I(this,e,t||e)}}function A(e,t){switch(t){case E.owner:return!0;case E.admin:return e!==E.billing&&e!==E.owner;case E.developer:return e===E.developer;case E.billing:return e===E.billing;default:return!1}}!function(e){e.owner="owner",e.admin="admin",e.project_admin="project_admin",e.developer="developer",e.application="application",e.executor="executor",e.reader="reader",e.billing="billing",e.member="member"}(E||(E={})),function(e){e.public="public",e.account="account",e.project="project"}(N||(N={})),function(e){e.text="text",e.image="image",e.properties="properties"}(T||(T={}));const D="id name account";var y,C,U,R,S;!function(e){e.draft="draft",e.published="published",e.archived="archived"}(y||(y={})),function(e){e.chat="chat",e.template="template"}(C||(C={})),function(e){e.text="text",e.js="js",e.jst="jst"}(U||(U={})),function(e){e.project="Project",e.environment="Environment",e.user="User",e.account="Account",e.interaction="Interaction"}(R||(R={})),function(e){e.active="active",e.archived="archived"}(S||(S={}));const w="id name description tags created_at updated_at",k={type:"object",description:"Represent a rendition of a file stored in an object. It will be stored as a separate object in the database.",properties:{mime_type:{type:"string",description:"The format of the rendition. This is a MIME type."},source_etag:{type:"string",description:"The ETag of the file used for the rendition.",nullable:!0},height:{type:"integer",description:"The height of the rendition",nullable:!0},width:{type:"integer",description:"The width of the rendition",nullable:!0},multipart:{type:"boolean",description:"If the rendition is a multi-part rendition",nullable:!0,default:!1},total_parts:{type:"integer",description:"The total number of parts in the rendition",nullable:!0}},required:["mime_type"]},M={type:"object",description:"Represent a semantic chunk of a document",properties:{source_etag:{type:"string",description:"The ETag of the file used for the rendition.",nullable:!0},part_number:{type:"integer",description:"The part number of the chunk"},title:{type:"string",description:"The title of the chunk",nullable:!0},source_line_start:{type:"integer",description:"The line number where the chunk starts",nullable:!0},source_line_end:{type:"integer",description:"The line number where the chunk ends",nullable:!0},type:{type:"string",description:"The type of the chunk",enum:["text","image","table","chart","diagram","code","other"],nullable:!0},page_number:{type:"integer",description:"The page number of the document part",nullable:!0},description:{type:"string",description:"The description of the document part, if it's an image, the exhaustive description of the image",nullable:!0},height:{type:"integer",description:"The height of the rendition",nullable:!0},width:{type:"integer",description:"The width of the rendition",nullable:!0}},required:["part_number"]};var q,L,j,G;!function(e){e.created="created",e.processing="processing",e.completed="completed",e.failed="failed",e.archived="archived"}(q||(q={})),function(e){e.single="single",e.multiple="multiple",e.none="none"}(L||(L={})),function(e){e.jpeg="jpeg",e.png="png",e.webp="webp"}(j||(j={})),function(e){e.docx="docx",e.pdf="pdf"}(G||(G={}));const P={TERMINATE:"TERMINATE",ABANDON:"ABANDON",REQUEST_CANCEL:"REQUEST_CANCEL",PARENT_CLOSE_POLICY_UNSPECIFIED:void 0,PARENT_CLOSE_POLICY_TERMINATE:"TERMINATE",PARENT_CLOSE_POLICY_ABANDON:"ABANDON",PARENT_CLOSE_POLICY_REQUEST_CANCEL:"REQUEST_CANCEL"};var K,z,F,B,W;function Y(e){return"objectIds"in e?e.objectIds:[]}!function(e){e.create="create",e.change_type="change_type",e.update="update",e.revision_created="revision_created",e.delete="delete",e.workflow_finished="workflow_finished",e.workflow_execution_request="workflow_execution_request",e.api_request="api_request"}(K||(K={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.RUNNING=1]="RUNNING",e[e.COMPLETED=2]="COMPLETED",e[e.FAILED=3]="FAILED",e[e.CANCELED=4]="CANCELED",e[e.TERMINATED=5]="TERMINATED",e[e.CONTINUED_AS_NEW=6]="CONTINUED_AS_NEW",e[e.TIMED_OUT=7]="TIMED_OUT"}(z||(z={})),function(e){e.SYSTEM="system",e.THOUGHT="thought",e.PLAN="plan",e.UPDATE="update",e.COMPLETE="complete",e.WARNING="warning",e.ERROR="error",e.ANSWER="answer",e.QUESTION="question",e.REQUEST_INPUT="request_input",e.IDLE="idle"}(F||(F={})),function(e){e.created="created",e.building="building",e.prepared="prepared",e.processing="processing",e.completed="completed",e.cancelled="cancelled",e.failed="failed"}(B||(B={})),function(e){e.userInvite="user-invite",e.migration="migration"}(W||(W={}));const V="id name email picture";var Z,Q;!function(e){e.aws="aws",e.gcp="gcp",e.azure="azure"}(Z||(Z={})),function(e){e.stripe="stripe",e.invoice="invoice"}(Q||(Q={}));const H="id name";function X(e,t){return e.slice(-6)+"_"+t.slice(-6)}function J(e){return X(e.account,e.id)}var $,ee,te,oe,ie,ue,ae;!function(e){e.max_tokens="max_tokens",e.temperature="temperature",e.top_p="top_p",e.top_k="top_k",e.presence_penalty="presence_penalty",e.frequency_penalty="frequency_penalty",e.stop_sequence="stop_sequence",e.seed="seed",e.number_of_images="number_of_images"}($||($={})),function(e){e.numeric="numeric",e.enum="enum",e.boolean="boolean",e.string_list="string_list"}(ee||(ee={})),function(e){e.safety="safety",e.system="system",e.user="user",e.assistant="assistant",e.negative="negative",e.mask="mask",e.tool="tool"}(te||(te={})),function(e){e.text="text",e.image="image"}(oe||(oe={})),function(e){e.Available="available",e.Pending="pending",e.Stopped="stopped",e.Unavailable="unavailable",e.Unknown="unknown",e.Legacy="legacy"}(ie||(ie={})),function(e){e.Classifier="classifier",e.Regressor="regressor",e.Clustering="clustering",e.AnomalyDetection="anomaly-detection",e.TimeSeries="time-series",e.Text="text",e.Image="image",e.Audio="audio",e.Video="video",e.Embedding="embedding",e.Chat="chat",e.Code="code",e.NLP="nlp",e.MultiModal="multi-modal",e.Test="test",e.Other="other",e.Unknown="unknown"}(ue||(ue={})),function(e){e.running="running",e.succeeded="succeeded",e.failed="failed",e.cancelled="cancelled"}(ae||(ae={}));const de={"foundation-model/ai21.jamba-1-5-large-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"foundation-model/ai21.jamba-1-5-mini-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"foundation-model/ai21.jamba-instruct-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"foundation-model/amazon.nova-canvas-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{image:!0,text:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"foundation-model/amazon.nova-lite-v1:0":{input:{text:!0,image:!0,video:!0,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"foundation-model/amazon.nova-micro-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"foundation-model/amazon.nova-pro-v1:0":{input:{text:!0,image:!0,video:!0,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"foundation-model/amazon.titan-text-express-v1":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"foundation-model/amazon.titan-text-lite-v1":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"foundation-model/amazon.titan-text-premier-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"foundation-model/amazon.titan-tg1-large":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"foundation-model/anthropic.claude-3-5-haiku-20241022-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"foundation-model/anthropic.claude-3-5-sonnet-20240620-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"foundation-model/anthropic.claude-3-5-sonnet-20241022-v2:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"foundation-model/anthropic.claude-3-haiku-20240307-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"foundation-model/anthropic.claude-3-opus-20240229-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"foundation-model/anthropic.claude-3-sonnet-20240229-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"foundation-model/anthropic.claude-instant-v1":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"foundation-model/anthropic.claude-v2":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"foundation-model/anthropic.claude-v2:1":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"foundation-model/cohere.command-light-text-v14":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"foundation-model/cohere.command-r-plus-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"foundation-model/cohere.command-r-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"foundation-model/cohere.command-text-v14":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"foundation-model/meta.llama3-1-405b-instruct-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"foundation-model/meta.llama3-1-70b-instruct-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"foundation-model/meta.llama3-1-8b-instruct-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"foundation-model/meta.llama3-70b-instruct-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"foundation-model/meta.llama3-8b-instruct-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"foundation-model/mistral.mixtral-8x7b-instruct-v0:1":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"foundation-model/mistral.mistral-7b-instruct-v0:2":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"foundation-model/mistral.mistral-large-2402-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"foundation-model/mistral.mistral-large-2407-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"foundation-model/mistral.mistral-small-2402-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"inference-profile/us.amazon.nova-lite-v1:0":{input:{text:!0,image:!0,video:!0,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"inference-profile/us.amazon.nova-micro-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"inference-profile/us.amazon.nova-premier-v1:0":{input:{text:!0,image:!0,video:!0,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"inference-profile/us.amazon.nova-pro-v1:0":{input:{text:!0,image:!0,video:!0,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"inference-profile/us.anthropic.claude-3-5-haiku-20241022-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"inference-profile/us.anthropic.claude-3-5-sonnet-20240620-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"inference-profile/us.anthropic.claude-3-5-sonnet-20241022-v2:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"inference-profile/us.anthropic.claude-3-7-sonnet-20250219-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"inference-profile/us.anthropic.claude-3-haiku-20240307-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"inference-profile/us.anthropic.claude-3-opus-20240229-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"inference-profile/us.anthropic.claude-3-sonnet-20240229-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"inference-profile/us.anthropic.claude-opus-4-20250514-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"inference-profile/us.anthropic.claude-sonnet-4-20250514-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"inference-profile/us.deepseek.r1-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"inference-profile/us.meta.llama3-1-70b-instruct-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"inference-profile/us.meta.llama3-1-8b-instruct-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"inference-profile/us.meta.llama3-2-1b-instruct-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"inference-profile/us.meta.llama3-2-11b-instruct-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"inference-profile/us.meta.llama3-2-3b-instruct-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"inference-profile/us.meta.llama3-2-90b-instruct-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"inference-profile/us.meta.llama3-3-70b-instruct-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"inference-profile/us.meta.llama4-maverick-17b-instruct-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"inference-profile/us.meta.llama4-scout-17b-instruct-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"inference-profile/us.mistral.pixtral-large-2502-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"inference-profile/us.writer.palmyra-x4-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"inference-profile/us.writer.palmyra-x5-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1}},ne={"foundation-model/ai21.jamba":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"foundation-model/amazon.nova":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!1,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"foundation-model/amazon.titan":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"foundation-model/anthropic.claude":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"foundation-model/anthropic.claude-3":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"foundation-model/anthropic.claude-3-5":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"foundation-model/anthropic.claude-3-7":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"foundation-model/cohere.command":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"foundation-model/meta.llama3":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"foundation-model/mistral.mistral":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"foundation-model/mistral.mistral-large":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"foundation-model/mistral.mixtral":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"inference-profile/us.anthropic.claude-3-haiku":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"inference-profile/us.anthropic.claude-3-5-sonnet":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"inference-profile/us.anthropic.claude-3-opus":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"inference-profile/us.anthropic.claude-3-sonnet":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"inference-profile/us.anthropic.claude":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"inference-profile/us.deepseek.r1":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"inference-profile/us.meta.llama3":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"inference-profile/us.meta.llama4-maverick-17b":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"inference-profile/us.meta.llama4-scout-17b":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"inference-profile/us.mistral.pixtral":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"inference-profile/us.writer.palmyra":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1}};const pe=["image"],re=["video"],me=["audio"],se=["text"],le=["image"],ge=["video"],_e=["audio"],ce=["text"],ve=["embed"],be=["tool","sonnet","opus","nova","palmyra","command-r","mistral-large","pixtral"];function xe(e,t){return t.some((t=>e.includes(t)))}function fe(e){let t=e;if(/^arn:aws:bedrock:[^:]+:[^:]*:(inference-profile|foundation-model)\/.+/i.test(e)){const o=e.lastIndexOf("foundation-model/"),i=e.lastIndexOf("inference-profile/");-1!==o?t=e.substring(o):-1!==i&&(t=e.substring(i))}t.startsWith("inference-profile/")&&(t=t.replace(/^inference-profile\/[^.]+\./,"inference-profile/us."));const o=de[t];if(o)return o;let i,u=0;for(const e of Object.keys(ne))t.startsWith(e)&&e.length>u&&(i=e,u=e.length);if(i)return ne[i];t=function(e){const t=e.toLowerCase();if(t.includes("inference-profile")){const e=t.split("/");if(e.length>1){const t=e[e.length-1],o=t.split(".");return o.length>1&&"deepseek"===o[1]?`deepseek-${o.slice(2).join(".")}`:o.length>2?o.slice(2).join("."):t}}return t}(t);return{input:{text:xe(t,se)||void 0,image:xe(t,pe)||void 0,video:xe(t,re)||void 0,audio:xe(t,me)||void 0,embed:!1},output:{text:xe(t,ce)||void 0,image:xe(t,le)||void 0,video:xe(t,ge)||void 0,audio:xe(t,_e)||void 0,embed:xe(t,ve)||void 0},tool_support:xe(t,be)||void 0}}const he={"chatgpt-4o-latest":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"gpt-3.5-turbo":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"gpt-3.5-turbo-0125":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"gpt-3.5-turbo-1106":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"gpt-3.5-turbo-16k":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"gpt-3.5-turbo-instruct":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"gpt-3.5-turbo-instruct-0914":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"gpt-4":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"gpt-4-0125-preview":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"gpt-4-0613":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"gpt-4-1106-preview":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"gpt-4-turbo":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"gpt-4-turbo-2024-04-09":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"gpt-4-turbo-preview":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"gpt-4.1":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4.1-2025-04-14":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4.1-mini":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4.1-mini-2025-04-14":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4.1-nano":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4.1-nano-2025-04-14":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4.5-preview":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4.5-preview-2025-02-27":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4o":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4o-2024-05-13":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4o-2024-08-06":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4o-2024-11-20":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4o-mini":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4o-mini-2024-07-18":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4o-mini-search-preview":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4o-mini-search-preview-2025-03-11":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4o-search-preview":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4o-search-preview-2025-03-11":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-image-1":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!1,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},o1:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"o1-2024-12-17":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"o1-mini":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"o1-mini-2024-09-12":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"o1-preview":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"o1-preview-2024-09-12":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"o1-pro":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"o1-pro-2025-03-19":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},o3:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"o3-2025-04-16":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"o3-mini":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"o3-mini-2025-01-31":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"o4-mini":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"o4-mini-2025-04-16":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0}},Ee={"gpt-3.5-turbo":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"gpt-4":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"gpt-4.1":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4.5":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4o":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},o1:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"o1-mini":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"o1-pro":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},o3:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"o3-mini":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"o4-mini":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0}},Ne=["image"],Te=["video"],Ie=["audio"],Oe=["text"],Ae=["image"],De=["video"],ye=["audio"],Ce=["text"],Ue=["embed"],Re=["tool","o1","o3","o4","gpt-4.1","gpt-4o"];function Se(e,t){return t.some((t=>e.includes(t)))}function we(e){const t=e.toLowerCase();const o=he[t];if(o)return o;let i,u=0;for(const e of Object.keys(Ee))t.startsWith(e)&&e.length>u&&(i=e,u=e.length);if(i)return Ee[i];return{input:{text:Se(t,Oe)||void 0,image:Se(t,Ne)||void 0,video:Se(t,Te)||void 0,audio:Se(t,Ie)||void 0,embed:!1},output:{text:Se(t,Ce)||void 0,image:Se(t,Ae)||void 0,video:Se(t,De)||void 0,audio:Se(t,ye)||void 0,embed:Se(t,Ue)||void 0},tool_support:Se(t,Re)||void 0}}const ke={"imagen-3.0-generate-002":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!1,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"imagen-3.0-capability-001":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!1,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"gemini-1.5-flash-002":{input:{text:!0,image:!0,video:!0,audio:!0,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gemini-1.5-pro-002":{input:{text:!0,image:!0,video:!0,audio:!0,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gemini-2.0-flash-001":{input:{text:!0,image:!0,video:!0,audio:!0,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gemini-2.0-flash-lite-001":{input:{text:!0,image:!0,video:!0,audio:!0,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"gemini-2.5-flash-preview-04-17":{input:{text:!0,image:!0,video:!0,audio:!0,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gemini-2.5-pro-preview-05-06":{input:{text:!0,image:!0,video:!0,audio:!0,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"claude-3-opus":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"claude-3-haiku":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"claude-3-5-sonnet":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"claude-3-5-haiku":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"claude-3-5-sonnet-v2":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"claude-3-7-sonnet":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"claude-opus-4":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"claude-sonnet-4":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0}},Me={"gemini-1.5":{input:{text:!0,image:!0,video:!0,audio:!0,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gemini-2.0":{input:{text:!0,image:!0,video:!0,audio:!0,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gemini-2.5":{input:{text:!0,image:!0,video:!0,audio:!0,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"imagen-3.0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!1,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"claude-3-5":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"claude-3-7":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"claude-3":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},claude:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},llama:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1}},qe=["image"],Le=["video"],je=["audio"],Ge=["text"],Pe=["image"],Ke=["video"],ze=["audio"],Fe=["text"],Be=["embed"],We=["tool","sonnet","opus","gemini","claude-3-5","claude-3-7"];function Ye(e,t){return t.some((t=>e.includes(t)))}function Ve(e){const t=function(e){const t=e.toLowerCase().split("/");return t[t.length-1]}(e),o=ke[t];if(o)return o;let i,u=0;for(const e of Object.keys(Me))t.startsWith(e)&&e.length>u&&(i=e,u=e.length);if(i)return Me[i];return{input:{text:Ye(t,Ge)||void 0,image:Ye(t,qe)||void 0,video:Ye(t,Le)||void 0,audio:Ye(t,je)||void 0,embed:!1},output:{text:Ye(t,Fe)||void 0,image:Ye(t,Pe)||void 0,video:Ye(t,Ke)||void 0,audio:Ye(t,ze)||void 0,embed:Ye(t,Be)||void 0},tool_support:Ye(t,We)||void 0}}function Ze(e,t){const o=function(e,t){switch(t?.toLowerCase()){case"vertexai":return Ve(e);case"openai":return we(e);case"bedrock":return fe(e);default:return e.startsWith("gpt")?we(e):e.startsWith("publishers/")?Ve(e):e.startsWith("arn:aws")?fe(e):{input:{},output:{}}}}(e,t);return o.input.audio=!1,o.output.audio=!1,o.output.video=!1,o.tool_support_streaming=!1,o}function Qe(e,t,o=!1){const i=Ze(e,t);return o?!!i.tool_support_streaming:!!i.tool_support}var He,Xe;function Je(e){const t={};let o=[];for(const i of e)if(i.properties){if(i.required)for(const e of i.required)o.includes(e)||o.push(e);Object.assign(t,i.properties)}return Object.keys(t).length>0?{properties:t,required:o,type:"object"}:null}function $e(e){const t={};let o=[];for(const i of e)if(i.template?.inputSchema?.properties){const e=i.template?.inputSchema;if(e.required)for(const t of e.required)o.includes(t)||o.push(t);Object.assign(t,e.properties)}else i.type===C.chat&&(Object.assign(t,{chat:{type:"array",items:{type:"object",properties:{role:{type:"string",enum:[te.assistant,te.user]},content:{type:"string"}},required:["role","content"]}}}),o.push("chat"));return Object.keys(t).length>0?{properties:t,required:o}:null}function et(e){return e.prompts?$e(e.prompts):null}$.max_tokens,ee.numeric,$.temperature,ee.numeric,$.top_p,ee.numeric,$.top_k,ee.numeric,$.presence_penalty,ee.numeric,$.frequency_penalty,ee.numeric,$.stop_sequence,ee.string_list,function(e){e.TEXT_IMAGE="TEXT_IMAGE",e.EDIT_MODE_INPAINT_REMOVAL="EDIT_MODE_INPAINT_REMOVAL",e.EDIT_MODE_INPAINT_INSERTION="EDIT_MODE_INPAINT_INSERTION",e.EDIT_MODE_BGSWAP="EDIT_MODE_BGSWAP",e.EDIT_MODE_OUTPAINT="EDIT_MODE_OUTPAINT",e.CUSTOMIZATION_SUBJECT="CUSTOMIZATION_SUBJECT",e.CUSTOMIZATION_STYLE="CUSTOMIZATION_STYLE",e.CUSTOMIZATION_CONTROLLED="CUSTOMIZATION_CONTROLLED",e.CUSTOMIZATION_INSTRUCT="CUSTOMIZATION_INSTRUCT"}(He||(He={})),function(e){e.MASK_MODE_USER_PROVIDED="MASK_MODE_USER_PROVIDED",e.MASK_MODE_BACKGROUND="MASK_MODE_BACKGROUND",e.MASK_MODE_FOREGROUND="MASK_MODE_FOREGROUND",e.MASK_MODE_SEMANTIC="MASK_MODE_SEMANTIC"}(Xe||(Xe={}));export{t as AccessControlledResource,H as AccountRefPopulate,F as AgentMessageType,o as ApiKeyTypes,Q as BillingMethod,S as CollectionStatus,b as ConfigModes,x as ConfigModesDescription,f as ConfigModesOptions,K as ContentEventName,q as ContentObjectStatus,Z as Datacenters,M as DocumentPartSchema,d as ExecutionEnvironmentRefPopulate,v as ExecutionRunRefSelect,s as ExecutionRunStatus,j as ImageRenditionFormat,p as InteractionRefPopulate,r as InteractionRefWithSchemaPopulate,m as InteractionStatus,G as MarkdownRenditionFormat,h as MeterNames,P as ParentClosePolicy,e as Permission,i as PrincipalType,O as Progress,D as ProjectRefPopulate,E as ProjectRoles,C as PromptSegmentDefType,y as PromptStatus,k as RenditionSchema,R as ResolvableRefType,N as ResourceVisibility,g as RunDataStorageDescription,l as RunDataStorageLevel,_ as RunDataStorageOptions,c as RunSourceTypes,T as SupportedEmbeddingTypes,n as SupportedIntegrations,u as SupportedProviders,a as SupportedProvidersList,U as TemplateType,B as TrainingSessionStatus,W as TransientTokenType,V as UserRefPopulate,w as WorkflowDefinitionRefPopulate,z as WorkflowExecutionStatus,L as WorkflowRuleInputType,$e as _mergePromptsSchema,Y as getDocumentIds,X as getTenantId,J as getTenantIdFromProject,A as isRoleIncludedIn,Je as mergeJSONSchemas,et as mergePromptsSchema,Qe as supportsToolUse};
|
|
2
2
|
//# sourceMappingURL=vertesia-common.js.map
|