diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index e41f3fe..8a527d2 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "1.47.0"
+ ".": "1.48.0"
}
diff --git a/.stats.yml b/.stats.yml
index dc6553a..cef7f76 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,2 +1,2 @@
-configured_endpoints: 47
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/julep-ai-inc-dash%2Fjulep-87a89469a2262492355fab423c5349f0fd6a020cdd7fde8de9ec8c14bf2c57eb.yml
+configured_endpoints: 52
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/julep-ai-inc-dash%2Fjulep-a707ace7212c4b8c3a63c93c36a42e1f77d7ca0969d1c2258560d0021c473a8a.yml
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 63721ac..b4159e0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## 1.48.0 (2025-01-13)
+
+Full Changelog: [v1.47.0...v1.48.0](https://github.com/julep-ai/node-sdk/compare/v1.47.0...v1.48.0)
+
+### Features
+
+* **api:** api update ([#179](https://github.com/julep-ai/node-sdk/issues/179)) ([dda5534](https://github.com/julep-ai/node-sdk/commit/dda55342596144add0871bcc324f73d780416512))
+
## 1.47.0 (2025-01-11)
Full Changelog: [v1.46.0...v1.47.0](https://github.com/julep-ai/node-sdk/compare/v1.46.0...v1.47.0)
diff --git a/api.md b/api.md
index 8d85f61..90b6792 100644
--- a/api.md
+++ b/api.md
@@ -24,6 +24,18 @@ Methods:
## Tools
+Types:
+
+- ToolListResponse
+
+Methods:
+
+- client.agents.tools.create(agentId, { ...params }) -> ResourceCreated
+- client.agents.tools.update(agentId, toolId, { ...params }) -> ResourceUpdated
+- client.agents.tools.list(agentId, { ...params }) -> ToolListResponsesOffsetPagination
+- client.agents.tools.delete(agentId, toolId) -> ResourceDeleted
+- client.agents.tools.patch(agentId, toolId, { ...params }) -> ResourceUpdated
+
## Docs
Types:
diff --git a/package.json b/package.json
index 764bc78..7b58e13 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@julep/sdk",
- "version": "1.47.0",
+ "version": "1.48.0",
"description": "The official TypeScript library for the Julep API",
"author": "Julep ",
"types": "dist/index.d.ts",
diff --git a/src/resources/agents/agents.ts b/src/resources/agents/agents.ts
index 3b330c3..dcc05a3 100644
--- a/src/resources/agents/agents.ts
+++ b/src/resources/agents/agents.ts
@@ -7,7 +7,15 @@ import * as Shared from '../shared';
import * as DocsAPI from './docs';
import { DocCreateParams, DocListParams, DocSearchParams, DocSearchResponse, Docs } from './docs';
import * as ToolsAPI from './tools';
-import { Tools } from './tools';
+import {
+ ToolCreateParams,
+ ToolListParams,
+ ToolListResponse,
+ ToolListResponsesOffsetPagination,
+ ToolPatchParams,
+ ToolUpdateParams,
+ Tools,
+} from './tools';
import { OffsetPagination, type OffsetPaginationParams } from '../../pagination';
export class Agents extends APIResource {
@@ -305,6 +313,7 @@ export namespace AgentPatchParams {
Agents.AgentsOffsetPagination = AgentsOffsetPagination;
Agents.Tools = Tools;
+Agents.ToolListResponsesOffsetPagination = ToolListResponsesOffsetPagination;
Agents.Docs = Docs;
export declare namespace Agents {
@@ -318,7 +327,15 @@ export declare namespace Agents {
type AgentPatchParams as AgentPatchParams,
};
- export { Tools as Tools };
+ export {
+ Tools as Tools,
+ type ToolListResponse as ToolListResponse,
+ ToolListResponsesOffsetPagination as ToolListResponsesOffsetPagination,
+ type ToolCreateParams as ToolCreateParams,
+ type ToolUpdateParams as ToolUpdateParams,
+ type ToolListParams as ToolListParams,
+ type ToolPatchParams as ToolPatchParams,
+ };
export {
Docs as Docs,
diff --git a/src/resources/agents/index.ts b/src/resources/agents/index.ts
index 6334bb8..603671b 100644
--- a/src/resources/agents/index.ts
+++ b/src/resources/agents/index.ts
@@ -17,4 +17,12 @@ export {
type DocListParams,
type DocSearchParams,
} from './docs';
-export { Tools } from './tools';
+export {
+ ToolListResponsesOffsetPagination,
+ Tools,
+ type ToolListResponse,
+ type ToolCreateParams,
+ type ToolUpdateParams,
+ type ToolListParams,
+ type ToolPatchParams,
+} from './tools';
diff --git a/src/resources/agents/tools.ts b/src/resources/agents/tools.ts
index c10635b..36eb9c8 100644
--- a/src/resources/agents/tools.ts
+++ b/src/resources/agents/tools.ts
@@ -1,5 +1,3719 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../resource';
+import { isRequestOptions } from '../../core';
+import * as Core from '../../core';
+import * as Shared from '../shared';
+import { OffsetPagination, type OffsetPaginationParams } from '../../pagination';
-export class Tools extends APIResource {}
+export class Tools extends APIResource {
+ /**
+ * Create Agent Tool
+ */
+ create(
+ agentId: string,
+ body: ToolCreateParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ return this._client.post(`/agents/${agentId}/tools`, { body, ...options });
+ }
+
+ /**
+ * Update Agent Tool
+ */
+ update(
+ agentId: string,
+ toolId: string,
+ body: ToolUpdateParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ return this._client.put(`/agents/${agentId}/tools/${toolId}`, { body, ...options });
+ }
+
+ /**
+ * List Agent Tools
+ */
+ list(
+ agentId: string,
+ query?: ToolListParams,
+ options?: Core.RequestOptions,
+ ): Core.PagePromise;
+ list(
+ agentId: string,
+ options?: Core.RequestOptions,
+ ): Core.PagePromise;
+ list(
+ agentId: string,
+ query: ToolListParams | Core.RequestOptions = {},
+ options?: Core.RequestOptions,
+ ): Core.PagePromise {
+ if (isRequestOptions(query)) {
+ return this.list(agentId, {}, query);
+ }
+ return this._client.getAPIList(`/agents/${agentId}/tools`, ToolListResponsesOffsetPagination, {
+ query,
+ ...options,
+ });
+ }
+
+ /**
+ * Delete Agent Tool
+ */
+ delete(
+ agentId: string,
+ toolId: string,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ return this._client.delete(`/agents/${agentId}/tools/${toolId}`, options);
+ }
+
+ /**
+ * Patch Agent Tool
+ */
+ patch(
+ agentId: string,
+ toolId: string,
+ body: ToolPatchParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ return this._client.patch(`/agents/${agentId}/tools/${toolId}`, { body, ...options });
+ }
+}
+
+export class ToolListResponsesOffsetPagination extends OffsetPagination {}
+
+export interface ToolListResponse {
+ id: string;
+
+ created_at: string;
+
+ name: string;
+
+ type:
+ | 'function'
+ | 'integration'
+ | 'system'
+ | 'api_call'
+ | 'computer_20241022'
+ | 'text_editor_20241022'
+ | 'bash_20241022';
+
+ updated_at: string;
+
+ /**
+ * API call definition
+ */
+ api_call?: ToolListResponse.APICall | null;
+
+ bash_20241022?: ToolListResponse.Bash20241022 | null;
+
+ /**
+ * Anthropic new tools
+ */
+ computer_20241022?: ToolListResponse.Computer20241022 | null;
+
+ description?: string | null;
+
+ /**
+ * Function definition
+ */
+ function?: ToolListResponse.Function | null;
+
+ /**
+ * Brave integration definition
+ */
+ integration?:
+ | ToolListResponse.DummyIntegrationDef
+ | ToolListResponse.BraveIntegrationDef
+ | ToolListResponse.EmailIntegrationDef
+ | ToolListResponse.SpiderIntegrationDefOutput
+ | ToolListResponse.WikipediaIntegrationDef
+ | ToolListResponse.WeatherIntegrationDef
+ | ToolListResponse.BrowserbaseContextIntegrationDef
+ | ToolListResponse.BrowserbaseExtensionIntegrationDef
+ | ToolListResponse.BrowserbaseListSessionsIntegrationDef
+ | ToolListResponse.BrowserbaseCreateSessionIntegrationDef
+ | ToolListResponse.BrowserbaseGetSessionIntegrationDef
+ | ToolListResponse.BrowserbaseCompleteSessionIntegrationDef
+ | ToolListResponse.BrowserbaseGetSessionLiveURLsIntegrationDef
+ | ToolListResponse.BrowserbaseGetSessionConnectURLIntegrationDef
+ | ToolListResponse.RemoteBrowserIntegrationDef
+ | ToolListResponse.LlamaParseIntegrationDef
+ | ToolListResponse.FfmpegIntegrationDef
+ | ToolListResponse.CloudinaryUploadIntegrationDef
+ | ToolListResponse.CloudinaryEditIntegrationDef
+ | ToolListResponse.ArxivIntegrationDef
+ | null;
+
+ /**
+ * System definition
+ */
+ system?: ToolListResponse.System | null;
+
+ text_editor_20241022?: ToolListResponse.TextEditor20241022 | null;
+}
+
+export namespace ToolListResponse {
+ /**
+ * API call definition
+ */
+ export interface APICall {
+ method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS' | 'CONNECT' | 'TRACE';
+
+ url: string;
+
+ content?: string | null;
+
+ cookies?: Record | null;
+
+ data?: unknown | null;
+
+ files?: unknown | null;
+
+ follow_redirects?: boolean | null;
+
+ headers?: Record | null;
+
+ json?: unknown | null;
+
+ params?: string | unknown | null;
+
+ schema?: unknown | null;
+
+ timeout?: number | null;
+ }
+
+ export interface Bash20241022 {
+ name?: string;
+
+ type?: 'bash_20241022';
+ }
+
+ /**
+ * Anthropic new tools
+ */
+ export interface Computer20241022 {
+ display_height_px?: number;
+
+ display_number?: number;
+
+ display_width_px?: number;
+
+ name?: string;
+
+ type?: 'computer_20241022';
+ }
+
+ /**
+ * Function definition
+ */
+ export interface Function {
+ description?: unknown;
+
+ name?: unknown;
+
+ parameters?: unknown | null;
+ }
+
+ export interface DummyIntegrationDef {
+ arguments?: unknown;
+
+ method?: string | null;
+
+ provider?: 'dummy';
+
+ setup?: unknown;
+ }
+
+ /**
+ * Brave integration definition
+ */
+ export interface BraveIntegrationDef {
+ /**
+ * Arguments for Brave Search
+ */
+ arguments?: BraveIntegrationDef.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'brave';
+
+ /**
+ * Integration definition for Brave Search
+ */
+ setup?: BraveIntegrationDef.Setup | null;
+ }
+
+ export namespace BraveIntegrationDef {
+ /**
+ * Arguments for Brave Search
+ */
+ export interface Arguments {
+ query: string;
+ }
+
+ /**
+ * Integration definition for Brave Search
+ */
+ export interface Setup {
+ api_key: string;
+ }
+ }
+
+ /**
+ * Email integration definition
+ */
+ export interface EmailIntegrationDef {
+ /**
+ * Arguments for Email sending
+ */
+ arguments?: EmailIntegrationDef.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'email';
+
+ /**
+ * Setup parameters for Email integration
+ */
+ setup?: EmailIntegrationDef.Setup | null;
+ }
+
+ export namespace EmailIntegrationDef {
+ /**
+ * Arguments for Email sending
+ */
+ export interface Arguments {
+ body: string;
+
+ from: string;
+
+ subject: string;
+
+ to: string;
+ }
+
+ /**
+ * Setup parameters for Email integration
+ */
+ export interface Setup {
+ host: string;
+
+ password: string;
+
+ port: number;
+
+ user: string;
+ }
+ }
+
+ /**
+ * Spider integration definition
+ */
+ export interface SpiderIntegrationDefOutput {
+ /**
+ * Arguments for Spider integration
+ */
+ arguments?: SpiderIntegrationDefOutput.Arguments | null;
+
+ method?: 'crawl' | 'links' | 'screenshot' | 'search' | null;
+
+ provider?: 'spider';
+
+ /**
+ * Setup parameters for Spider integration
+ */
+ setup?: SpiderIntegrationDefOutput.Setup | null;
+ }
+
+ export namespace SpiderIntegrationDefOutput {
+ /**
+ * Arguments for Spider integration
+ */
+ export interface Arguments {
+ url: string;
+
+ content_type?: 'application/json' | 'text/csv' | 'application/xml' | 'application/jsonl';
+
+ params?: unknown | null;
+ }
+
+ /**
+ * Setup parameters for Spider integration
+ */
+ export interface Setup {
+ spider_api_key: string;
+ }
+ }
+
+ /**
+ * Wikipedia integration definition
+ */
+ export interface WikipediaIntegrationDef {
+ /**
+ * Arguments for Wikipedia Search
+ */
+ arguments?: WikipediaIntegrationDef.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'wikipedia';
+
+ setup?: unknown;
+ }
+
+ export namespace WikipediaIntegrationDef {
+ /**
+ * Arguments for Wikipedia Search
+ */
+ export interface Arguments {
+ query: string;
+
+ load_max_docs?: number;
+ }
+ }
+
+ /**
+ * Weather integration definition
+ */
+ export interface WeatherIntegrationDef {
+ /**
+ * Arguments for Weather
+ */
+ arguments?: WeatherIntegrationDef.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'weather';
+
+ /**
+ * Integration definition for Weather
+ */
+ setup?: WeatherIntegrationDef.Setup | null;
+ }
+
+ export namespace WeatherIntegrationDef {
+ /**
+ * Arguments for Weather
+ */
+ export interface Arguments {
+ location: string;
+ }
+
+ /**
+ * Integration definition for Weather
+ */
+ export interface Setup {
+ openweathermap_api_key: string;
+ }
+ }
+
+ /**
+ * browserbase context provider
+ */
+ export interface BrowserbaseContextIntegrationDef {
+ arguments?: BrowserbaseContextIntegrationDef.Arguments | null;
+
+ method?: 'create_context';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseContextIntegrationDef.Setup | null;
+ }
+
+ export namespace BrowserbaseContextIntegrationDef {
+ export interface Arguments {
+ projectId: string;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key: string;
+
+ project_id: string;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+ }
+ }
+
+ /**
+ * browserbase extension provider
+ */
+ export interface BrowserbaseExtensionIntegrationDef {
+ arguments?: BrowserbaseExtensionIntegrationDef.Arguments | null;
+
+ method?: 'install_extension_from_github' | null;
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseExtensionIntegrationDef.Setup | null;
+ }
+
+ export namespace BrowserbaseExtensionIntegrationDef {
+ export interface Arguments {
+ repositoryName: string;
+
+ ref?: string | null;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key: string;
+
+ project_id: string;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+ }
+ }
+
+ /**
+ * browserbase list sessions integration definition
+ */
+ export interface BrowserbaseListSessionsIntegrationDef {
+ arguments?: BrowserbaseListSessionsIntegrationDef.Arguments | null;
+
+ method?: 'list_sessions';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseListSessionsIntegrationDef.Setup | null;
+ }
+
+ export namespace BrowserbaseListSessionsIntegrationDef {
+ export interface Arguments {
+ status?: 'RUNNING' | 'ERROR' | 'TIMED_OUT' | 'COMPLETED' | null;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key: string;
+
+ project_id: string;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+ }
+ }
+
+ /**
+ * browserbase create session integration definition
+ */
+ export interface BrowserbaseCreateSessionIntegrationDef {
+ arguments?: BrowserbaseCreateSessionIntegrationDef.Arguments | null;
+
+ method?: 'create_session';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseCreateSessionIntegrationDef.Setup | null;
+ }
+
+ export namespace BrowserbaseCreateSessionIntegrationDef {
+ export interface Arguments {
+ browserSettings?: unknown;
+
+ extensionId?: string | null;
+
+ keepAlive?: boolean;
+
+ projectId?: string | null;
+
+ proxies?: boolean | Array;
+
+ timeout?: number;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key: string;
+
+ project_id: string;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+ }
+ }
+
+ /**
+ * browserbase get session integration definition
+ */
+ export interface BrowserbaseGetSessionIntegrationDef {
+ arguments?: BrowserbaseGetSessionIntegrationDef.Arguments | null;
+
+ method?: 'get_session';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseGetSessionIntegrationDef.Setup | null;
+ }
+
+ export namespace BrowserbaseGetSessionIntegrationDef {
+ export interface Arguments {
+ id: string;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key: string;
+
+ project_id: string;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+ }
+ }
+
+ /**
+ * browserbase complete session integration definition
+ */
+ export interface BrowserbaseCompleteSessionIntegrationDef {
+ arguments?: BrowserbaseCompleteSessionIntegrationDef.Arguments | null;
+
+ method?: 'complete_session';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseCompleteSessionIntegrationDef.Setup | null;
+ }
+
+ export namespace BrowserbaseCompleteSessionIntegrationDef {
+ export interface Arguments {
+ id: string;
+
+ status?: 'REQUEST_RELEASE';
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key: string;
+
+ project_id: string;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+ }
+ }
+
+ /**
+ * browserbase get session live urls integration definition
+ */
+ export interface BrowserbaseGetSessionLiveURLsIntegrationDef {
+ arguments?: BrowserbaseGetSessionLiveURLsIntegrationDef.Arguments | null;
+
+ method?: 'get_live_urls';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseGetSessionLiveURLsIntegrationDef.Setup | null;
+ }
+
+ export namespace BrowserbaseGetSessionLiveURLsIntegrationDef {
+ export interface Arguments {
+ id: string;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key: string;
+
+ project_id: string;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+ }
+ }
+
+ /**
+ * browserbase get session connect url integration definition
+ */
+ export interface BrowserbaseGetSessionConnectURLIntegrationDef {
+ arguments?: BrowserbaseGetSessionConnectURLIntegrationDef.Arguments | null;
+
+ method?: 'get_connect_url';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseGetSessionConnectURLIntegrationDef.Setup | null;
+ }
+
+ export namespace BrowserbaseGetSessionConnectURLIntegrationDef {
+ export interface Arguments {
+ id: string;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key: string;
+
+ project_id: string;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+ }
+ }
+
+ /**
+ * The integration definition for the remote browser
+ */
+ export interface RemoteBrowserIntegrationDef {
+ /**
+ * The setup parameters for the remote browser
+ */
+ setup: RemoteBrowserIntegrationDef.Setup;
+
+ /**
+ * The arguments for the remote browser
+ */
+ arguments?: RemoteBrowserIntegrationDef.Arguments | null;
+
+ method?: 'perform_action';
+
+ provider?: 'remote_browser';
+ }
+
+ export namespace RemoteBrowserIntegrationDef {
+ /**
+ * The setup parameters for the remote browser
+ */
+ export interface Setup {
+ connect_url?: string | 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 | Array;
+
+ base64?: boolean;
+
+ filename?: string | null;
+
+ params?: unknown | null;
+ }
+
+ /**
+ * Setup parameters for LlamaParse integration
+ */
+ export interface Setup {
+ llamaparse_api_key: string;
+
+ params?: unknown | null;
+ }
+ }
+
+ /**
+ * Ffmpeg integration definition
+ */
+ export interface FfmpegIntegrationDef {
+ /**
+ * Arguments for Ffmpeg CMD
+ */
+ arguments?: FfmpegIntegrationDef.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'ffmpeg';
+
+ setup?: unknown;
+ }
+
+ 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;
+ }
+ }
+
+ /**
+ * Arxiv integration definition
+ */
+ export interface ArxivIntegrationDef {
+ /**
+ * Arguments for Arxiv Search
+ */
+ arguments?: ArxivIntegrationDef.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'arxiv';
+
+ setup?: unknown;
+ }
+
+ export namespace ArxivIntegrationDef {
+ /**
+ * Arguments for Arxiv Search
+ */
+ export interface Arguments {
+ query: string;
+
+ download_pdf?: boolean;
+
+ id_list?: Array | null;
+
+ max_results?: number;
+
+ sort_by?: 'relevance' | 'lastUpdatedDate' | 'submittedDate';
+
+ sort_order?: 'ascending' | 'descending';
+ }
+ }
+
+ /**
+ * 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 ToolCreateParams {
+ name: string;
+
+ type:
+ | 'function'
+ | 'integration'
+ | 'system'
+ | 'api_call'
+ | 'computer_20241022'
+ | 'text_editor_20241022'
+ | 'bash_20241022';
+
+ /**
+ * API call definition
+ */
+ api_call?: ToolCreateParams.APICall | null;
+
+ bash_20241022?: ToolCreateParams.Bash20241022 | null;
+
+ /**
+ * Anthropic new tools
+ */
+ computer_20241022?: ToolCreateParams.Computer20241022 | null;
+
+ description?: string | null;
+
+ /**
+ * Function definition
+ */
+ function?: ToolCreateParams.Function | null;
+
+ /**
+ * Brave integration definition
+ */
+ integration?:
+ | ToolCreateParams.DummyIntegrationDef
+ | ToolCreateParams.BraveIntegrationDef
+ | ToolCreateParams.EmailIntegrationDef
+ | ToolCreateParams.SpiderIntegrationDefInput
+ | ToolCreateParams.WikipediaIntegrationDef
+ | ToolCreateParams.WeatherIntegrationDef
+ | ToolCreateParams.BrowserbaseContextIntegrationDef
+ | ToolCreateParams.BrowserbaseExtensionIntegrationDef
+ | ToolCreateParams.BrowserbaseListSessionsIntegrationDef
+ | ToolCreateParams.BrowserbaseCreateSessionIntegrationDef
+ | ToolCreateParams.BrowserbaseGetSessionIntegrationDef
+ | ToolCreateParams.BrowserbaseCompleteSessionIntegrationDef
+ | ToolCreateParams.BrowserbaseGetSessionLiveURLsIntegrationDef
+ | ToolCreateParams.BrowserbaseGetSessionConnectURLIntegrationDef
+ | ToolCreateParams.RemoteBrowserIntegrationDef
+ | ToolCreateParams.LlamaParseIntegrationDef
+ | ToolCreateParams.FfmpegIntegrationDef
+ | ToolCreateParams.CloudinaryUploadIntegrationDef
+ | ToolCreateParams.CloudinaryEditIntegrationDef
+ | ToolCreateParams.ArxivIntegrationDef
+ | null;
+
+ /**
+ * System definition
+ */
+ system?: ToolCreateParams.System | null;
+
+ text_editor_20241022?: ToolCreateParams.TextEditor20241022 | null;
+}
+
+export namespace ToolCreateParams {
+ /**
+ * API call definition
+ */
+ export interface APICall {
+ method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS' | 'CONNECT' | 'TRACE';
+
+ url: string;
+
+ content?: string | null;
+
+ cookies?: Record | null;
+
+ data?: unknown | null;
+
+ files?: unknown | null;
+
+ follow_redirects?: boolean | null;
+
+ headers?: Record | null;
+
+ json?: unknown | null;
+
+ params?: string | unknown | null;
+
+ schema?: unknown | null;
+
+ timeout?: number | null;
+ }
+
+ export interface Bash20241022 {
+ name?: string;
+
+ type?: 'bash_20241022';
+ }
+
+ /**
+ * Anthropic new tools
+ */
+ export interface Computer20241022 {
+ display_height_px?: number;
+
+ display_number?: number;
+
+ display_width_px?: number;
+
+ name?: string;
+
+ type?: 'computer_20241022';
+ }
+
+ /**
+ * Function definition
+ */
+ export interface Function {
+ description?: unknown;
+
+ name?: unknown;
+
+ parameters?: unknown | null;
+ }
+
+ export interface DummyIntegrationDef {
+ arguments?: unknown;
+
+ method?: string | null;
+
+ provider?: 'dummy';
+
+ setup?: unknown;
+ }
+
+ /**
+ * Brave integration definition
+ */
+ export interface BraveIntegrationDef {
+ /**
+ * Arguments for Brave Search
+ */
+ arguments?: BraveIntegrationDef.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'brave';
+
+ /**
+ * Integration definition for Brave Search
+ */
+ setup?: BraveIntegrationDef.Setup | null;
+ }
+
+ export namespace BraveIntegrationDef {
+ /**
+ * Arguments for Brave Search
+ */
+ export interface Arguments {
+ query: string;
+ }
+
+ /**
+ * Integration definition for Brave Search
+ */
+ export interface Setup {
+ api_key: string;
+ }
+ }
+
+ /**
+ * Email integration definition
+ */
+ export interface EmailIntegrationDef {
+ /**
+ * Arguments for Email sending
+ */
+ arguments?: EmailIntegrationDef.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'email';
+
+ /**
+ * Setup parameters for Email integration
+ */
+ setup?: EmailIntegrationDef.Setup | null;
+ }
+
+ export namespace EmailIntegrationDef {
+ /**
+ * Arguments for Email sending
+ */
+ export interface Arguments {
+ body: string;
+
+ from: string;
+
+ subject: string;
+
+ to: string;
+ }
+
+ /**
+ * Setup parameters for Email integration
+ */
+ export interface Setup {
+ host: string;
+
+ password: string;
+
+ port: number;
+
+ user: string;
+ }
+ }
+
+ /**
+ * Spider integration definition
+ */
+ export interface SpiderIntegrationDefInput {
+ /**
+ * Arguments for Spider integration
+ */
+ arguments?: SpiderIntegrationDefInput.Arguments | null;
+
+ method?: 'crawl' | 'links' | 'screenshot' | 'search' | null;
+
+ provider?: 'spider';
+
+ /**
+ * Setup parameters for Spider integration
+ */
+ setup?: SpiderIntegrationDefInput.Setup | null;
+ }
+
+ export namespace SpiderIntegrationDefInput {
+ /**
+ * Arguments for Spider integration
+ */
+ export interface Arguments {
+ url: string;
+
+ content_type?: 'application/json' | 'text/csv' | 'application/xml' | 'application/jsonl';
+
+ params?: unknown | null;
+ }
+
+ /**
+ * Setup parameters for Spider integration
+ */
+ export interface Setup {
+ spider_api_key: string;
+ }
+ }
+
+ /**
+ * Wikipedia integration definition
+ */
+ export interface WikipediaIntegrationDef {
+ /**
+ * Arguments for Wikipedia Search
+ */
+ arguments?: WikipediaIntegrationDef.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'wikipedia';
+
+ setup?: unknown;
+ }
+
+ export namespace WikipediaIntegrationDef {
+ /**
+ * Arguments for Wikipedia Search
+ */
+ export interface Arguments {
+ query: string;
+
+ load_max_docs?: number;
+ }
+ }
+
+ /**
+ * Weather integration definition
+ */
+ export interface WeatherIntegrationDef {
+ /**
+ * Arguments for Weather
+ */
+ arguments?: WeatherIntegrationDef.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'weather';
+
+ /**
+ * Integration definition for Weather
+ */
+ setup?: WeatherIntegrationDef.Setup | null;
+ }
+
+ export namespace WeatherIntegrationDef {
+ /**
+ * Arguments for Weather
+ */
+ export interface Arguments {
+ location: string;
+ }
+
+ /**
+ * Integration definition for Weather
+ */
+ export interface Setup {
+ openweathermap_api_key: string;
+ }
+ }
+
+ /**
+ * browserbase context provider
+ */
+ export interface BrowserbaseContextIntegrationDef {
+ arguments?: BrowserbaseContextIntegrationDef.Arguments | null;
+
+ method?: 'create_context';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseContextIntegrationDef.Setup | null;
+ }
+
+ export namespace BrowserbaseContextIntegrationDef {
+ export interface Arguments {
+ projectId: string;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key: string;
+
+ project_id: string;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+ }
+ }
+
+ /**
+ * browserbase extension provider
+ */
+ export interface BrowserbaseExtensionIntegrationDef {
+ arguments?: BrowserbaseExtensionIntegrationDef.Arguments | null;
+
+ method?: 'install_extension_from_github' | null;
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseExtensionIntegrationDef.Setup | null;
+ }
+
+ export namespace BrowserbaseExtensionIntegrationDef {
+ export interface Arguments {
+ repositoryName: string;
+
+ ref?: string | null;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key: string;
+
+ project_id: string;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+ }
+ }
+
+ /**
+ * browserbase list sessions integration definition
+ */
+ export interface BrowserbaseListSessionsIntegrationDef {
+ arguments?: BrowserbaseListSessionsIntegrationDef.Arguments | null;
+
+ method?: 'list_sessions';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseListSessionsIntegrationDef.Setup | null;
+ }
+
+ export namespace BrowserbaseListSessionsIntegrationDef {
+ export interface Arguments {
+ status?: 'RUNNING' | 'ERROR' | 'TIMED_OUT' | 'COMPLETED' | null;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key: string;
+
+ project_id: string;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+ }
+ }
+
+ /**
+ * browserbase create session integration definition
+ */
+ export interface BrowserbaseCreateSessionIntegrationDef {
+ arguments?: BrowserbaseCreateSessionIntegrationDef.Arguments | null;
+
+ method?: 'create_session';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseCreateSessionIntegrationDef.Setup | null;
+ }
+
+ export namespace BrowserbaseCreateSessionIntegrationDef {
+ export interface Arguments {
+ browserSettings?: unknown;
+
+ extensionId?: string | null;
+
+ keepAlive?: boolean;
+
+ projectId?: string | null;
+
+ proxies?: boolean | Array;
+
+ timeout?: number;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key: string;
+
+ project_id: string;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+ }
+ }
+
+ /**
+ * browserbase get session integration definition
+ */
+ export interface BrowserbaseGetSessionIntegrationDef {
+ arguments?: BrowserbaseGetSessionIntegrationDef.Arguments | null;
+
+ method?: 'get_session';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseGetSessionIntegrationDef.Setup | null;
+ }
+
+ export namespace BrowserbaseGetSessionIntegrationDef {
+ export interface Arguments {
+ id: string;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key: string;
+
+ project_id: string;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+ }
+ }
+
+ /**
+ * browserbase complete session integration definition
+ */
+ export interface BrowserbaseCompleteSessionIntegrationDef {
+ arguments?: BrowserbaseCompleteSessionIntegrationDef.Arguments | null;
+
+ method?: 'complete_session';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseCompleteSessionIntegrationDef.Setup | null;
+ }
+
+ export namespace BrowserbaseCompleteSessionIntegrationDef {
+ export interface Arguments {
+ id: string;
+
+ status?: 'REQUEST_RELEASE';
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key: string;
+
+ project_id: string;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+ }
+ }
+
+ /**
+ * browserbase get session live urls integration definition
+ */
+ export interface BrowserbaseGetSessionLiveURLsIntegrationDef {
+ arguments?: BrowserbaseGetSessionLiveURLsIntegrationDef.Arguments | null;
+
+ method?: 'get_live_urls';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseGetSessionLiveURLsIntegrationDef.Setup | null;
+ }
+
+ export namespace BrowserbaseGetSessionLiveURLsIntegrationDef {
+ export interface Arguments {
+ id: string;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key: string;
+
+ project_id: string;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+ }
+ }
+
+ /**
+ * browserbase get session connect url integration definition
+ */
+ export interface BrowserbaseGetSessionConnectURLIntegrationDef {
+ arguments?: BrowserbaseGetSessionConnectURLIntegrationDef.Arguments | null;
+
+ method?: 'get_connect_url';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseGetSessionConnectURLIntegrationDef.Setup | null;
+ }
+
+ export namespace BrowserbaseGetSessionConnectURLIntegrationDef {
+ export interface Arguments {
+ id: string;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key: string;
+
+ project_id: string;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+ }
+ }
+
+ /**
+ * The integration definition for the remote browser
+ */
+ export interface RemoteBrowserIntegrationDef {
+ /**
+ * The setup parameters for the remote browser
+ */
+ setup: RemoteBrowserIntegrationDef.Setup;
+
+ /**
+ * The arguments for the remote browser
+ */
+ arguments?: RemoteBrowserIntegrationDef.Arguments | null;
+
+ method?: 'perform_action';
+
+ provider?: 'remote_browser';
+ }
+
+ export namespace RemoteBrowserIntegrationDef {
+ /**
+ * The setup parameters for the remote browser
+ */
+ export interface Setup {
+ connect_url?: string | 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 | Array;
+
+ base64?: boolean;
+
+ filename?: string | null;
+
+ params?: unknown | null;
+ }
+
+ /**
+ * Setup parameters for LlamaParse integration
+ */
+ export interface Setup {
+ llamaparse_api_key: string;
+
+ params?: unknown | null;
+ }
+ }
+
+ /**
+ * Ffmpeg integration definition
+ */
+ export interface FfmpegIntegrationDef {
+ /**
+ * Arguments for Ffmpeg CMD
+ */
+ arguments?: FfmpegIntegrationDef.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'ffmpeg';
+
+ setup?: unknown;
+ }
+
+ 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;
+ }
+ }
+
+ /**
+ * Arxiv integration definition
+ */
+ export interface ArxivIntegrationDef {
+ /**
+ * Arguments for Arxiv Search
+ */
+ arguments?: ArxivIntegrationDef.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'arxiv';
+
+ setup?: unknown;
+ }
+
+ export namespace ArxivIntegrationDef {
+ /**
+ * Arguments for Arxiv Search
+ */
+ export interface Arguments {
+ query: string;
+
+ download_pdf?: boolean;
+
+ id_list?: Array | null;
+
+ max_results?: number;
+
+ sort_by?: 'relevance' | 'lastUpdatedDate' | 'submittedDate';
+
+ sort_order?: 'ascending' | 'descending';
+ }
+ }
+
+ /**
+ * 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 ToolUpdateParams {
+ name: string;
+
+ type:
+ | 'function'
+ | 'integration'
+ | 'system'
+ | 'api_call'
+ | 'computer_20241022'
+ | 'text_editor_20241022'
+ | 'bash_20241022';
+
+ /**
+ * API call definition
+ */
+ api_call?: ToolUpdateParams.APICall | null;
+
+ bash_20241022?: ToolUpdateParams.Bash20241022 | null;
+
+ /**
+ * Anthropic new tools
+ */
+ computer_20241022?: ToolUpdateParams.Computer20241022 | null;
+
+ description?: string | null;
+
+ /**
+ * Function definition
+ */
+ function?: ToolUpdateParams.Function | null;
+
+ /**
+ * Brave integration definition
+ */
+ integration?:
+ | ToolUpdateParams.DummyIntegrationDef
+ | ToolUpdateParams.BraveIntegrationDef
+ | ToolUpdateParams.EmailIntegrationDef
+ | ToolUpdateParams.SpiderIntegrationDefInput
+ | ToolUpdateParams.WikipediaIntegrationDef
+ | ToolUpdateParams.WeatherIntegrationDef
+ | ToolUpdateParams.BrowserbaseContextIntegrationDef
+ | ToolUpdateParams.BrowserbaseExtensionIntegrationDef
+ | ToolUpdateParams.BrowserbaseListSessionsIntegrationDef
+ | ToolUpdateParams.BrowserbaseCreateSessionIntegrationDef
+ | ToolUpdateParams.BrowserbaseGetSessionIntegrationDef
+ | ToolUpdateParams.BrowserbaseCompleteSessionIntegrationDef
+ | ToolUpdateParams.BrowserbaseGetSessionLiveURLsIntegrationDef
+ | ToolUpdateParams.BrowserbaseGetSessionConnectURLIntegrationDef
+ | ToolUpdateParams.RemoteBrowserIntegrationDef
+ | ToolUpdateParams.LlamaParseIntegrationDef
+ | ToolUpdateParams.FfmpegIntegrationDef
+ | ToolUpdateParams.CloudinaryUploadIntegrationDef
+ | ToolUpdateParams.CloudinaryEditIntegrationDef
+ | ToolUpdateParams.ArxivIntegrationDef
+ | null;
+
+ /**
+ * System definition
+ */
+ system?: ToolUpdateParams.System | null;
+
+ text_editor_20241022?: ToolUpdateParams.TextEditor20241022 | null;
+}
+
+export namespace ToolUpdateParams {
+ /**
+ * API call definition
+ */
+ export interface APICall {
+ method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS' | 'CONNECT' | 'TRACE';
+
+ url: string;
+
+ content?: string | null;
+
+ cookies?: Record | null;
+
+ data?: unknown | null;
+
+ files?: unknown | null;
+
+ follow_redirects?: boolean | null;
+
+ headers?: Record | null;
+
+ json?: unknown | null;
+
+ params?: string | unknown | null;
+
+ schema?: unknown | null;
+
+ timeout?: number | null;
+ }
+
+ export interface Bash20241022 {
+ name?: string;
+
+ type?: 'bash_20241022';
+ }
+
+ /**
+ * Anthropic new tools
+ */
+ export interface Computer20241022 {
+ display_height_px?: number;
+
+ display_number?: number;
+
+ display_width_px?: number;
+
+ name?: string;
+
+ type?: 'computer_20241022';
+ }
+
+ /**
+ * Function definition
+ */
+ export interface Function {
+ description?: unknown;
+
+ name?: unknown;
+
+ parameters?: unknown | null;
+ }
+
+ export interface DummyIntegrationDef {
+ arguments?: unknown;
+
+ method?: string | null;
+
+ provider?: 'dummy';
+
+ setup?: unknown;
+ }
+
+ /**
+ * Brave integration definition
+ */
+ export interface BraveIntegrationDef {
+ /**
+ * Arguments for Brave Search
+ */
+ arguments?: BraveIntegrationDef.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'brave';
+
+ /**
+ * Integration definition for Brave Search
+ */
+ setup?: BraveIntegrationDef.Setup | null;
+ }
+
+ export namespace BraveIntegrationDef {
+ /**
+ * Arguments for Brave Search
+ */
+ export interface Arguments {
+ query: string;
+ }
+
+ /**
+ * Integration definition for Brave Search
+ */
+ export interface Setup {
+ api_key: string;
+ }
+ }
+
+ /**
+ * Email integration definition
+ */
+ export interface EmailIntegrationDef {
+ /**
+ * Arguments for Email sending
+ */
+ arguments?: EmailIntegrationDef.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'email';
+
+ /**
+ * Setup parameters for Email integration
+ */
+ setup?: EmailIntegrationDef.Setup | null;
+ }
+
+ export namespace EmailIntegrationDef {
+ /**
+ * Arguments for Email sending
+ */
+ export interface Arguments {
+ body: string;
+
+ from: string;
+
+ subject: string;
+
+ to: string;
+ }
+
+ /**
+ * Setup parameters for Email integration
+ */
+ export interface Setup {
+ host: string;
+
+ password: string;
+
+ port: number;
+
+ user: string;
+ }
+ }
+
+ /**
+ * Spider integration definition
+ */
+ export interface SpiderIntegrationDefInput {
+ /**
+ * Arguments for Spider integration
+ */
+ arguments?: SpiderIntegrationDefInput.Arguments | null;
+
+ method?: 'crawl' | 'links' | 'screenshot' | 'search' | null;
+
+ provider?: 'spider';
+
+ /**
+ * Setup parameters for Spider integration
+ */
+ setup?: SpiderIntegrationDefInput.Setup | null;
+ }
+
+ export namespace SpiderIntegrationDefInput {
+ /**
+ * Arguments for Spider integration
+ */
+ export interface Arguments {
+ url: string;
+
+ content_type?: 'application/json' | 'text/csv' | 'application/xml' | 'application/jsonl';
+
+ params?: unknown | null;
+ }
+
+ /**
+ * Setup parameters for Spider integration
+ */
+ export interface Setup {
+ spider_api_key: string;
+ }
+ }
+
+ /**
+ * Wikipedia integration definition
+ */
+ export interface WikipediaIntegrationDef {
+ /**
+ * Arguments for Wikipedia Search
+ */
+ arguments?: WikipediaIntegrationDef.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'wikipedia';
+
+ setup?: unknown;
+ }
+
+ export namespace WikipediaIntegrationDef {
+ /**
+ * Arguments for Wikipedia Search
+ */
+ export interface Arguments {
+ query: string;
+
+ load_max_docs?: number;
+ }
+ }
+
+ /**
+ * Weather integration definition
+ */
+ export interface WeatherIntegrationDef {
+ /**
+ * Arguments for Weather
+ */
+ arguments?: WeatherIntegrationDef.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'weather';
+
+ /**
+ * Integration definition for Weather
+ */
+ setup?: WeatherIntegrationDef.Setup | null;
+ }
+
+ export namespace WeatherIntegrationDef {
+ /**
+ * Arguments for Weather
+ */
+ export interface Arguments {
+ location: string;
+ }
+
+ /**
+ * Integration definition for Weather
+ */
+ export interface Setup {
+ openweathermap_api_key: string;
+ }
+ }
+
+ /**
+ * browserbase context provider
+ */
+ export interface BrowserbaseContextIntegrationDef {
+ arguments?: BrowserbaseContextIntegrationDef.Arguments | null;
+
+ method?: 'create_context';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseContextIntegrationDef.Setup | null;
+ }
+
+ export namespace BrowserbaseContextIntegrationDef {
+ export interface Arguments {
+ projectId: string;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key: string;
+
+ project_id: string;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+ }
+ }
+
+ /**
+ * browserbase extension provider
+ */
+ export interface BrowserbaseExtensionIntegrationDef {
+ arguments?: BrowserbaseExtensionIntegrationDef.Arguments | null;
+
+ method?: 'install_extension_from_github' | null;
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseExtensionIntegrationDef.Setup | null;
+ }
+
+ export namespace BrowserbaseExtensionIntegrationDef {
+ export interface Arguments {
+ repositoryName: string;
+
+ ref?: string | null;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key: string;
+
+ project_id: string;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+ }
+ }
+
+ /**
+ * browserbase list sessions integration definition
+ */
+ export interface BrowserbaseListSessionsIntegrationDef {
+ arguments?: BrowserbaseListSessionsIntegrationDef.Arguments | null;
+
+ method?: 'list_sessions';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseListSessionsIntegrationDef.Setup | null;
+ }
+
+ export namespace BrowserbaseListSessionsIntegrationDef {
+ export interface Arguments {
+ status?: 'RUNNING' | 'ERROR' | 'TIMED_OUT' | 'COMPLETED' | null;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key: string;
+
+ project_id: string;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+ }
+ }
+
+ /**
+ * browserbase create session integration definition
+ */
+ export interface BrowserbaseCreateSessionIntegrationDef {
+ arguments?: BrowserbaseCreateSessionIntegrationDef.Arguments | null;
+
+ method?: 'create_session';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseCreateSessionIntegrationDef.Setup | null;
+ }
+
+ export namespace BrowserbaseCreateSessionIntegrationDef {
+ export interface Arguments {
+ browserSettings?: unknown;
+
+ extensionId?: string | null;
+
+ keepAlive?: boolean;
+
+ projectId?: string | null;
+
+ proxies?: boolean | Array;
+
+ timeout?: number;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key: string;
+
+ project_id: string;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+ }
+ }
+
+ /**
+ * browserbase get session integration definition
+ */
+ export interface BrowserbaseGetSessionIntegrationDef {
+ arguments?: BrowserbaseGetSessionIntegrationDef.Arguments | null;
+
+ method?: 'get_session';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseGetSessionIntegrationDef.Setup | null;
+ }
+
+ export namespace BrowserbaseGetSessionIntegrationDef {
+ export interface Arguments {
+ id: string;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key: string;
+
+ project_id: string;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+ }
+ }
+
+ /**
+ * browserbase complete session integration definition
+ */
+ export interface BrowserbaseCompleteSessionIntegrationDef {
+ arguments?: BrowserbaseCompleteSessionIntegrationDef.Arguments | null;
+
+ method?: 'complete_session';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseCompleteSessionIntegrationDef.Setup | null;
+ }
+
+ export namespace BrowserbaseCompleteSessionIntegrationDef {
+ export interface Arguments {
+ id: string;
+
+ status?: 'REQUEST_RELEASE';
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key: string;
+
+ project_id: string;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+ }
+ }
+
+ /**
+ * browserbase get session live urls integration definition
+ */
+ export interface BrowserbaseGetSessionLiveURLsIntegrationDef {
+ arguments?: BrowserbaseGetSessionLiveURLsIntegrationDef.Arguments | null;
+
+ method?: 'get_live_urls';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseGetSessionLiveURLsIntegrationDef.Setup | null;
+ }
+
+ export namespace BrowserbaseGetSessionLiveURLsIntegrationDef {
+ export interface Arguments {
+ id: string;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key: string;
+
+ project_id: string;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+ }
+ }
+
+ /**
+ * browserbase get session connect url integration definition
+ */
+ export interface BrowserbaseGetSessionConnectURLIntegrationDef {
+ arguments?: BrowserbaseGetSessionConnectURLIntegrationDef.Arguments | null;
+
+ method?: 'get_connect_url';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseGetSessionConnectURLIntegrationDef.Setup | null;
+ }
+
+ export namespace BrowserbaseGetSessionConnectURLIntegrationDef {
+ export interface Arguments {
+ id: string;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key: string;
+
+ project_id: string;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+ }
+ }
+
+ /**
+ * The integration definition for the remote browser
+ */
+ export interface RemoteBrowserIntegrationDef {
+ /**
+ * The setup parameters for the remote browser
+ */
+ setup: RemoteBrowserIntegrationDef.Setup;
+
+ /**
+ * The arguments for the remote browser
+ */
+ arguments?: RemoteBrowserIntegrationDef.Arguments | null;
+
+ method?: 'perform_action';
+
+ provider?: 'remote_browser';
+ }
+
+ export namespace RemoteBrowserIntegrationDef {
+ /**
+ * The setup parameters for the remote browser
+ */
+ export interface Setup {
+ connect_url?: string | 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 | Array;
+
+ base64?: boolean;
+
+ filename?: string | null;
+
+ params?: unknown | null;
+ }
+
+ /**
+ * Setup parameters for LlamaParse integration
+ */
+ export interface Setup {
+ llamaparse_api_key: string;
+
+ params?: unknown | null;
+ }
+ }
+
+ /**
+ * Ffmpeg integration definition
+ */
+ export interface FfmpegIntegrationDef {
+ /**
+ * Arguments for Ffmpeg CMD
+ */
+ arguments?: FfmpegIntegrationDef.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'ffmpeg';
+
+ setup?: unknown;
+ }
+
+ 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;
+ }
+ }
+
+ /**
+ * Arxiv integration definition
+ */
+ export interface ArxivIntegrationDef {
+ /**
+ * Arguments for Arxiv Search
+ */
+ arguments?: ArxivIntegrationDef.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'arxiv';
+
+ setup?: unknown;
+ }
+
+ export namespace ArxivIntegrationDef {
+ /**
+ * Arguments for Arxiv Search
+ */
+ export interface Arguments {
+ query: string;
+
+ download_pdf?: boolean;
+
+ id_list?: Array | null;
+
+ max_results?: number;
+
+ sort_by?: 'relevance' | 'lastUpdatedDate' | 'submittedDate';
+
+ sort_order?: 'ascending' | 'descending';
+ }
+ }
+
+ /**
+ * 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 ToolListParams extends OffsetPaginationParams {
+ direction?: 'asc' | 'desc';
+
+ sort_by?: 'created_at' | 'updated_at';
+}
+
+export interface ToolPatchParams {
+ /**
+ * API call definition
+ */
+ api_call?: ToolPatchParams.APICall | null;
+
+ bash_20241022?: ToolPatchParams.Bash20241022 | null;
+
+ /**
+ * Anthropic new tools
+ */
+ computer_20241022?: ToolPatchParams.Computer20241022 | null;
+
+ description?: string | null;
+
+ /**
+ * Function definition
+ */
+ function?: ToolPatchParams.Function | null;
+
+ /**
+ * Brave integration definition
+ */
+ integration?:
+ | ToolPatchParams.DummyIntegrationDefUpdate
+ | ToolPatchParams.BraveIntegrationDefUpdate
+ | ToolPatchParams.EmailIntegrationDefUpdate
+ | ToolPatchParams.SpiderIntegrationDefUpdate
+ | ToolPatchParams.WikipediaIntegrationDefUpdate
+ | ToolPatchParams.WeatherIntegrationDefUpdate
+ | ToolPatchParams.BrowserbaseContextIntegrationDefUpdate
+ | ToolPatchParams.BrowserbaseExtensionIntegrationDefUpdate
+ | ToolPatchParams.BrowserbaseListSessionsIntegrationDefUpdate
+ | ToolPatchParams.BrowserbaseCreateSessionIntegrationDefUpdate
+ | ToolPatchParams.BrowserbaseGetSessionIntegrationDefUpdate
+ | ToolPatchParams.BrowserbaseCompleteSessionIntegrationDefUpdate
+ | ToolPatchParams.BrowserbaseGetSessionLiveURLsIntegrationDefUpdate
+ | ToolPatchParams.BrowserbaseGetSessionConnectURLIntegrationDefUpdate
+ | ToolPatchParams.RemoteBrowserIntegrationDefUpdate
+ | ToolPatchParams.LlamaParseIntegrationDefUpdate
+ | ToolPatchParams.FfmpegIntegrationDefUpdate
+ | ToolPatchParams.CloudinaryUploadIntegrationDefUpdate
+ | ToolPatchParams.CloudinaryEditIntegrationDefUpdate
+ | ToolPatchParams.ArxivIntegrationDefUpdate
+ | null;
+
+ name?: string | null;
+
+ /**
+ * System definition
+ */
+ system?: ToolPatchParams.System | null;
+
+ text_editor_20241022?: ToolPatchParams.TextEditor20241022 | null;
+
+ type?:
+ | 'function'
+ | 'integration'
+ | 'system'
+ | 'api_call'
+ | 'computer_20241022'
+ | 'text_editor_20241022'
+ | 'bash_20241022'
+ | null;
+}
+
+export namespace ToolPatchParams {
+ /**
+ * API call definition
+ */
+ export interface APICall {
+ content?: string | null;
+
+ cookies?: Record | null;
+
+ data?: unknown | null;
+
+ files?: unknown | null;
+
+ follow_redirects?: boolean | null;
+
+ headers?: Record | null;
+
+ json?: unknown | null;
+
+ method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS' | 'CONNECT' | 'TRACE' | null;
+
+ params?: string | unknown | null;
+
+ schema?: unknown | null;
+
+ timeout?: number | null;
+
+ url?: string | null;
+ }
+
+ export interface Bash20241022 {
+ name?: string;
+
+ type?: 'bash_20241022';
+ }
+
+ /**
+ * Anthropic new tools
+ */
+ export interface Computer20241022 {
+ display_height_px?: number;
+
+ display_number?: number;
+
+ display_width_px?: number;
+
+ name?: string;
+
+ type?: 'computer_20241022';
+ }
+
+ /**
+ * Function definition
+ */
+ export interface Function {
+ description?: unknown;
+
+ name?: unknown;
+
+ parameters?: unknown | null;
+ }
+
+ export interface DummyIntegrationDefUpdate {
+ arguments?: unknown;
+
+ method?: string | null;
+
+ provider?: 'dummy';
+
+ setup?: unknown;
+ }
+
+ /**
+ * Brave integration definition
+ */
+ export interface BraveIntegrationDefUpdate {
+ /**
+ * Arguments for Brave Search
+ */
+ arguments?: BraveIntegrationDefUpdate.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'brave';
+
+ /**
+ * Integration definition for Brave Search
+ */
+ setup?: BraveIntegrationDefUpdate.Setup | null;
+ }
+
+ export namespace BraveIntegrationDefUpdate {
+ /**
+ * Arguments for Brave Search
+ */
+ export interface Arguments {
+ query?: string | null;
+ }
+
+ /**
+ * Integration definition for Brave Search
+ */
+ export interface Setup {
+ api_key?: string | null;
+ }
+ }
+
+ /**
+ * Email integration definition
+ */
+ export interface EmailIntegrationDefUpdate {
+ /**
+ * Arguments for Email sending
+ */
+ arguments?: EmailIntegrationDefUpdate.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'email';
+
+ /**
+ * Setup parameters for Email integration
+ */
+ setup?: EmailIntegrationDefUpdate.Setup | null;
+ }
+
+ export namespace EmailIntegrationDefUpdate {
+ /**
+ * Arguments for Email sending
+ */
+ export interface Arguments {
+ body?: string | null;
+
+ from?: string | null;
+
+ subject?: string | null;
+
+ to?: string | null;
+ }
+
+ /**
+ * Setup parameters for Email integration
+ */
+ export interface Setup {
+ host?: string | null;
+
+ password?: string | null;
+
+ port?: number | null;
+
+ user?: string | null;
+ }
+ }
+
+ /**
+ * Spider integration definition
+ */
+ export interface SpiderIntegrationDefUpdate {
+ /**
+ * Arguments for Spider integration
+ */
+ arguments?: SpiderIntegrationDefUpdate.Arguments | null;
+
+ method?: 'crawl' | 'links' | 'screenshot' | 'search' | null;
+
+ provider?: 'spider';
+
+ /**
+ * Setup parameters for Spider integration
+ */
+ setup?: SpiderIntegrationDefUpdate.Setup | null;
+ }
+
+ export namespace SpiderIntegrationDefUpdate {
+ /**
+ * Arguments for Spider integration
+ */
+ export interface Arguments {
+ content_type?: 'application/json' | 'text/csv' | 'application/xml' | 'application/jsonl';
+
+ params?: unknown | null;
+
+ url?: string | null;
+ }
+
+ /**
+ * Setup parameters for Spider integration
+ */
+ export interface Setup {
+ spider_api_key?: string | null;
+ }
+ }
+
+ /**
+ * Wikipedia integration definition
+ */
+ export interface WikipediaIntegrationDefUpdate {
+ /**
+ * Arguments for Wikipedia Search
+ */
+ arguments?: WikipediaIntegrationDefUpdate.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'wikipedia';
+
+ setup?: unknown;
+ }
+
+ export namespace WikipediaIntegrationDefUpdate {
+ /**
+ * Arguments for Wikipedia Search
+ */
+ export interface Arguments {
+ load_max_docs?: number;
+
+ query?: string | null;
+ }
+ }
+
+ /**
+ * Weather integration definition
+ */
+ export interface WeatherIntegrationDefUpdate {
+ /**
+ * Arguments for Weather
+ */
+ arguments?: WeatherIntegrationDefUpdate.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'weather';
+
+ /**
+ * Integration definition for Weather
+ */
+ setup?: WeatherIntegrationDefUpdate.Setup | null;
+ }
+
+ export namespace WeatherIntegrationDefUpdate {
+ /**
+ * Arguments for Weather
+ */
+ export interface Arguments {
+ location?: string | null;
+ }
+
+ /**
+ * Integration definition for Weather
+ */
+ export interface Setup {
+ openweathermap_api_key?: string | null;
+ }
+ }
+
+ /**
+ * browserbase context provider
+ */
+ export interface BrowserbaseContextIntegrationDefUpdate {
+ arguments?: BrowserbaseContextIntegrationDefUpdate.Arguments | null;
+
+ method?: 'create_context';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseContextIntegrationDefUpdate.Setup | null;
+ }
+
+ export namespace BrowserbaseContextIntegrationDefUpdate {
+ export interface Arguments {
+ projectId?: string | null;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key?: string | null;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+
+ project_id?: string | null;
+ }
+ }
+
+ /**
+ * browserbase extension provider
+ */
+ export interface BrowserbaseExtensionIntegrationDefUpdate {
+ arguments?: BrowserbaseExtensionIntegrationDefUpdate.Arguments | null;
+
+ method?: 'install_extension_from_github' | null;
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseExtensionIntegrationDefUpdate.Setup | null;
+ }
+
+ export namespace BrowserbaseExtensionIntegrationDefUpdate {
+ export interface Arguments {
+ ref?: string | null;
+
+ repositoryName?: string | null;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key?: string | null;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+
+ project_id?: string | null;
+ }
+ }
+
+ /**
+ * browserbase list sessions integration definition
+ */
+ export interface BrowserbaseListSessionsIntegrationDefUpdate {
+ arguments?: BrowserbaseListSessionsIntegrationDefUpdate.Arguments | null;
+
+ method?: 'list_sessions';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseListSessionsIntegrationDefUpdate.Setup | null;
+ }
+
+ export namespace BrowserbaseListSessionsIntegrationDefUpdate {
+ export interface Arguments {
+ status?: 'RUNNING' | 'ERROR' | 'TIMED_OUT' | 'COMPLETED' | null;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key?: string | null;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+
+ project_id?: string | null;
+ }
+ }
+
+ /**
+ * browserbase create session integration definition
+ */
+ export interface BrowserbaseCreateSessionIntegrationDefUpdate {
+ arguments?: BrowserbaseCreateSessionIntegrationDefUpdate.Arguments | null;
+
+ method?: 'create_session';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseCreateSessionIntegrationDefUpdate.Setup | null;
+ }
+
+ export namespace BrowserbaseCreateSessionIntegrationDefUpdate {
+ export interface Arguments {
+ browserSettings?: unknown;
+
+ extensionId?: string | null;
+
+ keepAlive?: boolean;
+
+ projectId?: string | null;
+
+ proxies?: boolean | Array;
+
+ timeout?: number;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key?: string | null;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+
+ project_id?: string | null;
+ }
+ }
+
+ /**
+ * browserbase get session integration definition
+ */
+ export interface BrowserbaseGetSessionIntegrationDefUpdate {
+ arguments?: BrowserbaseGetSessionIntegrationDefUpdate.Arguments | null;
+
+ method?: 'get_session';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseGetSessionIntegrationDefUpdate.Setup | null;
+ }
+
+ export namespace BrowserbaseGetSessionIntegrationDefUpdate {
+ export interface Arguments {
+ id?: string | null;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key?: string | null;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+
+ project_id?: string | null;
+ }
+ }
+
+ /**
+ * browserbase complete session integration definition
+ */
+ export interface BrowserbaseCompleteSessionIntegrationDefUpdate {
+ arguments?: BrowserbaseCompleteSessionIntegrationDefUpdate.Arguments | null;
+
+ method?: 'complete_session';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseCompleteSessionIntegrationDefUpdate.Setup | null;
+ }
+
+ export namespace BrowserbaseCompleteSessionIntegrationDefUpdate {
+ export interface Arguments {
+ id?: string | null;
+
+ status?: 'REQUEST_RELEASE';
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key?: string | null;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+
+ project_id?: string | null;
+ }
+ }
+
+ /**
+ * browserbase get session live urls integration definition
+ */
+ export interface BrowserbaseGetSessionLiveURLsIntegrationDefUpdate {
+ arguments?: BrowserbaseGetSessionLiveURLsIntegrationDefUpdate.Arguments | null;
+
+ method?: 'get_live_urls';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseGetSessionLiveURLsIntegrationDefUpdate.Setup | null;
+ }
+
+ export namespace BrowserbaseGetSessionLiveURLsIntegrationDefUpdate {
+ export interface Arguments {
+ id?: string | null;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key?: string | null;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+
+ project_id?: string | null;
+ }
+ }
+
+ /**
+ * browserbase get session connect url integration definition
+ */
+ export interface BrowserbaseGetSessionConnectURLIntegrationDefUpdate {
+ arguments?: BrowserbaseGetSessionConnectURLIntegrationDefUpdate.Arguments | null;
+
+ method?: 'get_connect_url';
+
+ provider?: 'browserbase';
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ setup?: BrowserbaseGetSessionConnectURLIntegrationDefUpdate.Setup | null;
+ }
+
+ export namespace BrowserbaseGetSessionConnectURLIntegrationDefUpdate {
+ export interface Arguments {
+ id?: string | null;
+ }
+
+ /**
+ * The setup parameters for the browserbase integration
+ */
+ export interface Setup {
+ api_key?: string | null;
+
+ api_url?: string | null;
+
+ connect_url?: string | null;
+
+ project_id?: string | null;
+ }
+ }
+
+ /**
+ * The integration definition for the remote browser
+ */
+ export interface RemoteBrowserIntegrationDefUpdate {
+ /**
+ * The arguments for the remote browser
+ */
+ arguments?: RemoteBrowserIntegrationDefUpdate.Arguments | null;
+
+ method?: 'perform_action';
+
+ provider?: 'remote_browser';
+
+ /**
+ * The setup parameters for the remote browser
+ */
+ setup?: RemoteBrowserIntegrationDefUpdate.Setup | null;
+ }
+
+ export namespace RemoteBrowserIntegrationDefUpdate {
+ /**
+ * 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'
+ | null;
+
+ connect_url?: string | null;
+
+ coordinate?: Array | null;
+
+ text?: string | null;
+ }
+
+ /**
+ * The setup parameters for the remote browser
+ */
+ export interface Setup {
+ connect_url?: string | null;
+
+ height?: number | null;
+
+ width?: number | null;
+ }
+ }
+
+ /**
+ * LlamaParse integration definition
+ */
+ export interface LlamaParseIntegrationDefUpdate {
+ /**
+ * Arguments for LlamaParse integration
+ */
+ arguments?: LlamaParseIntegrationDefUpdate.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'llama_parse';
+
+ /**
+ * Setup parameters for LlamaParse integration
+ */
+ setup?: LlamaParseIntegrationDefUpdate.Setup | null;
+ }
+
+ export namespace LlamaParseIntegrationDefUpdate {
+ /**
+ * Arguments for LlamaParse integration
+ */
+ export interface Arguments {
+ base64?: boolean;
+
+ file?: string | Array | null;
+
+ filename?: string | null;
+
+ params?: unknown | null;
+ }
+
+ /**
+ * Setup parameters for LlamaParse integration
+ */
+ export interface Setup {
+ llamaparse_api_key?: string | null;
+
+ params?: unknown | null;
+ }
+ }
+
+ /**
+ * Ffmpeg integration definition
+ */
+ export interface FfmpegIntegrationDefUpdate {
+ /**
+ * Arguments for Ffmpeg CMD
+ */
+ arguments?: FfmpegIntegrationDefUpdate.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'ffmpeg';
+
+ setup?: unknown;
+ }
+
+ 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;
+ }
+ }
+
+ /**
+ * Arxiv integration definition
+ */
+ export interface ArxivIntegrationDefUpdate {
+ /**
+ * Arguments for Arxiv Search
+ */
+ arguments?: ArxivIntegrationDefUpdate.Arguments | null;
+
+ method?: string | null;
+
+ provider?: 'arxiv';
+
+ setup?: unknown;
+ }
+
+ export namespace ArxivIntegrationDefUpdate {
+ /**
+ * Arguments for Arxiv Search
+ */
+ export interface Arguments {
+ download_pdf?: boolean;
+
+ id_list?: Array | null;
+
+ max_results?: number;
+
+ query?: string | null;
+
+ sort_by?: 'relevance' | 'lastUpdatedDate' | 'submittedDate';
+
+ sort_order?: 'ascending' | 'descending';
+ }
+ }
+
+ /**
+ * System definition
+ */
+ export interface System {
+ arguments?: unknown | null;
+
+ operation?:
+ | 'create'
+ | 'update'
+ | 'patch'
+ | 'create_or_update'
+ | 'embed'
+ | 'change_status'
+ | 'search'
+ | 'chat'
+ | 'history'
+ | 'delete'
+ | 'get'
+ | 'list'
+ | null;
+
+ resource?: 'agent' | 'user' | 'task' | 'execution' | 'doc' | 'session' | 'job' | null;
+
+ resource_id?: string | null;
+
+ subresource?: 'tool' | 'doc' | 'execution' | 'transition' | null;
+ }
+
+ export interface TextEditor20241022 {
+ name?: string;
+
+ type?: 'text_editor_20241022';
+ }
+}
+
+Tools.ToolListResponsesOffsetPagination = ToolListResponsesOffsetPagination;
+
+export declare namespace Tools {
+ export {
+ type ToolListResponse as ToolListResponse,
+ ToolListResponsesOffsetPagination as ToolListResponsesOffsetPagination,
+ type ToolCreateParams as ToolCreateParams,
+ type ToolUpdateParams as ToolUpdateParams,
+ type ToolListParams as ToolListParams,
+ type ToolPatchParams as ToolPatchParams,
+ };
+}
diff --git a/src/resources/tasks.ts b/src/resources/tasks.ts
index e4def52..761fc8a 100644
--- a/src/resources/tasks.ts
+++ b/src/resources/tasks.ts
@@ -10185,7 +10185,9 @@ export namespace TaskCreateParams {
tool_choice?: 'auto' | 'none' | PromptStepInput.NamedToolChoice | null;
- tools?: 'all' | Array;
+ tools?:
+ | 'all'
+ | Array;
unwrap?: boolean;
}
@@ -10426,7 +10428,7 @@ export namespace TaskCreateParams {
/**
* Payload for creating a tool
*/
- export interface CreateToolRequestInput {
+ export interface AgentsAPIAutogenToolsCreateToolRequestInput {
name: string;
type:
@@ -10441,57 +10443,57 @@ export namespace TaskCreateParams {
/**
* API call definition
*/
- api_call?: CreateToolRequestInput.APICall | null;
+ api_call?: AgentsAPIAutogenToolsCreateToolRequestInput.APICall | null;
- bash_20241022?: CreateToolRequestInput.Bash20241022 | null;
+ bash_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Bash20241022 | null;
/**
* Anthropic new tools
*/
- computer_20241022?: CreateToolRequestInput.Computer20241022 | null;
+ computer_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Computer20241022 | null;
description?: string | null;
/**
* Function definition
*/
- function?: CreateToolRequestInput.Function | null;
+ function?: AgentsAPIAutogenToolsCreateToolRequestInput.Function | null;
/**
* Brave integration definition
*/
integration?:
- | CreateToolRequestInput.DummyIntegrationDef
- | CreateToolRequestInput.BraveIntegrationDef
- | CreateToolRequestInput.EmailIntegrationDef
- | CreateToolRequestInput.SpiderIntegrationDefInput
- | CreateToolRequestInput.WikipediaIntegrationDef
- | CreateToolRequestInput.WeatherIntegrationDef
- | CreateToolRequestInput.BrowserbaseContextIntegrationDef
- | CreateToolRequestInput.BrowserbaseExtensionIntegrationDef
- | CreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
- | CreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
- | CreateToolRequestInput.RemoteBrowserIntegrationDef
- | CreateToolRequestInput.LlamaParseIntegrationDef
- | CreateToolRequestInput.FfmpegIntegrationDef
- | CreateToolRequestInput.CloudinaryUploadIntegrationDef
- | CreateToolRequestInput.CloudinaryEditIntegrationDef
- | CreateToolRequestInput.ArxivIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.DummyIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BraveIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.EmailIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.SpiderIntegrationDefInput
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WikipediaIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WeatherIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseContextIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseExtensionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.RemoteBrowserIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.LlamaParseIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.FfmpegIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryUploadIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryEditIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.ArxivIntegrationDef
| null;
/**
* System definition
*/
- system?: CreateToolRequestInput.System | null;
+ system?: AgentsAPIAutogenToolsCreateToolRequestInput.System | null;
- text_editor_20241022?: CreateToolRequestInput.TextEditor20241022 | null;
+ text_editor_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.TextEditor20241022 | null;
}
- export namespace CreateToolRequestInput {
+ export namespace AgentsAPIAutogenToolsCreateToolRequestInput {
/**
* API call definition
*/
@@ -11491,7 +11493,9 @@ export namespace TaskCreateParams {
tool_choice?: 'auto' | 'none' | PromptStepInput.NamedToolChoice | null;
- tools?: 'all' | Array;
+ tools?:
+ | 'all'
+ | Array;
unwrap?: boolean;
}
@@ -11732,7 +11736,7 @@ export namespace TaskCreateParams {
/**
* Payload for creating a tool
*/
- export interface CreateToolRequestInput {
+ export interface AgentsAPIAutogenToolsCreateToolRequestInput {
name: string;
type:
@@ -11747,57 +11751,57 @@ export namespace TaskCreateParams {
/**
* API call definition
*/
- api_call?: CreateToolRequestInput.APICall | null;
+ api_call?: AgentsAPIAutogenToolsCreateToolRequestInput.APICall | null;
- bash_20241022?: CreateToolRequestInput.Bash20241022 | null;
+ bash_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Bash20241022 | null;
/**
* Anthropic new tools
*/
- computer_20241022?: CreateToolRequestInput.Computer20241022 | null;
+ computer_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Computer20241022 | null;
description?: string | null;
/**
* Function definition
*/
- function?: CreateToolRequestInput.Function | null;
+ function?: AgentsAPIAutogenToolsCreateToolRequestInput.Function | null;
/**
* Brave integration definition
*/
integration?:
- | CreateToolRequestInput.DummyIntegrationDef
- | CreateToolRequestInput.BraveIntegrationDef
- | CreateToolRequestInput.EmailIntegrationDef
- | CreateToolRequestInput.SpiderIntegrationDefInput
- | CreateToolRequestInput.WikipediaIntegrationDef
- | CreateToolRequestInput.WeatherIntegrationDef
- | CreateToolRequestInput.BrowserbaseContextIntegrationDef
- | CreateToolRequestInput.BrowserbaseExtensionIntegrationDef
- | CreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
- | CreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
- | CreateToolRequestInput.RemoteBrowserIntegrationDef
- | CreateToolRequestInput.LlamaParseIntegrationDef
- | CreateToolRequestInput.FfmpegIntegrationDef
- | CreateToolRequestInput.CloudinaryUploadIntegrationDef
- | CreateToolRequestInput.CloudinaryEditIntegrationDef
- | CreateToolRequestInput.ArxivIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.DummyIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BraveIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.EmailIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.SpiderIntegrationDefInput
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WikipediaIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WeatherIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseContextIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseExtensionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.RemoteBrowserIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.LlamaParseIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.FfmpegIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryUploadIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryEditIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.ArxivIntegrationDef
| null;
/**
* System definition
*/
- system?: CreateToolRequestInput.System | null;
+ system?: AgentsAPIAutogenToolsCreateToolRequestInput.System | null;
- text_editor_20241022?: CreateToolRequestInput.TextEditor20241022 | null;
+ text_editor_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.TextEditor20241022 | null;
}
- export namespace CreateToolRequestInput {
+ export namespace AgentsAPIAutogenToolsCreateToolRequestInput {
/**
* API call definition
*/
@@ -12763,7 +12767,9 @@ export namespace TaskCreateParams {
tool_choice?: 'auto' | 'none' | PromptStepInput.NamedToolChoice | null;
- tools?: 'all' | Array;
+ tools?:
+ | 'all'
+ | Array;
unwrap?: boolean;
}
@@ -13004,7 +13010,7 @@ export namespace TaskCreateParams {
/**
* Payload for creating a tool
*/
- export interface CreateToolRequestInput {
+ export interface AgentsAPIAutogenToolsCreateToolRequestInput {
name: string;
type:
@@ -13019,57 +13025,57 @@ export namespace TaskCreateParams {
/**
* API call definition
*/
- api_call?: CreateToolRequestInput.APICall | null;
+ api_call?: AgentsAPIAutogenToolsCreateToolRequestInput.APICall | null;
- bash_20241022?: CreateToolRequestInput.Bash20241022 | null;
+ bash_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Bash20241022 | null;
/**
* Anthropic new tools
*/
- computer_20241022?: CreateToolRequestInput.Computer20241022 | null;
+ computer_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Computer20241022 | null;
description?: string | null;
/**
* Function definition
*/
- function?: CreateToolRequestInput.Function | null;
+ function?: AgentsAPIAutogenToolsCreateToolRequestInput.Function | null;
/**
* Brave integration definition
*/
integration?:
- | CreateToolRequestInput.DummyIntegrationDef
- | CreateToolRequestInput.BraveIntegrationDef
- | CreateToolRequestInput.EmailIntegrationDef
- | CreateToolRequestInput.SpiderIntegrationDefInput
- | CreateToolRequestInput.WikipediaIntegrationDef
- | CreateToolRequestInput.WeatherIntegrationDef
- | CreateToolRequestInput.BrowserbaseContextIntegrationDef
- | CreateToolRequestInput.BrowserbaseExtensionIntegrationDef
- | CreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
- | CreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
- | CreateToolRequestInput.RemoteBrowserIntegrationDef
- | CreateToolRequestInput.LlamaParseIntegrationDef
- | CreateToolRequestInput.FfmpegIntegrationDef
- | CreateToolRequestInput.CloudinaryUploadIntegrationDef
- | CreateToolRequestInput.CloudinaryEditIntegrationDef
- | CreateToolRequestInput.ArxivIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.DummyIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BraveIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.EmailIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.SpiderIntegrationDefInput
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WikipediaIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WeatherIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseContextIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseExtensionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.RemoteBrowserIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.LlamaParseIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.FfmpegIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryUploadIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryEditIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.ArxivIntegrationDef
| null;
/**
* System definition
*/
- system?: CreateToolRequestInput.System | null;
+ system?: AgentsAPIAutogenToolsCreateToolRequestInput.System | null;
- text_editor_20241022?: CreateToolRequestInput.TextEditor20241022 | null;
+ text_editor_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.TextEditor20241022 | null;
}
- export namespace CreateToolRequestInput {
+ export namespace AgentsAPIAutogenToolsCreateToolRequestInput {
/**
* API call definition
*/
@@ -14064,7 +14070,9 @@ export namespace TaskCreateParams {
tool_choice?: 'auto' | 'none' | PromptStepInput.NamedToolChoice | null;
- tools?: 'all' | Array;
+ tools?:
+ | 'all'
+ | Array;
unwrap?: boolean;
}
@@ -14305,7 +14313,7 @@ export namespace TaskCreateParams {
/**
* Payload for creating a tool
*/
- export interface CreateToolRequestInput {
+ export interface AgentsAPIAutogenToolsCreateToolRequestInput {
name: string;
type:
@@ -14320,57 +14328,57 @@ export namespace TaskCreateParams {
/**
* API call definition
*/
- api_call?: CreateToolRequestInput.APICall | null;
+ api_call?: AgentsAPIAutogenToolsCreateToolRequestInput.APICall | null;
- bash_20241022?: CreateToolRequestInput.Bash20241022 | null;
+ bash_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Bash20241022 | null;
/**
* Anthropic new tools
*/
- computer_20241022?: CreateToolRequestInput.Computer20241022 | null;
+ computer_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Computer20241022 | null;
description?: string | null;
/**
* Function definition
*/
- function?: CreateToolRequestInput.Function | null;
+ function?: AgentsAPIAutogenToolsCreateToolRequestInput.Function | null;
/**
* Brave integration definition
*/
integration?:
- | CreateToolRequestInput.DummyIntegrationDef
- | CreateToolRequestInput.BraveIntegrationDef
- | CreateToolRequestInput.EmailIntegrationDef
- | CreateToolRequestInput.SpiderIntegrationDefInput
- | CreateToolRequestInput.WikipediaIntegrationDef
- | CreateToolRequestInput.WeatherIntegrationDef
- | CreateToolRequestInput.BrowserbaseContextIntegrationDef
- | CreateToolRequestInput.BrowserbaseExtensionIntegrationDef
- | CreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
- | CreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
- | CreateToolRequestInput.RemoteBrowserIntegrationDef
- | CreateToolRequestInput.LlamaParseIntegrationDef
- | CreateToolRequestInput.FfmpegIntegrationDef
- | CreateToolRequestInput.CloudinaryUploadIntegrationDef
- | CreateToolRequestInput.CloudinaryEditIntegrationDef
- | CreateToolRequestInput.ArxivIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.DummyIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BraveIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.EmailIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.SpiderIntegrationDefInput
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WikipediaIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WeatherIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseContextIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseExtensionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.RemoteBrowserIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.LlamaParseIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.FfmpegIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryUploadIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryEditIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.ArxivIntegrationDef
| null;
/**
* System definition
*/
- system?: CreateToolRequestInput.System | null;
+ system?: AgentsAPIAutogenToolsCreateToolRequestInput.System | null;
- text_editor_20241022?: CreateToolRequestInput.TextEditor20241022 | null;
+ text_editor_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.TextEditor20241022 | null;
}
- export namespace CreateToolRequestInput {
+ export namespace AgentsAPIAutogenToolsCreateToolRequestInput {
/**
* API call definition
*/
@@ -15384,7 +15392,9 @@ export namespace TaskCreateParams {
tool_choice?: 'auto' | 'none' | PromptStepInput.NamedToolChoice | null;
- tools?: 'all' | Array;
+ tools?:
+ | 'all'
+ | Array;
unwrap?: boolean;
}
@@ -15625,7 +15635,7 @@ export namespace TaskCreateParams {
/**
* Payload for creating a tool
*/
- export interface CreateToolRequestInput {
+ export interface AgentsAPIAutogenToolsCreateToolRequestInput {
name: string;
type:
@@ -15640,57 +15650,57 @@ export namespace TaskCreateParams {
/**
* API call definition
*/
- api_call?: CreateToolRequestInput.APICall | null;
+ api_call?: AgentsAPIAutogenToolsCreateToolRequestInput.APICall | null;
- bash_20241022?: CreateToolRequestInput.Bash20241022 | null;
+ bash_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Bash20241022 | null;
/**
* Anthropic new tools
*/
- computer_20241022?: CreateToolRequestInput.Computer20241022 | null;
+ computer_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Computer20241022 | null;
description?: string | null;
/**
* Function definition
*/
- function?: CreateToolRequestInput.Function | null;
+ function?: AgentsAPIAutogenToolsCreateToolRequestInput.Function | null;
/**
* Brave integration definition
*/
integration?:
- | CreateToolRequestInput.DummyIntegrationDef
- | CreateToolRequestInput.BraveIntegrationDef
- | CreateToolRequestInput.EmailIntegrationDef
- | CreateToolRequestInput.SpiderIntegrationDefInput
- | CreateToolRequestInput.WikipediaIntegrationDef
- | CreateToolRequestInput.WeatherIntegrationDef
- | CreateToolRequestInput.BrowserbaseContextIntegrationDef
- | CreateToolRequestInput.BrowserbaseExtensionIntegrationDef
- | CreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
- | CreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
- | CreateToolRequestInput.RemoteBrowserIntegrationDef
- | CreateToolRequestInput.LlamaParseIntegrationDef
- | CreateToolRequestInput.FfmpegIntegrationDef
- | CreateToolRequestInput.CloudinaryUploadIntegrationDef
- | CreateToolRequestInput.CloudinaryEditIntegrationDef
- | CreateToolRequestInput.ArxivIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.DummyIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BraveIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.EmailIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.SpiderIntegrationDefInput
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WikipediaIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WeatherIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseContextIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseExtensionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.RemoteBrowserIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.LlamaParseIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.FfmpegIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryUploadIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryEditIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.ArxivIntegrationDef
| null;
/**
* System definition
*/
- system?: CreateToolRequestInput.System | null;
+ system?: AgentsAPIAutogenToolsCreateToolRequestInput.System | null;
- text_editor_20241022?: CreateToolRequestInput.TextEditor20241022 | null;
+ text_editor_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.TextEditor20241022 | null;
}
- export namespace CreateToolRequestInput {
+ export namespace AgentsAPIAutogenToolsCreateToolRequestInput {
/**
* API call definition
*/
@@ -16631,7 +16641,9 @@ export namespace TaskCreateParams {
tool_choice?: 'auto' | 'none' | PromptStepInput.NamedToolChoice | null;
- tools?: 'all' | Array;
+ tools?:
+ | 'all'
+ | Array;
unwrap?: boolean;
}
@@ -16872,7 +16884,7 @@ export namespace TaskCreateParams {
/**
* Payload for creating a tool
*/
- export interface CreateToolRequestInput {
+ export interface AgentsAPIAutogenToolsCreateToolRequestInput {
name: string;
type:
@@ -16887,57 +16899,57 @@ export namespace TaskCreateParams {
/**
* API call definition
*/
- api_call?: CreateToolRequestInput.APICall | null;
+ api_call?: AgentsAPIAutogenToolsCreateToolRequestInput.APICall | null;
- bash_20241022?: CreateToolRequestInput.Bash20241022 | null;
+ bash_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Bash20241022 | null;
/**
* Anthropic new tools
*/
- computer_20241022?: CreateToolRequestInput.Computer20241022 | null;
+ computer_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Computer20241022 | null;
description?: string | null;
/**
* Function definition
*/
- function?: CreateToolRequestInput.Function | null;
+ function?: AgentsAPIAutogenToolsCreateToolRequestInput.Function | null;
/**
* Brave integration definition
*/
integration?:
- | CreateToolRequestInput.DummyIntegrationDef
- | CreateToolRequestInput.BraveIntegrationDef
- | CreateToolRequestInput.EmailIntegrationDef
- | CreateToolRequestInput.SpiderIntegrationDefInput
- | CreateToolRequestInput.WikipediaIntegrationDef
- | CreateToolRequestInput.WeatherIntegrationDef
- | CreateToolRequestInput.BrowserbaseContextIntegrationDef
- | CreateToolRequestInput.BrowserbaseExtensionIntegrationDef
- | CreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
- | CreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
- | CreateToolRequestInput.RemoteBrowserIntegrationDef
- | CreateToolRequestInput.LlamaParseIntegrationDef
- | CreateToolRequestInput.FfmpegIntegrationDef
- | CreateToolRequestInput.CloudinaryUploadIntegrationDef
- | CreateToolRequestInput.CloudinaryEditIntegrationDef
- | CreateToolRequestInput.ArxivIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.DummyIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BraveIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.EmailIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.SpiderIntegrationDefInput
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WikipediaIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WeatherIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseContextIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseExtensionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.RemoteBrowserIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.LlamaParseIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.FfmpegIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryUploadIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryEditIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.ArxivIntegrationDef
| null;
/**
* System definition
*/
- system?: CreateToolRequestInput.System | null;
+ system?: AgentsAPIAutogenToolsCreateToolRequestInput.System | null;
- text_editor_20241022?: CreateToolRequestInput.TextEditor20241022 | null;
+ text_editor_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.TextEditor20241022 | null;
}
- export namespace CreateToolRequestInput {
+ export namespace AgentsAPIAutogenToolsCreateToolRequestInput {
/**
* API call definition
*/
@@ -17884,7 +17896,9 @@ export namespace TaskCreateParams {
tool_choice?: 'auto' | 'none' | PromptStepInput.NamedToolChoice | null;
- tools?: 'all' | Array;
+ tools?:
+ | 'all'
+ | Array;
unwrap?: boolean;
}
@@ -18125,7 +18139,7 @@ export namespace TaskCreateParams {
/**
* Payload for creating a tool
*/
- export interface CreateToolRequestInput {
+ export interface AgentsAPIAutogenToolsCreateToolRequestInput {
name: string;
type:
@@ -18140,57 +18154,57 @@ export namespace TaskCreateParams {
/**
* API call definition
*/
- api_call?: CreateToolRequestInput.APICall | null;
+ api_call?: AgentsAPIAutogenToolsCreateToolRequestInput.APICall | null;
- bash_20241022?: CreateToolRequestInput.Bash20241022 | null;
+ bash_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Bash20241022 | null;
/**
* Anthropic new tools
*/
- computer_20241022?: CreateToolRequestInput.Computer20241022 | null;
+ computer_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Computer20241022 | null;
description?: string | null;
/**
* Function definition
*/
- function?: CreateToolRequestInput.Function | null;
+ function?: AgentsAPIAutogenToolsCreateToolRequestInput.Function | null;
/**
* Brave integration definition
*/
integration?:
- | CreateToolRequestInput.DummyIntegrationDef
- | CreateToolRequestInput.BraveIntegrationDef
- | CreateToolRequestInput.EmailIntegrationDef
- | CreateToolRequestInput.SpiderIntegrationDefInput
- | CreateToolRequestInput.WikipediaIntegrationDef
- | CreateToolRequestInput.WeatherIntegrationDef
- | CreateToolRequestInput.BrowserbaseContextIntegrationDef
- | CreateToolRequestInput.BrowserbaseExtensionIntegrationDef
- | CreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
- | CreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
- | CreateToolRequestInput.RemoteBrowserIntegrationDef
- | CreateToolRequestInput.LlamaParseIntegrationDef
- | CreateToolRequestInput.FfmpegIntegrationDef
- | CreateToolRequestInput.CloudinaryUploadIntegrationDef
- | CreateToolRequestInput.CloudinaryEditIntegrationDef
- | CreateToolRequestInput.ArxivIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.DummyIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BraveIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.EmailIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.SpiderIntegrationDefInput
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WikipediaIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WeatherIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseContextIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseExtensionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.RemoteBrowserIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.LlamaParseIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.FfmpegIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryUploadIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryEditIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.ArxivIntegrationDef
| null;
/**
* System definition
*/
- system?: CreateToolRequestInput.System | null;
+ system?: AgentsAPIAutogenToolsCreateToolRequestInput.System | null;
- text_editor_20241022?: CreateToolRequestInput.TextEditor20241022 | null;
+ text_editor_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.TextEditor20241022 | null;
}
- export namespace CreateToolRequestInput {
+ export namespace AgentsAPIAutogenToolsCreateToolRequestInput {
/**
* API call definition
*/
@@ -20051,7 +20065,9 @@ export namespace TaskCreateOrUpdateParams {
tool_choice?: 'auto' | 'none' | PromptStepInput.NamedToolChoice | null;
- tools?: 'all' | Array;
+ tools?:
+ | 'all'
+ | Array;
unwrap?: boolean;
}
@@ -20292,7 +20308,7 @@ export namespace TaskCreateOrUpdateParams {
/**
* Payload for creating a tool
*/
- export interface CreateToolRequestInput {
+ export interface AgentsAPIAutogenToolsCreateToolRequestInput {
name: string;
type:
@@ -20307,57 +20323,57 @@ export namespace TaskCreateOrUpdateParams {
/**
* API call definition
*/
- api_call?: CreateToolRequestInput.APICall | null;
+ api_call?: AgentsAPIAutogenToolsCreateToolRequestInput.APICall | null;
- bash_20241022?: CreateToolRequestInput.Bash20241022 | null;
+ bash_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Bash20241022 | null;
/**
* Anthropic new tools
*/
- computer_20241022?: CreateToolRequestInput.Computer20241022 | null;
+ computer_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Computer20241022 | null;
description?: string | null;
/**
* Function definition
*/
- function?: CreateToolRequestInput.Function | null;
+ function?: AgentsAPIAutogenToolsCreateToolRequestInput.Function | null;
/**
* Brave integration definition
*/
integration?:
- | CreateToolRequestInput.DummyIntegrationDef
- | CreateToolRequestInput.BraveIntegrationDef
- | CreateToolRequestInput.EmailIntegrationDef
- | CreateToolRequestInput.SpiderIntegrationDefInput
- | CreateToolRequestInput.WikipediaIntegrationDef
- | CreateToolRequestInput.WeatherIntegrationDef
- | CreateToolRequestInput.BrowserbaseContextIntegrationDef
- | CreateToolRequestInput.BrowserbaseExtensionIntegrationDef
- | CreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
- | CreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
- | CreateToolRequestInput.RemoteBrowserIntegrationDef
- | CreateToolRequestInput.LlamaParseIntegrationDef
- | CreateToolRequestInput.FfmpegIntegrationDef
- | CreateToolRequestInput.CloudinaryUploadIntegrationDef
- | CreateToolRequestInput.CloudinaryEditIntegrationDef
- | CreateToolRequestInput.ArxivIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.DummyIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BraveIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.EmailIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.SpiderIntegrationDefInput
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WikipediaIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WeatherIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseContextIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseExtensionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.RemoteBrowserIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.LlamaParseIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.FfmpegIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryUploadIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryEditIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.ArxivIntegrationDef
| null;
/**
* System definition
*/
- system?: CreateToolRequestInput.System | null;
+ system?: AgentsAPIAutogenToolsCreateToolRequestInput.System | null;
- text_editor_20241022?: CreateToolRequestInput.TextEditor20241022 | null;
+ text_editor_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.TextEditor20241022 | null;
}
- export namespace CreateToolRequestInput {
+ export namespace AgentsAPIAutogenToolsCreateToolRequestInput {
/**
* API call definition
*/
@@ -21357,7 +21373,9 @@ export namespace TaskCreateOrUpdateParams {
tool_choice?: 'auto' | 'none' | PromptStepInput.NamedToolChoice | null;
- tools?: 'all' | Array;
+ tools?:
+ | 'all'
+ | Array;
unwrap?: boolean;
}
@@ -21598,7 +21616,7 @@ export namespace TaskCreateOrUpdateParams {
/**
* Payload for creating a tool
*/
- export interface CreateToolRequestInput {
+ export interface AgentsAPIAutogenToolsCreateToolRequestInput {
name: string;
type:
@@ -21613,57 +21631,57 @@ export namespace TaskCreateOrUpdateParams {
/**
* API call definition
*/
- api_call?: CreateToolRequestInput.APICall | null;
+ api_call?: AgentsAPIAutogenToolsCreateToolRequestInput.APICall | null;
- bash_20241022?: CreateToolRequestInput.Bash20241022 | null;
+ bash_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Bash20241022 | null;
/**
* Anthropic new tools
*/
- computer_20241022?: CreateToolRequestInput.Computer20241022 | null;
+ computer_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Computer20241022 | null;
description?: string | null;
/**
* Function definition
*/
- function?: CreateToolRequestInput.Function | null;
+ function?: AgentsAPIAutogenToolsCreateToolRequestInput.Function | null;
/**
* Brave integration definition
*/
integration?:
- | CreateToolRequestInput.DummyIntegrationDef
- | CreateToolRequestInput.BraveIntegrationDef
- | CreateToolRequestInput.EmailIntegrationDef
- | CreateToolRequestInput.SpiderIntegrationDefInput
- | CreateToolRequestInput.WikipediaIntegrationDef
- | CreateToolRequestInput.WeatherIntegrationDef
- | CreateToolRequestInput.BrowserbaseContextIntegrationDef
- | CreateToolRequestInput.BrowserbaseExtensionIntegrationDef
- | CreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
- | CreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
- | CreateToolRequestInput.RemoteBrowserIntegrationDef
- | CreateToolRequestInput.LlamaParseIntegrationDef
- | CreateToolRequestInput.FfmpegIntegrationDef
- | CreateToolRequestInput.CloudinaryUploadIntegrationDef
- | CreateToolRequestInput.CloudinaryEditIntegrationDef
- | CreateToolRequestInput.ArxivIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.DummyIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BraveIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.EmailIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.SpiderIntegrationDefInput
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WikipediaIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WeatherIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseContextIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseExtensionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.RemoteBrowserIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.LlamaParseIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.FfmpegIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryUploadIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryEditIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.ArxivIntegrationDef
| null;
/**
* System definition
*/
- system?: CreateToolRequestInput.System | null;
+ system?: AgentsAPIAutogenToolsCreateToolRequestInput.System | null;
- text_editor_20241022?: CreateToolRequestInput.TextEditor20241022 | null;
+ text_editor_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.TextEditor20241022 | null;
}
- export namespace CreateToolRequestInput {
+ export namespace AgentsAPIAutogenToolsCreateToolRequestInput {
/**
* API call definition
*/
@@ -22629,7 +22647,9 @@ export namespace TaskCreateOrUpdateParams {
tool_choice?: 'auto' | 'none' | PromptStepInput.NamedToolChoice | null;
- tools?: 'all' | Array;
+ tools?:
+ | 'all'
+ | Array;
unwrap?: boolean;
}
@@ -22870,7 +22890,7 @@ export namespace TaskCreateOrUpdateParams {
/**
* Payload for creating a tool
*/
- export interface CreateToolRequestInput {
+ export interface AgentsAPIAutogenToolsCreateToolRequestInput {
name: string;
type:
@@ -22885,57 +22905,57 @@ export namespace TaskCreateOrUpdateParams {
/**
* API call definition
*/
- api_call?: CreateToolRequestInput.APICall | null;
+ api_call?: AgentsAPIAutogenToolsCreateToolRequestInput.APICall | null;
- bash_20241022?: CreateToolRequestInput.Bash20241022 | null;
+ bash_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Bash20241022 | null;
/**
* Anthropic new tools
*/
- computer_20241022?: CreateToolRequestInput.Computer20241022 | null;
+ computer_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Computer20241022 | null;
description?: string | null;
/**
* Function definition
*/
- function?: CreateToolRequestInput.Function | null;
+ function?: AgentsAPIAutogenToolsCreateToolRequestInput.Function | null;
/**
* Brave integration definition
*/
integration?:
- | CreateToolRequestInput.DummyIntegrationDef
- | CreateToolRequestInput.BraveIntegrationDef
- | CreateToolRequestInput.EmailIntegrationDef
- | CreateToolRequestInput.SpiderIntegrationDefInput
- | CreateToolRequestInput.WikipediaIntegrationDef
- | CreateToolRequestInput.WeatherIntegrationDef
- | CreateToolRequestInput.BrowserbaseContextIntegrationDef
- | CreateToolRequestInput.BrowserbaseExtensionIntegrationDef
- | CreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
- | CreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
- | CreateToolRequestInput.RemoteBrowserIntegrationDef
- | CreateToolRequestInput.LlamaParseIntegrationDef
- | CreateToolRequestInput.FfmpegIntegrationDef
- | CreateToolRequestInput.CloudinaryUploadIntegrationDef
- | CreateToolRequestInput.CloudinaryEditIntegrationDef
- | CreateToolRequestInput.ArxivIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.DummyIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BraveIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.EmailIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.SpiderIntegrationDefInput
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WikipediaIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WeatherIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseContextIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseExtensionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.RemoteBrowserIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.LlamaParseIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.FfmpegIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryUploadIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryEditIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.ArxivIntegrationDef
| null;
/**
* System definition
*/
- system?: CreateToolRequestInput.System | null;
+ system?: AgentsAPIAutogenToolsCreateToolRequestInput.System | null;
- text_editor_20241022?: CreateToolRequestInput.TextEditor20241022 | null;
+ text_editor_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.TextEditor20241022 | null;
}
- export namespace CreateToolRequestInput {
+ export namespace AgentsAPIAutogenToolsCreateToolRequestInput {
/**
* API call definition
*/
@@ -23930,7 +23950,9 @@ export namespace TaskCreateOrUpdateParams {
tool_choice?: 'auto' | 'none' | PromptStepInput.NamedToolChoice | null;
- tools?: 'all' | Array;
+ tools?:
+ | 'all'
+ | Array;
unwrap?: boolean;
}
@@ -24171,7 +24193,7 @@ export namespace TaskCreateOrUpdateParams {
/**
* Payload for creating a tool
*/
- export interface CreateToolRequestInput {
+ export interface AgentsAPIAutogenToolsCreateToolRequestInput {
name: string;
type:
@@ -24186,57 +24208,57 @@ export namespace TaskCreateOrUpdateParams {
/**
* API call definition
*/
- api_call?: CreateToolRequestInput.APICall | null;
+ api_call?: AgentsAPIAutogenToolsCreateToolRequestInput.APICall | null;
- bash_20241022?: CreateToolRequestInput.Bash20241022 | null;
+ bash_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Bash20241022 | null;
/**
* Anthropic new tools
*/
- computer_20241022?: CreateToolRequestInput.Computer20241022 | null;
+ computer_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Computer20241022 | null;
description?: string | null;
/**
* Function definition
*/
- function?: CreateToolRequestInput.Function | null;
+ function?: AgentsAPIAutogenToolsCreateToolRequestInput.Function | null;
/**
* Brave integration definition
*/
integration?:
- | CreateToolRequestInput.DummyIntegrationDef
- | CreateToolRequestInput.BraveIntegrationDef
- | CreateToolRequestInput.EmailIntegrationDef
- | CreateToolRequestInput.SpiderIntegrationDefInput
- | CreateToolRequestInput.WikipediaIntegrationDef
- | CreateToolRequestInput.WeatherIntegrationDef
- | CreateToolRequestInput.BrowserbaseContextIntegrationDef
- | CreateToolRequestInput.BrowserbaseExtensionIntegrationDef
- | CreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
- | CreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
- | CreateToolRequestInput.RemoteBrowserIntegrationDef
- | CreateToolRequestInput.LlamaParseIntegrationDef
- | CreateToolRequestInput.FfmpegIntegrationDef
- | CreateToolRequestInput.CloudinaryUploadIntegrationDef
- | CreateToolRequestInput.CloudinaryEditIntegrationDef
- | CreateToolRequestInput.ArxivIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.DummyIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BraveIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.EmailIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.SpiderIntegrationDefInput
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WikipediaIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WeatherIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseContextIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseExtensionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.RemoteBrowserIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.LlamaParseIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.FfmpegIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryUploadIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryEditIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.ArxivIntegrationDef
| null;
/**
* System definition
*/
- system?: CreateToolRequestInput.System | null;
+ system?: AgentsAPIAutogenToolsCreateToolRequestInput.System | null;
- text_editor_20241022?: CreateToolRequestInput.TextEditor20241022 | null;
+ text_editor_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.TextEditor20241022 | null;
}
- export namespace CreateToolRequestInput {
+ export namespace AgentsAPIAutogenToolsCreateToolRequestInput {
/**
* API call definition
*/
@@ -25250,7 +25272,9 @@ export namespace TaskCreateOrUpdateParams {
tool_choice?: 'auto' | 'none' | PromptStepInput.NamedToolChoice | null;
- tools?: 'all' | Array;
+ tools?:
+ | 'all'
+ | Array;
unwrap?: boolean;
}
@@ -25491,7 +25515,7 @@ export namespace TaskCreateOrUpdateParams {
/**
* Payload for creating a tool
*/
- export interface CreateToolRequestInput {
+ export interface AgentsAPIAutogenToolsCreateToolRequestInput {
name: string;
type:
@@ -25506,57 +25530,57 @@ export namespace TaskCreateOrUpdateParams {
/**
* API call definition
*/
- api_call?: CreateToolRequestInput.APICall | null;
+ api_call?: AgentsAPIAutogenToolsCreateToolRequestInput.APICall | null;
- bash_20241022?: CreateToolRequestInput.Bash20241022 | null;
+ bash_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Bash20241022 | null;
/**
* Anthropic new tools
*/
- computer_20241022?: CreateToolRequestInput.Computer20241022 | null;
+ computer_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Computer20241022 | null;
description?: string | null;
/**
* Function definition
*/
- function?: CreateToolRequestInput.Function | null;
+ function?: AgentsAPIAutogenToolsCreateToolRequestInput.Function | null;
/**
* Brave integration definition
*/
integration?:
- | CreateToolRequestInput.DummyIntegrationDef
- | CreateToolRequestInput.BraveIntegrationDef
- | CreateToolRequestInput.EmailIntegrationDef
- | CreateToolRequestInput.SpiderIntegrationDefInput
- | CreateToolRequestInput.WikipediaIntegrationDef
- | CreateToolRequestInput.WeatherIntegrationDef
- | CreateToolRequestInput.BrowserbaseContextIntegrationDef
- | CreateToolRequestInput.BrowserbaseExtensionIntegrationDef
- | CreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
- | CreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
- | CreateToolRequestInput.RemoteBrowserIntegrationDef
- | CreateToolRequestInput.LlamaParseIntegrationDef
- | CreateToolRequestInput.FfmpegIntegrationDef
- | CreateToolRequestInput.CloudinaryUploadIntegrationDef
- | CreateToolRequestInput.CloudinaryEditIntegrationDef
- | CreateToolRequestInput.ArxivIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.DummyIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BraveIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.EmailIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.SpiderIntegrationDefInput
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WikipediaIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WeatherIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseContextIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseExtensionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.RemoteBrowserIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.LlamaParseIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.FfmpegIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryUploadIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryEditIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.ArxivIntegrationDef
| null;
/**
* System definition
*/
- system?: CreateToolRequestInput.System | null;
+ system?: AgentsAPIAutogenToolsCreateToolRequestInput.System | null;
- text_editor_20241022?: CreateToolRequestInput.TextEditor20241022 | null;
+ text_editor_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.TextEditor20241022 | null;
}
- export namespace CreateToolRequestInput {
+ export namespace AgentsAPIAutogenToolsCreateToolRequestInput {
/**
* API call definition
*/
@@ -26497,7 +26521,9 @@ export namespace TaskCreateOrUpdateParams {
tool_choice?: 'auto' | 'none' | PromptStepInput.NamedToolChoice | null;
- tools?: 'all' | Array;
+ tools?:
+ | 'all'
+ | Array;
unwrap?: boolean;
}
@@ -26738,7 +26764,7 @@ export namespace TaskCreateOrUpdateParams {
/**
* Payload for creating a tool
*/
- export interface CreateToolRequestInput {
+ export interface AgentsAPIAutogenToolsCreateToolRequestInput {
name: string;
type:
@@ -26753,57 +26779,57 @@ export namespace TaskCreateOrUpdateParams {
/**
* API call definition
*/
- api_call?: CreateToolRequestInput.APICall | null;
+ api_call?: AgentsAPIAutogenToolsCreateToolRequestInput.APICall | null;
- bash_20241022?: CreateToolRequestInput.Bash20241022 | null;
+ bash_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Bash20241022 | null;
/**
* Anthropic new tools
*/
- computer_20241022?: CreateToolRequestInput.Computer20241022 | null;
+ computer_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Computer20241022 | null;
description?: string | null;
/**
* Function definition
*/
- function?: CreateToolRequestInput.Function | null;
+ function?: AgentsAPIAutogenToolsCreateToolRequestInput.Function | null;
/**
* Brave integration definition
*/
integration?:
- | CreateToolRequestInput.DummyIntegrationDef
- | CreateToolRequestInput.BraveIntegrationDef
- | CreateToolRequestInput.EmailIntegrationDef
- | CreateToolRequestInput.SpiderIntegrationDefInput
- | CreateToolRequestInput.WikipediaIntegrationDef
- | CreateToolRequestInput.WeatherIntegrationDef
- | CreateToolRequestInput.BrowserbaseContextIntegrationDef
- | CreateToolRequestInput.BrowserbaseExtensionIntegrationDef
- | CreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
- | CreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
- | CreateToolRequestInput.RemoteBrowserIntegrationDef
- | CreateToolRequestInput.LlamaParseIntegrationDef
- | CreateToolRequestInput.FfmpegIntegrationDef
- | CreateToolRequestInput.CloudinaryUploadIntegrationDef
- | CreateToolRequestInput.CloudinaryEditIntegrationDef
- | CreateToolRequestInput.ArxivIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.DummyIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BraveIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.EmailIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.SpiderIntegrationDefInput
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WikipediaIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WeatherIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseContextIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseExtensionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.RemoteBrowserIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.LlamaParseIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.FfmpegIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryUploadIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryEditIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.ArxivIntegrationDef
| null;
/**
* System definition
*/
- system?: CreateToolRequestInput.System | null;
+ system?: AgentsAPIAutogenToolsCreateToolRequestInput.System | null;
- text_editor_20241022?: CreateToolRequestInput.TextEditor20241022 | null;
+ text_editor_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.TextEditor20241022 | null;
}
- export namespace CreateToolRequestInput {
+ export namespace AgentsAPIAutogenToolsCreateToolRequestInput {
/**
* API call definition
*/
@@ -27750,7 +27776,9 @@ export namespace TaskCreateOrUpdateParams {
tool_choice?: 'auto' | 'none' | PromptStepInput.NamedToolChoice | null;
- tools?: 'all' | Array;
+ tools?:
+ | 'all'
+ | Array;
unwrap?: boolean;
}
@@ -27991,7 +28019,7 @@ export namespace TaskCreateOrUpdateParams {
/**
* Payload for creating a tool
*/
- export interface CreateToolRequestInput {
+ export interface AgentsAPIAutogenToolsCreateToolRequestInput {
name: string;
type:
@@ -28006,57 +28034,57 @@ export namespace TaskCreateOrUpdateParams {
/**
* API call definition
*/
- api_call?: CreateToolRequestInput.APICall | null;
+ api_call?: AgentsAPIAutogenToolsCreateToolRequestInput.APICall | null;
- bash_20241022?: CreateToolRequestInput.Bash20241022 | null;
+ bash_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Bash20241022 | null;
/**
* Anthropic new tools
*/
- computer_20241022?: CreateToolRequestInput.Computer20241022 | null;
+ computer_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.Computer20241022 | null;
description?: string | null;
/**
* Function definition
*/
- function?: CreateToolRequestInput.Function | null;
+ function?: AgentsAPIAutogenToolsCreateToolRequestInput.Function | null;
/**
* Brave integration definition
*/
integration?:
- | CreateToolRequestInput.DummyIntegrationDef
- | CreateToolRequestInput.BraveIntegrationDef
- | CreateToolRequestInput.EmailIntegrationDef
- | CreateToolRequestInput.SpiderIntegrationDefInput
- | CreateToolRequestInput.WikipediaIntegrationDef
- | CreateToolRequestInput.WeatherIntegrationDef
- | CreateToolRequestInput.BrowserbaseContextIntegrationDef
- | CreateToolRequestInput.BrowserbaseExtensionIntegrationDef
- | CreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
- | CreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
- | CreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
- | CreateToolRequestInput.RemoteBrowserIntegrationDef
- | CreateToolRequestInput.LlamaParseIntegrationDef
- | CreateToolRequestInput.FfmpegIntegrationDef
- | CreateToolRequestInput.CloudinaryUploadIntegrationDef
- | CreateToolRequestInput.CloudinaryEditIntegrationDef
- | CreateToolRequestInput.ArxivIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.DummyIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BraveIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.EmailIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.SpiderIntegrationDefInput
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WikipediaIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.WeatherIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseContextIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseExtensionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseListSessionsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCreateSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseCompleteSessionIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionLiveURLsIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.BrowserbaseGetSessionConnectURLIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.RemoteBrowserIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.LlamaParseIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.FfmpegIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryUploadIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.CloudinaryEditIntegrationDef
+ | AgentsAPIAutogenToolsCreateToolRequestInput.ArxivIntegrationDef
| null;
/**
* System definition
*/
- system?: CreateToolRequestInput.System | null;
+ system?: AgentsAPIAutogenToolsCreateToolRequestInput.System | null;
- text_editor_20241022?: CreateToolRequestInput.TextEditor20241022 | null;
+ text_editor_20241022?: AgentsAPIAutogenToolsCreateToolRequestInput.TextEditor20241022 | null;
}
- export namespace CreateToolRequestInput {
+ export namespace AgentsAPIAutogenToolsCreateToolRequestInput {
/**
* API call definition
*/
diff --git a/src/version.ts b/src/version.ts
index 6d21d61..d1f3166 100644
--- a/src/version.ts
+++ b/src/version.ts
@@ -1 +1 @@
-export const VERSION = '1.47.0'; // x-release-please-version
+export const VERSION = '1.48.0'; // x-release-please-version
diff --git a/tests/api-resources/agents/tools.test.ts b/tests/api-resources/agents/tools.test.ts
new file mode 100644
index 0000000..5574a83
--- /dev/null
+++ b/tests/api-resources/agents/tools.test.ts
@@ -0,0 +1,193 @@
+// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+import Julep from '@julep/sdk';
+import { Response } from 'node-fetch';
+
+const client = new Julep({
+ apiKey: 'My API Key',
+ baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010',
+});
+
+describe('resource tools', () => {
+ test('create: only required params', async () => {
+ const responsePromise = client.agents.tools.create('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {
+ name: 'name',
+ type: 'function',
+ });
+ const rawResponse = await responsePromise.asResponse();
+ expect(rawResponse).toBeInstanceOf(Response);
+ const response = await responsePromise;
+ expect(response).not.toBeInstanceOf(Response);
+ const dataAndResponse = await responsePromise.withResponse();
+ expect(dataAndResponse.data).toBe(response);
+ expect(dataAndResponse.response).toBe(rawResponse);
+ });
+
+ test('create: required and optional params', async () => {
+ const response = await client.agents.tools.create('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {
+ 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' },
+ });
+ });
+
+ test('update: only required params', async () => {
+ const responsePromise = client.agents.tools.update(
+ '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
+ '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
+ { name: 'name', type: 'function' },
+ );
+ const rawResponse = await responsePromise.asResponse();
+ expect(rawResponse).toBeInstanceOf(Response);
+ const response = await responsePromise;
+ expect(response).not.toBeInstanceOf(Response);
+ const dataAndResponse = await responsePromise.withResponse();
+ expect(dataAndResponse.data).toBe(response);
+ expect(dataAndResponse.response).toBe(rawResponse);
+ });
+
+ test('update: required and optional params', async () => {
+ const response = await client.agents.tools.update(
+ '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
+ '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
+ {
+ 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' },
+ },
+ );
+ });
+
+ test('list', async () => {
+ const responsePromise = client.agents.tools.list('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');
+ const rawResponse = await responsePromise.asResponse();
+ expect(rawResponse).toBeInstanceOf(Response);
+ const response = await responsePromise;
+ expect(response).not.toBeInstanceOf(Response);
+ const dataAndResponse = await responsePromise.withResponse();
+ expect(dataAndResponse.data).toBe(response);
+ expect(dataAndResponse.response).toBe(rawResponse);
+ });
+
+ test('list: request options instead of params are passed correctly', async () => {
+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
+ await expect(
+ client.agents.tools.list('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', { path: '/_stainless_unknown_path' }),
+ ).rejects.toThrow(Julep.NotFoundError);
+ });
+
+ test('list: request options and params are passed correctly', async () => {
+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
+ await expect(
+ client.agents.tools.list(
+ '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
+ { direction: 'asc', limit: 0, offset: 0, sort_by: 'created_at' },
+ { path: '/_stainless_unknown_path' },
+ ),
+ ).rejects.toThrow(Julep.NotFoundError);
+ });
+
+ test('delete', async () => {
+ const responsePromise = client.agents.tools.delete(
+ '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
+ '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
+ );
+ const rawResponse = await responsePromise.asResponse();
+ expect(rawResponse).toBeInstanceOf(Response);
+ const response = await responsePromise;
+ expect(response).not.toBeInstanceOf(Response);
+ const dataAndResponse = await responsePromise.withResponse();
+ expect(dataAndResponse.data).toBe(response);
+ expect(dataAndResponse.response).toBe(rawResponse);
+ });
+
+ test('delete: request options instead of params are passed correctly', async () => {
+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
+ await expect(
+ client.agents.tools.delete(
+ '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
+ '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
+ { path: '/_stainless_unknown_path' },
+ ),
+ ).rejects.toThrow(Julep.NotFoundError);
+ });
+
+ test('patch', async () => {
+ const responsePromise = client.agents.tools.patch(
+ '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
+ '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
+ {},
+ );
+ const rawResponse = await responsePromise.asResponse();
+ expect(rawResponse).toBeInstanceOf(Response);
+ const response = await responsePromise;
+ expect(response).not.toBeInstanceOf(Response);
+ const dataAndResponse = await responsePromise.withResponse();
+ expect(dataAndResponse.data).toBe(response);
+ expect(dataAndResponse.response).toBe(rawResponse);
+ });
+});