From 6750ae5f888b9f1ec04bf715c5c479828f36013e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2024 14:05:23 +0000 Subject: [PATCH 1/5] chore: rebuild project due to codegen change (#130) --- README.md | 2 +- tests/api-resources/sessions.test.ts | 116 +------------------- tests/api-resources/tasks.test.ts | 156 +-------------------------- 3 files changed, 8 insertions(+), 266 deletions(-) diff --git a/README.md b/README.md index 50cb601..94177a9 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ const client = new Julep({ async function main() { const resourceCreated = await client.tasks.create('dad00000-0000-4000-a000-000000000000', { - main: [{ evaluate: { foo: ['string', 'string', 'string'] } }], + main: [{ evaluate: { foo: ['string'] } }], name: 'name', }); diff --git a/tests/api-resources/sessions.test.ts b/tests/api-resources/sessions.test.ts index 465ce95..2cf176e 100644 --- a/tests/api-resources/sessions.test.ts +++ b/tests/api-resources/sessions.test.ts @@ -104,7 +104,7 @@ describe('resource sessions', () => { function: { name: 'name', arguments: 'arguments' }, api_call: {}, bash_20241022: { command: 'command', restart: true }, - computer_20241022: { action: 'key', coordinate: [0, 0, 0], text: 'text' }, + computer_20241022: { action: 'key', coordinate: [0], text: 'text' }, integration: {}, system: {}, text_editor_20241022: { @@ -114,43 +114,7 @@ describe('resource sessions', () => { insert_line: 0, new_str: 'new_str', old_str: 'old_str', - view_range: [0, 0, 0], - }, - type: 'function', - }, - { - function: { name: 'name', arguments: 'arguments' }, - api_call: {}, - bash_20241022: { command: 'command', restart: true }, - computer_20241022: { action: 'key', coordinate: [0, 0, 0], text: 'text' }, - integration: {}, - system: {}, - text_editor_20241022: { - command: 'str_replace', - path: 'path', - file_text: 'file_text', - insert_line: 0, - new_str: 'new_str', - old_str: 'old_str', - view_range: [0, 0, 0], - }, - type: 'function', - }, - { - function: { name: 'name', arguments: 'arguments' }, - api_call: {}, - bash_20241022: { command: 'command', restart: true }, - computer_20241022: { action: 'key', coordinate: [0, 0, 0], text: 'text' }, - integration: {}, - system: {}, - text_editor_20241022: { - command: 'str_replace', - path: 'path', - file_text: 'file_text', - insert_line: 0, - new_str: 'new_str', - old_str: 'old_str', - view_range: [0, 0, 0], + view_range: [0], }, type: 'function', }, @@ -170,7 +134,7 @@ describe('resource sessions', () => { response_format: { type: 'text' }, save: true, seed: -1, - stop: ['string', 'string', 'string'], + stop: ['string'], stream: true, temperature: 0, tool_choice: 'auto', @@ -212,80 +176,6 @@ describe('resource sessions', () => { }, text_editor_20241022: { name: 'name', type: 'text_editor_20241022' }, }, - { - name: 'name', - type: 'function', - api_call: { - method: 'GET', - url: 'https://example.com', - content: 'content', - cookies: { foo: 'string' }, - data: {}, - files: {}, - follow_redirects: true, - headers: { foo: 'string' }, - json: {}, - params: 'string', - schema: {}, - timeout: 0, - }, - bash_20241022: { name: 'name', type: 'bash_20241022' }, - computer_20241022: { - display_height_px: 400, - display_number: 1, - display_width_px: 600, - name: 'name', - type: 'computer_20241022', - }, - description: 'description', - function: { description: {}, name: {}, parameters: {} }, - integration: { arguments: {}, method: 'method', provider: 'dummy', setup: {} }, - system: { - operation: 'create', - resource: 'agent', - arguments: {}, - resource_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - subresource: 'tool', - }, - text_editor_20241022: { name: 'name', type: 'text_editor_20241022' }, - }, - { - name: 'name', - type: 'function', - api_call: { - method: 'GET', - url: 'https://example.com', - content: 'content', - cookies: { foo: 'string' }, - data: {}, - files: {}, - follow_redirects: true, - headers: { foo: 'string' }, - json: {}, - params: 'string', - schema: {}, - timeout: 0, - }, - bash_20241022: { name: 'name', type: 'bash_20241022' }, - computer_20241022: { - display_height_px: 400, - display_number: 1, - display_width_px: 600, - name: 'name', - type: 'computer_20241022', - }, - description: 'description', - function: { description: {}, name: {}, parameters: {} }, - integration: { arguments: {}, method: 'method', provider: 'dummy', setup: {} }, - system: { - operation: 'create', - resource: 'agent', - arguments: {}, - resource_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - subresource: 'tool', - }, - text_editor_20241022: { name: 'name', type: 'text_editor_20241022' }, - }, ], top_p: 0, 'X-Custom-Api-Key': 'X-Custom-Api-Key', diff --git a/tests/api-resources/tasks.test.ts b/tests/api-resources/tasks.test.ts index 4563dfc..65eaae4 100644 --- a/tests/api-resources/tasks.test.ts +++ b/tests/api-resources/tasks.test.ts @@ -11,7 +11,7 @@ const client = new Julep({ describe('resource tasks', () => { test('create: only required params', async () => { const responsePromise = client.tasks.create('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', { - main: [{ evaluate: { foo: ['string', 'string', 'string'] } }], + main: [{ evaluate: { foo: ['string'] } }], name: 'name', }); const rawResponse = await responsePromise.asResponse(); @@ -25,7 +25,7 @@ describe('resource tasks', () => { test('create: required and optional params', async () => { const response = await client.tasks.create('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', { - main: [{ evaluate: { foo: ['string', 'string', 'string'] }, label: 'label' }], + main: [{ evaluate: { foo: ['string'] }, label: 'label' }], name: 'name', description: 'description', inherit_tools: true, @@ -69,80 +69,6 @@ describe('resource tasks', () => { }, text_editor_20241022: { name: 'name', type: 'text_editor_20241022' }, }, - { - name: 'name', - type: 'function', - api_call: { - method: 'GET', - url: 'https://example.com', - content: 'content', - cookies: { foo: 'string' }, - data: {}, - files: {}, - follow_redirects: true, - headers: { foo: 'string' }, - json: {}, - params: 'string', - schema: {}, - timeout: 0, - }, - bash_20241022: { name: 'name', type: 'bash_20241022' }, - computer_20241022: { - display_height_px: 400, - display_number: 1, - display_width_px: 600, - name: 'name', - type: 'computer_20241022', - }, - description: 'description', - function: { description: {}, name: {}, parameters: {} }, - integration: { arguments: {}, method: 'method', provider: 'dummy', setup: {} }, - system: { - operation: 'create', - resource: 'agent', - arguments: {}, - resource_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - subresource: 'tool', - }, - text_editor_20241022: { name: 'name', type: 'text_editor_20241022' }, - }, - { - name: 'name', - type: 'function', - api_call: { - method: 'GET', - url: 'https://example.com', - content: 'content', - cookies: { foo: 'string' }, - data: {}, - files: {}, - follow_redirects: true, - headers: { foo: 'string' }, - json: {}, - params: 'string', - schema: {}, - timeout: 0, - }, - bash_20241022: { name: 'name', type: 'bash_20241022' }, - computer_20241022: { - display_height_px: 400, - display_number: 1, - display_width_px: 600, - name: 'name', - type: 'computer_20241022', - }, - description: 'description', - function: { description: {}, name: {}, parameters: {} }, - integration: { arguments: {}, method: 'method', provider: 'dummy', setup: {} }, - system: { - operation: 'create', - resource: 'agent', - arguments: {}, - resource_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - subresource: 'tool', - }, - text_editor_20241022: { name: 'name', type: 'text_editor_20241022' }, - }, ], }); }); @@ -180,7 +106,7 @@ describe('resource tasks', () => { const responsePromise = client.tasks.createOrUpdate( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - { main: [{ evaluate: { foo: ['string', 'string', 'string'] } }], name: 'name' }, + { main: [{ evaluate: { foo: ['string'] } }], name: 'name' }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -196,7 +122,7 @@ describe('resource tasks', () => { '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', { - main: [{ evaluate: { foo: ['string', 'string', 'string'] }, label: 'label' }], + main: [{ evaluate: { foo: ['string'] }, label: 'label' }], name: 'name', description: 'description', inherit_tools: true, @@ -240,80 +166,6 @@ describe('resource tasks', () => { }, text_editor_20241022: { name: 'name', type: 'text_editor_20241022' }, }, - { - name: 'name', - type: 'function', - api_call: { - method: 'GET', - url: 'https://example.com', - content: 'content', - cookies: { foo: 'string' }, - data: {}, - files: {}, - follow_redirects: true, - headers: { foo: 'string' }, - json: {}, - params: 'string', - schema: {}, - timeout: 0, - }, - bash_20241022: { name: 'name', type: 'bash_20241022' }, - computer_20241022: { - display_height_px: 400, - display_number: 1, - display_width_px: 600, - name: 'name', - type: 'computer_20241022', - }, - description: 'description', - function: { description: {}, name: {}, parameters: {} }, - integration: { arguments: {}, method: 'method', provider: 'dummy', setup: {} }, - system: { - operation: 'create', - resource: 'agent', - arguments: {}, - resource_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - subresource: 'tool', - }, - text_editor_20241022: { name: 'name', type: 'text_editor_20241022' }, - }, - { - name: 'name', - type: 'function', - api_call: { - method: 'GET', - url: 'https://example.com', - content: 'content', - cookies: { foo: 'string' }, - data: {}, - files: {}, - follow_redirects: true, - headers: { foo: 'string' }, - json: {}, - params: 'string', - schema: {}, - timeout: 0, - }, - bash_20241022: { name: 'name', type: 'bash_20241022' }, - computer_20241022: { - display_height_px: 400, - display_number: 1, - display_width_px: 600, - name: 'name', - type: 'computer_20241022', - }, - description: 'description', - function: { description: {}, name: {}, parameters: {} }, - integration: { arguments: {}, method: 'method', provider: 'dummy', setup: {} }, - system: { - operation: 'create', - resource: 'agent', - arguments: {}, - resource_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - subresource: 'tool', - }, - text_editor_20241022: { name: 'name', type: 'text_editor_20241022' }, - }, ], }, ); From 87101a1af69d2f64df2dcd2828bfbb825f362254 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 20 Nov 2024 07:49:53 +0000 Subject: [PATCH 2/5] docs: remove suggestion to use `npm` call out (#132) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 94177a9..07fc4f1 100644 --- a/README.md +++ b/README.md @@ -347,7 +347,7 @@ The following runtimes are supported: - Web browsers (Up-to-date Chrome, Firefox, Safari, Edge, and more) - Node.js 18 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions. -- Deno v1.28.0 or higher, using `import Julep from "npm:@julep/sdk"`. +- Deno v1.28.0 or higher. - Bun 1.0 or later. - Cloudflare Workers. - Vercel Edge Runtime. From 11c15751e1393c0a58b58adaf9df851fc3dd16ce Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 20 Nov 2024 08:05:04 +0000 Subject: [PATCH 3/5] chore: remove redundant word in comment (#133) --- scripts/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build b/scripts/build index 325c83a..a9ec468 100755 --- a/scripts/build +++ b/scripts/build @@ -32,7 +32,7 @@ npm exec tsc-multi # copy over handwritten .js/.mjs/.d.ts files cp src/_shims/*.{d.ts,js,mjs,md} dist/_shims cp src/_shims/auto/*.{d.ts,js,mjs} dist/_shims/auto -# we need to add exports = module.exports = Julep Node to index.js; +# we need to add exports = module.exports = Julep to index.js; # No way to get that from index.ts because it would cause compile errors # when building .mjs node scripts/utils/fix-index-exports.cjs From 0b340411112cc23e68a0acc309fc3fa5c614524b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 20 Nov 2024 11:13:19 +0000 Subject: [PATCH 4/5] feat(api): api update (#134) --- .stats.yml | 2 +- src/resources/agents/tools.ts | 488 ++++ src/resources/sessions.ts | 788 +++++- src/resources/tasks.ts | 4513 ++++++++++++++++++++++++++++++--- 4 files changed, 5428 insertions(+), 363 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3738698..6e08a9e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 50 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/julep-ai-inc-dash%2Fjulep-7d90eac366f34605caf4124314f36429756573b066ac634b9b434250237eb3d5.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/julep-ai-inc-dash%2Fjulep-88cc6342d69fe97f2a853ea6603be32f004effeb54c78bdaeabada214bba8e5d.yml diff --git a/src/resources/agents/tools.ts b/src/resources/agents/tools.ts index 199507b..94473ed 100644 --- a/src/resources/agents/tools.ts +++ b/src/resources/agents/tools.ts @@ -139,6 +139,9 @@ export interface ToolListResponse { | ToolListResponse.BrowserbaseGetSessionConnectURLIntegrationDef | ToolListResponse.RemoteBrowserIntegrationDef | ToolListResponse.LlamaParseIntegrationDef + | ToolListResponse.FfmpegIntegrationDef + | ToolListResponse.CloudinaryUploadIntegrationDef + | ToolListResponse.CloudinaryEditIntegrationDef | null; /** @@ -800,6 +803,125 @@ export namespace ToolListResponse { } } + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + /** * System definition */ @@ -885,6 +1007,9 @@ export interface ToolCreateParams { | ToolCreateParams.BrowserbaseGetSessionConnectURLIntegrationDef | ToolCreateParams.RemoteBrowserIntegrationDef | ToolCreateParams.LlamaParseIntegrationDef + | ToolCreateParams.FfmpegIntegrationDef + | ToolCreateParams.CloudinaryUploadIntegrationDef + | ToolCreateParams.CloudinaryEditIntegrationDef | null; /** @@ -1546,6 +1671,125 @@ export namespace ToolCreateParams { } } + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + /** * System definition */ @@ -1631,6 +1875,9 @@ export interface ToolUpdateParams { | ToolUpdateParams.BrowserbaseGetSessionConnectURLIntegrationDef | ToolUpdateParams.RemoteBrowserIntegrationDef | ToolUpdateParams.LlamaParseIntegrationDef + | ToolUpdateParams.FfmpegIntegrationDef + | ToolUpdateParams.CloudinaryUploadIntegrationDef + | ToolUpdateParams.CloudinaryEditIntegrationDef | null; /** @@ -2292,6 +2539,125 @@ export namespace ToolUpdateParams { } } + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + /** * System definition */ @@ -2372,6 +2738,9 @@ export interface ToolPatchParams { | ToolPatchParams.BrowserbaseGetSessionConnectURLIntegrationDefUpdate | ToolPatchParams.RemoteBrowserIntegrationDefUpdate | ToolPatchParams.LlamaParseIntegrationDefUpdate + | ToolPatchParams.FfmpegIntegrationDefUpdate + | ToolPatchParams.CloudinaryUploadIntegrationDefUpdate + | ToolPatchParams.CloudinaryEditIntegrationDefUpdate | null; name?: string | null; @@ -3046,6 +3415,125 @@ export namespace ToolPatchParams { } } + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDefUpdate { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDefUpdate.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDefUpdate { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd?: string | null; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDefUpdate { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDefUpdate.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDefUpdate.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDefUpdate { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file?: string | null; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key?: string | null; + + cloudinary_api_secret?: string | null; + + cloudinary_cloud_name?: string | null; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDefUpdate { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDefUpdate.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDefUpdate.Setup | null; + } + + export namespace CloudinaryEditIntegrationDefUpdate { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id?: string | null; + + return_base64?: boolean; + + transformation?: Array | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key?: string | null; + + cloudinary_api_secret?: string | null; + + cloudinary_cloud_name?: string | null; + + params?: unknown | null; + } + } + /** * System definition */ diff --git a/src/resources/sessions.ts b/src/resources/sessions.ts index 86de07c..59ee846 100644 --- a/src/resources/sessions.ts +++ b/src/resources/sessions.ts @@ -241,6 +241,9 @@ export namespace ChatInput { | Tool.BrowserbaseGetSessionConnectURLIntegrationDef | Tool.RemoteBrowserIntegrationDef | Tool.LlamaParseIntegrationDef + | Tool.FfmpegIntegrationDef + | Tool.CloudinaryUploadIntegrationDef + | Tool.CloudinaryEditIntegrationDef | null; /** @@ -902,6 +905,125 @@ export namespace ChatInput { } } + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + /** * System definition */ @@ -982,7 +1104,11 @@ export namespace ChatResponse { id?: string | null; - content?: string | Array | Array | null; + content?: + | string + | Array + | Array + | null; created_at?: string | null; @@ -999,22 +1125,22 @@ export namespace ChatResponse { } export namespace Message { - export interface Content { + export interface AgentsAPIAutogenChatContentModel3 { text: string; type?: 'text'; } - export interface ContentModel { + export interface ContentModel7 { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: ContentModel7.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace ContentModel7 { /** * The image URL */ @@ -1025,6 +1151,41 @@ export namespace ChatResponse { } } + /** + * Anthropic image content part + */ + export interface ContentModel4 { + content: Array | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace ContentModel4 { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface ChosenFunctionCall { function: ChosenFunctionCall.Function; @@ -1292,7 +1453,11 @@ export namespace ChatResponse { id?: string | null; - content?: string | Array | Array | null; + content?: + | string + | Array + | Array + | null; created_at?: string | null; @@ -1309,22 +1474,22 @@ export namespace ChatResponse { } export namespace Message { - export interface Content { + export interface AgentsAPIAutogenChatContentModel3 { text: string; type?: 'text'; } - export interface ContentModel { + export interface ContentModel7 { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: ContentModel7.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace ContentModel7 { /** * The image URL */ @@ -1335,6 +1500,41 @@ export namespace ChatResponse { } } + /** + * Anthropic image content part + */ + export interface ContentModel4 { + content: Array | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace ContentModel4 { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface ChosenFunctionCall { function: ChosenFunctionCall.Function; @@ -1660,7 +1860,9 @@ export interface Entry { id: string; content: - | Array + | Array< + Entry.Content | Entry.AgentsAPIAutogenEntriesContentModel3 | Entry.AgentsAPIAutogenEntriesContentModel + > | Entry.Tool | Entry.ChosenFunctionCall | Entry.ChosenComputer20241022 @@ -1669,7 +1871,11 @@ export interface Entry { | string | Entry.ToolResponse | Array< - | Array + | Array< + | Entry.AgentsAPIAutogenEntriesContentModel1 + | Entry.AgentsAPIAutogenEntriesContentModel3 + | Entry.AgentsAPIAutogenEntriesContentModel2 + > | Entry.Tool | Entry.ChosenFunctionCall | Entry.ChosenComputer20241022 @@ -1710,16 +1916,16 @@ export namespace Entry { type?: 'text'; } - export interface ContentModel { + export interface AgentsAPIAutogenEntriesContentModel3 { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: AgentsAPIAutogenEntriesContentModel3.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace AgentsAPIAutogenEntriesContentModel3 { /** * The image URL */ @@ -1730,6 +1936,43 @@ export namespace Entry { } } + /** + * Anthropic image content part + */ + export interface AgentsAPIAutogenEntriesContentModel { + content: + | Array + | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace AgentsAPIAutogenEntriesContentModel { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface Tool { id: string; @@ -1787,6 +2030,9 @@ export namespace Entry { | Tool.BrowserbaseGetSessionConnectURLIntegrationDef | Tool.RemoteBrowserIntegrationDef | Tool.LlamaParseIntegrationDef + | Tool.FfmpegIntegrationDef + | Tool.CloudinaryUploadIntegrationDef + | Tool.CloudinaryEditIntegrationDef | null; /** @@ -2448,6 +2694,125 @@ export namespace Entry { } } + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + /** * System definition */ @@ -2594,22 +2959,22 @@ export namespace Entry { output: unknown; } - export interface Content { + export interface AgentsAPIAutogenEntriesContentModel1 { text: string; type?: 'text'; } - export interface ContentModel { + export interface AgentsAPIAutogenEntriesContentModel3 { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: AgentsAPIAutogenEntriesContentModel3.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace AgentsAPIAutogenEntriesContentModel3 { /** * The image URL */ @@ -2620,6 +2985,43 @@ export namespace Entry { } } + /** + * Anthropic image content part + */ + export interface AgentsAPIAutogenEntriesContentModel2 { + content: + | Array + | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace AgentsAPIAutogenEntriesContentModel2 { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface Tool { id: string; @@ -2677,6 +3079,9 @@ export namespace Entry { | Tool.BrowserbaseGetSessionConnectURLIntegrationDef | Tool.RemoteBrowserIntegrationDef | Tool.LlamaParseIntegrationDef + | Tool.FfmpegIntegrationDef + | Tool.CloudinaryUploadIntegrationDef + | Tool.CloudinaryEditIntegrationDef | null; /** @@ -3338,6 +3743,125 @@ export namespace Entry { } } + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + /** * System definition */ @@ -3614,7 +4138,11 @@ export namespace History { export interface Message { role: 'user' | 'assistant' | 'system' | 'tool'; - content?: string | Array | Array | null; + content?: + | string + | Array + | Array + | null; continue?: boolean | null; @@ -3637,16 +4165,16 @@ export namespace Message { type?: 'text'; } - export interface ContentModel { + export interface ContentModel7 { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: ContentModel7.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace ContentModel7 { /** * The image URL */ @@ -3657,6 +4185,43 @@ export namespace Message { } } + /** + * Anthropic image content part + */ + export interface AgentsAPIAutogenChatContentModel { + content: + | Array + | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace AgentsAPIAutogenChatContentModel { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface ChosenFunctionCall { function: ChosenFunctionCall.Function; @@ -3839,7 +4404,15 @@ export namespace SessionChatResponse { export interface Delta { role: 'user' | 'assistant' | 'system' | 'tool'; - content?: string | Array | Array | null; + content?: + | string + | Array + | Array< + | Delta.AgentsAPIAutogenChatContentModel1 + | Delta.ContentModel7 + | Delta.AgentsAPIAutogenChatContentModel2 + > + | null; continue?: boolean | null; @@ -3856,22 +4429,22 @@ export namespace SessionChatResponse { } export namespace Delta { - export interface Content { + export interface AgentsAPIAutogenChatContentModel1 { text: string; type?: 'text'; } - export interface ContentModel { + export interface ContentModel7 { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: ContentModel7.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace ContentModel7 { /** * The image URL */ @@ -3882,6 +4455,43 @@ export namespace SessionChatResponse { } } + /** + * Anthropic image content part + */ + export interface AgentsAPIAutogenChatContentModel2 { + content: + | Array + | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace AgentsAPIAutogenChatContentModel2 { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface ChosenFunctionCall { function: ChosenFunctionCall.Function; @@ -4388,6 +4998,9 @@ export namespace SessionChatParams { | Tool.BrowserbaseGetSessionConnectURLIntegrationDef | Tool.RemoteBrowserIntegrationDef | Tool.LlamaParseIntegrationDef + | Tool.FfmpegIntegrationDef + | Tool.CloudinaryUploadIntegrationDef + | Tool.CloudinaryEditIntegrationDef | null; /** @@ -5049,6 +5662,125 @@ export namespace SessionChatParams { } } + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + /** * System definition */ diff --git a/src/resources/tasks.ts b/src/resources/tasks.ts index 8581de0..5a6770e 100644 --- a/src/resources/tasks.ts +++ b/src/resources/tasks.ts @@ -164,7 +164,15 @@ export namespace Task { export namespace PromptStepOutput { export interface UnionMember0 { - content: Array | Array | string | null; + content: + | Array + | Array< + | UnionMember0.Content + | UnionMember0.AgentsAPIAutogenTasksContentModel + | UnionMember0.AgentsAPIAutogenTasksContentModel1Output + > + | string + | null; role: 'user' | 'assistant' | 'system' | 'tool'; @@ -189,16 +197,16 @@ export namespace Task { type?: 'text'; } - export interface ContentModel { + export interface AgentsAPIAutogenTasksContentModel { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: AgentsAPIAutogenTasksContentModel.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace AgentsAPIAutogenTasksContentModel { /** * The image URL */ @@ -209,6 +217,43 @@ export namespace Task { } } + /** + * Anthropic image content part + */ + export interface AgentsAPIAutogenTasksContentModel1Output { + content: + | Array + | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace AgentsAPIAutogenTasksContentModel1Output { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface ChosenFunctionCall { function: ChosenFunctionCall.Function; @@ -405,6 +450,9 @@ export namespace Task { | CreateToolRequestOutput.BrowserbaseGetSessionConnectURLIntegrationDef | CreateToolRequestOutput.RemoteBrowserIntegrationDef | CreateToolRequestOutput.LlamaParseIntegrationDef + | CreateToolRequestOutput.FfmpegIntegrationDef + | CreateToolRequestOutput.CloudinaryUploadIntegrationDef + | CreateToolRequestOutput.CloudinaryEditIntegrationDef | null; /** @@ -1066,6 +1114,125 @@ export namespace Task { } } + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + /** * System definition */ @@ -1294,7 +1461,15 @@ export namespace Task { export namespace PromptStepOutput { export interface UnionMember0 { - content: Array | Array | string | null; + content: + | Array + | Array< + | UnionMember0.Content + | UnionMember0.AgentsAPIAutogenTasksContentModel + | UnionMember0.AgentsAPIAutogenTasksContentModel1Output + > + | string + | null; role: 'user' | 'assistant' | 'system' | 'tool'; @@ -1319,16 +1494,16 @@ export namespace Task { type?: 'text'; } - export interface ContentModel { + export interface AgentsAPIAutogenTasksContentModel { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: AgentsAPIAutogenTasksContentModel.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace AgentsAPIAutogenTasksContentModel { /** * The image URL */ @@ -1339,6 +1514,43 @@ export namespace Task { } } + /** + * Anthropic image content part + */ + export interface AgentsAPIAutogenTasksContentModel1Output { + content: + | Array + | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace AgentsAPIAutogenTasksContentModel1Output { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface ChosenFunctionCall { function: ChosenFunctionCall.Function; @@ -1535,6 +1747,9 @@ export namespace Task { | CreateToolRequestOutput.BrowserbaseGetSessionConnectURLIntegrationDef | CreateToolRequestOutput.RemoteBrowserIntegrationDef | CreateToolRequestOutput.LlamaParseIntegrationDef + | CreateToolRequestOutput.FfmpegIntegrationDef + | CreateToolRequestOutput.CloudinaryUploadIntegrationDef + | CreateToolRequestOutput.CloudinaryEditIntegrationDef | null; /** @@ -2196,6 +2411,125 @@ export namespace Task { } } + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + /** * System definition */ @@ -2388,7 +2722,15 @@ export namespace Task { export namespace PromptStepOutput { export interface UnionMember0 { - content: Array | Array | string | null; + content: + | Array + | Array< + | UnionMember0.Content + | UnionMember0.AgentsAPIAutogenTasksContentModel + | UnionMember0.AgentsAPIAutogenTasksContentModel1Output + > + | string + | null; role: 'user' | 'assistant' | 'system' | 'tool'; @@ -2413,16 +2755,16 @@ export namespace Task { type?: 'text'; } - export interface ContentModel { + export interface AgentsAPIAutogenTasksContentModel { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: AgentsAPIAutogenTasksContentModel.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace AgentsAPIAutogenTasksContentModel { /** * The image URL */ @@ -2433,6 +2775,43 @@ export namespace Task { } } + /** + * Anthropic image content part + */ + export interface AgentsAPIAutogenTasksContentModel1Output { + content: + | Array + | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace AgentsAPIAutogenTasksContentModel1Output { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface ChosenFunctionCall { function: ChosenFunctionCall.Function; @@ -2629,6 +3008,9 @@ export namespace Task { | CreateToolRequestOutput.BrowserbaseGetSessionConnectURLIntegrationDef | CreateToolRequestOutput.RemoteBrowserIntegrationDef | CreateToolRequestOutput.LlamaParseIntegrationDef + | CreateToolRequestOutput.FfmpegIntegrationDef + | CreateToolRequestOutput.CloudinaryUploadIntegrationDef + | CreateToolRequestOutput.CloudinaryEditIntegrationDef | null; /** @@ -3291,38 +3673,157 @@ export namespace Task { } /** - * System definition + * Ffmpeg integration definition */ - export interface System { - operation: - | 'create' - | 'update' - | 'patch' - | 'create_or_update' - | 'embed' - | 'change_status' - | 'search' - | 'chat' - | 'history' - | 'delete' - | 'get' - | 'list'; - - resource: 'agent' | 'user' | 'task' | 'execution' | 'doc' | 'session' | 'job'; + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; - arguments?: unknown | null; + method?: string | null; - resource_id?: string | null; + provider?: 'ffmpeg'; - subresource?: 'tool' | 'doc' | 'execution' | 'transition' | null; + setup?: unknown | null; } - export interface TextEditor20241022 { - name?: string; + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; - type?: 'text_editor_20241022'; + file?: string | null; + } } - } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * System definition + */ + export interface System { + operation: + | 'create' + | 'update' + | 'patch' + | 'create_or_update' + | 'embed' + | 'change_status' + | 'search' + | 'chat' + | 'history' + | 'delete' + | 'get' + | 'list'; + + resource: 'agent' | 'user' | 'task' | 'execution' | 'doc' | 'session' | 'job'; + + arguments?: unknown | null; + + resource_id?: string | null; + + subresource?: 'tool' | 'doc' | 'execution' | 'transition' | null; + } + + export interface TextEditor20241022 { + name?: string; + + type?: 'text_editor_20241022'; + } + } } export interface GetStep { @@ -3513,7 +4014,15 @@ export namespace Task { export namespace PromptStepOutput { export interface UnionMember0 { - content: Array | Array | string | null; + content: + | Array + | Array< + | UnionMember0.Content + | UnionMember0.AgentsAPIAutogenTasksContentModel + | UnionMember0.AgentsAPIAutogenTasksContentModel1Output + > + | string + | null; role: 'user' | 'assistant' | 'system' | 'tool'; @@ -3538,16 +4047,16 @@ export namespace Task { type?: 'text'; } - export interface ContentModel { + export interface AgentsAPIAutogenTasksContentModel { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: AgentsAPIAutogenTasksContentModel.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace AgentsAPIAutogenTasksContentModel { /** * The image URL */ @@ -3558,6 +4067,43 @@ export namespace Task { } } + /** + * Anthropic image content part + */ + export interface AgentsAPIAutogenTasksContentModel1Output { + content: + | Array + | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace AgentsAPIAutogenTasksContentModel1Output { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface ChosenFunctionCall { function: ChosenFunctionCall.Function; @@ -3754,6 +4300,9 @@ export namespace Task { | CreateToolRequestOutput.BrowserbaseGetSessionConnectURLIntegrationDef | CreateToolRequestOutput.RemoteBrowserIntegrationDef | CreateToolRequestOutput.LlamaParseIntegrationDef + | CreateToolRequestOutput.FfmpegIntegrationDef + | CreateToolRequestOutput.CloudinaryUploadIntegrationDef + | CreateToolRequestOutput.CloudinaryEditIntegrationDef | null; /** @@ -4415,6 +4964,125 @@ export namespace Task { } } + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + /** * System definition */ @@ -4659,7 +5327,15 @@ export namespace Task { export namespace PromptStepOutput { export interface UnionMember0 { - content: Array | Array | string | null; + content: + | Array + | Array< + | UnionMember0.Content + | UnionMember0.AgentsAPIAutogenTasksContentModel + | UnionMember0.AgentsAPIAutogenTasksContentModel1Output + > + | string + | null; role: 'user' | 'assistant' | 'system' | 'tool'; @@ -4684,16 +5360,16 @@ export namespace Task { type?: 'text'; } - export interface ContentModel { + export interface AgentsAPIAutogenTasksContentModel { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: AgentsAPIAutogenTasksContentModel.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace AgentsAPIAutogenTasksContentModel { /** * The image URL */ @@ -4704,6 +5380,43 @@ export namespace Task { } } + /** + * Anthropic image content part + */ + export interface AgentsAPIAutogenTasksContentModel1Output { + content: + | Array + | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace AgentsAPIAutogenTasksContentModel1Output { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface ChosenFunctionCall { function: ChosenFunctionCall.Function; @@ -4900,6 +5613,9 @@ export namespace Task { | CreateToolRequestOutput.BrowserbaseGetSessionConnectURLIntegrationDef | CreateToolRequestOutput.RemoteBrowserIntegrationDef | CreateToolRequestOutput.LlamaParseIntegrationDef + | CreateToolRequestOutput.FfmpegIntegrationDef + | CreateToolRequestOutput.CloudinaryUploadIntegrationDef + | CreateToolRequestOutput.CloudinaryEditIntegrationDef | null; /** @@ -5562,52 +6278,171 @@ export namespace Task { } /** - * System definition + * Ffmpeg integration definition */ - export interface System { - operation: - | 'create' - | 'update' - | 'patch' - | 'create_or_update' - | 'embed' - | 'change_status' - | 'search' - | 'chat' - | 'history' - | 'delete' - | 'get' - | 'list'; - - resource: 'agent' | 'user' | 'task' | 'execution' | 'doc' | 'session' | 'job'; + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; - arguments?: unknown | null; + method?: string | null; - resource_id?: string | null; + provider?: 'ffmpeg'; - subresource?: 'tool' | 'doc' | 'execution' | 'transition' | null; + setup?: unknown | null; } - export interface TextEditor20241022 { - name?: string; + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; - type?: 'text_editor_20241022'; + file?: string | null; + } } - } - } - - export interface GetStep { - get: string; - kind_?: 'get'; + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; - label?: string | null; - } + method?: 'media_upload'; - export interface SetStep { - set: Record; + provider?: 'cloudinary'; - kind_?: 'set'; + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * System definition + */ + export interface System { + operation: + | 'create' + | 'update' + | 'patch' + | 'create_or_update' + | 'embed' + | 'change_status' + | 'search' + | 'chat' + | 'history' + | 'delete' + | 'get' + | 'list'; + + resource: 'agent' | 'user' | 'task' | 'execution' | 'doc' | 'session' | 'job'; + + arguments?: unknown | null; + + resource_id?: string | null; + + subresource?: 'tool' | 'doc' | 'execution' | 'transition' | null; + } + + export interface TextEditor20241022 { + name?: string; + + type?: 'text_editor_20241022'; + } + } + } + + export interface GetStep { + get: string; + + kind_?: 'get'; + + label?: string | null; + } + + export interface SetStep { + set: Record; + + kind_?: 'set'; label?: string | null; } @@ -5722,7 +6557,15 @@ export namespace Task { export namespace PromptStepOutput { export interface UnionMember0 { - content: Array | Array | string | null; + content: + | Array + | Array< + | UnionMember0.Content + | UnionMember0.AgentsAPIAutogenTasksContentModel + | UnionMember0.AgentsAPIAutogenTasksContentModel1Output + > + | string + | null; role: 'user' | 'assistant' | 'system' | 'tool'; @@ -5747,16 +6590,16 @@ export namespace Task { type?: 'text'; } - export interface ContentModel { + export interface AgentsAPIAutogenTasksContentModel { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: AgentsAPIAutogenTasksContentModel.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace AgentsAPIAutogenTasksContentModel { /** * The image URL */ @@ -5767,6 +6610,43 @@ export namespace Task { } } + /** + * Anthropic image content part + */ + export interface AgentsAPIAutogenTasksContentModel1Output { + content: + | Array + | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace AgentsAPIAutogenTasksContentModel1Output { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface ChosenFunctionCall { function: ChosenFunctionCall.Function; @@ -5963,6 +6843,9 @@ export namespace Task { | CreateToolRequestOutput.BrowserbaseGetSessionConnectURLIntegrationDef | CreateToolRequestOutput.RemoteBrowserIntegrationDef | CreateToolRequestOutput.LlamaParseIntegrationDef + | CreateToolRequestOutput.FfmpegIntegrationDef + | CreateToolRequestOutput.CloudinaryUploadIntegrationDef + | CreateToolRequestOutput.CloudinaryEditIntegrationDef | null; /** @@ -6624,6 +7507,125 @@ export namespace Task { } } + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + /** * System definition */ @@ -6791,7 +7793,15 @@ export namespace Task { export namespace PromptStepOutput { export interface UnionMember0 { - content: Array | Array | string | null; + content: + | Array + | Array< + | UnionMember0.Content + | UnionMember0.AgentsAPIAutogenTasksContentModel + | UnionMember0.AgentsAPIAutogenTasksContentModel1Output + > + | string + | null; role: 'user' | 'assistant' | 'system' | 'tool'; @@ -6816,16 +7826,16 @@ export namespace Task { type?: 'text'; } - export interface ContentModel { + export interface AgentsAPIAutogenTasksContentModel { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: AgentsAPIAutogenTasksContentModel.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace AgentsAPIAutogenTasksContentModel { /** * The image URL */ @@ -6836,6 +7846,43 @@ export namespace Task { } } + /** + * Anthropic image content part + */ + export interface AgentsAPIAutogenTasksContentModel1Output { + content: + | Array + | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace AgentsAPIAutogenTasksContentModel1Output { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface ChosenFunctionCall { function: ChosenFunctionCall.Function; @@ -7032,6 +8079,9 @@ export namespace Task { | CreateToolRequestOutput.BrowserbaseGetSessionConnectURLIntegrationDef | CreateToolRequestOutput.RemoteBrowserIntegrationDef | CreateToolRequestOutput.LlamaParseIntegrationDef + | CreateToolRequestOutput.FfmpegIntegrationDef + | CreateToolRequestOutput.CloudinaryUploadIntegrationDef + | CreateToolRequestOutput.CloudinaryEditIntegrationDef | null; /** @@ -7694,41 +8744,160 @@ export namespace Task { } /** - * System definition + * Ffmpeg integration definition */ - export interface System { - operation: - | 'create' - | 'update' - | 'patch' - | 'create_or_update' - | 'embed' - | 'change_status' - | 'search' - | 'chat' - | 'history' - | 'delete' - | 'get' - | 'list'; - - resource: 'agent' | 'user' | 'task' | 'execution' | 'doc' | 'session' | 'job'; + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; - arguments?: unknown | null; + method?: string | null; - resource_id?: string | null; + provider?: 'ffmpeg'; - subresource?: 'tool' | 'doc' | 'execution' | 'transition' | null; + setup?: unknown | null; } - export interface TextEditor20241022 { - name?: string; + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; - type?: 'text_editor_20241022'; + file?: string | null; + } } - } - } - export interface GetStep { + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * System definition + */ + export interface System { + operation: + | 'create' + | 'update' + | 'patch' + | 'create_or_update' + | 'embed' + | 'change_status' + | 'search' + | 'chat' + | 'history' + | 'delete' + | 'get' + | 'list'; + + resource: 'agent' | 'user' | 'task' | 'execution' | 'doc' | 'session' | 'job'; + + arguments?: unknown | null; + + resource_id?: string | null; + + subresource?: 'tool' | 'doc' | 'execution' | 'transition' | null; + } + + export interface TextEditor20241022 { + name?: string; + + type?: 'text_editor_20241022'; + } + } + } + + export interface GetStep { get: string; kind_?: 'get'; @@ -7818,6 +8987,9 @@ export namespace Task { | Tool.BrowserbaseGetSessionConnectURLIntegrationDef | Tool.RemoteBrowserIntegrationDef | Tool.LlamaParseIntegrationDef + | Tool.FfmpegIntegrationDef + | Tool.CloudinaryUploadIntegrationDef + | Tool.CloudinaryEditIntegrationDef | null; /** @@ -8479,6 +9651,125 @@ export namespace Task { } } + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + /** * System definition */ @@ -8606,7 +9897,15 @@ export namespace TaskCreateParams { export namespace PromptStepInput { export interface UnionMember0 { - content: Array | Array | string | null; + content: + | Array + | Array< + | UnionMember0.Content + | UnionMember0.AgentsAPIAutogenTasksContentModel + | UnionMember0.ContentModel1Input + > + | string + | null; role: 'user' | 'assistant' | 'system' | 'tool'; @@ -8631,16 +9930,16 @@ export namespace TaskCreateParams { type?: 'text'; } - export interface ContentModel { + export interface AgentsAPIAutogenTasksContentModel { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: AgentsAPIAutogenTasksContentModel.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace AgentsAPIAutogenTasksContentModel { /** * The image URL */ @@ -8651,6 +9950,41 @@ export namespace TaskCreateParams { } } + /** + * Anthropic image content part + */ + export interface ContentModel1Input { + content: Array | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace ContentModel1Input { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface ChosenFunctionCall { function: ChosenFunctionCall.Function; @@ -8845,6 +10179,9 @@ export namespace TaskCreateParams { | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.RemoteBrowserIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.LlamaParseIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.FfmpegIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryUploadIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryEditIntegrationDef | null; /** @@ -9507,64 +10844,183 @@ export namespace TaskCreateParams { } /** - * System definition + * Ffmpeg integration definition */ - export interface System { - operation: - | 'create' - | 'update' - | 'patch' - | 'create_or_update' - | 'embed' - | 'change_status' - | 'search' - | 'chat' - | 'history' - | 'delete' - | 'get' - | 'list'; - - resource: 'agent' | 'user' | 'task' | 'execution' | 'doc' | 'session' | 'job'; + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; - arguments?: unknown | null; + method?: string | null; - resource_id?: string | null; + provider?: 'ffmpeg'; - subresource?: 'tool' | 'doc' | 'execution' | 'transition' | null; + setup?: unknown | null; } - export interface TextEditor20241022 { - name?: string; + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; - type?: 'text_editor_20241022'; + file?: string | null; + } } - } - } - export interface GetStep { - get: string; + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; - label?: string | null; - } + method?: 'media_upload'; - export interface SetStep { - set: Record; + provider?: 'cloudinary'; - label?: string | null; - } + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } - export interface LogStep { - log: string; + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; - label?: string | null; - } + public_id?: string | null; - export interface YieldStep { - workflow: string; + return_base64?: boolean; - arguments?: - | Record | Record | Array> | string> - | '_'; + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * System definition + */ + export interface System { + operation: + | 'create' + | 'update' + | 'patch' + | 'create_or_update' + | 'embed' + | 'change_status' + | 'search' + | 'chat' + | 'history' + | 'delete' + | 'get' + | 'list'; + + resource: 'agent' | 'user' | 'task' | 'execution' | 'doc' | 'session' | 'job'; + + arguments?: unknown | null; + + resource_id?: string | null; + + subresource?: 'tool' | 'doc' | 'execution' | 'transition' | null; + } + + export interface TextEditor20241022 { + name?: string; + + type?: 'text_editor_20241022'; + } + } + } + + export interface GetStep { + get: string; + + label?: string | null; + } + + export interface SetStep { + set: Record; + + label?: string | null; + } + + export interface LogStep { + log: string; + + label?: string | null; + } + + export interface YieldStep { + workflow: string; + + arguments?: + | Record | Record | Array> | string> + | '_'; label?: string | null; } @@ -9712,7 +11168,15 @@ export namespace TaskCreateParams { export namespace PromptStepInput { export interface UnionMember0 { - content: Array | Array | string | null; + content: + | Array + | Array< + | UnionMember0.Content + | UnionMember0.AgentsAPIAutogenTasksContentModel + | UnionMember0.ContentModel1Input + > + | string + | null; role: 'user' | 'assistant' | 'system' | 'tool'; @@ -9737,16 +11201,16 @@ export namespace TaskCreateParams { type?: 'text'; } - export interface ContentModel { + export interface AgentsAPIAutogenTasksContentModel { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: AgentsAPIAutogenTasksContentModel.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace AgentsAPIAutogenTasksContentModel { /** * The image URL */ @@ -9757,6 +11221,41 @@ export namespace TaskCreateParams { } } + /** + * Anthropic image content part + */ + export interface ContentModel1Input { + content: Array | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace ContentModel1Input { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface ChosenFunctionCall { function: ChosenFunctionCall.Function; @@ -9951,6 +11450,9 @@ export namespace TaskCreateParams { | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.RemoteBrowserIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.LlamaParseIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.FfmpegIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryUploadIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryEditIntegrationDef | null; /** @@ -10612,6 +12114,125 @@ export namespace TaskCreateParams { } } + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + /** * System definition */ @@ -10784,7 +12405,15 @@ export namespace TaskCreateParams { export namespace PromptStepInput { export interface UnionMember0 { - content: Array | Array | string | null; + content: + | Array + | Array< + | UnionMember0.Content + | UnionMember0.AgentsAPIAutogenTasksContentModel + | UnionMember0.ContentModel1Input + > + | string + | null; role: 'user' | 'assistant' | 'system' | 'tool'; @@ -10809,16 +12438,16 @@ export namespace TaskCreateParams { type?: 'text'; } - export interface ContentModel { + export interface AgentsAPIAutogenTasksContentModel { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: AgentsAPIAutogenTasksContentModel.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace AgentsAPIAutogenTasksContentModel { /** * The image URL */ @@ -10829,6 +12458,41 @@ export namespace TaskCreateParams { } } + /** + * Anthropic image content part + */ + export interface ContentModel1Input { + content: Array | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace ContentModel1Input { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface ChosenFunctionCall { function: ChosenFunctionCall.Function; @@ -11023,6 +12687,9 @@ export namespace TaskCreateParams { | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.RemoteBrowserIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.LlamaParseIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.FfmpegIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryUploadIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryEditIntegrationDef | null; /** @@ -11685,41 +13352,160 @@ export namespace TaskCreateParams { } /** - * System definition + * Ffmpeg integration definition */ - export interface System { - operation: - | 'create' - | 'update' - | 'patch' - | 'create_or_update' - | 'embed' - | 'change_status' - | 'search' - | 'chat' - | 'history' - | 'delete' - | 'get' - | 'list'; - - resource: 'agent' | 'user' | 'task' | 'execution' | 'doc' | 'session' | 'job'; + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; - arguments?: unknown | null; + method?: string | null; - resource_id?: string | null; + provider?: 'ffmpeg'; - subresource?: 'tool' | 'doc' | 'execution' | 'transition' | null; + setup?: unknown | null; } - export interface TextEditor20241022 { - name?: string; + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; - type?: 'text_editor_20241022'; + file?: string | null; + } } - } - } - export interface GetStep { + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * System definition + */ + export interface System { + operation: + | 'create' + | 'update' + | 'patch' + | 'create_or_update' + | 'embed' + | 'change_status' + | 'search' + | 'chat' + | 'history' + | 'delete' + | 'get' + | 'list'; + + resource: 'agent' | 'user' | 'task' | 'execution' | 'doc' | 'session' | 'job'; + + arguments?: unknown | null; + + resource_id?: string | null; + + subresource?: 'tool' | 'doc' | 'execution' | 'transition' | null; + } + + export interface TextEditor20241022 { + name?: string; + + type?: 'text_editor_20241022'; + } + } + } + + export interface GetStep { get: string; label?: string | null; @@ -11887,7 +13673,15 @@ export namespace TaskCreateParams { export namespace PromptStepInput { export interface UnionMember0 { - content: Array | Array | string | null; + content: + | Array + | Array< + | UnionMember0.Content + | UnionMember0.AgentsAPIAutogenTasksContentModel + | UnionMember0.ContentModel1Input + > + | string + | null; role: 'user' | 'assistant' | 'system' | 'tool'; @@ -11912,16 +13706,16 @@ export namespace TaskCreateParams { type?: 'text'; } - export interface ContentModel { + export interface AgentsAPIAutogenTasksContentModel { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: AgentsAPIAutogenTasksContentModel.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace AgentsAPIAutogenTasksContentModel { /** * The image URL */ @@ -11932,6 +13726,41 @@ export namespace TaskCreateParams { } } + /** + * Anthropic image content part + */ + export interface ContentModel1Input { + content: Array | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace ContentModel1Input { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface ChosenFunctionCall { function: ChosenFunctionCall.Function; @@ -12126,6 +13955,9 @@ export namespace TaskCreateParams { | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.RemoteBrowserIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.LlamaParseIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.FfmpegIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryUploadIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryEditIntegrationDef | null; /** @@ -12787,6 +14619,125 @@ export namespace TaskCreateParams { } } + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + /** * System definition */ @@ -13009,7 +14960,15 @@ export namespace TaskCreateParams { export namespace PromptStepInput { export interface UnionMember0 { - content: Array | Array | string | null; + content: + | Array + | Array< + | UnionMember0.Content + | UnionMember0.AgentsAPIAutogenTasksContentModel + | UnionMember0.ContentModel1Input + > + | string + | null; role: 'user' | 'assistant' | 'system' | 'tool'; @@ -13034,16 +14993,16 @@ export namespace TaskCreateParams { type?: 'text'; } - export interface ContentModel { + export interface AgentsAPIAutogenTasksContentModel { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: AgentsAPIAutogenTasksContentModel.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace AgentsAPIAutogenTasksContentModel { /** * The image URL */ @@ -13054,6 +15013,41 @@ export namespace TaskCreateParams { } } + /** + * Anthropic image content part + */ + export interface ContentModel1Input { + content: Array | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace ContentModel1Input { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface ChosenFunctionCall { function: ChosenFunctionCall.Function; @@ -13248,6 +15242,9 @@ export namespace TaskCreateParams { | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.RemoteBrowserIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.LlamaParseIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.FfmpegIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryUploadIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryEditIntegrationDef | null; /** @@ -13910,50 +15907,169 @@ export namespace TaskCreateParams { } /** - * System definition + * Ffmpeg integration definition */ - export interface System { - operation: - | 'create' - | 'update' - | 'patch' - | 'create_or_update' - | 'embed' - | 'change_status' - | 'search' - | 'chat' - | 'history' - | 'delete' - | 'get' - | 'list'; - - resource: 'agent' | 'user' | 'task' | 'execution' | 'doc' | 'session' | 'job'; + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; - arguments?: unknown | null; + method?: string | null; - resource_id?: string | null; + provider?: 'ffmpeg'; - subresource?: 'tool' | 'doc' | 'execution' | 'transition' | null; + setup?: unknown | null; } - export interface TextEditor20241022 { - name?: string; + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; - type?: 'text_editor_20241022'; + file?: string | null; + } } - } - } - export interface GetStep { - get: string; + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; - label?: string | null; - } + method?: 'media_upload'; - export interface SetStep { - set: Record; + provider?: 'cloudinary'; - label?: string | null; + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * System definition + */ + export interface System { + operation: + | 'create' + | 'update' + | 'patch' + | 'create_or_update' + | 'embed' + | 'change_status' + | 'search' + | 'chat' + | 'history' + | 'delete' + | 'get' + | 'list'; + + resource: 'agent' | 'user' | 'task' | 'execution' | 'doc' | 'session' | 'job'; + + arguments?: unknown | null; + + resource_id?: string | null; + + subresource?: 'tool' | 'doc' | 'execution' | 'transition' | null; + } + + export interface TextEditor20241022 { + name?: string; + + type?: 'text_editor_20241022'; + } + } + } + + export interface GetStep { + get: string; + + label?: string | null; + } + + export interface SetStep { + set: Record; + + label?: string | null; } export interface LogStep { @@ -14056,7 +16172,15 @@ export namespace TaskCreateParams { export namespace PromptStepInput { export interface UnionMember0 { - content: Array | Array | string | null; + content: + | Array + | Array< + | UnionMember0.Content + | UnionMember0.AgentsAPIAutogenTasksContentModel + | UnionMember0.ContentModel1Input + > + | string + | null; role: 'user' | 'assistant' | 'system' | 'tool'; @@ -14081,16 +16205,16 @@ export namespace TaskCreateParams { type?: 'text'; } - export interface ContentModel { + export interface AgentsAPIAutogenTasksContentModel { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: AgentsAPIAutogenTasksContentModel.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace AgentsAPIAutogenTasksContentModel { /** * The image URL */ @@ -14101,6 +16225,41 @@ export namespace TaskCreateParams { } } + /** + * Anthropic image content part + */ + export interface ContentModel1Input { + content: Array | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace ContentModel1Input { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface ChosenFunctionCall { function: ChosenFunctionCall.Function; @@ -14295,6 +16454,9 @@ export namespace TaskCreateParams { | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.RemoteBrowserIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.LlamaParseIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.FfmpegIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryUploadIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryEditIntegrationDef | null; /** @@ -14956,6 +17118,125 @@ export namespace TaskCreateParams { } } + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + /** * System definition */ @@ -15109,7 +17390,15 @@ export namespace TaskCreateParams { export namespace PromptStepInput { export interface UnionMember0 { - content: Array | Array | string | null; + content: + | Array + | Array< + | UnionMember0.Content + | UnionMember0.AgentsAPIAutogenTasksContentModel + | UnionMember0.ContentModel1Input + > + | string + | null; role: 'user' | 'assistant' | 'system' | 'tool'; @@ -15134,16 +17423,16 @@ export namespace TaskCreateParams { type?: 'text'; } - export interface ContentModel { + export interface AgentsAPIAutogenTasksContentModel { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: AgentsAPIAutogenTasksContentModel.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace AgentsAPIAutogenTasksContentModel { /** * The image URL */ @@ -15154,6 +17443,41 @@ export namespace TaskCreateParams { } } + /** + * Anthropic image content part + */ + export interface ContentModel1Input { + content: Array | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace ContentModel1Input { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface ChosenFunctionCall { function: ChosenFunctionCall.Function; @@ -15348,6 +17672,9 @@ export namespace TaskCreateParams { | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.RemoteBrowserIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.LlamaParseIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.FfmpegIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryUploadIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryEditIntegrationDef | null; /** @@ -16009,6 +18336,125 @@ export namespace TaskCreateParams { } } + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + /** * System definition */ @@ -16124,6 +18570,9 @@ export namespace TaskCreateParams { | Tool.BrowserbaseGetSessionConnectURLIntegrationDef | Tool.RemoteBrowserIntegrationDef | Tool.LlamaParseIntegrationDef + | Tool.FfmpegIntegrationDef + | Tool.CloudinaryUploadIntegrationDef + | Tool.CloudinaryEditIntegrationDef | null; /** @@ -16785,6 +19234,125 @@ export namespace TaskCreateParams { } } + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + /** * System definition */ @@ -16918,7 +19486,15 @@ export namespace TaskCreateOrUpdateParams { export namespace PromptStepInput { export interface UnionMember0 { - content: Array | Array | string | null; + content: + | Array + | Array< + | UnionMember0.Content + | UnionMember0.AgentsAPIAutogenTasksContentModel + | UnionMember0.ContentModel1Input + > + | string + | null; role: 'user' | 'assistant' | 'system' | 'tool'; @@ -16943,16 +19519,16 @@ export namespace TaskCreateOrUpdateParams { type?: 'text'; } - export interface ContentModel { + export interface AgentsAPIAutogenTasksContentModel { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: AgentsAPIAutogenTasksContentModel.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace AgentsAPIAutogenTasksContentModel { /** * The image URL */ @@ -16963,6 +19539,41 @@ export namespace TaskCreateOrUpdateParams { } } + /** + * Anthropic image content part + */ + export interface ContentModel1Input { + content: Array | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace ContentModel1Input { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface ChosenFunctionCall { function: ChosenFunctionCall.Function; @@ -17157,6 +19768,9 @@ export namespace TaskCreateOrUpdateParams { | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.RemoteBrowserIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.LlamaParseIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.FfmpegIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryUploadIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryEditIntegrationDef | null; /** @@ -17742,79 +20356,198 @@ export namespace TaskCreateOrUpdateParams { export interface Setup { connect_url?: string | null; - height?: number | null; + height?: number | null; + + width?: number | null; + } + + /** + * The arguments for the remote browser + */ + export interface Arguments { + action: + | 'key' + | 'type' + | 'mouse_move' + | 'left_click' + | 'left_click_drag' + | 'right_click' + | 'middle_click' + | 'double_click' + | 'screenshot' + | 'cursor_position' + | 'navigate' + | 'refresh'; + + connect_url?: string | null; + + coordinate?: Array | null; + + text?: string | null; + } + } + + /** + * LlamaParse integration definition + */ + export interface LlamaParseIntegrationDef { + /** + * Arguments for LlamaParse integration + */ + arguments?: LlamaParseIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'llama_parse'; + + /** + * Setup parameters for LlamaParse integration + */ + setup?: LlamaParseIntegrationDef.Setup | null; + } + + export namespace LlamaParseIntegrationDef { + /** + * Arguments for LlamaParse integration + */ + export interface Arguments { + file: string; + + filename?: string | null; + + language?: string; + + num_workers?: number; + + result_format?: 'text' | 'markdown'; + + verbose?: boolean; + } + + /** + * Setup parameters for LlamaParse integration + */ + export interface Setup { + llamaparse_api_key: string; + } + } + + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; - width?: number | null; + return_base64?: boolean; + + upload_params?: unknown | null; } /** - * The arguments for the remote browser + * Setup parameters for Cloudinary integration */ - export interface Arguments { - action: - | 'key' - | 'type' - | 'mouse_move' - | 'left_click' - | 'left_click_drag' - | 'right_click' - | 'middle_click' - | 'double_click' - | 'screenshot' - | 'cursor_position' - | 'navigate' - | 'refresh'; + export interface Setup { + cloudinary_api_key: string; - connect_url?: string | null; + cloudinary_api_secret: string; - coordinate?: Array | null; + cloudinary_cloud_name: string; - text?: string | null; + params?: unknown | null; } } /** - * LlamaParse integration definition + * Cloudinary edit integration definition */ - export interface LlamaParseIntegrationDef { + export interface CloudinaryEditIntegrationDef { /** - * Arguments for LlamaParse integration + * Arguments for Cloudinary media edit */ - arguments?: LlamaParseIntegrationDef.Arguments | null; + arguments?: CloudinaryEditIntegrationDef.Arguments | null; - method?: string | null; + method?: 'media_edit'; - provider?: 'llama_parse'; + provider?: 'cloudinary'; /** - * Setup parameters for LlamaParse integration + * Setup parameters for Cloudinary integration */ - setup?: LlamaParseIntegrationDef.Setup | null; + setup?: CloudinaryEditIntegrationDef.Setup | null; } - export namespace LlamaParseIntegrationDef { + export namespace CloudinaryEditIntegrationDef { /** - * Arguments for LlamaParse integration + * Arguments for Cloudinary media edit */ export interface Arguments { - file: string; - - filename?: string | null; - - language?: string; - - num_workers?: number; + public_id: string; - result_format?: 'text' | 'markdown'; + transformation: Array; - verbose?: boolean; + return_base64?: boolean; } /** - * Setup parameters for LlamaParse integration + * Setup parameters for Cloudinary integration */ export interface Setup { - llamaparse_api_key: string; + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; } } @@ -18024,7 +20757,15 @@ export namespace TaskCreateOrUpdateParams { export namespace PromptStepInput { export interface UnionMember0 { - content: Array | Array | string | null; + content: + | Array + | Array< + | UnionMember0.Content + | UnionMember0.AgentsAPIAutogenTasksContentModel + | UnionMember0.ContentModel1Input + > + | string + | null; role: 'user' | 'assistant' | 'system' | 'tool'; @@ -18049,16 +20790,16 @@ export namespace TaskCreateOrUpdateParams { type?: 'text'; } - export interface ContentModel { + export interface AgentsAPIAutogenTasksContentModel { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: AgentsAPIAutogenTasksContentModel.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace AgentsAPIAutogenTasksContentModel { /** * The image URL */ @@ -18069,6 +20810,41 @@ export namespace TaskCreateOrUpdateParams { } } + /** + * Anthropic image content part + */ + export interface ContentModel1Input { + content: Array | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace ContentModel1Input { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface ChosenFunctionCall { function: ChosenFunctionCall.Function; @@ -18263,6 +21039,9 @@ export namespace TaskCreateOrUpdateParams { | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.RemoteBrowserIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.LlamaParseIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.FfmpegIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryUploadIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryEditIntegrationDef | null; /** @@ -18924,6 +21703,125 @@ export namespace TaskCreateOrUpdateParams { } } + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + /** * System definition */ @@ -19096,7 +21994,15 @@ export namespace TaskCreateOrUpdateParams { export namespace PromptStepInput { export interface UnionMember0 { - content: Array | Array | string | null; + content: + | Array + | Array< + | UnionMember0.Content + | UnionMember0.AgentsAPIAutogenTasksContentModel + | UnionMember0.ContentModel1Input + > + | string + | null; role: 'user' | 'assistant' | 'system' | 'tool'; @@ -19121,16 +22027,16 @@ export namespace TaskCreateOrUpdateParams { type?: 'text'; } - export interface ContentModel { + export interface AgentsAPIAutogenTasksContentModel { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: AgentsAPIAutogenTasksContentModel.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace AgentsAPIAutogenTasksContentModel { /** * The image URL */ @@ -19141,6 +22047,41 @@ export namespace TaskCreateOrUpdateParams { } } + /** + * Anthropic image content part + */ + export interface ContentModel1Input { + content: Array | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace ContentModel1Input { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface ChosenFunctionCall { function: ChosenFunctionCall.Function; @@ -19335,6 +22276,9 @@ export namespace TaskCreateOrUpdateParams { | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.RemoteBrowserIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.LlamaParseIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.FfmpegIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryUploadIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryEditIntegrationDef | null; /** @@ -19943,56 +22887,175 @@ export namespace TaskCreateOrUpdateParams { | 'navigate' | 'refresh'; - connect_url?: string | null; + connect_url?: string | null; + + coordinate?: Array | null; + + text?: string | null; + } + } + + /** + * LlamaParse integration definition + */ + export interface LlamaParseIntegrationDef { + /** + * Arguments for LlamaParse integration + */ + arguments?: LlamaParseIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'llama_parse'; + + /** + * Setup parameters for LlamaParse integration + */ + setup?: LlamaParseIntegrationDef.Setup | null; + } + + export namespace LlamaParseIntegrationDef { + /** + * Arguments for LlamaParse integration + */ + export interface Arguments { + file: string; + + filename?: string | null; + + language?: string; + + num_workers?: number; + + result_format?: 'text' | 'markdown'; + + verbose?: boolean; + } + + /** + * Setup parameters for LlamaParse integration + */ + export interface Setup { + llamaparse_api_key: string; + } + } + + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; - coordinate?: Array | null; + return_base64?: boolean; - text?: string | null; + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; } } /** - * LlamaParse integration definition + * Cloudinary edit integration definition */ - export interface LlamaParseIntegrationDef { + export interface CloudinaryEditIntegrationDef { /** - * Arguments for LlamaParse integration + * Arguments for Cloudinary media edit */ - arguments?: LlamaParseIntegrationDef.Arguments | null; + arguments?: CloudinaryEditIntegrationDef.Arguments | null; - method?: string | null; + method?: 'media_edit'; - provider?: 'llama_parse'; + provider?: 'cloudinary'; /** - * Setup parameters for LlamaParse integration + * Setup parameters for Cloudinary integration */ - setup?: LlamaParseIntegrationDef.Setup | null; + setup?: CloudinaryEditIntegrationDef.Setup | null; } - export namespace LlamaParseIntegrationDef { + export namespace CloudinaryEditIntegrationDef { /** - * Arguments for LlamaParse integration + * Arguments for Cloudinary media edit */ export interface Arguments { - file: string; - - filename?: string | null; - - language?: string; - - num_workers?: number; + public_id: string; - result_format?: 'text' | 'markdown'; + transformation: Array; - verbose?: boolean; + return_base64?: boolean; } /** - * Setup parameters for LlamaParse integration + * Setup parameters for Cloudinary integration */ export interface Setup { - llamaparse_api_key: string; + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; } } @@ -20199,7 +23262,15 @@ export namespace TaskCreateOrUpdateParams { export namespace PromptStepInput { export interface UnionMember0 { - content: Array | Array | string | null; + content: + | Array + | Array< + | UnionMember0.Content + | UnionMember0.AgentsAPIAutogenTasksContentModel + | UnionMember0.ContentModel1Input + > + | string + | null; role: 'user' | 'assistant' | 'system' | 'tool'; @@ -20224,16 +23295,16 @@ export namespace TaskCreateOrUpdateParams { type?: 'text'; } - export interface ContentModel { + export interface AgentsAPIAutogenTasksContentModel { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: AgentsAPIAutogenTasksContentModel.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace AgentsAPIAutogenTasksContentModel { /** * The image URL */ @@ -20244,6 +23315,41 @@ export namespace TaskCreateOrUpdateParams { } } + /** + * Anthropic image content part + */ + export interface ContentModel1Input { + content: Array | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace ContentModel1Input { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface ChosenFunctionCall { function: ChosenFunctionCall.Function; @@ -20438,6 +23544,9 @@ export namespace TaskCreateOrUpdateParams { | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.RemoteBrowserIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.LlamaParseIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.FfmpegIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryUploadIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryEditIntegrationDef | null; /** @@ -21099,6 +24208,125 @@ export namespace TaskCreateOrUpdateParams { } } + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + /** * System definition */ @@ -21321,7 +24549,15 @@ export namespace TaskCreateOrUpdateParams { export namespace PromptStepInput { export interface UnionMember0 { - content: Array | Array | string | null; + content: + | Array + | Array< + | UnionMember0.Content + | UnionMember0.AgentsAPIAutogenTasksContentModel + | UnionMember0.ContentModel1Input + > + | string + | null; role: 'user' | 'assistant' | 'system' | 'tool'; @@ -21346,16 +24582,16 @@ export namespace TaskCreateOrUpdateParams { type?: 'text'; } - export interface ContentModel { + export interface AgentsAPIAutogenTasksContentModel { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: AgentsAPIAutogenTasksContentModel.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace AgentsAPIAutogenTasksContentModel { /** * The image URL */ @@ -21366,6 +24602,41 @@ export namespace TaskCreateOrUpdateParams { } } + /** + * Anthropic image content part + */ + export interface ContentModel1Input { + content: Array | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace ContentModel1Input { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface ChosenFunctionCall { function: ChosenFunctionCall.Function; @@ -21560,6 +24831,9 @@ export namespace TaskCreateOrUpdateParams { | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.RemoteBrowserIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.LlamaParseIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.FfmpegIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryUploadIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryEditIntegrationDef | null; /** @@ -22221,6 +25495,125 @@ export namespace TaskCreateOrUpdateParams { } } + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + /** * System definition */ @@ -22368,7 +25761,15 @@ export namespace TaskCreateOrUpdateParams { export namespace PromptStepInput { export interface UnionMember0 { - content: Array | Array | string | null; + content: + | Array + | Array< + | UnionMember0.Content + | UnionMember0.AgentsAPIAutogenTasksContentModel + | UnionMember0.ContentModel1Input + > + | string + | null; role: 'user' | 'assistant' | 'system' | 'tool'; @@ -22393,23 +25794,58 @@ export namespace TaskCreateOrUpdateParams { type?: 'text'; } - export interface ContentModel { + export interface AgentsAPIAutogenTasksContentModel { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: AgentsAPIAutogenTasksContentModel.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace AgentsAPIAutogenTasksContentModel { /** * The image URL */ export interface ImageURL { url: string; - detail?: 'low' | 'high' | 'auto'; + detail?: 'low' | 'high' | 'auto'; + } + } + + /** + * Anthropic image content part + */ + export interface ContentModel1Input { + content: Array | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace ContentModel1Input { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } } } @@ -22607,6 +26043,9 @@ export namespace TaskCreateOrUpdateParams { | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.RemoteBrowserIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.LlamaParseIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.FfmpegIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryUploadIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryEditIntegrationDef | null; /** @@ -23268,6 +26707,125 @@ export namespace TaskCreateOrUpdateParams { } } + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + /** * System definition */ @@ -23421,7 +26979,15 @@ export namespace TaskCreateOrUpdateParams { export namespace PromptStepInput { export interface UnionMember0 { - content: Array | Array | string | null; + content: + | Array + | Array< + | UnionMember0.Content + | UnionMember0.AgentsAPIAutogenTasksContentModel + | UnionMember0.ContentModel1Input + > + | string + | null; role: 'user' | 'assistant' | 'system' | 'tool'; @@ -23446,16 +27012,16 @@ export namespace TaskCreateOrUpdateParams { type?: 'text'; } - export interface ContentModel { + export interface AgentsAPIAutogenTasksContentModel { /** * The image URL */ - image_url: ContentModel.ImageURL; + image_url: AgentsAPIAutogenTasksContentModel.ImageURL; type?: 'image_url'; } - export namespace ContentModel { + export namespace AgentsAPIAutogenTasksContentModel { /** * The image URL */ @@ -23466,6 +27032,41 @@ export namespace TaskCreateOrUpdateParams { } } + /** + * Anthropic image content part + */ + export interface ContentModel1Input { + content: Array | Array; + + tool_use_id: string; + + type?: 'tool_result'; + } + + export namespace ContentModel1Input { + export interface UnionMember0 { + text: string; + + type?: 'text'; + } + + export interface UnionMember1 { + source: UnionMember1.Source; + + type?: 'image'; + } + + export namespace UnionMember1 { + export interface Source { + data: string; + + media_type: string; + + type?: 'base64'; + } + } + } + export interface ChosenFunctionCall { function: ChosenFunctionCall.Function; @@ -23660,6 +27261,9 @@ export namespace TaskCreateOrUpdateParams { | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.RemoteBrowserIntegrationDef | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.LlamaParseIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.FfmpegIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryUploadIntegrationDef + | AgentsAPIAutogenOpenAPIModelCreateToolRequestInput.CloudinaryEditIntegrationDef | null; /** @@ -24321,6 +27925,125 @@ export namespace TaskCreateOrUpdateParams { } } + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + /** * System definition */ @@ -24436,6 +28159,9 @@ export namespace TaskCreateOrUpdateParams { | Tool.BrowserbaseGetSessionConnectURLIntegrationDef | Tool.RemoteBrowserIntegrationDef | Tool.LlamaParseIntegrationDef + | Tool.FfmpegIntegrationDef + | Tool.CloudinaryUploadIntegrationDef + | Tool.CloudinaryEditIntegrationDef | null; /** @@ -25097,6 +28823,125 @@ export namespace TaskCreateOrUpdateParams { } } + /** + * Ffmpeg integration definition + */ + export interface FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + arguments?: FfmpegIntegrationDef.Arguments | null; + + method?: string | null; + + provider?: 'ffmpeg'; + + setup?: unknown | null; + } + + export namespace FfmpegIntegrationDef { + /** + * Arguments for Ffmpeg CMD + */ + export interface Arguments { + cmd: string; + + file?: string | null; + } + } + + /** + * Cloudinary upload integration definition + */ + export interface CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + + method?: 'media_upload'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryUploadIntegrationDef.Setup | null; + } + + export namespace CloudinaryUploadIntegrationDef { + /** + * Arguments for Cloudinary media upload + */ + export interface Arguments { + file: string; + + public_id?: string | null; + + return_base64?: boolean; + + upload_params?: unknown | null; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + + /** + * Cloudinary edit integration definition + */ + export interface CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + arguments?: CloudinaryEditIntegrationDef.Arguments | null; + + method?: 'media_edit'; + + provider?: 'cloudinary'; + + /** + * Setup parameters for Cloudinary integration + */ + setup?: CloudinaryEditIntegrationDef.Setup | null; + } + + export namespace CloudinaryEditIntegrationDef { + /** + * Arguments for Cloudinary media edit + */ + export interface Arguments { + public_id: string; + + transformation: Array; + + return_base64?: boolean; + } + + /** + * Setup parameters for Cloudinary integration + */ + export interface Setup { + cloudinary_api_key: string; + + cloudinary_api_secret: string; + + cloudinary_cloud_name: string; + + params?: unknown | null; + } + } + /** * System definition */ From 00e74d66eb79040d33454cc92bfa84d18c400d7c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 20 Nov 2024 11:13:36 +0000 Subject: [PATCH 5/5] release: 1.39.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 19 +++++++++++++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 22 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 00a5aed..32fe2b3 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.38.0" + ".": "1.39.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fcb1a5..8d92fda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## 1.39.0 (2024-11-20) + +Full Changelog: [v1.38.0...v1.39.0](https://github.com/julep-ai/node-sdk/compare/v1.38.0...v1.39.0) + +### Features + +* **api:** api update ([#134](https://github.com/julep-ai/node-sdk/issues/134)) ([0b34041](https://github.com/julep-ai/node-sdk/commit/0b340411112cc23e68a0acc309fc3fa5c614524b)) + + +### Chores + +* rebuild project due to codegen change ([#130](https://github.com/julep-ai/node-sdk/issues/130)) ([6750ae5](https://github.com/julep-ai/node-sdk/commit/6750ae5f888b9f1ec04bf715c5c479828f36013e)) +* remove redundant word in comment ([#133](https://github.com/julep-ai/node-sdk/issues/133)) ([11c1575](https://github.com/julep-ai/node-sdk/commit/11c15751e1393c0a58b58adaf9df851fc3dd16ce)) + + +### Documentation + +* remove suggestion to use `npm` call out ([#132](https://github.com/julep-ai/node-sdk/issues/132)) ([87101a1](https://github.com/julep-ai/node-sdk/commit/87101a1af69d2f64df2dcd2828bfbb825f362254)) + ## 1.38.0 (2024-11-16) Full Changelog: [v1.37.0...v1.38.0](https://github.com/julep-ai/node-sdk/compare/v1.37.0...v1.38.0) diff --git a/package.json b/package.json index a02aa18..69a0990 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@julep/sdk", - "version": "1.38.0", + "version": "1.39.0", "description": "The official TypeScript library for the Julep API", "author": "Julep ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index c07f5b2..372a684 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '1.38.0'; // x-release-please-version +export const VERSION = '1.39.0'; // x-release-please-version