summaryrefslogtreecommitdiff
path: root/data/zh_cn/agentrun
diff options
context:
space:
mode:
authorZhineng Li <im@zhineng.li>2026-07-12 17:11:17 +0800
committerZhineng Li <im@zhineng.li>2026-07-12 17:11:17 +0800
commit1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 (patch)
tree5f0857666365b7e40cdaa3733ebe1f3ba9e13c67 /data/zh_cn/agentrun
parent7347bac4ab7e136157fc94777e6cf87ef9e08599 (diff)
downloadafterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.tar.gz
afterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.zip
update APIs 20260712
Diffstat (limited to 'data/zh_cn/agentrun')
-rw-r--r--data/zh_cn/agentrun/2025-09-10/api-docs.php17501
1 files changed, 9360 insertions, 8141 deletions
diff --git a/data/zh_cn/agentrun/2025-09-10/api-docs.php b/data/zh_cn/agentrun/2025-09-10/api-docs.php
index 3c4b285..7318571 100644
--- a/data/zh_cn/agentrun/2025-09-10/api-docs.php
+++ b/data/zh_cn/agentrun/2025-09-10/api-docs.php
@@ -1,159 +1,128 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'ROA',
- 'product' => 'AgentRun',
- 'version' => '2025-09-10',
- ],
+ 'info' => ['style' => 'ROA', 'product' => 'AgentRun', 'version' => '2025-09-10'],
'directories' => [
[
- 'id' => 278815,
- 'title' => 'Agent 运行时',
+ 'children' => ['DeleteFlowVersion', 'DeleteFlow', 'DeleteFlowEndpoint', 'ConvertFlowDSL', 'PublishFlowVersion', 'ListFlows', 'ListFlowVersions', 'ListFlowEndpoints', 'UpdateFlowEndpoint', 'UpdateFlowDraft', 'UpdateFlow', 'GetFlowVersion', 'GetFlowEndpoint', 'GetFlowDraft', 'GetFlow', 'CreateFlowEndpoint', 'CreateFlow'],
'type' => 'directory',
- 'children' => [
- 'CreateAgentRuntime',
- 'GetAgentRuntime',
- 'UpdateAgentRuntime',
- 'DeleteAgentRuntime',
- 'ListAgentRuntimes',
- 'CreateAgentRuntimeEndpoint',
- 'ListAgentRuntimeEndpoints',
- 'GetAgentRuntimeEndpoint',
- 'UpdateAgentRuntimeEndpoint',
- 'DeleteAgentRuntimeEndpoint',
- 'PublishRuntimeVersion',
- 'ListAgentRuntimeVersions',
- ],
+ 'title' => '流程编排',
+ 'id' => 439992,
],
[
- 'id' => 361337,
- 'title' => 'Sandbox 沙箱',
+ 'children' => ['CreateAgentRuntime', 'GetAgentRuntime', 'UpdateAgentRuntime', 'DeleteAgentRuntime', 'ListAgentRuntimes', 'CreateAgentRuntimeEndpoint', 'ListAgentRuntimeEndpoints', 'GetAgentRuntimeEndpoint', 'UpdateAgentRuntimeEndpoint', 'DeleteAgentRuntimeEndpoint', 'PublishRuntimeVersion', 'ListAgentRuntimeVersions'],
'type' => 'directory',
+ 'title' => 'Agent 运行时',
+ 'id' => 439993,
+ ],
+ [
'children' => [
[
- 'id' => 361338,
- 'title' => '沙箱模板管理',
+ 'children' => ['CreateTemplate', 'GetTemplate', 'ListTemplates', 'UpdateTemplate', 'DeleteTemplate', 'StopTemplateMCP', 'ActivateTemplateMCP'],
'type' => 'directory',
- 'children' => [
- 'CreateTemplate',
- 'GetTemplate',
- 'ListTemplates',
- 'UpdateTemplate',
- 'DeleteTemplate',
- 'StopTemplateMCP',
- 'ActivateTemplateMCP',
- ],
+ 'title' => '沙箱模板管理',
+ 'id' => 439995,
],
[
- 'id' => 361339,
- 'title' => '沙箱实例管理',
+ 'children' => ['CreateSandbox', 'GetSandbox', 'ListSandboxes', 'StopSandbox', 'DeleteSandbox'],
'type' => 'directory',
- 'children' => [
- 'CreateSandbox',
- 'GetSandbox',
- 'ListSandboxes',
- 'StopSandbox',
- 'DeleteSandbox',
- ],
+ 'title' => '沙箱实例管理',
+ 'id' => 439996,
],
],
+ 'type' => 'directory',
+ 'title' => 'Sandbox 沙箱',
+ 'id' => 439994,
],
[
- 'id' => 365419,
- 'title' => '模型管理',
+ 'children' => ['CreateModelService', 'UpdateModelService', 'GetModelService', 'DeleteModelService', 'ListModelServices', 'CreateModelProxy', 'UpdateModelProxy', 'GetModelProxy', 'DeleteModelProxy', 'ListModelProxies'],
'type' => 'directory',
- 'children' => [
- 'CreateModelService',
- 'UpdateModelService',
- 'GetModelService',
- 'DeleteModelService',
- 'ListModelServices',
- 'CreateModelProxy',
- 'UpdateModelProxy',
- 'GetModelProxy',
- 'DeleteModelProxy',
- 'ListModelProxies',
- ],
+ 'title' => '模型管理',
+ 'id' => 439997,
],
[
- 'id' => 365420,
- 'title' => '记忆存储',
+ 'children' => ['GetMemoryCollection', 'UpdateMemoryCollection', 'DeleteMemoryCollection', 'CreateMemoryCollection', 'ListMemoryCollections'],
'type' => 'directory',
- 'children' => [
- 'GetMemoryCollection',
- 'UpdateMemoryCollection',
- 'DeleteMemoryCollection',
- 'CreateMemoryCollection',
- 'ListMemoryCollections',
- ],
+ 'title' => '记忆存储',
+ 'id' => 439998,
],
[
- 'id' => 349212,
- 'title' => '其他',
- 'type' => 'directory',
'children' => [
- 'GetCredential',
- 'UpdateCredential',
- 'ListCredentials',
- 'CreateCredential',
- 'DeleteCredential',
- 'GetAccessToken',
- 'CreateKnowledgeBase',
- 'UpdateKnowledgeBase',
- 'DeleteKnowledgeBase',
- 'GetKnowledgeBase',
- 'ListKnowledgeBases',
- 'ListModelProviders',
- 'DeleteCustomDomain',
- 'ListCustomDomains',
- 'CreateCustomDomain',
- 'GetCustomDomain',
- 'UpdateCustomDomain',
+ 'GetCredential', 'UpdateCredential', 'ListCredentials', 'CreateCredential', 'DeleteCredential', 'GetAccessToken', 'CreateKnowledgeBase', 'UpdateKnowledgeBase', 'DeleteKnowledgeBase', 'GetKnowledgeBase', 'ListKnowledgeBases', 'ListModelProviders', 'DeleteCustomDomain', 'ListCustomDomains', 'CreateCustomDomain', 'GetCustomDomain', 'UpdateCustomDomain', 'GetWorkspaceDiscoveryEndpoints', 'UpdateWorkspaceDiscoveryEndpoints', 'DeleteWorkspace',
+ 'UpdateWorkspace', 'ListWorkspaces', 'GetWorkspace', 'CreateWorkspace', 'UpdateTool', 'CreateTool', 'ListTools', 'GetTool', 'DeleteTool', 'ResumeSandbox', 'PauseSandbox', 'CreateIMBot', 'DeleteIMBot', 'GetIMBot', 'ListIMBots', 'UpdateIMBot',
],
+ 'type' => 'directory',
+ 'title' => '其他',
+ 'id' => 439999,
],
[
- 'id' => 361340,
- 'title' => '待下线',
- 'type' => 'directory',
'children' => [
[
- 'id' => 278836,
- 'title' => '浏览器沙箱',
+ 'children' => ['CreateBrowser', 'ListBrowsers', 'GetBrowser', 'DeleteBrowser'],
'type' => 'directory',
- 'children' => [
- 'CreateBrowser',
- 'ListBrowsers',
- 'GetBrowser',
- 'DeleteBrowser',
- ],
+ 'title' => '浏览器沙箱',
+ 'id' => 440001,
],
[
- 'id' => 278828,
- 'title' => '代码解释器',
+ 'children' => ['CreateCodeInterpreter', 'ListCodeInterpreters', 'GetCodeInterpreter', 'DeleteCodeInterpreter'],
'type' => 'directory',
- 'children' => [
- 'CreateCodeInterpreter',
- 'ListCodeInterpreters',
- 'GetCodeInterpreter',
- 'DeleteCodeInterpreter',
- ],
+ 'title' => '代码解释器',
+ 'id' => 440002,
],
],
+ 'type' => 'directory',
+ 'title' => '待下线',
+ 'id' => 440000,
],
],
'components' => [
'schemas' => [
+ 'AccessDeniedDetail' => [
+ 'title' => 'RAM 拒绝访问详情',
+ 'description' => 'RAM 明确拒绝时返回,结构与现网 403 无权限响应 accessDeniedDetail 对齐',
+ 'type' => 'object',
+ 'properties' => [
+ 'authAction' => ['description' => '被拒绝的 RAM action,如 agentrun:ListTemplates', 'type' => 'string'],
+ 'authPrincipalType' => ['description' => '鉴权主体类型,如 SubUser、AssumedRoleUser', 'type' => 'string'],
+ 'authPrincipalOwnerId' => ['description' => '鉴权主体所属账号 ID', 'type' => 'string'],
+ 'authPrincipalDisplayName' => ['description' => '鉴权主体展示名', 'type' => 'string'],
+ 'encodedDiagnosticInfo' => ['description' => 'Base64 编码的诊断信息,可用于 RAM 控制台自诊断', 'type' => 'string'],
+ 'noPermissionType' => ['description' => '无权限类型:ImplicitDeny 或 ExplicitDeny', 'type' => 'string'],
+ 'policyType' => ['description' => '策略类型,如 ResourceBasedPolicy、IdentityBasedPolicy', 'type' => 'string'],
+ ],
+ ],
'AgentEndpointConfig' => [
'type' => 'object',
'properties' => [
- 'agentName' => [
- 'type' => 'string',
- ],
- 'endpointUrl' => [
+ 'agentName' => ['type' => 'string'],
+ 'endpointName' => ['title' => '端点名称', 'description' => '端点名称', 'type' => 'string'],
+ 'endpointUrl' => ['type' => 'string'],
+ 'customDomainUrl' => ['type' => 'string'],
+ ],
+ ],
+ 'AgentResource' => [
+ 'title' => '智能体资源',
+ 'description' => '智能体资源的统一表示,可以是智能体运行时(AgentRuntime)或工作流(Flow)。使用 resourceType 字段区分资源类型,并通过 runtime 或 flow 字段获取完整的资源详细信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'resourceType' => [
+ 'title' => '资源类型',
+ 'description' => '资源类型标识符,用于区分资源是智能体运行时(AgentRuntime)还是工作流(Flow)',
'type' => 'string',
+ 'example' => 'AgentRuntime',
+ 'enum' => ['AgentRuntime', 'Flow'],
],
- 'customDomainUrl' => [
- 'type' => 'string',
+ 'runtime' => ['title' => '智能体运行时详情', 'description' => '当 resourceType 为 AgentRuntime 时,此字段包含完整的智能体运行时对象,包括所有配置和状态信息;当 resourceType 为 Flow 时,此字段为空', '$ref' => '#/components/schemas/AgentRuntime'],
+ 'flow' => ['title' => '工作流详情', 'description' => '当 resourceType 为 Flow 时,此字段包含完整的工作流对象,包括所有配置和状态信息;当 resourceType 为 AgentRuntime 时,此字段为空', '$ref' => '#/components/schemas/Flow'],
+ 'latestVersion' => [
+ 'title' => '最新版本信息',
+ 'description' => '资源的最新发布版本摘要,包含版本号、描述和创建时间。如果资源没有已发布版本,则此字段为空',
+ 'type' => 'object',
+ 'properties' => [
+ 'version' => ['title' => '版本号', 'description' => '最新发布的版本号', 'type' => 'string', 'example' => '3'],
+ 'description' => ['title' => '版本描述', 'description' => '该版本的描述信息', 'type' => 'string', 'example' => '修复了消息处理的并发问题'],
+ 'createdAt' => ['title' => '创建时间', 'description' => '版本发布时间,采用ISO 8601格式', 'type' => 'string', 'example' => '2025-03-15T08:30:00Z'],
+ 'publisher' => ['title' => '发布者', 'description' => '版本发布者(仅 AgentRuntime 类型资源返回)', 'type' => 'string', 'example' => 'admin'],
+ ],
],
],
],
@@ -162,190 +131,69 @@
'description' => '智能体运行时的详细信息,包含运行时的所有配置和状态信息',
'type' => 'object',
'properties' => [
- 'agentRuntimeId' => [
- 'title' => '智能体运行时ID',
- 'description' => '智能体运行时的唯一标识符',
- 'type' => 'string',
- 'example' => 'ar-1234567890abcdef',
- ],
- 'agentRuntimeName' => [
- 'title' => '智能体运行时名称',
- 'description' => '智能体运行时的名称,用于标识和区分不同的运行时实例',
- 'type' => 'string',
- 'example' => 'my-agent-runtime',
- ],
- 'agentRuntimeArn' => [
- 'title' => '智能体运行时ARN',
- 'description' => '智能体运行时的全局唯一资源名称',
- 'type' => 'string',
- 'example' => 'acs:agentrun:cn-hangzhou:1760720386195983:runtimes/7a1b6d39-9f8f-4ce2-b9c9-6db1b0b9e169',
- ],
- 'createdAt' => [
- 'title' => '创建时间',
- 'description' => '智能体运行时的创建时间,采用ISO 8601格式',
- 'type' => 'string',
- 'example' => '2025-01-10T10:30:00Z',
- ],
- 'status' => [
- 'title' => '状态',
- 'description' => '智能体运行时的当前状态,如READY(就绪)、CREATING(创建中)、FAILED(失败)等',
- 'type' => 'string',
- 'example' => 'READY',
- ],
- 'statusReason' => [
- 'title' => '状态原因',
- 'description' => '当前状态的原因说明(如适用)',
- 'type' => 'string',
- 'example' => 'Runtime is ready for use',
- ],
- 'lastUpdatedAt' => [
- 'title' => '最后更新时间',
- 'description' => '智能体运行时最后一次更新的时间,采用ISO 8601格式',
- 'type' => 'string',
- 'example' => '2025-01-10T11:45:00Z',
- ],
- 'description' => [
- 'title' => '描述',
- 'description' => '智能体运行时的描述信息,说明该运行时的用途和功能',
- 'type' => 'string',
- 'example' => 'AI agent runtime for customer service automation',
- ],
- 'executionRoleArn' => [
- 'title' => '执行角色ARN',
- 'description' => '为智能体运行时提供访问云服务权限的执行角色ARN',
- 'type' => 'string',
- 'example' => 'acs:ram::1760720386195983:role/AgentRunExecutionRole',
- ],
- 'credentialName' => [
- 'title' => '凭证名称',
- 'description' => '用于访问智能体的凭证名称,访问智能体运行时将使用此凭证进行身份验证',
- 'type' => 'string',
- 'example' => 'my-credential',
- ],
- 'externalAgentEndpointUrl' => [
- 'title' => '外部智能体端点URL',
- 'description' => '外部注册类型的智能体访问端点地址,用于连接已部署在外部的智能体服务',
- 'type' => 'string',
- 'example' => 'https://external-agent.example.com/api',
- ],
- 'agentRuntimeVersion' => [
- 'title' => '智能体运行时版本',
- 'description' => '智能体运行时的版本号,用于版本管理和回滚',
- 'type' => 'string',
- 'example' => '1',
- ],
+ 'agentRuntimeId' => ['title' => '智能体运行时ID', 'description' => '智能体运行时的唯一标识符', 'type' => 'string', 'example' => 'ar-1234567890abcdef'],
+ 'agentRuntimeName' => ['title' => '智能体运行时名称', 'description' => '智能体运行时的名称,用于标识和区分不同的运行时实例', 'type' => 'string', 'example' => 'my-agent-runtime'],
+ 'agentRuntimeArn' => ['title' => '智能体运行时ARN', 'description' => '智能体运行时的全局唯一资源名称', 'type' => 'string', 'example' => 'acs:agentrun:cn-hangzhou:1760720386195983:runtimes/7a1b6d39-9f8f-4ce2-b9c9-6db1b0b9e169'],
+ 'createdAt' => ['title' => '创建时间', 'description' => '智能体运行时的创建时间,采用ISO 8601格式', 'type' => 'string', 'example' => '2025-01-10T10:30:00Z'],
+ 'status' => ['title' => '状态', 'description' => '智能体运行时的当前状态,如READY(就绪)、CREATING(创建中)、FAILED(失败)等', 'type' => 'string', 'example' => 'READY'],
+ 'statusReason' => ['title' => '状态原因', 'description' => '当前状态的原因说明(如适用)', 'type' => 'string', 'example' => 'Runtime is ready for use'],
+ 'lastUpdatedAt' => ['title' => '最后更新时间', 'description' => '智能体运行时最后一次更新的时间,采用ISO 8601格式', 'type' => 'string', 'example' => '2025-01-10T11:45:00Z'],
+ 'description' => ['title' => '描述', 'description' => '智能体运行时的描述信息,说明该运行时的用途和功能', 'type' => 'string', 'example' => 'AI agent runtime for customer service automation'],
+ 'executionRoleArn' => ['title' => '执行角色ARN', 'description' => '为智能体运行时提供访问云服务权限的执行角色ARN', 'type' => 'string', 'example' => 'acs:ram::1760720386195983:role/AgentRunExecutionRole'],
+ 'credentialName' => ['title' => '凭证名称', 'description' => '用于访问智能体的凭证名称,访问智能体运行时将使用此凭证进行身份验证', 'type' => 'string', 'example' => 'my-credential'],
+ 'externalAgentEndpointUrl' => ['title' => '外部智能体端点URL', 'description' => '外部注册类型的智能体访问端点地址,用于连接已部署在外部的智能体服务', 'type' => 'string', 'example' => 'https://external-agent.example.com/api'],
+ 'agentRuntimeVersion' => ['title' => '智能体运行时版本', 'description' => '智能体运行时的版本号,用于版本管理和回滚', 'type' => 'string', 'example' => '1'],
'artifactType' => [
'title' => '制品类型',
'description' => '智能体运行时的部署类型,支持Code(代码模式)和Container(容器模式)',
'type' => 'string',
'example' => 'Code',
- 'enum' => [
- 'Code',
- 'Container',
- ],
- ],
- 'codeConfiguration' => [
- 'title' => '代码配置',
- 'description' => '当artifactType为Code时的代码配置信息',
- 'example' => '{}',
- '$ref' => '#/components/schemas/CodeConfiguration',
- ],
- 'containerConfiguration' => [
- 'title' => '容器配置',
- 'description' => '当artifactType为Container时的容器配置信息',
- 'example' => '{}',
- '$ref' => '#/components/schemas/ContainerConfiguration',
- ],
- 'networkConfiguration' => [
- 'title' => '网络配置',
- 'description' => '智能体运行时的网络配置信息',
- 'example' => '{}',
- '$ref' => '#/components/schemas/NetworkConfiguration',
- ],
- 'protocolConfiguration' => [
- 'title' => '协议配置',
- 'description' => '智能体运行时的通信协议配置',
- 'example' => '{}',
- '$ref' => '#/components/schemas/ProtocolConfiguration',
- ],
- 'cpu' => [
- 'title' => 'CPU配置',
- 'description' => '智能体运行时分配的CPU资源,单位为核数',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '2.0',
- ],
- 'memory' => [
- 'title' => '内存配置',
- 'description' => '智能体运行时分配的内存资源,单位为MB',
- 'type' => 'integer',
- 'example' => '2048',
- ],
- 'port' => [
- 'title' => '端口',
- 'description' => '智能体运行时监听的端口号',
- 'type' => 'integer',
- 'example' => '8080',
- ],
- 'sessionConcurrencyLimitPerInstance' => [
- 'title' => '每个实例的会话并发数',
- 'description' => '每个运行时实例允许的最大并发会话数',
- 'type' => 'integer',
- 'maximum' => '200',
- 'minimum' => '1',
- 'example' => '100',
- 'default' => '1',
- ],
- 'logConfiguration' => [
- 'title' => '日志配置',
- 'description' => 'SLS(简单日志服务)配置',
- 'example' => '{}',
- '$ref' => '#/components/schemas/LogConfiguration',
- ],
- 'healthCheckConfiguration' => [
- 'title' => '健康检查配置',
- 'description' => '智能体运行时的健康检查配置,用于监控运行时实例的健康状态',
- 'example' => '{}',
- '$ref' => '#/components/schemas/HealthCheckConfiguration',
- ],
- 'sessionIdleTimeoutSeconds' => [
- 'title' => '会话空闲超时秒数',
- 'description' => '会话的空闲超时时间,单位为秒。实例没有会话请求后处于空闲状态,空闲态为闲置计费模式,超过此超时时间后会话自动过期,不可继续使用',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '3600',
- ],
+ 'enum' => ['Code', 'Container'],
+ ],
+ 'codeConfiguration' => ['title' => '代码配置', 'description' => '当artifactType为Code时的代码配置信息', 'example' => '{}', '$ref' => '#/components/schemas/CodeConfiguration'],
+ 'containerConfiguration' => ['title' => '容器配置', 'description' => '当artifactType为Container时的容器配置信息', 'example' => '{}', '$ref' => '#/components/schemas/ContainerConfiguration'],
+ 'networkConfiguration' => ['title' => '网络配置', 'description' => '智能体运行时的网络配置信息', 'example' => '{}', '$ref' => '#/components/schemas/NetworkConfiguration'],
+ 'protocolConfiguration' => ['title' => '协议配置', 'description' => '智能体运行时的通信协议配置', 'example' => '{}', '$ref' => '#/components/schemas/ProtocolConfiguration'],
+ 'cpu' => ['title' => 'CPU配置', 'description' => '智能体运行时分配的CPU资源,单位为核数', 'type' => 'number', 'format' => 'float', 'example' => '2.0'],
+ 'memory' => ['title' => '内存配置', 'description' => '智能体运行时分配的内存资源,单位为MB', 'type' => 'integer', 'example' => '2048'],
+ 'diskSize' => ['title' => '磁盘大小', 'description' => '磁盘大小', 'type' => 'integer'],
+ 'port' => ['title' => '端口', 'description' => '智能体运行时监听的端口号', 'type' => 'integer', 'example' => '8080'],
+ 'sessionConcurrencyLimitPerInstance' => ['title' => '每个实例的会话并发数', 'description' => '每个运行时实例允许的最大并发会话数', 'type' => 'integer', 'maximum' => '200', 'minimum' => '1', 'example' => '100', 'default' => '1'],
+ 'logConfiguration' => ['title' => '日志配置', 'description' => 'SLS(简单日志服务)配置', 'example' => '{}', '$ref' => '#/components/schemas/LogConfiguration'],
+ 'healthCheckConfiguration' => ['title' => '健康检查配置', 'description' => '智能体运行时的健康检查配置,用于监控运行时实例的健康状态', 'example' => '{}', '$ref' => '#/components/schemas/HealthCheckConfiguration'],
+ 'sessionIdleTimeoutSeconds' => ['title' => '会话空闲超时秒数', 'description' => '会话的空闲超时时间,单位为秒。实例没有会话请求后处于空闲状态,空闲态为闲置计费模式,超过此超时时间后会话自动过期,不可继续使用', 'type' => 'integer', 'format' => 'int32', 'example' => '3600'],
+ 'enableSessionIsolation' => ['title' => '启用会话隔离', 'description' => '是否启用会话隔离,启用后每个会话将在独立的环境中运行', 'type' => 'boolean', 'example' => 'false'],
+ 'disableOndemand' => ['title' => '禁用按需弹性', 'description' => '是否禁用按需弹性能力。默认为 false,设置为 true 时关闭按需弹性', 'type' => 'boolean', 'example' => 'false'],
+ 'disableSessionAffinity' => ['title' => '禁用会话亲和', 'description' => '是否禁用会话亲和性。默认为 false(即默认启用会话亲和),设置为 true 时关闭会话亲和', 'type' => 'boolean', 'example' => 'false'],
+ 'sessionAffinityType' => [
+ 'title' => '会话亲和类型',
+ 'description' => '会话亲和模式。NONE 表示关闭会话亲和;HEADER_FIELD 表示基于请求头的会话亲和;GENERATED_COOKIE 表示由 FC 生成 Cookie 进行会话亲和;COOKIE 为兼容别名,服务端会归一为 GENERATED_COOKIE',
+ 'type' => 'string',
+ 'example' => 'GENERATED_COOKIE',
+ 'enum' => ['NONE', 'HEADER_FIELD', 'GENERATED_COOKIE', 'COOKIE'],
+ ],
+ 'headerFieldName' => ['title' => '会话亲和请求头名称', 'description' => '当 sessionAffinityType 为 HEADER_FIELD 时用于会话亲和的请求头名称', 'type' => 'string', 'example' => 'x-agentrun-session-id', 'maxLength' => 128],
+ 'resourceGroupId' => ['type' => 'string', 'deprecated' => true, 'description' => ''],
+ 'workspaceId' => ['title' => '工作空间ID', 'description' => '智能体运行时所属的工作空间标识符,用于资源隔离和权限管理', 'type' => 'string', 'example' => 'ws-1234567890abcdef'],
+ 'nasConfig' => ['title' => 'NAS配置', 'description' => '文件存储NAS的配置信息,用于挂载NAS文件系统到智能体运行时', 'example' => '{}', '$ref' => '#/components/schemas/NASConfig'],
+ 'ossMountConfig' => ['title' => 'OSS挂载配置', 'description' => '对象存储OSS的挂载配置信息,用于挂载OSS存储桶到智能体运行时', 'example' => '{}', '$ref' => '#/components/schemas/OSSMountConfig'],
'environmentVariables' => [
'title' => '环境变量',
'description' => '智能体运行时的环境变量配置',
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- ],
+ 'additionalProperties' => ['type' => 'string', 'description' => ''],
'example' => 'ENV_VAR1=value1,ENV_VAR2=value2',
],
- 'resourceGroupId' => [
- 'type' => 'string',
- 'deprecated' => true,
- ],
- 'workspaceId' => [
- 'title' => '工作空间ID',
- 'description' => '智能体运行时所属的工作空间标识符,用于资源隔离和权限管理',
- 'type' => 'string',
- 'example' => 'ws-1234567890abcdef',
- ],
- 'nasConfig' => [
- 'title' => 'NAS配置',
- 'description' => '文件存储NAS的配置信息,用于挂载NAS文件系统到智能体运行时',
- 'example' => '{}',
- '$ref' => '#/components/schemas/NASConfig',
- ],
- 'ossMountConfig' => [
- 'title' => 'OSS挂载配置',
- 'description' => '对象存储OSS的挂载配置信息,用于挂载OSS存储桶到智能体运行时',
- 'example' => '{}',
- '$ref' => '#/components/schemas/OSSMountConfig',
+ 'systemTags' => [
+ 'title' => '系统标签',
+ 'description' => '智能体运行时的系统标签信息,用于系统级别的资源分类和管理',
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
+ 'example' => 'system-tag-1,system-tag-2',
],
+ 'agentIdentityEnabled' => ['type' => 'string'],
+ 'agentIdentityConfig' => ['$ref' => '#/components/schemas/RuntimeAgentIdentityConfig'],
+ 'edition' => ['type' => 'string'],
],
],
'AgentRuntimeEndpoint' => [
@@ -353,65 +201,18 @@
'description' => '智能体运行时端点',
'type' => 'object',
'properties' => [
- 'agentRuntimeId' => [
- 'title' => '智能体运行时ID',
- 'description' => '智能体运行时ID',
- 'type' => 'string',
- 'example' => 'ar-1234567890abcdef',
- ],
- 'agentRuntimeEndpointId' => [
- 'title' => '智能体运行时端点ID',
- 'description' => '智能体运行时端点ID',
- 'type' => 'string',
- 'example' => 'are-1234567890abcdef',
- ],
- 'agentRuntimeEndpointArn' => [
- 'title' => '智能体运行时端点ARN',
- 'description' => '智能体运行时端点ARN',
- 'type' => 'string',
- 'example' => 'acs:agentrun:cn-hangzhou:1760720386195983:runtime-endpoints/e56d483c-db80-4116-9ec4-25f16f5facfd',
- ],
- 'agentRuntimeEndpointName' => [
- 'title' => '智能体运行时端点名称',
- 'description' => '智能体运行时端点名称',
- 'type' => 'string',
- 'example' => 'production-endpoint',
- ],
- 'description' => [
- 'title' => '描述',
- 'description' => '描述',
- 'type' => 'string',
- 'example' => 'Production endpoint for customer service agent',
- ],
- 'status' => [
- 'title' => '状态',
- 'description' => '状态',
- 'type' => 'string',
- 'example' => 'ACTIVE',
- ],
- 'statusReason' => [
- 'title' => '状态原因',
- 'description' => '状态原因',
- 'type' => 'string',
- 'example' => 'Endpoint is active and ready',
- ],
- 'targetVersion' => [
- 'title' => '目标版本',
- 'description' => '目标版本',
- 'type' => 'string',
- 'example' => 'LATEST',
- ],
- 'routingConfiguration' => [
- 'title' => '路由配置',
- 'description' => '智能体运行时端点的路由配置,支持多版本权重分配',
- '$ref' => '#/components/schemas/RoutingConfiguration',
- ],
- 'endpointPublicUrl' => [
- 'title' => '端点公网URL',
- 'description' => '智能体运行时端点的公网访问地址',
- 'type' => 'string',
- 'example' => 'https://ar-1234567890abcdef.cn-hangzhou.agentrun.aliyuncs.com',
- ],
+ 'agentRuntimeId' => ['title' => '智能体运行时ID', 'description' => '智能体运行时ID', 'type' => 'string', 'example' => 'ar-1234567890abcdef'],
+ 'agentRuntimeEndpointId' => ['title' => '智能体运行时端点ID', 'description' => '智能体运行时端点ID', 'type' => 'string', 'example' => 'are-1234567890abcdef'],
+ 'agentRuntimeEndpointArn' => ['title' => '智能体运行时端点ARN', 'description' => '智能体运行时端点ARN', 'type' => 'string', 'example' => 'acs:agentrun:cn-hangzhou:1760720386195983:runtime-endpoints/e56d483c-db80-4116-9ec4-25f16f5facfd'],
+ 'agentRuntimeEndpointName' => ['title' => '智能体运行时端点名称', 'description' => '智能体运行时端点名称', 'type' => 'string', 'example' => 'production-endpoint'],
+ 'description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'Production endpoint for customer service agent'],
+ 'status' => ['title' => '状态', 'description' => '状态', 'type' => 'string', 'example' => 'ACTIVE'],
+ 'statusReason' => ['title' => '状态原因', 'description' => '状态原因', 'type' => 'string', 'example' => 'Endpoint is active and ready'],
+ 'targetVersion' => ['title' => '目标版本', 'description' => '目标版本', 'type' => 'string', 'example' => 'LATEST'],
+ 'routingConfiguration' => ['title' => '路由配置', 'description' => '智能体运行时端点的路由配置,支持多版本权重分配', '$ref' => '#/components/schemas/RoutingConfiguration'],
+ 'endpointPublicUrl' => ['title' => '端点公网URL', 'description' => '智能体运行时端点的公网访问地址', 'type' => 'string', 'example' => 'https://ar-1234567890abcdef.cn-hangzhou.agentrun.aliyuncs.com'],
+ 'disablePublicNetworkAccess' => ['title' => '禁用公网访问', 'description' => '是否禁用该端点的公网访问', 'type' => 'boolean'],
+ 'scalingStatus' => ['title' => '弹性状态', 'description' => '端点的弹性伸缩状态,包括最小/目标/当前实例数及定时策略(复用 ScalingStatus)', '$ref' => '#/components/schemas/ScalingStatus'],
],
],
'AgentRuntimeEndpointResult' => [
@@ -419,21 +220,9 @@
'description' => '创建、获取智能体运行时端点的统一结果格式',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '唯一的请求标识符,用于问题追踪',
- 'type' => 'string',
- ],
- 'data' => [
- 'title' => '智能体运行时端点数据',
- 'description' => '智能体运行时端点的详细信息',
- '$ref' => '#/components/schemas/AgentRuntimeEndpoint',
- ],
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string'],
+ 'data' => ['title' => '智能体运行时端点数据', 'description' => '智能体运行时端点的详细信息', '$ref' => '#/components/schemas/AgentRuntimeEndpoint'],
],
],
'AgentRuntimeResult' => [
@@ -441,24 +230,9 @@
'description' => '创建、获取智能体运行时的统一结果格式',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '唯一的请求标识符,用于问题追踪',
- 'type' => 'string',
- 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E',
- ],
- 'data' => [
- 'title' => '智能体运行时数据',
- 'description' => '智能体运行时的详细信息',
- 'example' => '{}',
- '$ref' => '#/components/schemas/AgentRuntime',
- ],
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '智能体运行时数据', 'description' => '智能体运行时的详细信息', 'example' => '{}', '$ref' => '#/components/schemas/AgentRuntime'],
],
],
'AgentRuntimeVersion' => [
@@ -466,42 +240,12 @@
'description' => '智能体运行时版本',
'type' => 'object',
'properties' => [
- 'agentRuntimeArn' => [
- 'title' => '智能体运行时ARN',
- 'description' => '智能体运行时的ARN',
- 'type' => 'string',
- 'example' => 'acs:agentrun:cn-hangzhou:1760720386195983:runtimes/7a1b6d39-9f8f-4ce2-b9c9-6db1b0b9e169',
- ],
- 'agentRuntimeId' => [
- 'title' => '智能体运行时ID',
- 'description' => '智能体运行时的ID',
- 'type' => 'string',
- 'example' => 'ar-1234567890abcdef',
- ],
- 'agentRuntimeName' => [
- 'title' => '智能体运行时名称',
- 'description' => '智能体运行时的名称',
- 'type' => 'string',
- 'example' => 'my-agent-runtime',
- ],
- 'agentRuntimeVersion' => [
- 'title' => '智能体运行时版本',
- 'description' => '已发布版本的版本号',
- 'type' => 'string',
- 'example' => 'LATEST',
- ],
- 'description' => [
- 'title' => '版本描述',
- 'description' => '此版本的描述',
- 'type' => 'string',
- 'example' => 'Initial release with basic functionality',
- ],
- 'lastUpdatedAt' => [
- 'title' => '最后更新时间',
- 'description' => '最后更新的时间戳',
- 'type' => 'string',
- 'example' => '2025-01-10T10:30:00Z',
- ],
+ 'agentRuntimeArn' => ['title' => '智能体运行时ARN', 'description' => '智能体运行时的ARN', 'type' => 'string', 'example' => 'acs:agentrun:cn-hangzhou:1760720386195983:runtimes/7a1b6d39-9f8f-4ce2-b9c9-6db1b0b9e169'],
+ 'agentRuntimeId' => ['title' => '智能体运行时ID', 'description' => '智能体运行时的ID', 'type' => 'string', 'example' => 'ar-1234567890abcdef'],
+ 'agentRuntimeName' => ['title' => '智能体运行时名称', 'description' => '智能体运行时的名称', 'type' => 'string', 'example' => 'my-agent-runtime'],
+ 'agentRuntimeVersion' => ['title' => '智能体运行时版本', 'description' => '已发布版本的版本号', 'type' => 'string', 'example' => 'LATEST'],
+ 'description' => ['title' => '版本描述', 'description' => '此版本的描述', 'type' => 'string', 'example' => 'Initial release with basic functionality'],
+ 'lastUpdatedAt' => ['title' => '最后更新时间', 'description' => '最后更新的时间戳', 'type' => 'string', 'example' => '2025-01-10T10:30:00Z'],
],
],
'AgentRuntimeVersionResult' => [
@@ -509,21 +253,9 @@
'description' => '创建、获取智能体运行时版本的统一结果格式',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '唯一的请求标识符,用于问题追踪',
- 'type' => 'string',
- ],
- 'data' => [
- 'title' => '智能体运行时版本数据',
- 'description' => '智能体运行时版本的详细信息',
- '$ref' => '#/components/schemas/AgentRuntimeVersion',
- ],
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string'],
+ 'data' => ['title' => '智能体运行时版本数据', 'description' => '智能体运行时版本的详细信息', '$ref' => '#/components/schemas/AgentRuntimeVersion'],
],
],
'AiFallbackConfig' => [
@@ -531,97 +263,57 @@
'properties' => [
'serviceConfigs' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/AiFallbackServiceConfig',
- ],
+ 'items' => ['$ref' => '#/components/schemas/AiFallbackServiceConfig', 'description' => ''],
+ 'description' => '',
],
],
+ 'description' => '',
],
'AiFallbackServiceConfig' => [
'type' => 'object',
'properties' => [
- 'serviceId' => [
- 'type' => 'string',
- ],
- 'targetModelName' => [
- 'type' => 'string',
- ],
- 'passThroughModelName' => [
- 'type' => 'boolean',
- ],
+ 'serviceId' => ['type' => 'string', 'description' => ''],
+ 'targetModelName' => ['type' => 'string', 'description' => ''],
+ 'passThroughModelName' => ['type' => 'boolean', 'description' => ''],
],
+ 'description' => '',
],
'AiServiceConfig' => [
'type' => 'object',
'properties' => [
- 'provider' => [
- 'type' => 'string',
- ],
- 'address' => [
- 'type' => 'string',
- ],
- 'enableHealthCheck' => [
- 'type' => 'boolean',
- ],
+ 'provider' => ['type' => 'string', 'description' => ''],
+ 'address' => ['type' => 'string', 'description' => ''],
+ 'enableHealthCheck' => ['type' => 'boolean', 'description' => ''],
'protocols' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
+ 'items' => ['type' => 'string', 'description' => ''],
+ 'description' => '',
],
'apiKeys' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
+ 'items' => ['type' => 'string', 'description' => ''],
+ 'description' => '',
],
],
+ 'description' => '',
],
'ApigLLMModel' => [
'type' => 'object',
'properties' => [
- 'modelId' => [
- 'type' => 'string',
- ],
- 'tenantId' => [
- 'type' => 'string',
- ],
- 'name' => [
- 'type' => 'string',
- ],
- 'provider' => [
- 'type' => 'string',
- ],
- 'type' => [
- 'type' => 'string',
- ],
- 'address' => [
- 'type' => 'string',
- ],
- 'apiKey' => [
- 'type' => 'string',
- ],
- 'models' => [
- 'type' => 'string',
- ],
- 'modelsWeight' => [
- 'type' => 'string',
- ],
- 'desc' => [
- 'type' => 'string',
- ],
- 'createdTime' => [
- 'type' => 'string',
- ],
- 'updateTime' => [
- 'type' => 'string',
- ],
- 'gatewayId' => [
- 'type' => 'string',
- ],
- 'targetId' => [
- 'type' => 'string',
- ],
+ 'modelId' => ['type' => 'string'],
+ 'tenantId' => ['type' => 'string'],
+ 'name' => ['type' => 'string'],
+ 'provider' => ['type' => 'string'],
+ 'type' => ['type' => 'string'],
+ 'address' => ['type' => 'string'],
+ 'apiKey' => ['type' => 'string'],
+ 'models' => ['type' => 'string'],
+ 'modelsWeight' => ['type' => 'string'],
+ 'desc' => ['type' => 'string'],
+ 'createdTime' => ['type' => 'string'],
+ 'updateTime' => ['type' => 'string'],
+ 'gatewayId' => ['type' => 'string'],
+ 'targetId' => ['type' => 'string'],
],
],
'ArmsConfiguration' => [
@@ -629,32 +321,104 @@
'description' => '应用实时监控服务(ARMS)的配置信息',
'type' => 'object',
'properties' => [
- 'enableArms' => [
- 'title' => '是否启用ARMS',
- 'description' => '是否启用应用实时监控服务(ARMS)',
- 'type' => 'boolean',
- 'example' => 'true',
+ 'enableArms' => ['title' => '是否启用ARMS', 'description' => '是否启用应用实时监控服务(ARMS)', 'type' => 'boolean', 'example' => 'true'],
+ 'armsLicenseKey' => ['title' => 'ARMS许可证密钥', 'description' => '应用实时监控服务(ARMS)的许可证密钥', 'type' => 'string', 'example' => 'arms-license-key-123456'],
+ 'cmsWorkspace' => ['title' => 'CMS 2.0 工作空间', 'description' => 'CMS 2.0 工作空间', 'type' => 'string'],
+ ],
+ ],
+ 'AttachPolicyConfig' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'className' => ['type' => 'string', 'description' => ''],
+ 'name' => ['type' => 'string', 'description' => ''],
+ 'config' => ['type' => 'string', 'description' => ''],
+ ],
+ 'description' => '',
+ ],
+ 'BatchEvaluateWorkspacePermissionsInput' => [
+ 'title' => '批量校验 Workspace List 类 RAM 权限请求体',
+ 'description' => '控制面前端批量鉴权探测入参;workspaceIds 与 actions 均不可为空数组;两者乘积不超过 200',
+ 'type' => 'object',
+ 'properties' => [
+ 'workspaceIds' => [
+ 'description' => 'Workspace 资源 ID 列表(UUID 字符串);顺序与响应 results 一致;上限 50 条',
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
+ 'required' => true,
],
- 'armsLicenseKey' => [
- 'title' => 'ARMS许可证密钥',
- 'description' => '应用实时监控服务(ARMS)的许可证密钥',
- 'type' => 'string',
- 'example' => 'arms-license-key-123456',
+ 'actions' => [
+ 'description' => 'RAM List 类 action 列表;支持带 agentrun: 前缀或不带(服务端归一化);顺序与每条 permissions 一致;上限 20 条',
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
+ 'required' => true,
],
],
],
- 'AttachPolicyConfig' => [
+ 'BatchEvaluateWorkspacePermissionsOutput' => [
+ 'title' => '批量校验 Workspace 权限响应 data',
+ 'description' => '成功响应外层 data 字段;results 顺序与请求 workspaceIds 一致',
'type' => 'object',
'properties' => [
- 'className' => [
- 'type' => 'string',
+ 'results' => [
+ 'description' => '各 workspace 的权限校验结果列表;顺序与请求 workspaceIds 一致',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/WorkspacePermissionEvaluateResult'],
+ ],
+ ],
+ ],
+ 'BatchEvaluateWorkspacePermissionsResult' => [
+ 'title' => '批量校验 Workspace List 类 RAM 权限响应',
+ 'description' => '成功:code=OK,data 为 BatchEvaluateWorkspacePermissionsOutput;失败见统一错误 JSON(与 respond.go 一致)',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['description' => 'OK 表示成功', 'type' => 'string'],
+ 'requestId' => ['description' => '与响应头 x-funagent-request-id 对应', 'type' => 'string'],
+ 'data' => ['$ref' => '#/components/schemas/BatchEvaluateWorkspacePermissionsOutput'],
+ ],
+ ],
+ 'BoundConfiguration' => [
+ 'title' => '绑定配置',
+ 'description' => '工具的绑定配置,定义工具与 HTTP 路径和方法的映射关系列表,用于实现工具的路由和调用。',
+ 'type' => 'object',
+ 'properties' => [
+ 'boundTools' => [
+ 'title' => '绑定工具列表',
+ 'description' => '绑定的工具配置列表,每个配置项定义一个工具与特定 HTTP 路径和方法的绑定关系',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/BoundTool'],
],
- 'name' => [
+ ],
+ ],
+ 'BoundTool' => [
+ 'title' => '绑定工具',
+ 'description' => '绑定工具配置,用于定义工具与特定 HTTP 路径和方法的绑定关系,实现工具的路由映射。',
+ 'type' => 'object',
+ 'properties' => [
+ 'toolName' => ['title' => '工具名称', 'description' => '要绑定的工具名称', 'type' => 'string', 'example' => 'my-tool'],
+ 'method' => [
+ 'title' => 'HTTP方法',
+ 'description' => '绑定的 HTTP 请求方法,支持:GET、PUT、POST、PATCH、DELETE、OPTIONS',
'type' => 'string',
+ 'deprecated' => true,
+ 'enumValueTitles' => ['GET' => 'GET 方法 - 用于获取资源', 'PUT' => 'PUT 方法 - 用于更新资源', 'POST' => 'POST 方法 - 用于创建资源', 'PATCH' => 'PATCH 方法 - 用于部分更新资源', 'DELETE' => 'DELETE 方法 - 用于删除资源', 'OPTIONS' => 'OPTIONS 方法 - 用于获取资源支持的方法'],
+ 'example' => 'POST',
+ 'enum' => ['GET', 'PUT', 'POST', 'PATCH', 'DELETE', 'OPTIONS'],
],
- 'config' => [
+ 'path' => ['title' => '路径', 'description' => '绑定的 URL 路径,用于路由匹配', 'type' => 'string', 'deprecated' => true, 'example' => '/api/v1/tools'],
+ 'apis' => [
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/BoundToolApi'],
+ ],
+ ],
+ ],
+ 'BoundToolApi' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'method' => [
'type' => 'string',
+ 'enum' => ['GET', 'POST', 'DELETE', 'PUT', 'PATCH', 'OPTIONS'],
],
+ 'path' => ['type' => 'string'],
],
],
'Browser' => [
@@ -662,98 +426,26 @@
'description' => '浏览器',
'type' => 'object',
'properties' => [
- 'browserId' => [
- 'title' => '浏览器ID',
- 'description' => '浏览器ID',
- 'type' => 'string',
- 'example' => 'browser-1234567890abcdef',
- ],
- 'browserName' => [
- 'title' => '浏览器名称',
- 'description' => '浏览器名称',
- 'type' => 'string',
- 'example' => 'my-browser',
- ],
- 'description' => [
- 'title' => '描述',
- 'description' => '描述',
- 'type' => 'string',
- 'example' => 'Web automation browser for testing',
- ],
+ 'browserId' => ['title' => '浏览器ID', 'description' => '浏览器ID', 'type' => 'string', 'example' => 'browser-1234567890abcdef'],
+ 'browserName' => ['title' => '浏览器名称', 'description' => '浏览器名称', 'type' => 'string', 'example' => 'my-browser'],
+ 'description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'Web automation browser for testing'],
'status' => [
'title' => '状态',
'description' => '状态',
'type' => 'string',
'example' => 'READY',
- 'enum' => [
- 'CREATING',
- 'CREATE_FAILED',
- 'READY',
- 'DELETING',
- 'DELETED',
- 'DELETE_FAILED',
- ],
- ],
- 'statusReason' => [
- 'title' => '状态原因',
- 'description' => '当前状态的原因说明(如适用)',
- 'type' => 'string',
- 'example' => 'Browser is ready for use',
- ],
- 'createdAt' => [
- 'title' => '创建时间',
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '2025-01-10T10:30:00Z',
- ],
- 'lastUpdatedAt' => [
- 'title' => '更新时间',
- 'description' => '更新时间',
- 'type' => 'string',
- 'example' => '2025-01-10T11:45:00Z',
- ],
- 'executionRoleArn' => [
- 'title' => '执行角色ARN',
- 'description' => '执行角色ARN',
- 'type' => 'string',
- 'example' => 'acs:ram::1760720386195983:role/BrowserExecutionRole',
- ],
- 'networkConfiguration' => [
- 'title' => '网络配置',
- 'description' => '网络配置',
- '$ref' => '#/components/schemas/NetworkConfiguration',
- ],
- 'recording' => [
- 'title' => '录制配置',
- 'description' => '录制配置',
- '$ref' => '#/components/schemas/BrowserRecordingConfiguration',
- ],
- 'memory' => [
- 'title' => '内存配置',
- 'description' => '内存资源配置(单位:MB)',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '2048',
- ],
- 'credentialId' => [
- 'title' => '鉴权ID',
- 'description' => '鉴权ID',
- 'type' => 'string',
- 'example' => 'cred-1234567890abcdef',
- ],
- 'cpu' => [
- 'title' => 'CPU核数',
- 'description' => 'CPU核数',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '2.0',
- ],
- 'tenantId' => [
- 'title' => '租户ID',
- 'description' => '租户ID',
- 'type' => 'string',
- 'example' => 'tenant-1234567890abcdef',
+ 'enum' => ['CREATING', 'CREATE_FAILED', 'READY', 'DELETING', 'DELETED', 'DELETE_FAILED'],
],
+ 'statusReason' => ['title' => '状态原因', 'description' => '当前状态的原因说明(如适用)', 'type' => 'string', 'example' => 'Browser is ready for use'],
+ 'createdAt' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-01-10T10:30:00Z'],
+ 'lastUpdatedAt' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string', 'example' => '2025-01-10T11:45:00Z'],
+ 'executionRoleArn' => ['title' => '执行角色ARN', 'description' => '执行角色ARN', 'type' => 'string', 'example' => 'acs:ram::1760720386195983:role/BrowserExecutionRole'],
+ 'networkConfiguration' => ['title' => '网络配置', 'description' => '网络配置', '$ref' => '#/components/schemas/NetworkConfiguration'],
+ 'recording' => ['title' => '录制配置', 'description' => '录制配置', '$ref' => '#/components/schemas/BrowserRecordingConfiguration'],
+ 'memory' => ['title' => '内存配置', 'description' => '内存资源配置(单位:MB)', 'type' => 'integer', 'format' => 'int32', 'example' => '2048'],
+ 'credentialId' => ['title' => '鉴权ID', 'description' => '鉴权ID', 'type' => 'string', 'example' => 'cred-1234567890abcdef'],
+ 'cpu' => ['title' => 'CPU核数', 'description' => 'CPU核数', 'type' => 'number', 'format' => 'float', 'example' => '2.0'],
+ 'tenantId' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'string', 'example' => 'tenant-1234567890abcdef'],
],
],
'BrowserAutomationStream' => [
@@ -761,68 +453,27 @@
'description' => '浏览器自动化流',
'type' => 'object',
'properties' => [
- 'streamEndpoint' => [
- 'title' => '流端点',
- 'description' => '流端点',
- 'type' => 'string',
- 'example' => 'wss://browser-automation.cn-hangzhou.agentrun.aliyuncs.com/stream/bs-1234567890abcdef',
- ],
- 'streamStatus' => [
- 'title' => '流状态',
- 'description' => '流状态',
- 'type' => 'string',
- 'example' => 'ACTIVE',
- ],
+ 'streamEndpoint' => ['title' => '流端点', 'description' => '流端点', 'type' => 'string', 'example' => 'wss://browser-automation.cn-hangzhou.agentrun.aliyuncs.com/stream/bs-1234567890abcdef'],
+ 'streamStatus' => ['title' => '流状态', 'description' => '流状态', 'type' => 'string', 'example' => 'ACTIVE'],
],
],
- 'BrowserConfiguration' => [
- 'title' => '浏览器配置',
- 'description' => '浏览器配置',
+ 'BrowserLiveViewStream' => [
+ 'title' => '浏览器实时视图流',
+ 'description' => '浏览器实时视图流',
'type' => 'object',
'properties' => [
- 'browserType' => [
- 'title' => '浏览器类型',
- 'type' => 'string',
- 'enum' => [
- 'CHROMIUM',
- 'FIREFOX',
- ],
- ],
- 'viewPort' => [
- 'title' => '视口配置',
- '$ref' => '#/components/schemas/ViewPortConfiguration',
- ],
- 'userAgent' => [
- 'title' => '用户代理字符串',
- 'description' => '浏览器用户代理字符串',
- 'type' => 'string',
- ],
- 'headless' => [
- 'title' => '无头模式',
- 'description' => '是否以无头模式运行浏览器',
- 'type' => 'boolean',
- ],
- 'enableExtension' => [
- 'title' => '启用的浏览器扩展列表',
- 'description' => '要启用的浏览器扩展列表',
- 'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
- ],
+ 'streamEndpoint' => ['title' => '流端点', 'description' => '流端点', 'type' => 'string', 'example' => 'wss://browser-liveview.cn-hangzhou.agentrun.aliyuncs.com/stream/bs-1234567890abcdef'],
],
],
- 'BrowserLiveViewStream' => [
- 'title' => '浏览器实时视图流',
- 'description' => '浏览器实时视图流',
+ 'BrowserMetricsResult' => [
+ 'title' => '浏览器指标结果',
+ 'description' => '获取浏览器指标的统一结果格式',
'type' => 'object',
'properties' => [
- 'streamEndpoint' => [
- 'title' => '流端点',
- 'description' => '流端点',
- 'type' => 'string',
- 'example' => 'wss://browser-liveview.cn-hangzhou.agentrun.aliyuncs.com/stream/bs-1234567890abcdef',
- ],
+ 'code' => ['title' => '响应状态码', 'description' => 'HTTP状态码,200表示成功', 'type' => 'integer'],
+ 'success' => ['title' => '请求是否成功', 'description' => 'true表示请求成功,false表示失败', 'type' => 'boolean'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string'],
+ 'data' => ['title' => '指标数据', 'description' => '浏览器的性能和运行指标', 'type' => 'any'],
],
],
'BrowserOssLocation' => [
@@ -830,16 +481,8 @@
'description' => '浏览器OSS存储位置',
'type' => 'object',
'properties' => [
- 'bucket' => [
- 'title' => 'OSS存储桶',
- 'description' => 'OSS存储桶',
- 'type' => 'string',
- ],
- 'prefix' => [
- 'title' => '存储前缀',
- 'description' => '存储前缀',
- 'type' => 'string',
- ],
+ 'bucket' => ['title' => 'OSS存储桶', 'description' => 'OSS存储桶', 'type' => 'string'],
+ 'prefix' => ['title' => '存储前缀', 'description' => '存储前缀', 'type' => 'string'],
],
],
'BrowserRecordingConfiguration' => [
@@ -847,16 +490,8 @@
'description' => '浏览器录制配置',
'type' => 'object',
'properties' => [
- 'enabled' => [
- 'title' => '是否启用录制',
- 'description' => '是否启用录制',
- 'type' => 'boolean',
- ],
- 'ossLocation' => [
- 'title' => 'OSS存储位置',
- 'description' => 'OSS存储位置',
- '$ref' => '#/components/schemas/BrowserOssLocation',
- ],
+ 'enabled' => ['title' => '是否启用录制', 'description' => '是否启用录制', 'type' => 'boolean'],
+ 'ossLocation' => ['title' => 'OSS存储位置', 'description' => 'OSS存储位置', '$ref' => '#/components/schemas/BrowserOssLocation'],
],
],
'BrowserResult' => [
@@ -864,24 +499,53 @@
'description' => '创建、获取浏览器的统一结果格式',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '唯一的请求标识符,用于问题追踪',
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '浏览器数据', 'description' => '浏览器的详细信息', 'example' => '{}', '$ref' => '#/components/schemas/Browser'],
+ ],
+ ],
+ 'BrowserSession' => [
+ 'title' => '浏览器会话',
+ 'description' => '浏览器会话',
+ 'type' => 'object',
+ 'properties' => [
+ 'browserId' => ['title' => '浏览器ID', 'description' => '浏览器ID', 'type' => 'string'],
+ 'sessionId' => ['title' => '会话ID', 'description' => '会话ID', 'type' => 'string'],
+ 'name' => ['title' => '会话名称', 'description' => '会话名称', 'type' => 'string'],
+ 'status' => [
+ 'title' => '状态',
+ 'description' => '状态',
'type' => 'string',
- 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E',
- ],
- 'data' => [
- 'title' => '浏览器数据',
- 'description' => '浏览器的详细信息',
- 'example' => '{}',
- '$ref' => '#/components/schemas/Browser',
+ 'enum' => ['READY', 'TERMINATED'],
],
+ 'createdAt' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string'],
+ 'lastUpdatedAt' => ['title' => '最后更新时间', 'description' => '最后更新时间', 'type' => 'string'],
+ 'sessionTimeoutSeconds' => ['title' => '会话超时时间', 'description' => '会话超时时间(秒)', 'type' => 'integer'],
+ 'sessionReplayartifactType' => ['title' => '会话回放制品类型', 'description' => '会话回放制品类型', 'type' => 'string'],
+ 'viewPort' => ['title' => '视口配置', 'description' => '视口配置', '$ref' => '#/components/schemas/BrowserViewPort'],
+ 'streams' => ['title' => '流配置', 'description' => '流配置', '$ref' => '#/components/schemas/BrowserStreams'],
+ ],
+ ],
+ 'BrowserSessionConfig' => [
+ 'title' => '浏览器会话配置',
+ 'description' => '浏览器会话配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'initialUrl' => ['title' => '初始URL', 'description' => '初始URL', 'type' => 'string'],
+ 'viewport' => ['title' => '视口配置', 'description' => '视口配置', '$ref' => '#/components/schemas/BrowserViewPort'],
+ 'timeout' => ['title' => '超时时间(秒)', 'description' => '超时时间(秒)', 'type' => 'integer', 'format' => 'int32'],
+ ],
+ ],
+ 'BrowserSessionItem' => [
+ 'title' => '浏览器会话项',
+ 'description' => '浏览器会话项',
+ 'type' => 'object',
+ 'properties' => [
+ 'sessionId' => ['title' => '会话ID', 'description' => '会话ID', 'type' => 'string'],
+ 'browserId' => ['title' => '浏览器ID', 'description' => '浏览器ID', 'type' => 'string'],
+ 'status' => ['title' => '状态', 'description' => '状态', 'type' => 'string'],
+ 'createdAt' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string'],
+ 'updatedAt' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string'],
],
],
'BrowserSessionListOut' => [
@@ -889,35 +553,14 @@
'description' => '浏览器会话列表数据',
'type' => 'object',
'properties' => [
- 'total' => [
- 'title' => '总数',
- 'description' => '总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2',
- ],
- 'pageNumber' => [
- 'title' => '页码',
- 'description' => '页码',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'pageSize' => [
- 'title' => '页大小',
- 'description' => '页大小',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '20',
- ],
+ 'total' => ['title' => '总数', 'description' => '总数', 'type' => 'integer', 'format' => 'int64', 'example' => '2'],
+ 'pageNumber' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'pageSize' => ['title' => '页大小', 'description' => '页大小', 'type' => 'integer', 'format' => 'int32', 'example' => '20'],
'items' => [
'title' => '会话列表',
'description' => '会话列表',
'type' => 'array',
- 'items' => [
- 'description' => '浏览器会话输出',
- '$ref' => '#/components/schemas/BrowserSessionOut',
- ],
+ 'items' => ['description' => '浏览器会话输出', '$ref' => '#/components/schemas/BrowserSessionOut'],
'example' => '[]',
],
],
@@ -927,70 +570,34 @@
'description' => '浏览器会话详情',
'type' => 'object',
'properties' => [
- 'sessionId' => [
- 'title' => '会话ID',
- 'description' => '会话ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'bs-1234567890abcdef',
- ],
- 'browserId' => [
- 'title' => '浏览器ID',
- 'description' => '浏览器ID',
- 'type' => 'string',
- 'example' => 'browser-1234567890abcdef',
- ],
- 'status' => [
- 'title' => '会话状态',
- 'description' => '会话状态',
- 'type' => 'string',
- 'example' => 'RUNNING',
- ],
- 'createdAt' => [
- 'title' => '创建时间',
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '2025-01-10T10:30:00Z',
- ],
- 'lastUpdatedAt' => [
- 'title' => '更新时间',
- 'description' => '更新时间',
- 'type' => 'string',
- 'example' => '2025-01-10T11:45:00Z',
- ],
- 'browserName' => [
- 'title' => '会话名称',
- 'description' => '会话名称',
- 'type' => 'string',
- 'example' => 'my-browser-session',
- ],
- 'sessionIdleTimeoutSeconds' => [
- 'title' => '会话空闲超时秒数',
- 'description' => '会话空闲超时时间,单位为秒',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '3600',
- ],
+ 'sessionId' => ['title' => '会话ID', 'description' => '会话ID', 'type' => 'string', 'required' => true, 'example' => 'bs-1234567890abcdef'],
+ 'browserId' => ['title' => '浏览器ID', 'description' => '浏览器ID', 'type' => 'string', 'example' => 'browser-1234567890abcdef'],
+ 'status' => ['title' => '会话状态', 'description' => '会话状态', 'type' => 'string', 'example' => 'RUNNING'],
+ 'createdAt' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-01-10T10:30:00Z'],
+ 'lastUpdatedAt' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string', 'example' => '2025-01-10T11:45:00Z'],
+ 'browserName' => ['title' => '会话名称', 'description' => '会话名称', 'type' => 'string', 'example' => 'my-browser-session'],
+ 'sessionIdleTimeoutSeconds' => ['title' => '会话空闲超时秒数', 'description' => '会话空闲超时时间,单位为秒', 'type' => 'integer', 'format' => 'int32', 'example' => '3600'],
],
'required' => true,
],
+ 'BrowserSessionResult' => [
+ 'title' => '浏览器会话结果',
+ 'description' => '创建、获取浏览器会话的统一结果格式',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['title' => '响应状态码', 'description' => 'HTTP状态码,200表示成功', 'type' => 'integer'],
+ 'success' => ['title' => '请求是否成功', 'description' => 'true表示请求成功,false表示失败', 'type' => 'boolean'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string'],
+ 'data' => ['title' => '浏览器会话数据', 'description' => '浏览器会话的详细信息', '$ref' => '#/components/schemas/BrowserSession'],
+ ],
+ ],
'BrowserStreams' => [
'title' => '浏览器流',
'description' => '浏览器流',
'type' => 'object',
'properties' => [
- 'automationStream' => [
- 'title' => '自动化流',
- 'description' => '自动化流',
- 'example' => '{}',
- '$ref' => '#/components/schemas/BrowserAutomationStream',
- ],
- 'liveViewStream' => [
- 'title' => '实时视图流',
- 'description' => '实时视图流',
- 'example' => '{}',
- '$ref' => '#/components/schemas/BrowserLiveViewStream',
- ],
+ 'automationStream' => ['title' => '自动化流', 'description' => '自动化流', 'example' => '{}', '$ref' => '#/components/schemas/BrowserAutomationStream'],
+ 'liveViewStream' => ['title' => '实时视图流', 'description' => '实时视图流', 'example' => '{}', '$ref' => '#/components/schemas/BrowserLiveViewStream'],
],
],
'BrowserViewPort' => [
@@ -998,90 +605,43 @@
'description' => '浏览器视口',
'type' => 'object',
'properties' => [
- 'height' => [
- 'title' => '高度',
- 'description' => '高度',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '1080',
- ],
- 'width' => [
- 'title' => '宽度',
- 'description' => '宽度',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '1920',
- ],
+ 'height' => ['title' => '高度', 'description' => '高度', 'type' => 'number', 'format' => 'double', 'example' => '1080'],
+ 'width' => ['title' => '宽度', 'description' => '宽度', 'type' => 'number', 'format' => 'double', 'example' => '1920'],
],
],
'CAPConfig' => [
'type' => 'object',
'properties' => [
- 'name' => [
- 'type' => 'string',
- ],
- 'functionName' => [
- 'type' => 'string',
- ],
- 'templateId' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
+ 'name' => ['type' => 'string', 'description' => ''],
+ 'functionName' => ['type' => 'string', 'description' => ''],
+ 'templateId' => ['type' => 'integer', 'format' => 'int32', 'description' => ''],
],
+ 'description' => '',
],
'CertConfig' => [
'title' => '证书配置',
'description' => 'HTTPS证书的配置信息,包括证书名称、证书内容和私钥',
'type' => 'object',
'properties' => [
- 'certName' => [
- 'title' => '证书名称',
- 'description' => '证书的名称。支持字母、数字、下划线(_)和短划线(-),不能以数字和短划线(-)开头。长度范围为 1~128 个字符。',
- 'type' => 'string',
- 'maximum' => '128',
- 'minimum' => '1',
- 'example' => 'my-cert',
- ],
- 'certificate' => [
- 'title' => '证书',
- 'description' => '证书,如果是证书链,则需要依次填写多个证书。',
- 'type' => 'string',
- 'example' => '-----BEGIN CERTIFICATE-----\\nxxxxx\\n-----END CERTIFICATE-----',
- ],
- 'privateKey' => [
- 'title' => '私钥',
- 'description' => '私钥。',
- 'type' => 'string',
- 'example' => '-----BEGIN RSA PRIVATE KEY-----\\nxxxxx\\n-----END RSA PRIVATE KEY-----',
- ],
+ 'certName' => ['title' => '证书名称', 'description' => '证书的名称。支持字母、数字、下划线(_)和短划线(-),不能以数字和短划线(-)开头。长度范围为 1~128 个字符。', 'type' => 'string', 'maximum' => '128', 'minimum' => '1', 'example' => 'my-cert'],
+ 'certificate' => ['title' => '证书', 'description' => '证书,如果是证书链,则需要依次填写多个证书。', 'type' => 'string', 'example' => '-----BEGIN CERTIFICATE-----\\nxxxxx\\n-----END CERTIFICATE-----'],
+ 'privateKey' => ['title' => '私钥', 'description' => '私钥。', 'type' => 'string', 'example' => '-----BEGIN RSA PRIVATE KEY-----\\nxxxxx\\n-----END RSA PRIVATE KEY-----'],
],
],
'ChangeResourceGroupInput' => [
'type' => 'object',
'properties' => [
- 'resourceId' => [
- 'type' => 'string',
- ],
- 'newResourceGroupId' => [
- 'type' => 'string',
- ],
- 'resourceType' => [
- 'type' => 'string',
- ],
+ 'resourceId' => ['type' => 'string'],
+ 'newResourceGroupId' => ['type' => 'string'],
+ 'resourceType' => ['type' => 'string'],
],
],
'ChangeResourceGroupOutput' => [
'type' => 'object',
'properties' => [
- 'resourceId' => [
- 'type' => 'string',
- ],
- 'newResourceGroupId' => [
- 'type' => 'string',
- ],
- 'oldResourceGroupId' => [
- 'type' => 'string',
- ],
+ 'resourceId' => ['type' => 'string'],
+ 'newResourceGroupId' => ['type' => 'string'],
+ 'oldResourceGroupId' => ['type' => 'string'],
],
],
'CodeConfiguration' => [
@@ -1089,51 +649,22 @@
'description' => '函数代码配置',
'type' => 'object',
'properties' => [
- 'zipFile' => [
- 'title' => '智能体代码ZIP包的Base64编码',
- 'description' => '智能体代码ZIP包的Base64编码',
- 'type' => 'string',
- 'example' => 'UEsDBAoAAAAAANF',
- ],
- 'ossBucketName' => [
- 'title' => '存储函数代码ZIP包的OSS存储桶名称',
- 'description' => '存储函数代码ZIP包的OSS存储桶名称',
- 'type' => 'string',
- 'example' => 'my-agent-code-bucket',
- ],
- 'ossObjectName' => [
- 'title' => '函数代码ZIP包的OSS对象名称',
- 'description' => '函数代码ZIP包的OSS对象名称',
- 'type' => 'string',
- 'example' => 'agent-code-v1.0.zip',
- ],
- 'checksum' => [
- 'title' => '代码包的CRC-64值',
- 'description' => '代码包的CRC-64校验值。如果提供了checksum,则函数计算会校验代码包的checksum是否和提供的一致',
- 'type' => 'string',
- 'example' => '1234567890123456789',
- ],
+ 'zipFile' => ['title' => '智能体代码ZIP包的Base64编码', 'description' => '智能体代码ZIP包的Base64编码', 'type' => 'string', 'example' => 'UEsDBAoAAAAAANF'],
+ 'ossBucketName' => ['title' => '存储函数代码ZIP包的OSS存储桶名称', 'description' => '存储函数代码ZIP包的OSS存储桶名称', 'type' => 'string', 'example' => 'my-agent-code-bucket'],
+ 'ossObjectName' => ['title' => '函数代码ZIP包的OSS对象名称', 'description' => '函数代码ZIP包的OSS对象名称', 'type' => 'string', 'example' => 'agent-code-v1.0.zip'],
+ 'checksum' => ['title' => '代码包的CRC-64值', 'description' => '代码包的CRC-64校验值。如果提供了checksum,则函数计算会校验代码包的checksum是否和提供的一致', 'type' => 'string', 'example' => '1234567890123456789'],
'language' => [
'title' => '运行时语言',
'description' => '代码运行时的编程语言,如 python3、nodejs 等',
'type' => 'string',
'example' => 'python3.12',
- 'enum' => [
- 'python3.10',
- 'python3.12',
- 'nodejs18',
- 'nodejs20',
- 'java8',
- 'java11',
- ],
+ 'enum' => ['python3.10', 'python3.12', 'nodejs18', 'nodejs20', 'nodejs22', 'java8', 'java11'],
],
'command' => [
'title' => '运行命令',
'description' => '在运行时中运行的命令(例如:[\'python\'])',
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
+ 'items' => ['type' => 'string', 'description' => ''],
'example' => 'python,main.py',
],
],
@@ -1141,96 +672,34 @@
'CodeInfo' => [
'type' => 'object',
'properties' => [
- 'ossBucketName' => [
- 'type' => 'string',
- ],
- 'ossObjectName' => [
- 'type' => 'string',
- ],
+ 'ossBucketName' => ['type' => 'string', 'description' => ''],
+ 'ossObjectName' => ['type' => 'string', 'description' => ''],
],
+ 'description' => '',
],
'CodeInterpreter' => [
'title' => '代码解释器',
'description' => '代码解释器的详细信息,包含解释器的所有配置和状态信息',
'type' => 'object',
'properties' => [
- 'codeInterpreterId' => [
- 'title' => '代码解释器ID',
- 'description' => '代码解释器的唯一标识符',
- 'type' => 'string',
- 'example' => 'ci-1234567890abcdef',
- ],
- 'codeInterpreterName' => [
- 'title' => '名称',
- 'description' => '代码解释器的名称,用于标识和区分不同的代码解释器实例',
- 'type' => 'string',
- 'example' => 'my-code-interpreter',
- ],
- 'description' => [
- 'title' => '描述',
- 'description' => '代码解释器的描述信息,说明该解释器的用途和功能',
- 'type' => 'string',
- 'example' => 'Python code interpreter for data analysis',
- ],
- 'executionRoleArn' => [
- 'title' => '执行角色ARN',
- 'description' => '此代码解释器的执行角色',
- 'type' => 'string',
- 'example' => 'acs:ram::1760720386195983:role/CodeInterpreterExecutionRole',
- ],
- 'createdAt' => [
- 'title' => '创建时间',
- 'description' => '代码解释器的创建时间,采用ISO 8601格式',
- 'type' => 'string',
- 'example' => '2025-01-10T10:30:00Z',
- ],
- 'lastUpdatedAt' => [
- 'title' => '更新时间',
- 'description' => '代码解释器的最后更新时间,采用ISO 8601格式',
- 'type' => 'string',
- 'example' => '2025-01-10T11:45:00Z',
- ],
+ 'codeInterpreterId' => ['title' => '代码解释器ID', 'description' => '代码解释器的唯一标识符', 'type' => 'string', 'example' => 'ci-1234567890abcdef'],
+ 'codeInterpreterName' => ['title' => '名称', 'description' => '代码解释器的名称,用于标识和区分不同的代码解释器实例', 'type' => 'string', 'example' => 'my-code-interpreter'],
+ 'description' => ['title' => '描述', 'description' => '代码解释器的描述信息,说明该解释器的用途和功能', 'type' => 'string', 'example' => 'Python code interpreter for data analysis'],
+ 'executionRoleArn' => ['title' => '执行角色ARN', 'description' => '此代码解释器的执行角色', 'type' => 'string', 'example' => 'acs:ram::1760720386195983:role/CodeInterpreterExecutionRole'],
+ 'createdAt' => ['title' => '创建时间', 'description' => '代码解释器的创建时间,采用ISO 8601格式', 'type' => 'string', 'example' => '2025-01-10T10:30:00Z'],
+ 'lastUpdatedAt' => ['title' => '更新时间', 'description' => '代码解释器的最后更新时间,采用ISO 8601格式', 'type' => 'string', 'example' => '2025-01-10T11:45:00Z'],
'status' => [
'title' => '状态',
'description' => '代码解释器的当前状态,如READY(就绪)、TERMINATED(已终止)等',
'type' => 'string',
'example' => 'READY',
- 'enum' => [
- 'READY',
- 'TERMINATED',
- ],
- ],
- 'statusReason' => [
- 'title' => '状态原因',
- 'description' => '当前状态的原因说明(如适用)',
- 'type' => 'string',
- 'example' => 'Code interpreter is ready for use',
- ],
- 'networkConfiguration' => [
- 'title' => '网络配置',
- 'description' => '代码解释器的网络配置信息',
- '$ref' => '#/components/schemas/NetworkConfiguration',
- ],
- 'memory' => [
- 'title' => '内存配置',
- 'description' => '内存资源配置(单位:MB)',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '2048',
- ],
- 'cpu' => [
- 'title' => 'CPU 核数',
- 'description' => 'CPU 核数',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '2.0',
- ],
- 'tenantId' => [
- 'title' => '租户ID',
- 'description' => '租户ID',
- 'type' => 'string',
- 'example' => 'tenant-1234567890abcdef',
+ 'enum' => ['READY', 'TERMINATED'],
],
+ 'statusReason' => ['title' => '状态原因', 'description' => '当前状态的原因说明(如适用)', 'type' => 'string', 'example' => 'Code interpreter is ready for use'],
+ 'networkConfiguration' => ['title' => '网络配置', 'description' => '代码解释器的网络配置信息', '$ref' => '#/components/schemas/NetworkConfiguration'],
+ 'memory' => ['title' => '内存配置', 'description' => '内存资源配置(单位:MB)', 'type' => 'integer', 'format' => 'int32', 'example' => '2048'],
+ 'cpu' => ['title' => 'CPU 核数', 'description' => 'CPU 核数', 'type' => 'number', 'format' => 'float', 'example' => '2.0'],
+ 'tenantId' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'string', 'example' => 'tenant-1234567890abcdef'],
],
],
'CodeInterpreterResult' => [
@@ -1238,24 +707,28 @@
'description' => '创建、获取代码解释器的统一结果格式',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '唯一的请求标识符,用于问题追踪',
- 'type' => 'string',
- 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E',
- ],
- 'data' => [
- 'title' => '代码解释器数据',
- 'description' => '代码解释器的详细信息',
- 'example' => '{}',
- '$ref' => '#/components/schemas/CodeInterpreter',
- ],
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '代码解释器数据', 'description' => '代码解释器的详细信息', 'example' => '{}', '$ref' => '#/components/schemas/CodeInterpreter'],
+ ],
+ ],
+ 'CodeInterpreterSession' => [
+ 'title' => '代码解释器会话',
+ 'description' => '代码解释器会话',
+ 'type' => 'object',
+ 'properties' => [
+ 'id' => ['title' => 'ID', 'description' => 'ID', 'type' => 'string'],
+ 'codeInterpreterId' => ['title' => '代码解释器ID', 'description' => '代码解释器ID', 'type' => 'string'],
+ 'sessionId' => ['title' => '会话ID', 'description' => '会话ID', 'type' => 'string'],
+ 'name' => ['title' => '会话名称', 'description' => '会话名称', 'type' => 'string'],
+ 'description' => ['title' => '描述', 'description' => '描述', 'type' => 'string'],
+ 'sessionTimeoutSeconds' => ['title' => '会话超时时间', 'description' => '会话超时时间(秒)', 'type' => 'integer'],
+ 'execTargetUri' => ['title' => '执行目标URI', 'description' => '执行目标URI', 'type' => 'string'],
+ 'status' => ['title' => '状态', 'description' => '状态', 'type' => 'string'],
+ 'createdAt' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string'],
+ 'endedAt' => ['title' => '结束时间', 'description' => '结束时间', 'type' => 'string'],
+ 'updatedAt' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string'],
+ 'interpreter' => ['title' => '解释器', 'description' => '解释器', '$ref' => '#/components/schemas/CodeInterpreter'],
],
],
'CodeInterpreterSessionConfig' => [
@@ -1263,28 +736,27 @@
'description' => '代码解释器会话的配置参数',
'type' => 'object',
'properties' => [
- 'timeout' => [
- 'title' => '超时时间(秒)',
- 'description' => '代码解释器会话的超时时间,单位为秒',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '3600',
- ],
+ 'timeout' => ['title' => '超时时间(秒)', 'description' => '代码解释器会话的超时时间,单位为秒', 'type' => 'integer', 'format' => 'int32', 'example' => '3600'],
'environment' => [
'title' => '环境变量',
'description' => '代码解释器会话的环境变量配置',
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- ],
+ 'additionalProperties' => ['type' => 'string', 'description' => ''],
'example' => 'PYTHONPATH=/app,DEBUG=true',
],
- 'workingDirectory' => [
- 'title' => '工作目录',
- 'description' => '代码解释器会话的工作目录路径',
- 'type' => 'string',
- 'example' => '/app',
- ],
+ 'workingDirectory' => ['title' => '工作目录', 'description' => '代码解释器会话的工作目录路径', 'type' => 'string', 'example' => '/app'],
+ ],
+ ],
+ 'CodeInterpreterSessionItem' => [
+ 'title' => '代码解释器会话项',
+ 'description' => '代码解释器会话项',
+ 'type' => 'object',
+ 'properties' => [
+ 'sessionId' => ['title' => '会话ID', 'description' => '会话ID', 'type' => 'string'],
+ 'codeInterpreterId' => ['title' => '代码解释器ID', 'description' => '代码解释器ID', 'type' => 'string'],
+ 'status' => ['title' => '状态', 'description' => '状态', 'type' => 'string'],
+ 'createdAt' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string'],
+ 'updatedAt' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string'],
],
],
'CodeInterpreterSessionListOut' => [
@@ -1292,34 +764,14 @@
'description' => '代码解释器会话列表数据',
'type' => 'object',
'properties' => [
- 'total' => [
- 'title' => '总数',
- 'description' => '总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '100',
- ],
- 'pageNumber' => [
- 'title' => '页码',
- 'description' => '页码',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'pageSize' => [
- 'title' => '页大小',
- 'description' => '页大小',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '20',
- ],
+ 'total' => ['title' => '总数', 'description' => '总数', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
+ 'pageNumber' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'pageSize' => ['title' => '页大小', 'description' => '页大小', 'type' => 'integer', 'format' => 'int32', 'example' => '20'],
'items' => [
'title' => '会话列表',
'description' => '会话列表',
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/CodeInterpreterSessionOut',
- ],
+ 'items' => ['$ref' => '#/components/schemas/CodeInterpreterSessionOut', 'description' => ''],
'example' => '[]',
],
],
@@ -1329,44 +781,40 @@
'description' => '代码解释器会话的详细信息',
'type' => 'object',
'properties' => [
- 'sessionId' => [
- 'title' => '会话ID',
- 'description' => '代码解释器会话的唯一标识符',
- 'type' => 'string',
- 'required' => true,
- ],
- 'codeInterpreterId' => [
- 'title' => '代码解释器ID',
- 'description' => '关联的代码解释器的唯一标识符',
- 'type' => 'string',
- 'required' => true,
- ],
+ 'sessionId' => ['title' => '会话ID', 'description' => '代码解释器会话的唯一标识符', 'type' => 'string', 'required' => true],
+ 'codeInterpreterId' => ['title' => '代码解释器ID', 'description' => '关联的代码解释器的唯一标识符', 'type' => 'string', 'required' => true],
+ 'status' => ['title' => '会话状态', 'description' => '代码解释器会话的当前状态', 'type' => 'string', 'required' => true],
+ 'createdAt' => ['title' => '创建时间', 'description' => '代码解释器会话的创建时间,采用ISO 8601格式', 'type' => 'string'],
+ 'lastUpdatedAt' => ['title' => '更新时间', 'description' => '代码解释器会话的最后更新时间,采用ISO 8601格式', 'type' => 'string'],
+ 'sessionIdleTimeoutSeconds' => ['title' => '会话空闲超时时间(秒)', 'description' => '代码解释器会话的空闲超时时间,单位为秒。实例没有会话请求后处于空闲状态,空闲态为闲置计费模式,超过此超时时间后会话自动过期,不可继续使用', 'type' => 'integer', 'format' => 'int32'],
+ 'codeInterpreterName' => ['title' => '会话名称', 'description' => '代码解释器会话的名称', 'type' => 'string'],
+ ],
+ ],
+ 'CodeInterpreterSessionResult' => [
+ 'title' => '代码解释器会话结果',
+ 'description' => '创建、获取代码解释器会话的统一结果格式',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['title' => '响应状态码', 'description' => 'HTTP状态码,200表示成功', 'type' => 'integer'],
+ 'success' => ['title' => '请求是否成功', 'description' => 'true表示请求成功,false表示失败', 'type' => 'boolean'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string'],
+ 'data' => ['title' => '代码解释器会话数据', 'description' => '代码解释器会话的详细信息', '$ref' => '#/components/schemas/CodeInterpreterSession'],
+ ],
+ ],
+ 'CodeInterpreterSessionSummary' => [
+ 'title' => '代码解释器会话摘要',
+ 'description' => '代码解释器会话摘要',
+ 'type' => 'object',
+ 'properties' => [
+ 'codeInterpreterId' => ['title' => '代码解释器ID', 'description' => '代码解释器ID', 'type' => 'string'],
+ 'sessionId' => ['title' => '会话ID', 'description' => '会话ID', 'type' => 'string'],
+ 'name' => ['title' => '会话名称', 'description' => '会话名称', 'type' => 'string'],
+ 'createdAt' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string'],
'status' => [
- 'title' => '会话状态',
- 'description' => '代码解释器会话的当前状态',
- 'type' => 'string',
- 'required' => true,
- ],
- 'createdAt' => [
- 'title' => '创建时间',
- 'description' => '代码解释器会话的创建时间,采用ISO 8601格式',
- 'type' => 'string',
- ],
- 'lastUpdatedAt' => [
- 'title' => '更新时间',
- 'description' => '代码解释器会话的最后更新时间,采用ISO 8601格式',
- 'type' => 'string',
- ],
- 'sessionIdleTimeoutSeconds' => [
- 'title' => '会话空闲超时时间(秒)',
- 'description' => '代码解释器会话的空闲超时时间,单位为秒。实例没有会话请求后处于空闲状态,空闲态为闲置计费模式,超过此超时时间后会话自动过期,不可继续使用',
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'codeInterpreterName' => [
- 'title' => '会话名称',
- 'description' => '代码解释器会话的名称',
+ 'title' => '状态',
+ 'description' => '状态',
'type' => 'string',
+ 'enum' => ['READY', 'TERMINATED'],
],
],
],
@@ -1375,21 +823,33 @@
'description' => '所有API的统一结果格式',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '唯一的请求标识符,用于问题追踪',
- 'type' => 'string',
- ],
- 'data' => [
- 'title' => '响应数据',
- 'description' => '实际的业务数据内容',
- 'type' => 'any',
- ],
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string'],
+ 'data' => ['title' => '响应数据', 'description' => '实际的业务数据内容', 'type' => 'any'],
+ ],
+ ],
+ 'ConsumerAPIKey' => [
+ 'title' => '消费者API密钥',
+ 'description' => '消费者API密钥的详细信息,用于AI网关的请求鉴权',
+ 'type' => 'object',
+ 'properties' => [
+ 'consumerApiKeyId' => ['title' => '密钥ID', 'description' => '消费者API密钥的唯一标识符', 'type' => 'string', 'example' => '12345678-1234-1234-1234-123456789abc'],
+ 'maskedKey' => ['title' => '掩码密钥', 'description' => 'API密钥的掩码展示形式,仅显示前后几位字符', 'type' => 'string', 'example' => 'sk-****1234'],
+ 'modelConnectionId' => ['title' => '模型连接ID', 'description' => '关联的模型连接标识符', 'type' => 'string', 'example' => 'mc-1234567890abcdef'],
+ 'description' => ['title' => '描述', 'description' => '消费者API密钥的描述信息', 'type' => 'string', 'example' => '用于生产环境的API密钥'],
+ 'active' => ['title' => '启用状态', 'description' => '密钥是否启用,true表示启用,false表示禁用', 'type' => 'boolean', 'example' => 'true'],
+ 'createdAt' => ['title' => '创建时间', 'description' => '消费者API密钥的创建时间,采用ISO 8601格式', 'type' => 'string', 'example' => '2025-01-10T10:30:00Z'],
+ 'lastUpdatedAt' => ['title' => '更新时间', 'description' => '消费者API密钥最后一次更新的时间,采用ISO 8601格式', 'type' => 'string', 'example' => '2025-01-10T11:45:00Z'],
+ ],
+ ],
+ 'ConsumerAPIKeyResult' => [
+ 'title' => '消费者API密钥结果',
+ 'description' => '获取、更新、删除消费者API密钥的统一结果格式',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '消费者API密钥数据', 'description' => '消费者API密钥的详细信息', 'example' => '{}', '$ref' => '#/components/schemas/ConsumerAPIKey'],
],
],
'ContainerConfiguration' => [
@@ -1397,77 +857,178 @@
'description' => '自定义容器配置',
'type' => 'object',
'properties' => [
- 'image' => [
- 'title' => '容器镜像地址',
- 'description' => '容器镜像地址',
- 'type' => 'string',
- 'example' => 'registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest',
- ],
+ 'image' => ['title' => '容器镜像地址', 'description' => '容器镜像地址', 'type' => 'string', 'example' => 'registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest'],
'imageRegistryType' => [
'title' => '镜像仓库类型',
'description' => '容器镜像的来源类型,支持ACR(阿里云容器镜像服务)、ACREE(阿里云容器镜像服务企业版)、CUSTOM(自定义镜像仓库)',
'type' => 'string',
'example' => 'ACR',
- 'enum' => [
- 'ACR',
- 'ACREE',
- 'CUSTOM',
- ],
- ],
- 'acrInstanceId' => [
- 'title' => 'ACR实例ID或名称',
- 'description' => '阿里云容器镜像服务(ACR)的实例ID或名称',
- 'type' => 'string',
- 'example' => 'cri-xxxxx',
+ 'enum' => ['ACR', 'ACREE', 'CUSTOM'],
],
+ 'acrInstanceId' => ['title' => 'ACR实例ID或名称', 'description' => '阿里云容器镜像服务(ACR)的实例ID或名称', 'type' => 'string', 'example' => 'cri-xxxxx'],
'command' => [
'title' => '运行命令',
'description' => '沙箱入口点命令(例如:[\'python3\', \'app.py\'])',
'type' => 'array',
+ 'items' => ['description' => '入口点命令', 'type' => 'string', 'example' => '/usr/local/bin/entrypoint.sh'],
+ 'example' => 'python3,app.py',
+ ],
+ 'registryConfig' => ['title' => '镜像仓库配置', 'description' => '自定义镜像仓库的配置信息,当imageRegistryType为CUSTOM时使用', 'example' => '{}', '$ref' => '#/components/schemas/RegistryConfig'],
+ 'port' => ['description' => '沙箱运行时监听的端口号', 'type' => 'integer', 'format' => 'int32', 'example' => '5000'],
+ ],
+ ],
+ 'ConvertFlowDSLData' => [
+ 'title' => 'Flow DSL转换数据',
+ 'description' => '工作流DSL转换的业务数据,包含转换后的Flow配置、兼容性分析和插件信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'flow' => [
+ 'title' => '转换后的工作流',
+ 'description' => '转换后的AgentRun Flow配置信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'flowName' => ['title' => '工作流名称', 'description' => '转换后的工作流名称', 'type' => 'string', 'required' => true, 'example' => 'dify-flow'],
+ 'description' => ['title' => '描述', 'description' => '工作流的描述信息', 'type' => 'string', 'example' => 'Converted from external workflow'],
+ 'definition' => ['title' => '定义', 'description' => '工作流的FnF State Machine定义(YAML格式)', 'type' => 'string', 'required' => true],
+ 'environmentConfiguration' => ['title' => '环境配置', 'description' => '工作流的环境变量配置', '$ref' => '#/components/schemas/EnvironmentConfiguration'],
+ ],
+ 'required' => true,
+ ],
+ 'conversionPlan' => [
+ 'title' => '转换计划',
+ 'description' => 'DSL兼容性分析和转换计划',
+ 'type' => 'object',
+ 'properties' => [
+ 'summary' => [
+ 'title' => '转换摘要',
+ 'description' => '节点兼容性统计摘要',
+ 'type' => 'object',
+ 'properties' => [
+ 'totalNodes' => ['title' => '总节点数', 'description' => 'Dify DSL中的总节点数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '10'],
+ 'compatibleNodes' => ['title' => '兼容节点数', 'description' => '完全兼容的节点数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '7'],
+ 'nodesNeedConfig' => ['title' => '需要配置的节点数', 'description' => '需要手动配置的节点数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '2'],
+ 'nodesNeedConversion' => ['title' => '需要转换的节点数', 'description' => '需要特殊转换处理的节点数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '0'],
+ 'unsupportedNodes' => ['title' => '不支持的节点数', 'description' => '不支持的节点数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
+ ],
+ 'required' => true,
+ ],
+ 'issues' => [
+ 'title' => '问题列表',
+ 'description' => '节点兼容性问题详情',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'nodeId' => ['title' => '节点ID', 'description' => 'Dify DSL中的节点标识符', 'type' => 'string', 'required' => true, 'example' => '1760514991682'],
+ 'nodeType' => ['title' => '节点类型', 'description' => '节点类型', 'type' => 'string', 'required' => true, 'example' => 'tool'],
+ 'nodeTitle' => ['title' => '节点标题', 'description' => '节点显示名称', 'type' => 'string', 'example' => 'Google Search'],
+ 'level' => ['title' => '问题级别', 'description' => '问题严重程度:info, warning, error', 'type' => 'string', 'required' => true, 'example' => 'warning'],
+ 'issueType' => ['title' => '问题类型', 'description' => '问题类型:needs_config, needs_conversion, unsupported', 'type' => 'string', 'required' => true, 'example' => 'needs_config'],
+ 'description' => ['title' => '描述', 'description' => '问题描述', 'type' => 'string', 'required' => true, 'example' => 'Tool node requires Toolset installation'],
+ 'suggestion' => ['title' => '建议', 'description' => '解决建议', 'type' => 'string', 'example' => 'Install Toolset \'google\' before using this flow'],
+ 'details' => [
+ 'title' => '详细信息',
+ 'description' => '问题的详细信息(JSON对象)',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'any'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'toolsetInstallations' => [
+ 'title' => 'Toolset安装配置',
+ 'description' => '需要安装的Toolset配置列表',
+ 'type' => 'array',
'items' => [
- 'description' => '入口点命令',
- 'type' => 'string',
- 'example' => '/usr/local/bin/entrypoint.sh',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['title' => '名称', 'description' => 'Toolset名称', 'type' => 'string', 'required' => true, 'example' => 'google'],
+ 'description' => ['title' => '描述', 'description' => 'Toolset描述', 'type' => 'string', 'example' => 'Google Search Plugin'],
+ 'spec' => [
+ 'title' => '规格',
+ 'description' => 'Toolset规格配置(JSON对象)',
+ 'type' => 'object',
+ 'required' => true,
+ 'additionalProperties' => ['type' => 'any'],
+ ],
+ ],
],
- 'example' => 'python3,app.py',
],
- 'port' => [
- 'description' => '沙箱运行时监听的端口号',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '5000',
+ 'pluginErrors' => [
+ 'title' => '插件错误',
+ 'description' => '插件识别或转换过程中的错误信息',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'nodeId' => ['title' => '节点ID', 'description' => '相关节点的标识符', 'type' => 'string', 'example' => '1760514996015'],
+ 'providerName' => ['title' => '提供商名称', 'description' => '插件提供商名称', 'type' => 'string', 'required' => true, 'example' => 'langgenius'],
+ 'toolName' => ['title' => '工具名称', 'description' => '工具名称', 'type' => 'string', 'example' => 'google_search'],
+ 'reason' => ['title' => '原因', 'description' => '错误原因描述', 'type' => 'string', 'required' => true, 'example' => 'Plugin not found in marketplace'],
+ ],
+ ],
],
],
],
+ 'ConvertFlowDSLInput' => [
+ 'title' => 'Flow DSL转换输入',
+ 'description' => '工作流DSL转换所需的输入参数,支持多种DSL格式(如Dify、n8n等),包含DSL来源和转换选项',
+ 'type' => 'object',
+ 'properties' => [
+ 'dslSource' => [
+ 'title' => 'DSL来源',
+ 'description' => '工作流DSL的来源配置,支持inline和base64两种格式',
+ 'type' => 'object',
+ 'properties' => [
+ 'provider' => ['title' => 'DSL提供商', 'description' => '源DSL的提供商类型,如:dify、n8n、zapier等', 'type' => 'string', 'required' => true, 'example' => 'dify'],
+ 'content' => ['title' => '内容', 'description' => 'DSL内容,可以是原始JSON字符串,或根据encoding字段指定的编码格式', 'type' => 'string', 'required' => true, 'example' => '{"app":{"name":"My Flow"}}'],
+ 'encoding' => ['title' => '内容编码', 'description' => 'DSL内容的编码方式。不填表示内容为原始字符串;base64表示内容经过Base64编码;base64+gzip表示内容经过gzip压缩后再Base64编码', 'type' => 'string', 'example' => 'base64'],
+ ],
+ 'required' => true,
+ ],
+ 'options' => [
+ 'title' => '转换选项',
+ 'description' => 'DSL转换的可选配置参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'compatibilityCheck' => ['title' => '兼容性检查', 'description' => '是否执行兼容性检查,默认为true', 'type' => 'boolean', 'example' => 'true'],
+ 'credentialName' => ['title' => '访问凭证名称', 'description' => '调用方指定的 AgentRun 凭证资源名称。转换后会替换模型相关节点访问凭证', 'type' => 'string'],
+ 'vpcEndpointName' => ['title' => 'vpc端点名称', 'description' => '全局VPC端点名称,对所有节点统一生效。如果指定了vpcEndpoints映射,则映射中的节点优先使用映射值', 'type' => 'string'],
+ 'vpcEndpoints' => [
+ 'title' => 'vpc端点映射',
+ 'description' => '按节点名称指定VPC端点,key为节点名称(stateName),value为该节点使用的VPC端点名称。优先级高于vpcEndpointName',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string'],
+ 'example' => '{"LLM节点":"vpc-endpoint-1","Agent节点":"vpc-endpoint-2"}',
+ ],
+ 'flowName' => ['title' => '自定义流程名称', 'type' => 'string'],
+ ],
+ ],
+ ],
+ ],
+ 'ConvertFlowDSLResult' => [
+ 'title' => 'Flow DSL转换结果',
+ 'description' => '工作流DSL转换操作的统一结果格式',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '转换数据', 'description' => '工作流DSL转换的详细结果数据', '$ref' => '#/components/schemas/ConvertFlowDSLData'],
+ ],
+ ],
'CreateAgentRuntimeEndpointInput' => [
'title' => '创建智能体运行时端点输入',
'description' => '创建智能体运行时端点输入',
'type' => 'object',
'properties' => [
- 'targetVersion' => [
- 'title' => '目标版本',
- 'description' => '智能体运行时的目标版本',
- 'type' => 'string',
- 'example' => 'LATEST',
- ],
- 'agentRuntimeEndpointName' => [
- 'title' => '智能体运行时端点名称',
- 'description' => '智能体运行时端点名称',
- 'type' => 'string',
- 'example' => 'production-endpoint',
- ],
- 'description' => [
- 'title' => '描述',
- 'description' => '描述',
- 'type' => 'string',
- 'example' => 'Production endpoint for customer service agent',
- ],
- 'routingConfiguration' => [
- 'title' => '路由配置',
- 'description' => '智能体运行时端点的路由配置,支持多版本权重分配',
- 'example' => '{}',
- '$ref' => '#/components/schemas/RoutingConfiguration',
- ],
+ 'targetVersion' => ['title' => '目标版本', 'description' => '智能体运行时的目标版本', 'type' => 'string', 'example' => 'LATEST'],
+ 'agentRuntimeEndpointName' => ['title' => '智能体运行时端点名称', 'description' => '智能体运行时端点名称', 'type' => 'string', 'example' => 'production-endpoint'],
+ 'description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'Production endpoint for customer service agent'],
+ 'routingConfiguration' => ['title' => '路由配置', 'description' => '智能体运行时端点的路由配置,支持多版本权重分配', 'example' => '{}', '$ref' => '#/components/schemas/RoutingConfiguration'],
+ 'disablePublicNetworkAccess' => ['title' => '禁用公网访问', 'description' => '是否禁用该端点的公网访问', 'type' => 'boolean'],
+ 'scalingConfig' => ['title' => '弹性配置', 'description' => '端点的弹性伸缩配置,包括最小实例数和定时扩容策略(复用 ScalingConfig)', '$ref' => '#/components/schemas/ScalingConfig'],
],
],
'CreateAgentRuntimeInput' => [
@@ -1475,163 +1036,65 @@
'description' => '创建智能体运行时所需的输入参数',
'type' => 'object',
'properties' => [
- 'agentRuntimeName' => [
- 'title' => '智能体运行时名称',
- 'description' => '智能体运行时的唯一标识名称,用于区分不同的智能体运行时实例',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-agent-runtime',
- ],
- 'description' => [
- 'title' => '描述',
- 'description' => '智能体运行时的描述信息,用于说明该运行时的用途和功能',
- 'type' => 'string',
- 'example' => 'AI agent runtime for customer service automation',
- ],
+ 'agentRuntimeName' => ['title' => '智能体运行时名称', 'description' => '智能体运行时的唯一标识名称,用于区分不同的智能体运行时实例', 'type' => 'string', 'required' => true, 'example' => 'my-agent-runtime'],
+ 'description' => ['title' => '描述', 'description' => '智能体运行时的描述信息,用于说明该运行时的用途和功能', 'type' => 'string', 'example' => 'AI agent runtime for customer service automation'],
'artifactType' => [
'title' => '制品类型',
'description' => '指定智能体运行时的部署类型,支持Code(代码模式)和Container(容器模式)',
'type' => 'string',
'required' => true,
'example' => 'Code',
- 'enum' => [
- 'Code',
- 'Container',
- ],
- ],
- 'codeConfiguration' => [
- 'title' => '代码配置',
- 'description' => '当artifactType为Code时的代码配置信息,包括代码源、入口文件等',
- 'example' => '{}',
- '$ref' => '#/components/schemas/CodeConfiguration',
- ],
- 'containerConfiguration' => [
- 'title' => '容器配置',
- 'description' => '当artifactType为Container时的容器配置信息,包括镜像地址、启动命令等',
- 'example' => '{}',
- '$ref' => '#/components/schemas/ContainerConfiguration',
- ],
- 'credentialId' => [
- 'title' => '凭证ID',
- 'description' => '用于访问外部服务的凭证ID,智能体运行时将使用此凭证进行身份验证',
- 'type' => 'string',
- 'deprecated' => true,
- 'example' => 'cred-1234567890abcdef',
- ],
- 'credentialName' => [
- 'title' => '凭证名称',
- 'description' => '用于访问智能体的凭证名称,访问智能体运行时将使用此凭证进行身份验证',
- 'type' => 'string',
- 'example' => 'my-credential',
- ],
- 'externalAgentEndpointUrl' => [
- 'title' => '外部智能体端点URL',
- 'description' => '外部注册类型的智能体访问端点地址,用于连接已部署在外部的智能体服务',
- 'type' => 'string',
- 'example' => 'https://external-agent.example.com/api',
- ],
- 'networkConfiguration' => [
- 'title' => '网络配置',
- 'description' => '智能体运行时的网络配置,包括VPC、安全组等网络访问设置',
- 'required' => true,
- 'example' => '{}',
- '$ref' => '#/components/schemas/NetworkConfiguration',
- ],
- 'protocolConfiguration' => [
- 'title' => '协议配置',
- 'description' => '智能体运行时的通信协议配置,定义运行时如何与外部系统交互',
- 'example' => '{}',
- '$ref' => '#/components/schemas/ProtocolConfiguration',
- ],
- 'executionRoleArn' => [
- 'title' => '执行角色ARN',
- 'description' => '为智能体运行时提供访问云服务权限的执行角色ARN',
- 'type' => 'string',
- 'example' => 'acs:ram::1760720386195983:role/AgentRunExecutionRole',
- ],
- 'cpu' => [
- 'title' => 'CPU配置',
- 'description' => '为智能体运行时分配的CPU资源,单位为核数',
- 'type' => 'number',
- 'format' => 'float',
- 'required' => true,
- 'example' => '2.0',
- ],
- 'memory' => [
- 'title' => '内存配置',
- 'description' => '为智能体运行时分配的内存资源,单位为MB',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '2048',
- ],
- 'port' => [
- 'title' => '端口',
- 'description' => '智能体运行时监听的端口号,用于接收外部请求',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '8080',
- ],
- 'sessionConcurrencyLimitPerInstance' => [
- 'title' => '每个实例的会话并发数',
- 'description' => '每个运行时实例允许的最大并发会话数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'maximum' => '200',
- 'minimum' => '1',
- 'example' => '100',
- ],
- 'logConfiguration' => [
- 'title' => '日志配置',
- 'description' => 'SLS(简单日志服务)配置',
- 'example' => '{}',
- '$ref' => '#/components/schemas/LogConfiguration',
- ],
- 'sessionIdleTimeoutSeconds' => [
- 'title' => '会话空闲超时秒数',
- 'description' => '会话的空闲超时时间,单位为秒。实例没有会话请求后处于空闲状态,空闲态为闲置计费模式,超过此超时时间后会话自动过期,不可继续使用',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '3600',
- ],
- 'healthCheckConfiguration' => [
- 'title' => '健康检查配置',
- 'description' => '智能体运行时的健康检查配置,用于监控运行时实例的健康状态',
- 'example' => '{}',
- '$ref' => '#/components/schemas/HealthCheckConfiguration',
- ],
+ 'enum' => ['Code', 'Container'],
+ ],
+ 'codeConfiguration' => ['title' => '代码配置', 'description' => '当artifactType为Code时的代码配置信息,包括代码源、入口文件等', 'example' => '{}', '$ref' => '#/components/schemas/CodeConfiguration'],
+ 'containerConfiguration' => ['title' => '容器配置', 'description' => '当artifactType为Container时的容器配置信息,包括镜像地址、启动命令等', 'example' => '{}', '$ref' => '#/components/schemas/ContainerConfiguration'],
+ 'credentialId' => ['title' => '凭证ID', 'description' => '用于访问外部服务的凭证ID,智能体运行时将使用此凭证进行身份验证', 'type' => 'string', 'deprecated' => true, 'example' => 'cred-1234567890abcdef'],
+ 'credentialName' => ['title' => '凭证名称', 'description' => '用于访问智能体的凭证名称,访问智能体运行时将使用此凭证进行身份验证', 'type' => 'string', 'example' => 'my-credential'],
+ 'externalAgentEndpointUrl' => ['title' => '外部智能体端点URL', 'description' => '外部注册类型的智能体访问端点地址,用于连接已部署在外部的智能体服务', 'type' => 'string', 'example' => 'https://external-agent.example.com/api'],
+ 'networkConfiguration' => ['title' => '网络配置', 'description' => '智能体运行时的网络配置,包括VPC、安全组等网络访问设置', 'required' => true, 'example' => '{}', '$ref' => '#/components/schemas/NetworkConfiguration'],
+ 'protocolConfiguration' => ['title' => '协议配置', 'description' => '智能体运行时的通信协议配置,定义运行时如何与外部系统交互', 'example' => '{}', '$ref' => '#/components/schemas/ProtocolConfiguration'],
+ 'executionRoleArn' => ['title' => '执行角色ARN', 'description' => '为智能体运行时提供访问云服务权限的执行角色ARN', 'type' => 'string', 'example' => 'acs:ram::1760720386195983:role/AgentRunExecutionRole'],
+ 'cpu' => ['title' => 'CPU配置', 'description' => '为智能体运行时分配的CPU资源,单位为核数', 'type' => 'number', 'format' => 'float', 'required' => true, 'example' => '2.0'],
+ 'memory' => ['title' => '内存配置', 'description' => '为智能体运行时分配的内存资源,单位为MB', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '2048'],
+ 'diskSize' => ['title' => '磁盘大小', 'description' => '磁盘大小', 'type' => 'integer', 'format' => 'int32'],
+ 'port' => ['title' => '端口', 'description' => '智能体运行时监听的端口号,用于接收外部请求', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '8080'],
+ 'sessionConcurrencyLimitPerInstance' => ['title' => '每个实例的会话并发数', 'description' => '每个运行时实例允许的最大并发会话数', 'type' => 'integer', 'format' => 'int32', 'maximum' => '200', 'minimum' => '1', 'example' => '100'],
+ 'logConfiguration' => ['title' => '日志配置', 'description' => 'SLS(简单日志服务)配置', 'example' => '{}', '$ref' => '#/components/schemas/LogConfiguration'],
+ 'sessionIdleTimeoutSeconds' => ['title' => '会话空闲超时秒数', 'description' => '会话的空闲超时时间,单位为秒。实例没有会话请求后处于空闲状态,空闲态为闲置计费模式,超过此超时时间后会话自动过期,不可继续使用', 'type' => 'integer', 'format' => 'int32', 'example' => '3600'],
+ 'enableSessionIsolation' => ['title' => '启用会话隔离', 'description' => '是否启用会话隔离,启用后每个会话将在独立的环境中运行', 'type' => 'boolean', 'example' => 'false'],
+ 'disableOndemand' => ['title' => '禁用按需弹性', 'description' => '是否禁用按需弹性能力。默认为 false,设置为 true 时关闭按需弹性', 'type' => 'boolean', 'example' => 'false'],
+ 'disableSessionAffinity' => ['title' => '禁用会话亲和', 'description' => '是否禁用会话亲和性。默认为 false(即默认启用会话亲和),设置为 true 时关闭会话亲和', 'type' => 'boolean', 'example' => 'false'],
+ 'sessionAffinityType' => [
+ 'title' => '会话亲和类型',
+ 'description' => '会话亲和模式。NONE 表示关闭会话亲和;HEADER_FIELD 表示基于请求头的会话亲和;GENERATED_COOKIE 表示由 FC 生成 Cookie 进行会话亲和;COOKIE 为兼容别名,服务端会归一为 GENERATED_COOKIE',
+ 'type' => 'string',
+ 'example' => 'GENERATED_COOKIE',
+ 'enum' => ['NONE', 'HEADER_FIELD', 'GENERATED_COOKIE', 'COOKIE'],
+ ],
+ 'headerFieldName' => ['title' => '会话亲和请求头名称', 'description' => '当 sessionAffinityType 为 HEADER_FIELD 时用于会话亲和的请求头名称', 'type' => 'string', 'example' => 'x-agentrun-session-id', 'maxLength' => 128],
+ 'healthCheckConfiguration' => ['title' => '健康检查配置', 'description' => '智能体运行时的健康检查配置,用于监控运行时实例的健康状态', 'example' => '{}', '$ref' => '#/components/schemas/HealthCheckConfiguration'],
+ 'resourceGroupId' => ['type' => 'string', 'deprecated' => true, 'description' => ''],
+ 'workspaceId' => ['title' => '工作空间ID', 'description' => '智能体运行时所属的工作空间标识符,用于资源隔离和权限管理', 'type' => 'string', 'example' => 'ws-1234567890abcdef'],
+ 'nasConfig' => ['title' => 'NAS配置', 'description' => '文件存储NAS的配置信息,用于挂载NAS文件系统到智能体运行时', 'example' => '{}', '$ref' => '#/components/schemas/NASConfig'],
+ 'ossMountConfig' => ['title' => 'OSS挂载配置', 'description' => '对象存储OSS的挂载配置信息,用于挂载OSS存储桶到智能体运行时', 'example' => '{}', '$ref' => '#/components/schemas/OSSMountConfig'],
+ 'armsConfiguration' => ['title' => 'ARMS配置', 'description' => '应用实时监控服务(ARMS)的配置信息', 'example' => '{}', '$ref' => '#/components/schemas/ArmsConfiguration'],
+ 'agentIdentityEnabled' => ['type' => 'boolean'],
+ 'agentIdentityConfig' => ['$ref' => '#/components/schemas/RuntimeAgentIdentityConfig'],
'environmentVariables' => [
'title' => '环境变量',
'description' => '智能体运行时的环境变量配置,用于在运行时传递配置参数',
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- ],
+ 'additionalProperties' => ['type' => 'string', 'description' => ''],
'example' => 'ENV_VAR1=value1,ENV_VAR2=value2',
],
- 'resourceGroupId' => [
- 'type' => 'string',
- 'deprecated' => true,
- ],
- 'workspaceId' => [
- 'title' => '工作空间ID',
- 'description' => '智能体运行时所属的工作空间标识符,用于资源隔离和权限管理',
- 'type' => 'string',
- 'example' => 'ws-1234567890abcdef',
- ],
- 'nasConfig' => [
- 'title' => 'NAS配置',
- 'description' => '文件存储NAS的配置信息,用于挂载NAS文件系统到智能体运行时',
- 'example' => '{}',
- '$ref' => '#/components/schemas/NASConfig',
- ],
- 'ossMountConfig' => [
- 'title' => 'OSS挂载配置',
- 'description' => '对象存储OSS的挂载配置信息,用于挂载OSS存储桶到智能体运行时',
- 'example' => '{}',
- '$ref' => '#/components/schemas/OSSMountConfig',
+ 'systemTags' => [
+ 'title' => '系统标签',
+ 'description' => '智能体运行时的系统标签信息,用于系统级别的资源分类和管理',
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
+ 'example' => 'system-tag-1,system-tag-2',
],
+ 'edition' => ['type' => 'string'],
],
],
'CreateAgentRuntimeVersionInput' => [
@@ -1639,40 +1102,21 @@
'description' => '用于创建智能体运行时版本的请求参数',
'type' => 'object',
'properties' => [
- 'description' => [
- 'title' => '描述',
- 'description' => '版本描述',
- 'type' => 'string',
- 'example' => 'Version 1.0.0 release with new features',
- ],
+ 'description' => ['title' => '描述', 'description' => '版本描述', 'type' => 'string', 'example' => 'Version 1.0.0 release with new features'],
],
],
'CreateApigLLMModelInput' => [
'type' => 'object',
'properties' => [
- 'name' => [
- 'type' => 'string',
- ],
- 'provider' => [
- 'type' => 'string',
- ],
- 'type' => [
- 'type' => 'string',
- ],
- 'address' => [
- 'type' => 'string',
- ],
- 'apiKey' => [
- 'type' => 'string',
- ],
- 'desc' => [
- 'type' => 'string',
- ],
+ 'name' => ['type' => 'string'],
+ 'provider' => ['type' => 'string'],
+ 'type' => ['type' => 'string'],
+ 'address' => ['type' => 'string'],
+ 'apiKey' => ['type' => 'string'],
+ 'desc' => ['type' => 'string'],
'models' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
+ 'items' => ['type' => 'string'],
],
],
],
@@ -1681,63 +1125,14 @@
'description' => '创建浏览器输入',
'type' => 'object',
'properties' => [
- 'browserName' => [
- 'title' => '浏览器名称',
- 'description' => '浏览器名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-browser',
- ],
- 'description' => [
- 'title' => '描述',
- 'description' => '描述',
- 'type' => 'string',
- 'example' => 'Web automation browser for testing',
- ],
- 'networkConfiguration' => [
- 'title' => '网络配置',
- 'description' => '网络配置',
- 'required' => true,
- '$ref' => '#/components/schemas/NetworkConfiguration',
- ],
- 'executionRoleArn' => [
- 'title' => '执行角色ARN',
- 'description' => '执行角色ARN',
- 'type' => 'string',
- 'example' => 'acs:ram::1760720386195983:role/BrowserExecutionRole',
- ],
- 'memory' => [
- 'title' => '内存配置',
- 'description' => '内存资源配置(单位:MB)',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'maximum' => '16384',
- 'minimum' => '1024',
- 'example' => '2048',
- 'default' => '2048',
- ],
- 'cpu' => [
- 'title' => 'CPU配置',
- 'description' => 'CPU资源配置(单位:核)',
- 'type' => 'number',
- 'format' => 'float',
- 'required' => true,
- 'example' => '2.0',
- ],
- 'sessionIdleTimeoutSeconds' => [
- 'title' => '会话空闲超时秒数',
- 'description' => '会话的空闲超时时间,单位为秒。实例没有会话请求后处于空闲状态,空闲态为闲置计费模式,超过此超时时间后会话自动过期,不可继续使用',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '3600',
- ],
- 'credentialId' => [
- 'title' => '鉴权',
- 'description' => '鉴权',
- 'type' => 'string',
- 'example' => 'cred-1234567890abcdef',
- ],
+ 'browserName' => ['title' => '浏览器名称', 'description' => '浏览器名称', 'type' => 'string', 'required' => true, 'example' => 'my-browser'],
+ 'description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'Web automation browser for testing'],
+ 'networkConfiguration' => ['title' => '网络配置', 'description' => '网络配置', 'required' => true, '$ref' => '#/components/schemas/NetworkConfiguration'],
+ 'executionRoleArn' => ['title' => '执行角色ARN', 'description' => '执行角色ARN', 'type' => 'string', 'example' => 'acs:ram::1760720386195983:role/BrowserExecutionRole'],
+ 'memory' => ['title' => '内存配置', 'description' => '内存资源配置(单位:MB)', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'maximum' => '16384', 'minimum' => '1024', 'example' => '2048', 'default' => '2048'],
+ 'cpu' => ['title' => 'CPU配置', 'description' => 'CPU资源配置(单位:核)', 'type' => 'number', 'format' => 'float', 'required' => true, 'example' => '2.0'],
+ 'sessionIdleTimeoutSeconds' => ['title' => '会话空闲超时秒数', 'description' => '会话的空闲超时时间,单位为秒。实例没有会话请求后处于空闲状态,空闲态为闲置计费模式,超过此超时时间后会话自动过期,不可继续使用', 'type' => 'integer', 'format' => 'int32', 'example' => '3600'],
+ 'credentialId' => ['title' => '鉴权', 'description' => '鉴权', 'type' => 'string', 'example' => 'cred-1234567890abcdef'],
],
],
'CreateCodeInterpreterInput' => [
@@ -1745,445 +1140,390 @@
'description' => '创建代码解释器所需的输入参数',
'type' => 'object',
'properties' => [
- 'codeInterpreterName' => [
- 'title' => '名称',
- 'description' => '代码解释器的名称,用于标识和区分不同的代码解释器实例',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-code-interpreter',
- ],
- 'description' => [
- 'title' => '描述',
- 'description' => '代码解释器的描述信息,说明该解释器的用途和功能',
- 'type' => 'string',
- 'example' => 'Python code interpreter for data analysis',
- ],
- 'networkConfiguration' => [
- 'title' => '网络配置',
- 'description' => '代码解释器的网络配置,包括VPC、安全组等网络访问设置',
- 'required' => true,
- 'example' => '{}',
- '$ref' => '#/components/schemas/NetworkConfiguration',
- ],
- 'memory' => [
- 'title' => '内存配置',
- 'description' => '内存资源配置(单位:MB)',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'maximum' => '16384',
- 'minimum' => '128',
- 'example' => '1024',
- 'default' => '1024',
- ],
- 'executionRoleArn' => [
- 'title' => '执行角色ARN',
- 'description' => '此代码解释器的执行角色',
- 'type' => 'string',
- 'example' => 'acs:ram::1760720386195983:role/CodeInterpreterExecutionRole',
- ],
- 'cpu' => [
- 'title' => 'CPU配置',
- 'description' => 'CPU资源配置(单位:核数)',
- 'type' => 'number',
- 'format' => 'float',
- 'required' => true,
- 'maximum' => '16.0',
- 'minimum' => '2.0',
- 'example' => '2.0',
- ],
- 'sessionIdleTimeoutSeconds' => [
- 'title' => '会话空闲超时秒数',
- 'description' => '会话的空闲超时时间,单位为秒。实例没有会话请求后处于空闲状态,空闲态为闲置计费模式,超过此超时时间后会话自动过期,不可继续使用',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '3600',
- ],
- 'credentialId' => [
- 'title' => '鉴权Id',
- 'description' => '鉴权Id',
- 'type' => 'string',
- 'example' => 'cred-1234567890abcdef',
- ],
+ 'codeInterpreterName' => ['title' => '名称', 'description' => '代码解释器的名称,用于标识和区分不同的代码解释器实例', 'type' => 'string', 'required' => true, 'example' => 'my-code-interpreter'],
+ 'description' => ['title' => '描述', 'description' => '代码解释器的描述信息,说明该解释器的用途和功能', 'type' => 'string', 'example' => 'Python code interpreter for data analysis'],
+ 'networkConfiguration' => ['title' => '网络配置', 'description' => '代码解释器的网络配置,包括VPC、安全组等网络访问设置', 'required' => true, 'example' => '{}', '$ref' => '#/components/schemas/NetworkConfiguration'],
+ 'memory' => ['title' => '内存配置', 'description' => '内存资源配置(单位:MB)', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'maximum' => '16384', 'minimum' => '128', 'example' => '1024', 'default' => '1024'],
+ 'executionRoleArn' => ['title' => '执行角色ARN', 'description' => '此代码解释器的执行角色', 'type' => 'string', 'example' => 'acs:ram::1760720386195983:role/CodeInterpreterExecutionRole'],
+ 'cpu' => ['title' => 'CPU配置', 'description' => 'CPU资源配置(单位:核数)', 'type' => 'number', 'format' => 'float', 'required' => true, 'maximum' => '16.0', 'minimum' => '2.0', 'example' => '2.0'],
+ 'sessionIdleTimeoutSeconds' => ['title' => '会话空闲超时秒数', 'description' => '会话的空闲超时时间,单位为秒。实例没有会话请求后处于空闲状态,空闲态为闲置计费模式,超过此超时时间后会话自动过期,不可继续使用', 'type' => 'integer', 'format' => 'int32', 'example' => '3600'],
+ 'credentialId' => ['title' => '鉴权Id', 'description' => '鉴权Id', 'type' => 'string', 'example' => 'cred-1234567890abcdef'],
+ ],
+ ],
+ 'CreateConsumerAPIKeyInput' => [
+ 'title' => '创建消费者API密钥输入',
+ 'description' => '创建消费者API密钥所需的输入参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'apiKey' => ['title' => 'API密钥', 'description' => '用户自定义的完整API密钥;为空时由服务自动生成', 'type' => 'string', 'example' => 'sk-xxxxxxxxxxxxxxxxxxxx'],
+ 'modelConnectionId' => ['title' => '模型连接ID', 'description' => '关联的模型连接标识符', 'type' => 'string', 'required' => true, 'example' => 'mc-1234567890abcdef'],
+ 'description' => ['title' => '描述', 'description' => '消费者API密钥的描述信息,用于说明该密钥的用途', 'type' => 'string', 'example' => '用于生产环境的API密钥'],
+ ],
+ ],
+ 'CreateConsumerAPIKeyOutput' => [
+ 'title' => '创建消费者API密钥输出',
+ 'description' => '创建消费者API密钥的输出,包含完整密钥(仅创建时返回一次)',
+ 'type' => 'object',
+ 'properties' => [
+ 'consumerApiKeyId' => ['title' => '密钥ID', 'description' => '消费者API密钥的唯一标识符', 'type' => 'string', 'example' => '12345678-1234-1234-1234-123456789abc'],
+ 'maskedKey' => ['title' => '掩码密钥', 'description' => 'API密钥的掩码展示形式', 'type' => 'string', 'example' => 'sk-****1234'],
+ 'modelConnectionId' => ['title' => '模型连接ID', 'description' => '关联的模型连接标识符', 'type' => 'string', 'example' => 'mc-1234567890abcdef'],
+ 'description' => ['title' => '描述', 'description' => '消费者API密钥的描述信息', 'type' => 'string', 'example' => '用于生产环境的API密钥'],
+ 'active' => ['title' => '启用状态', 'description' => '密钥是否启用', 'type' => 'boolean', 'example' => 'true'],
+ 'apiKey' => ['title' => '完整密钥', 'description' => '完整的API密钥明文,仅在创建时返回一次,请妥善保存', 'type' => 'string', 'example' => 'sk-xxxxxxxxxxxxxxxxxxxx'],
+ 'createdAt' => ['title' => '创建时间', 'description' => '创建时间,采用ISO 8601格式', 'type' => 'string', 'example' => '2025-01-10T10:30:00Z'],
+ 'lastUpdatedAt' => ['title' => '更新时间', 'description' => '更新时间,采用ISO 8601格式', 'type' => 'string', 'example' => '2025-01-10T10:30:00Z'],
+ ],
+ ],
+ 'CreateConsumerAPIKeyResult' => [
+ 'title' => '创建消费者API密钥结果',
+ 'description' => '创建消费者API密钥的结果,包含完整密钥(仅创建时返回一次)',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '创建消费者API密钥输出数据', 'description' => '创建的消费者API密钥详细信息(包含完整密钥)', 'example' => '{}', '$ref' => '#/components/schemas/CreateConsumerAPIKeyOutput'],
],
],
'CreateCredentialInput' => [
'type' => 'object',
'properties' => [
- 'credentialName' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'description' => [
- 'type' => 'string',
- ],
+ 'credentialName' => ['type' => 'string', 'required' => true, 'description' => ''],
+ 'description' => ['type' => 'string', 'description' => ''],
'credentialAuthType' => [
'type' => 'string',
'required' => true,
- 'enum' => [
- 'jwt',
- 'api_key',
- 'basic',
- 'ak_sk',
- 'custom_header',
- ],
+ 'enum' => ['jwt', 'api_key', 'basic', 'ak_sk', 'custom_header'],
+ 'description' => '',
],
'credentialSourceType' => [
'type' => 'string',
'required' => true,
- 'enum' => [
- 'external_llm',
- 'external_tool',
- 'internal',
- ],
- ],
- 'credentialSecret' => [
- 'type' => 'string',
- ],
- 'enabled' => [
- 'type' => 'boolean',
- ],
- 'credentialPublicConfig' => [
- '$ref' => '#/components/schemas/CredentialPublicConfig',
+ 'enum' => ['external_llm', 'external_tool', 'internal'],
+ 'description' => '',
],
+ 'credentialSecret' => ['type' => 'string', 'description' => ''],
+ 'enabled' => ['type' => 'boolean', 'description' => ''],
+ 'credentialPublicConfig' => ['$ref' => '#/components/schemas/CredentialPublicConfig', 'description' => ''],
+ 'workspaceId' => ['type' => 'string'],
],
+ 'description' => '',
],
'CreateCredentialOutput' => [
'type' => 'object',
'properties' => [
- 'credentialId' => [
- 'type' => 'string',
- ],
- 'credentialName' => [
- 'type' => 'string',
- ],
- 'description' => [
- 'type' => 'string',
- ],
- 'credentialAuthType' => [
- 'type' => 'string',
- ],
- 'credentialSourceType' => [
- 'type' => 'string',
- ],
- 'enabled' => [
- 'type' => 'boolean',
- ],
- 'credentialSecret' => [
- 'type' => 'string',
- ],
+ 'credentialId' => ['type' => 'string', 'description' => ''],
+ 'credentialName' => ['type' => 'string', 'description' => ''],
+ 'description' => ['type' => 'string', 'description' => ''],
+ 'credentialAuthType' => ['type' => 'string', 'description' => ''],
+ 'credentialSourceType' => ['type' => 'string', 'description' => ''],
+ 'enabled' => ['type' => 'boolean', 'description' => ''],
+ 'credentialSecret' => ['type' => 'string', 'description' => ''],
'credentialPublicConfig' => [
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- ],
- ],
- 'createdAt' => [
- 'type' => 'string',
- ],
- 'updatedAt' => [
- 'type' => 'string',
+ 'additionalProperties' => ['type' => 'string', 'description' => ''],
+ 'description' => '',
],
+ 'createdAt' => ['type' => 'string', 'description' => ''],
+ 'updatedAt' => ['type' => 'string', 'description' => ''],
'relatedResources' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/RelatedResource',
- ],
+ 'items' => ['$ref' => '#/components/schemas/RelatedResource', 'description' => ''],
+ 'description' => '',
],
],
+ 'description' => '',
],
'CreateCustomDomainInput' => [
'title' => '创建自定义域名请求',
'description' => '创建自定义域名所需的输入参数',
'type' => 'object',
'properties' => [
- 'domainName' => [
- 'title' => '域名',
- 'description' => '域名。填写已在阿里云备案或接入备案的自定义域名名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'example.com',
- ],
- 'description' => [
- 'title' => '描述',
- 'description' => '描述',
- 'type' => 'string',
- ],
+ 'domainName' => ['title' => '域名', 'description' => '域名。填写已在阿里云备案或接入备案的自定义域名名称。', 'type' => 'string', 'required' => true, 'example' => 'example.com'],
+ 'description' => ['title' => '描述', 'description' => '描述', 'type' => 'string'],
'protocol' => [
'title' => '协议类型',
'description' => '域名支持的协议类型:● HTTP:仅支持 HTTP 协议。● HTTPS:仅支持 HTTPS 协议。● HTTP,HTTPS:支持 HTTP 及 HTTPS 协议。',
'type' => 'string',
'required' => true,
'example' => 'HTTP',
- 'enum' => [
- 'HTTP',
- 'HTTPS',
- 'HTTP,HTTPS',
- ],
- ],
- 'routeConfig' => [
- 'title' => '路由表',
- 'description' => '路由表:自定义域名访问时的 PATH 到 资源 的映射。',
- 'example' => '{}',
- '$ref' => '#/components/schemas/RouteConfig',
- ],
- 'certConfig' => [
- 'title' => 'HTTPS证书信息',
- 'description' => 'HTTPS 证书的信息。',
- 'example' => '{}',
- '$ref' => '#/components/schemas/CertConfig',
- ],
- 'tlsConfig' => [
- 'title' => 'TLS配置信息',
- 'description' => 'TLS 配置信息。',
- 'example' => '{}',
- '$ref' => '#/components/schemas/TLSConfig',
+ 'enum' => ['HTTP', 'HTTPS', 'HTTP,HTTPS'],
],
+ 'routeConfig' => ['title' => '路由表', 'description' => '路由表:自定义域名访问时的 PATH 到 资源 的映射。', 'example' => '{}', '$ref' => '#/components/schemas/RouteConfig'],
+ 'certConfig' => ['title' => 'HTTPS证书信息', 'description' => 'HTTPS 证书的信息。', 'example' => '{}', '$ref' => '#/components/schemas/CertConfig'],
+ 'tlsConfig' => ['title' => 'TLS配置信息', 'description' => 'TLS 配置信息。', 'example' => '{}', '$ref' => '#/components/schemas/TLSConfig'],
'domainType' => [
'type' => 'string',
- 'enum' => [
- 'STANDARD',
- 'SANDBOX',
- ],
+ 'enum' => ['STANDARD', 'SANDBOX'],
],
],
],
'CreateDomainInput' => [
'type' => 'object',
'properties' => [
- 'name' => [
- 'type' => 'string',
- ],
- 'protocol' => [
- 'type' => 'string',
- ],
- 'certIdentifier' => [
- 'type' => 'string',
+ 'name' => ['type' => 'string', 'description' => ''],
+ 'protocol' => ['type' => 'string', 'description' => ''],
+ 'certIdentifier' => ['type' => 'string', 'description' => ''],
+ ],
+ 'description' => '',
+ ],
+ 'CreateFlowEndpointInput' => [
+ 'title' => '创建工作流端点输入',
+ 'description' => '创建工作流端点所需的输入参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'flowEndpointName' => ['title' => '工作流端点名称', 'description' => '工作流端点的唯一标识名称', 'type' => 'string', 'required' => true, 'example' => 'my-flow-endpoint'],
+ 'description' => ['title' => '描述', 'description' => '工作流端点的描述信息', 'type' => 'string', 'example' => 'Production endpoint for flow'],
+ 'targetVersion' => ['title' => '目标版本', 'description' => '工作流端点指向的目标版本号', 'type' => 'string', 'example' => '1'],
+ 'routingConfiguration' => [
+ 'title' => '路由配置',
+ 'description' => '工作流端点的版本路由配置,用于流量分配',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/FlowEndpointRoutingConfig'],
+ 'example' => '[]',
],
+ 'disablePublicNetworkAccess' => ['title' => '禁用公网访问', 'description' => '是否禁用该端点的公网访问。创建时未指定则从父工作流继承', 'type' => 'boolean'],
+ ],
+ ],
+ 'CreateFlowInput' => [
+ 'title' => '创建工作流输入',
+ 'description' => '创建工作流所需的输入参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'flowName' => ['title' => '工作流名称', 'description' => '工作流的唯一标识名称,用于区分不同的工作流实例', 'type' => 'string', 'required' => true, 'example' => 'my-flow'],
+ 'description' => ['title' => '描述', 'description' => '工作流的描述信息,用于说明该工作流的用途和功能', 'type' => 'string', 'example' => 'Customer service automation flow'],
+ 'definition' => ['title' => '定义', 'description' => '工作流的定义内容,采用JSON或YAML格式', 'type' => 'string', 'example' => '{}'],
+ 'executionRoleArn' => ['title' => '执行角色ARN', 'description' => '为工作流提供访问云服务权限的执行角色ARN', 'type' => 'string', 'example' => 'acs:ram::123456789012:role/FlowExecutionRole'],
+ 'environmentConfiguration' => ['title' => '环境配置', 'description' => '工作流的环境变量配置,包含一组命名变量列表', '$ref' => '#/components/schemas/EnvironmentConfiguration'],
+ 'externalStorageLocation' => ['title' => '外部存储位置', 'description' => '工作流的外部存储位置,如OSS路径', 'type' => 'string', 'example' => 'oss://bucket/path'],
+ 'resourceGroupId' => ['title' => '资源组ID', 'description' => '工作流所属的资源组标识符', 'type' => 'string', 'example' => 'rg-acfmxsn4m4a4b4a'],
+ 'tracingConfiguration' => ['title' => '链路追踪配置', 'description' => '工作流的链路追踪配置', '$ref' => '#/components/schemas/TracingConfiguration'],
+ 'loggingConfiguration' => ['title' => '日志配置', 'description' => '工作流的日志配置', '$ref' => '#/components/schemas/LoggingConfiguration'],
+ 'workspaceId' => ['title' => '工作空间ID', 'description' => '工作流所属的工作空间标识符,用于资源隔离和权限管理', 'type' => 'string', 'example' => 'ws-1234567890abcdef'],
+ 'disablePublicNetworkAccess' => ['title' => '禁用公网访问', 'description' => '是否禁用该工作流的公网访问,作为工作流级别的默认策略。当 FlowEndpoint 未指定时,将继承此值', 'type' => 'boolean'],
+ ],
+ ],
+ 'CreateFunagentInput' => [
+ 'title' => '创建 Funagent 输入',
+ 'description' => '与 funagent-core `CreateFunAgentRequest` 一致,但 **不含** `version`(由 POP 后端/适配层填默认值或 core 侧策略决定)。除 `regionId` 外均为非指针值类型,`@required` 同 core 必填语义。`regionId` 可选(`omitempty`)。`vswitchIds` 为 JSON 数组字符串,必填。不含服务端字段:`funAgentId`、`status`、`tenantId`、`endpoint`、`imageUrl`。',
+ 'type' => 'object',
+ 'properties' => [
+ 'funAgentName' => ['title' => 'Funagent 名称', 'description' => '`string`,必填', 'type' => 'string', 'required' => true],
+ 'description' => ['title' => '描述', 'description' => '`string`,必填', 'type' => 'string', 'required' => true],
+ 'regionId' => ['title' => '地域 ID', 'description' => '可选; `omitempty`', 'type' => 'string'],
+ 'vpcId' => ['title' => 'VPC ID', 'description' => '`string`,必填', 'type' => 'string', 'required' => true],
+ 'vswitchIds' => ['title' => '交换机 ID 列表 JSON', 'description' => '`string`,必填;JSON 数组 [{vswitchId, zoneId}](core 解码为 `*string` 但校验非空)', 'type' => 'string', 'required' => true],
+ 'securityGroupId' => ['title' => '安全组 ID', 'description' => '`string`,必填', 'type' => 'string', 'required' => true],
+ 'cpu' => ['title' => 'CPU 核数', 'description' => '`float64`,必填', 'type' => 'number', 'format' => 'float', 'required' => true],
+ 'memory' => ['title' => '内存 MB', 'description' => '`int32`,必填', 'type' => 'integer', 'format' => 'int32', 'required' => true],
+ 'replicas' => ['title' => '副本数', 'description' => '`int32`,必填', 'type' => 'integer', 'format' => 'int32', 'required' => true],
+ 'adminName' => ['title' => '管理员用户名', 'description' => '`string`,必填', 'type' => 'string', 'required' => true],
+ 'adminSecret' => ['title' => '管理员密码', 'description' => '`string`,必填', 'type' => 'string', 'required' => true],
+ 'dbType' => ['title' => '数据库类型', 'description' => '`string`,必填', 'type' => 'string', 'required' => true],
+ 'dbName' => ['title' => '数据库名', 'description' => '`string`,必填', 'type' => 'string', 'required' => true],
+ 'dbInstanceId' => ['title' => '数据库实例 ID', 'description' => '`string`,必填', 'type' => 'string', 'required' => false],
+ 'dbHost' => ['title' => '数据库主机', 'description' => '`string`,必填', 'type' => 'string', 'required' => true],
+ 'dbPort' => ['title' => '数据库端口', 'description' => '`int32`,必填', 'type' => 'integer', 'format' => 'int32', 'required' => true],
+ 'dbUsername' => ['title' => '数据库用户名', 'description' => '`string`,必填', 'type' => 'string', 'required' => true],
+ 'dbPassword' => ['title' => '数据库密码', 'description' => '`string`,必填', 'type' => 'string', 'required' => true],
+ 'dbConnections' => ['title' => '数据库连接数', 'description' => '`int32`,必填', 'type' => 'integer', 'format' => 'int32', 'required' => true],
],
],
'CreateGatewayInput' => [
'type' => 'object',
'properties' => [
- 'name' => [
- 'type' => 'string',
- ],
- 'type' => [
- 'type' => 'string',
- ],
- 'identityId' => [
- 'type' => 'string',
- ],
- 'networkConfiguration' => [
- '$ref' => '#/components/schemas/GatewayNetworkConfiguration',
- ],
+ 'name' => ['type' => 'string', 'description' => ''],
+ 'type' => ['type' => 'string', 'description' => ''],
+ 'identityId' => ['type' => 'string', 'description' => ''],
+ 'networkConfiguration' => ['$ref' => '#/components/schemas/GatewayNetworkConfiguration', 'description' => ''],
],
+ 'description' => '',
],
'CreateGatewayTargetInput' => [
'type' => 'object',
'properties' => [
- 'name' => [
+ 'name' => ['type' => 'string', 'description' => ''],
+ 'domainId' => ['type' => 'string', 'description' => ''],
+ 'targetConfiguration' => ['$ref' => '#/components/schemas/TargetConfiguration', 'description' => ''],
+ ],
+ 'description' => '',
+ ],
+ 'CreateIMBotInput' => [
+ 'title' => '创建 IM Bot 请求体',
+ 'description' => '创建成功后状态恒为 running,请求体无 status;botMode 为 standard 时 metadata 必填且须通过标准运行时绑定校验',
+ 'type' => 'object',
+ 'properties' => [
+ 'botName' => ['type' => 'string', 'required' => true, 'maxLength' => 128],
+ 'botBizId' => ['type' => 'string', 'required' => true, 'maxLength' => 128],
+ 'botBizSecret' => ['type' => 'string', 'required' => true, 'maxLength' => 2048],
+ 'botBizType' => [
'type' => 'string',
+ 'required' => true,
+ 'enum' => ['dingtalk', 'wecom', 'feishu', 'custom'],
],
- 'domainId' => [
+ 'botMode' => [
+ 'description' => 'standard、custom;不传时可能继承租户已有部署模式',
'type' => 'string',
+ 'enum' => ['standard', 'custom'],
],
- 'targetConfiguration' => [
- '$ref' => '#/components/schemas/TargetConfiguration',
- ],
+ 'minInstances' => ['description' => 'FC 最小实例数,≥ 1;与租户账号级配置相关', 'type' => 'integer', 'format' => 'int32'],
+ 'description' => ['description' => 'Bot 描述信息', 'type' => 'string', 'maxLength' => 512],
+ 'metadata' => ['description' => 'botMode 为 standard 时条件必填;custom 模式不进行标准运行时绑定校验', '$ref' => '#/components/schemas/IMBotMetadata'],
],
],
'CreateKnowledgeBaseInput' => [
'title' => '创建知识库输入',
'type' => 'object',
'properties' => [
- 'knowledgeBaseName' => [
- 'title' => '知识库名称',
- 'type' => 'string',
- 'required' => true,
- ],
- 'description' => [
- 'title' => '知识库描述',
- 'type' => 'string',
- ],
- 'provider' => [
- 'title' => '知识库供应商',
- 'type' => 'string',
- 'required' => true,
- ],
- 'credentialName' => [
- 'title' => '凭证名称',
- 'type' => 'string',
- ],
+ 'knowledgeBaseName' => ['title' => '知识库名称', 'type' => 'string', 'required' => true],
+ 'description' => ['title' => '知识库描述', 'type' => 'string'],
+ 'provider' => ['title' => '知识库供应商', 'type' => 'string', 'required' => true],
+ 'credentialName' => ['title' => '凭证名称', 'type' => 'string'],
'providerSettings' => [
'title' => '知识库供应商配置',
'type' => 'object',
'required' => true,
- 'additionalProperties' => [
- 'type' => 'any',
- ],
+ 'additionalProperties' => ['type' => 'any'],
],
'retrieveSettings' => [
'title' => '检索配置',
'type' => 'object',
'required' => false,
- 'additionalProperties' => [
- 'type' => 'any',
- ],
+ 'additionalProperties' => ['type' => 'any'],
],
+ 'workspaceId' => ['title' => '工作空间ID', 'type' => 'string'],
],
],
'CreateMemoryCollectionInput' => [
'type' => 'object',
'properties' => [
- 'memoryCollectionName' => [
- 'type' => 'string',
- ],
- 'description' => [
- 'type' => 'string',
- ],
- 'llmConfig' => [
- '$ref' => '#/components/schemas/LLMConfig',
- ],
- 'embedderConfig' => [
- '$ref' => '#/components/schemas/EmbedderConfig',
- ],
- 'vectorStoreConfig' => [
- '$ref' => '#/components/schemas/VectorStoreConfig',
- ],
- 'networkConfiguration' => [
- '$ref' => '#/components/schemas/NetworkConfiguration',
- ],
- 'type' => [
- 'type' => 'string',
- ],
- 'executionRoleArn' => [
- 'type' => 'string',
- ],
- 'enableConversationHistory' => [
- 'type' => 'boolean',
- ],
- 'enableConversationState' => [
- 'type' => 'boolean',
- ],
+ 'memoryCollectionName' => ['type' => 'string'],
+ 'description' => ['type' => 'string'],
+ 'llmConfig' => ['$ref' => '#/components/schemas/LLMConfig'],
+ 'embedderConfig' => ['$ref' => '#/components/schemas/EmbedderConfig'],
+ 'vectorStoreConfig' => ['$ref' => '#/components/schemas/VectorStoreConfig'],
+ 'networkConfiguration' => ['$ref' => '#/components/schemas/NetworkConfiguration'],
+ 'type' => ['type' => 'string'],
+ 'executionRoleArn' => ['type' => 'string'],
+ 'enableConversationHistory' => ['type' => 'boolean'],
+ 'enableConversationState' => ['type' => 'boolean'],
+ 'workspaceId' => ['type' => 'string'],
],
],
- 'CreateModelInput' => [
+ 'CreateModelConnectionInput' => [
+ 'title' => '创建模型连接输入',
+ 'description' => '创建模型连接所需的输入参数',
'type' => 'object',
'properties' => [
- 'name' => [
- 'type' => 'string',
- ],
- 'provider' => [
- 'type' => 'string',
- ],
- 'type' => [
- 'type' => 'string',
- ],
- 'address' => [
- 'type' => 'string',
- ],
- 'apiKey' => [
- 'type' => 'string',
+ 'modelConnectionName' => ['title' => '模型连接名称', 'description' => '模型连接的唯一名称标识', 'type' => 'string', 'required' => true, 'example' => 'my-openai-connection'],
+ 'description' => ['title' => '描述', 'description' => '模型连接的描述信息', 'type' => 'string', 'example' => 'OpenAI GPT-4 connection for production'],
+ 'provider' => ['title' => '提供商', 'description' => '模型提供商名称', 'type' => 'string', 'required' => true, 'example' => 'openai'],
+ 'providerSettings' => ['title' => '供应商设置', 'description' => '模型提供商的配置信息,包括基础URL、模型列表等', 'required' => true, 'example' => '{}', '$ref' => '#/components/schemas/ModelConnectionProviderSettings'],
+ 'workspaceId' => ['title' => '工作空间ID', 'description' => '模型连接所属的工作空间标识符', 'type' => 'string', 'example' => 'ws-1234567890abcdef'],
+ 'modelInfoConfigs' => [
+ 'title' => '模型信息配置列表',
+ 'description' => '模型元数据配置列表',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/ModelInfoConfig'],
],
- 'models' => [
+ 'consumerApiKeys' => [
+ 'title' => '消费者API密钥绑定',
+ 'description' => '要绑定的消费者API密钥列表;空表示开放模式',
'type' => 'array',
'items' => [
- 'type' => 'string',
+ 'type' => 'object',
+ 'properties' => [
+ 'apiKeyId' => ['type' => 'string'],
+ 'value' => ['type' => 'string'],
+ ],
],
],
- 'desc' => [
- 'type' => 'string',
- ],
],
],
- 'CreateModelProxyInput' => [
+ 'CreateModelInput' => [
'type' => 'object',
'properties' => [
- 'modelProxyName' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'description' => [
- 'type' => 'string',
- ],
- 'modelType' => [
- 'type' => 'string',
- ],
- 'proxyMode' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'proxyConfig' => [
- 'required' => true,
- '$ref' => '#/components/schemas/ProxyConfig',
- ],
- 'credentialName' => [
- 'type' => 'string',
- ],
- 'serviceRegionId' => [
- 'type' => 'string',
- ],
- 'litellmVersion' => [
- 'type' => 'string',
- ],
- 'cpu' => [
- 'type' => 'number',
- 'format' => 'float',
- 'required' => true,
- ],
- 'memory' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- ],
- 'networkConfiguration' => [
- '$ref' => '#/components/schemas/NetworkConfiguration',
- ],
- 'logConfiguration' => [
- '$ref' => '#/components/schemas/LogConfiguration',
- ],
- 'armsConfiguration' => [
- '$ref' => '#/components/schemas/ArmsConfiguration',
- ],
- 'executionRoleArn' => [
- 'type' => 'string',
+ 'name' => ['type' => 'string', 'description' => ''],
+ 'provider' => ['type' => 'string', 'description' => ''],
+ 'type' => ['type' => 'string', 'description' => ''],
+ 'address' => ['type' => 'string', 'description' => ''],
+ 'apiKey' => ['type' => 'string', 'description' => ''],
+ 'models' => [
+ 'type' => 'array',
+ 'items' => ['type' => 'string', 'description' => ''],
+ 'description' => '',
],
+ 'desc' => ['type' => 'string', 'description' => ''],
+ ],
+ 'description' => '',
+ ],
+ 'CreateModelProxyInput' => [
+ 'description' => 'CreateModelProxyInput',
+ 'type' => 'object',
+ 'properties' => [
+ 'modelProxyName' => ['description' => 'modelProxyName', 'type' => 'string', 'required' => true, 'example' => 'modelProxyName'],
+ 'description' => ['description' => '描述', 'type' => 'string', 'example' => '1'],
+ 'modelType' => ['description' => '模型类型'."\n"
+ ."\n"
+ .'- system 系统内置模型'."\n"
+ .'- deployment 自定义部署模型', 'type' => 'string', 'example' => 'system'],
+ 'proxyMode' => ['description' => 'proxyMode', 'type' => 'string', 'required' => true, 'example' => 'proxyMode'],
+ 'proxyConfig' => ['description' => 'ProxyConfig', 'required' => true, '$ref' => '#/components/schemas/ProxyConfig'],
+ 'credentialName' => ['description' => 'credentialName', 'type' => 'string', 'example' => 'credentialName'],
+ 'serviceRegionId' => ['description' => 'serviceRegionId', 'type' => 'string', 'example' => 'serviceRegionId'],
+ 'litellmVersion' => ['description' => 'litellmVersion', 'type' => 'string', 'example' => 'litellmVersion'],
+ 'cpu' => ['description' => 'cpu 核数', 'type' => 'number', 'format' => 'float', 'required' => true, 'example' => '1'],
+ 'memory' => ['description' => 'memory大小', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '31'],
+ 'networkConfiguration' => ['description' => '网络模式', '$ref' => '#/components/schemas/NetworkConfiguration'],
+ 'logConfiguration' => ['description' => '智能体运行时的SLS(简单日志服务)配置', '$ref' => '#/components/schemas/LogConfiguration'],
+ 'armsConfiguration' => ['description' => '是否启用应用实时监控服务(ARMS)', '$ref' => '#/components/schemas/ArmsConfiguration'],
+ 'executionRoleArn' => ['description' => '执行角色ARN', 'type' => 'string', 'example' => 'executionRoleArn'],
+ 'workspaceId' => ['type' => 'string', 'description' => ''],
],
],
'CreateModelServiceInput' => [
+ 'description' => 'CreateModelServiceInput',
+ 'type' => 'object',
+ 'properties' => [
+ 'modelServiceName' => ['description' => 'modelServiceName', 'type' => 'string', 'required' => true, 'example' => 'modelServiceName'],
+ 'description' => ['description' => '描述', 'type' => 'string', 'example' => 'Auto generate task: Pipeline[pipeline-run-1742178254775] pipelineTemplate[data-export-service-online-iVnQB5] taskTemplate[serverless-runner-task], time[2025-03-17T02:24:36Z]'],
+ 'modelType' => ['description' => '模型类型'."\n"
+ ."\n"
+ .'- system 系统内置模型'."\n"
+ .'- deployment 自定义部署模型', 'type' => 'string', 'required' => true, 'example' => 'system'],
+ 'provider' => ['description' => '云厂商,目前只支持Aliyun。', 'type' => 'string', 'required' => true, 'example' => 'Aliyun'],
+ 'providerSettings' => ['description' => 'providerSettings', 'required' => true, '$ref' => '#/components/schemas/ProviderSettings'],
+ 'credentialName' => ['description' => '凭据名称。', 'type' => 'string', 'example' => 'credentialName'],
+ 'networkConfiguration' => ['description' => '网络配置信息', '$ref' => '#/components/schemas/NetworkConfiguration'],
+ 'modelInfoConfigs' => [
+ 'description' => 'modelInfoConfigs',
+ 'type' => 'array',
+ 'items' => ['description' => 'modelInfoConfig', '$ref' => '#/components/schemas/ModelInfoConfig'],
+ ],
+ 'workspaceId' => ['type' => 'string', 'description' => ''],
+ ],
+ ],
+ 'CreateRateLimitRuleInput' => [
+ 'title' => '创建限流规则输入',
+ 'description' => '创建限流规则所需的输入参数',
'type' => 'object',
'properties' => [
- 'modelServiceName' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'description' => [
- 'type' => 'string',
- ],
- 'modelType' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'provider' => [
+ 'descriptorType' => [
+ 'title' => '描述符类型',
+ 'description' => '限流规则的描述符类型,如model、user等',
'type' => 'string',
'required' => true,
- ],
- 'providerSettings' => [
- 'required' => true,
- '$ref' => '#/components/schemas/ProviderSettings',
- ],
- 'credentialName' => [
- 'type' => 'string',
- ],
- 'networkConfiguration' => [
- '$ref' => '#/components/schemas/NetworkConfiguration',
- ],
- 'modelInfoConfigs' => [
+ 'example' => 'model',
+ 'enum' => ['key', 'model_connection'],
+ ],
+ 'descriptorId' => ['title' => '描述符ID', 'description' => '限流规则的描述符标识;非model维时必填,model维由服务端拼接', 'type' => 'string', 'example' => 'model:gpt-4'],
+ 'enabled' => ['title' => '启用状态', 'description' => '是否启用该限流规则', 'type' => 'boolean', 'example' => 'true'],
+ 'windows' => [
+ 'title' => '限流窗口列表',
+ 'description' => '限流时间窗口配置列表,至少需要一个窗口',
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/ModelInfoConfig',
- ],
+ 'items' => ['$ref' => '#/components/schemas/WindowLimit'],
+ 'required' => true,
],
],
],
@@ -2192,438 +1532,283 @@
'description' => '创建沙箱所需的输入参数',
'type' => 'object',
'properties' => [
- 'templateName' => [
- 'title' => '模板名称',
- 'description' => '模板名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'templateName',
- ],
- 'sandboxIdleTimeoutSeconds' => [
- 'title' => '沙箱空闲超时时间(弃用)',
- 'description' => '沙箱空闲超时时间(秒)',
- 'type' => 'integer',
- 'format' => 'int32',
- 'deprecated' => true,
- 'maximum' => '21600',
- 'minimum' => '1',
- 'example' => '1800',
- ],
- 'sandboxId' => [
- 'title' => '沙箱实例 id',
- 'description' => '沙箱实例 id',
- 'type' => 'string',
- 'example' => '01KE8DAJ35JC8SKP9CNFRZ8CW7',
- ],
- 'nasConfig' => [
- 'description' => 'NAS配置。',
- '$ref' => '#/components/schemas/NASConfig',
- ],
- 'ossMountConfig' => [
- 'description' => 'OSS挂载配置。',
- '$ref' => '#/components/schemas/OSSMountConfig',
- ],
- 'sandboxIdleTimeoutInSeconds' => [
- 'title' => '沙箱空闲超时时间',
- 'description' => '沙箱空闲超时时间',
- 'type' => 'integer',
- 'format' => 'int32',
- 'maximum' => '21600',
+ 'templateName' => ['title' => '模板名称', 'description' => '模板名称', 'type' => 'string', 'required' => true, 'example' => 'templateName'],
+ 'sandboxIdleTimeoutSeconds' => ['title' => '沙箱空闲超时时间(弃用)', 'description' => '沙箱空闲超时时间(秒)', 'type' => 'integer', 'format' => 'int32', 'deprecated' => true, 'maximum' => '21600', 'minimum' => '1', 'example' => '1800'],
+ 'sandboxId' => ['title' => '沙箱实例 id', 'description' => '沙箱实例 id', 'type' => 'string', 'example' => '01KE8DAJ35JC8SKP9CNFRZ8CW7'],
+ 'nasConfig' => ['description' => 'NAS配置。', '$ref' => '#/components/schemas/NASConfig'],
+ 'ossMountConfig' => ['description' => 'OSS挂载配置。', '$ref' => '#/components/schemas/OSSMountConfig'],
+ 'polarFsConfig' => ['description' => '群组ID。', '$ref' => '#/components/schemas/PolarFsConfig'],
+ 'sandboxIdleTimeoutInSeconds' => ['title' => '沙箱空闲超时时间', 'description' => '沙箱空闲超时时间', 'type' => 'integer', 'format' => 'int32', 'maximum' => '21600'],
+ ],
+ ],
+ 'CreateServiceInput' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'serviceConfigs' => [
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/ServiceConfig', 'description' => ''],
+ 'description' => '',
],
],
+ 'description' => '',
],
'CreateTemplateInput' => [
'title' => '创建模板输入',
'description' => '创建模板所需的输入参数',
'type' => 'object',
'properties' => [
- 'templateName' => [
- 'title' => '模板名称',
- 'description' => '模板名称(要求账号唯一的)',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'browser-1766687911567',
- ],
+ 'templateName' => ['title' => '模板名称', 'description' => '模板名称(要求账号唯一的)', 'type' => 'string', 'required' => true, 'example' => 'browser-1766687911567'],
'templateType' => [
'title' => '模板类型',
'description' => '模板类型',
'type' => 'string',
'required' => true,
'example' => 'Browser',
- 'enum' => [
- 'Browser',
- 'CodeInterpreter',
- 'AllInOnePreview',
- 'AllInOne',
- 'CustomImage',
- ],
- ],
- 'description' => [
- 'title' => '模板描述',
- 'description' => '模板描述',
- 'type' => 'string',
- 'example' => '模板描述',
- ],
- 'cpu' => [
- 'title' => 'CPU资源配置',
- 'description' => 'CPU资源配置(单位:核心)',
- 'type' => 'number',
- 'format' => 'float',
- 'required' => true,
- 'example' => '2',
- ],
- 'memory' => [
- 'title' => '内存资源配置',
- 'description' => '内存资源配置(单位:MB)',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '2048',
- ],
- 'diskSize' => [
- 'title' => '磁盘大小',
- 'description' => '磁盘大小',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10240',
- ],
- 'containerConfiguration' => [
- 'title' => '自定义镜像配置',
- 'description' => '容器配置,只允许基于 Browser/Code Interpreter 基础镜像的 image',
- '$ref' => '#/components/schemas/ContainerConfiguration',
- ],
- 'networkConfiguration' => [
- 'title' => '网络配置',
- 'description' => '网络配置',
- 'required' => true,
- '$ref' => '#/components/schemas/NetworkConfiguration',
- ],
- 'credentialConfiguration' => [
- 'title' => '凭证配置',
- 'description' => '凭证配置',
- '$ref' => '#/components/schemas/CredentialConfiguration',
- ],
- 'logConfiguration' => [
- 'title' => '日志配置',
- 'description' => '日志配置',
- '$ref' => '#/components/schemas/LogConfiguration',
- ],
- 'executionRoleArn' => [
- 'title' => '执行角色ARN',
- 'description' => '执行角色ARN',
- 'type' => 'string',
- 'example' => 'acs:ram::123456789:role/aliyunfcdefaultrole',
- ],
- 'sandboxIdleTimeoutInSeconds' => [
- 'title' => '沙箱空闲超时时间',
- 'description' => '沙箱空闲超时时间(秒)',
- 'type' => 'integer',
- 'format' => 'int32',
- 'maximum' => '21600',
- 'minimum' => '1',
- 'example' => '1800',
- ],
- 'sandboxTTLInSeconds' => [
- 'title' => '沙箱生命周期存活时间(已弃用)',
- 'description' => '沙箱存活时间(秒)(已弃用)',
- 'type' => 'integer',
- 'format' => 'int32',
- 'deprecated' => true,
- 'maximum' => '21600',
- 'minimum' => '1',
- 'example' => '26000',
- ],
- 'armsConfiguration' => [
- 'title' => 'ARMS 配置',
- 'description' => 'ARMS 配置',
- '$ref' => '#/components/schemas/ArmsConfiguration',
- ],
- 'allowAnonymousManage' => [
- 'title' => '是否允许数据链路调用创建/停止/删除沙箱接口',
- 'description' => '是否允许数据链路调用创建/停止/删除沙箱接口',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'nasConfig' => [
- 'title' => 'NAS 挂载配置项目',
- 'description' => 'NAS 挂载配置项目',
- '$ref' => '#/components/schemas/NASConfig',
- ],
+ 'enum' => ['Browser', 'CodeInterpreter', 'AllInOnePreview', 'AllInOne', 'CustomImage', 'ComputerUse'],
+ ],
+ 'description' => ['title' => '模板描述', 'description' => '模板描述', 'type' => 'string', 'example' => '模板描述'],
+ 'cpu' => ['title' => 'CPU资源配置', 'description' => 'CPU资源配置(单位:核心)', 'type' => 'number', 'format' => 'float', 'required' => true, 'example' => '2'],
+ 'memory' => ['title' => '内存资源配置', 'description' => '内存资源配置(单位:MB)', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '2048'],
+ 'diskSize' => ['title' => '磁盘大小', 'description' => '磁盘大小', 'type' => 'integer', 'format' => 'int32', 'example' => '10240'],
+ 'containerConfiguration' => ['title' => '自定义镜像配置', 'description' => '容器配置,只允许基于 Browser/Code Interpreter 基础镜像的 image', '$ref' => '#/components/schemas/ContainerConfiguration'],
+ 'networkConfiguration' => ['title' => '网络配置', 'description' => '网络配置', 'required' => true, '$ref' => '#/components/schemas/NetworkConfiguration'],
+ 'credentialConfiguration' => ['title' => '凭证配置', 'description' => '凭证配置', '$ref' => '#/components/schemas/CredentialConfiguration'],
+ 'logConfiguration' => ['title' => '日志配置', 'description' => '日志配置', '$ref' => '#/components/schemas/LogConfiguration'],
+ 'executionRoleArn' => ['title' => '执行角色ARN', 'description' => '执行角色ARN', 'type' => 'string', 'example' => 'acs:ram::123456789:role/aliyunfcdefaultrole'],
+ 'sandboxIdleTimeoutInSeconds' => ['title' => '沙箱空闲超时时间', 'description' => '沙箱空闲超时时间(秒)', 'type' => 'integer', 'format' => 'int32', 'maximum' => '21600', 'minimum' => '1', 'example' => '1800'],
+ 'sandboxTTLInSeconds' => ['title' => '沙箱存活时间', 'description' => '沙箱存活时间(秒)', 'type' => 'integer', 'format' => 'int32', 'deprecated' => false, 'maximum' => '604800', 'minimum' => '1', 'example' => '26000'],
+ 'armsConfiguration' => ['title' => 'ARMS 配置', 'description' => 'ARMS 配置', '$ref' => '#/components/schemas/ArmsConfiguration'],
+ 'allowAnonymousManage' => ['title' => '是否允许数据链路调用创建/停止/删除沙箱接口', 'description' => '是否允许数据链路调用创建/停止/删除沙箱接口', 'type' => 'boolean', 'example' => 'true'],
+ 'nasConfig' => ['title' => 'NAS 挂载配置项目', 'description' => 'NAS 挂载配置项目', '$ref' => '#/components/schemas/NASConfig'],
+ 'enableAgent' => ['title' => 'Sandbox Agent 开关', 'description' => 'Sandbox Agent 开关', 'type' => 'boolean', 'required' => false],
+ 'workspaceId' => ['type' => 'string', 'description' => ''],
+ 'scalingConfig' => ['title' => '弹性配置', 'description' => '弹性配置', '$ref' => '#/components/schemas/ScalingConfig'],
+ 'enablePreStop' => ['title' => '是否开启实例销毁前回调', 'type' => 'boolean'],
+ 'preStopTimeoutInSeconds' => ['title' => '实例销毁前回调超时时间(秒)', 'type' => 'integer', 'format' => 'int32'],
'ossConfiguration' => [
'title' => 'OSS 配置',
'description' => 'OSS 配置',
'type' => 'array',
- 'items' => [
- 'title' => 'OSS 配置项',
- 'description' => 'OSS 配置项',
- '$ref' => '#/components/schemas/OssConfiguration',
- ],
+ 'items' => ['title' => 'OSS 配置项', 'description' => 'OSS 配置项', '$ref' => '#/components/schemas/OssConfiguration'],
],
'environmentVariables' => [
'title' => '环境变量',
'description' => '环境变量',
'type' => 'object',
- 'additionalProperties' => [
- 'description' => '环境变量 map',
- 'type' => 'string',
- 'example' => '{\'FCTEST_IDE_ENV\': \'IDE\'}',
- ],
+ 'additionalProperties' => ['description' => '环境变量 map', 'type' => 'string', 'example' => '{\'FCTEST_IDE_ENV\': \'IDE\'}'],
],
'templateConfiguration' => [
'title' => '模板配置',
'description' => '模板配置(灵活的对象结构,根据 templateType 不同而不同)',
'type' => 'object',
- 'additionalProperties' => [
- 'description' => '模板配置(灵活的对象结构,根据 templateType 不同而不同)',
- 'type' => 'any',
- 'example' => '{"example":"value"}',
- ],
- ],
- 'enableAgent' => [
- 'title' => 'Sandbox Agent 开关',
- 'description' => 'Sandbox Agent 开关',
- 'type' => 'boolean',
- 'required' => false,
+ 'additionalProperties' => ['description' => '模板配置(灵活的对象结构,根据 templateType 不同而不同)', 'type' => 'any', 'example' => '{"example":"value"}'],
],
],
],
'CreateToolData' => [
'type' => 'object',
'properties' => [
- 'id' => [
- 'type' => 'string',
- ],
- 'name' => [
- 'type' => 'string',
- ],
- 'toolType' => [
- 'type' => 'string',
- ],
- 'createdAt' => [
- 'type' => 'string',
- ],
- 'sourceType' => [
- 'type' => 'string',
- ],
+ 'id' => ['type' => 'string', 'description' => ''],
+ 'name' => ['type' => 'string', 'description' => ''],
+ 'toolType' => ['type' => 'string', 'description' => ''],
+ 'createdAt' => ['type' => 'string', 'description' => ''],
+ 'sourceType' => ['type' => 'string', 'description' => ''],
],
+ 'description' => '',
],
'CreateToolInput' => [
'type' => 'object',
'properties' => [
- 'name' => [
+ 'name' => ['type' => 'string', 'required' => true, 'description' => ''],
+ 'description' => ['type' => 'string', 'description' => ''],
+ 'toolType' => [
'type' => 'string',
'required' => true,
+ 'enum' => ['function_call', 'mcp'],
+ 'description' => '',
],
- 'description' => [
+ 'sourceType' => [
'type' => 'string',
+ 'required' => true,
+ 'enum' => ['template', 'custom', 'schema'],
+ 'description' => '',
],
+ 'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
+ 'CAPConfig' => ['$ref' => '#/components/schemas/CAPConfig', 'description' => ''],
+ ],
+ 'description' => '',
+ ],
+ 'CreateToolInputV2' => [
+ 'title' => '创建工具输入参数',
+ 'description' => '创建新工具时需要提供的参数信息,包括工具的基本信息、类型、部署配置和资源配置等。',
+ 'type' => 'object',
+ 'properties' => [
+ 'toolName' => ['title' => '工具名称', 'description' => '工具的名称,必填项,用于标识和引用工具,需要在工作空间内唯一', 'type' => 'string', 'required' => true, 'example' => 'my-mcp-tool'],
+ 'workspaceId' => ['title' => '工作空间ID', 'description' => '工具所属的工作空间标识符,可选项,不填则使用默认工作空间', 'type' => 'string', 'example' => 'workspace-xyz789'],
+ 'description' => ['title' => '工具描述', 'description' => '工具的详细描述信息,说明工具的功能和用途', 'type' => 'string', 'example' => '这是一个用于处理文档的 MCP 工具'],
'toolType' => [
+ 'title' => '工具类型',
+ 'description' => '工具的类型,必填项。支持:MCP(Model Context Protocol 工具)、FUNCTIONCALL(函数调用工具)、SKILL(技能工具)',
'type' => 'string',
'required' => true,
- 'enum' => [
- 'function_call',
- 'mcp',
- ],
+ 'enumValueTitles' => ['MCP' => 'MCP 工具 - 基于 Model Context Protocol 的工具', 'FUNCTIONCALL' => '函数调用工具 - 通过函数调用方式实现的工具', 'SKILL' => '技能工具 - 预定义的技能类型工具'],
+ 'example' => 'MCP',
+ 'enum' => ['MCP', 'FUNCTIONCALL', 'SKILL'],
],
- 'sourceType' => [
+ 'createMethod' => [
+ 'title' => '创建方式',
+ 'description' => '工具的创建方式,必填项。支持:MCP_REMOTE(远程 MCP 服务器)、MCP_LOCAL_STDIO(本地 MCP 标准输入输出)、MCP_BUNDLE(MCP 打包部署)、CODE_PACKAGE(代码包部署)、OPENAPI_IMPORT(OpenAPI 导入)',
'type' => 'string',
'required' => true,
- 'enum' => [
- 'template',
- 'custom',
- 'schema',
- ],
+ 'enumValueTitles' => ['MCP_REMOTE' => '远程 MCP 服务器 - 连接到远程运行的 MCP 服务器', 'MCP_LOCAL_STDIO' => '本地 MCP 标准输入输出 - 通过标准输入输出与本地 MCP 进程通信', 'MCP_BUNDLE' => 'MCP 打包部署 - 将 MCP 工具打包后部署', 'CODE_PACKAGE' => '代码包部署 - 通过代码包方式部署工具', 'OPENAPI_IMPORT' => 'OpenAPI 导入 - 从 OpenAPI 规范导入工具定义'],
+ 'example' => 'MCP_REMOTE',
+ 'enum' => ['MCP_REMOTE', 'MCP_LOCAL_STDIO', 'MCP_BUNDLE', 'CODE_PACKAGE', 'OPENAPI_IMPORT'],
],
- 'schema' => [
+ 'protocolSpec' => ['title' => '协议规范', 'description' => '工具使用的协议规范定义,JSON 格式的字符串,定义工具的接口和交互方式', 'type' => 'string'],
+ 'mcpConfig' => ['title' => 'MCP配置', 'description' => 'MCP 工具的配置信息,包括会话亲和性、代理配置、绑定配置等,仅在工具类型为 MCP 时需要提供', '$ref' => '#/components/schemas/McpConfig'],
+ 'executionRoleArn' => ['title' => '执行角色ARN', 'description' => '工具执行时使用的 RAM 角色 ARN,用于权限控制,格式如:acs:ram::123456789:role/AliyunFCDefaultRole', 'type' => 'string', 'example' => 'acs:ram::123456789:role/AliyunFCDefaultRole'],
+ 'artifactType' => [
+ 'title' => '制品类型',
+ 'description' => '工具部署的制品类型,支持:Code(代码包)、Container(容器镜像)',
'type' => 'string',
- 'required' => true,
- ],
- 'CAPConfig' => [
- '$ref' => '#/components/schemas/CAPConfig',
+ 'enumValueTitles' => ['Code' => '代码包 - 使用代码包形式部署工具', 'Container' => '容器镜像 - 使用容器镜像形式部署工具'],
+ 'example' => 'Code',
+ 'enum' => ['Code', 'Container'],
+ ],
+ 'networkConfiguration' => ['title' => '网络配置', 'description' => '工具的网络配置,包括 VPC、安全组、交换机等信息,用于配置工具的网络访问能力', '$ref' => '#/components/schemas/NetworkConfiguration'],
+ 'codeConfiguration' => ['title' => '代码配置', 'description' => '代码包类型工具的配置信息,包括代码位置、入口函数、运行时等,仅在制品类型为 Code 时需要提供', '$ref' => '#/components/schemas/CodeConfiguration'],
+ 'containerConfiguration' => ['title' => '容器配置', 'description' => '容器类型工具的配置信息,包括镜像地址、启动命令、端口映射等,仅在制品类型为 Container 时需要提供', '$ref' => '#/components/schemas/ContainerConfiguration'],
+ 'logConfiguration' => ['title' => '日志配置', 'description' => '工具的日志配置,包括日志存储位置(SLS)、日志级别等', '$ref' => '#/components/schemas/LogConfiguration'],
+ 'ossMountConfig' => ['title' => 'OSS挂载配置', 'description' => '对象存储 OSS 的挂载配置,用于工具访问 OSS 存储桶中的文件', '$ref' => '#/components/schemas/OSSMountConfig'],
+ 'nasConfig' => ['title' => 'NAS配置', 'description' => '文件存储 NAS 的配置信息,用于工具访问 NAS 文件系统,实现持久化存储', '$ref' => '#/components/schemas/NASConfig'],
+ 'cpu' => ['title' => 'CPU配置', 'description' => '工具实例的 CPU 核心数,单位为核,支持小数,如 0.5 表示半核', 'type' => 'number', 'format' => 'float', 'example' => '0.5'],
+ 'memory' => ['title' => '内存配置', 'description' => '工具实例的内存大小,单位为 MB,建议根据工具的实际需求配置', 'type' => 'integer', 'format' => 'int32', 'example' => '512'],
+ 'port' => ['title' => '端口号', 'description' => '工具服务监听的端口号,用于接收请求', 'type' => 'integer', 'format' => 'int32', 'example' => '8080'],
+ 'credentialName' => ['title' => '凭证名称', 'description' => '工具使用的凭证名称,用于访问需要认证的外部服务,需要提前在系统中创建凭证', 'type' => 'string', 'example' => 'my-credential'],
+ 'timeout' => ['title' => '超时时间', 'description' => '工具执行的超时时间,单位为秒,超过此时间工具调用将被终止', 'type' => 'integer', 'format' => 'int32', 'example' => '300'],
+ 'environmentVariables' => [
+ 'title' => '环境变量',
+ 'description' => '工具运行时的环境变量配置,键值对形式,用于传递配置信息到工具运行环境',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string'],
+ 'example' => '{"ENV": "production", "LOG_LEVEL": "info"}',
],
+ 'agentIdentityEnabled' => ['type' => 'boolean'],
+ 'agentIdentityConfig' => ['$ref' => '#/components/schemas/ToolAgentIdentityConfig'],
],
],
'CreateToolOutput' => [
'type' => 'object',
'properties' => [
- 'success' => [
- 'type' => 'boolean',
- ],
- 'message' => [
- 'type' => 'string',
- ],
- 'data' => [
- '$ref' => '#/components/schemas/CreateToolData',
- ],
+ 'success' => ['type' => 'boolean', 'description' => ''],
+ 'message' => ['type' => 'string', 'description' => ''],
+ 'data' => ['$ref' => '#/components/schemas/CreateToolData', 'description' => ''],
],
+ 'description' => '',
],
'CreateWorkspaceInput' => [
'type' => 'object',
'properties' => [
- 'name' => [
- 'type' => 'string',
- ],
- 'description' => [
- 'type' => 'string',
- ],
- 'resourceGroupId' => [
- 'type' => 'string',
- ],
+ 'name' => ['type' => 'string'],
+ 'description' => ['type' => 'string'],
+ 'resourceGroupId' => ['type' => 'string'],
+ 'enablePresetModel' => ['type' => 'boolean'],
],
],
'Credential' => [
'type' => 'object',
'properties' => [
- 'credentialId' => [
- 'type' => 'string',
- ],
- 'credentialName' => [
- 'type' => 'string',
- ],
- 'description' => [
- 'type' => 'string',
- ],
- 'credentialAuthType' => [
- 'type' => 'string',
- ],
- 'credentialSourceType' => [
- 'type' => 'string',
- ],
- 'enabled' => [
- 'type' => 'boolean',
- ],
- 'credentialSecret' => [
- 'type' => 'string',
- ],
+ 'credentialId' => ['type' => 'string', 'description' => ''],
+ 'credentialName' => ['type' => 'string', 'description' => ''],
+ 'description' => ['type' => 'string', 'description' => ''],
+ 'credentialAuthType' => ['type' => 'string', 'description' => ''],
+ 'credentialSourceType' => ['type' => 'string', 'description' => ''],
+ 'enabled' => ['type' => 'boolean', 'description' => ''],
+ 'credentialSecret' => ['type' => 'string', 'description' => ''],
+ 'createdAt' => ['type' => 'string', 'description' => ''],
+ 'updatedAt' => ['type' => 'string', 'description' => ''],
'credentialPublicConfig' => [
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- ],
- ],
- 'createdAt' => [
- 'type' => 'string',
- ],
- 'updatedAt' => [
- 'type' => 'string',
+ 'additionalProperties' => ['type' => 'string'],
+ 'deprecated' => false,
+ 'required' => false,
+ '$ref' => '#/components/schemas/CredentialPublicConfig',
+ 'description' => '',
],
'relatedResources' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/RelatedResource',
- ],
+ 'items' => ['$ref' => '#/components/schemas/RelatedResource', 'description' => ''],
+ 'description' => '',
],
+ 'workspaceId' => ['type' => 'string'],
],
+ 'description' => '',
],
'CredentialConfiguration' => [
'title' => '凭证配置',
'description' => '访问外部服务的凭证配置',
'type' => 'object',
'properties' => [
- 'credentialName' => [
- 'title' => '凭证ID',
- 'description' => '凭证的唯一标识符',
- 'type' => 'string',
- 'example' => 'deepagent-key',
- ],
+ 'credentialName' => ['title' => '凭证ID', 'description' => '凭证的唯一标识符', 'type' => 'string', 'example' => 'deepagent-key'],
],
],
'CredentialListItem' => [
'type' => 'object',
'properties' => [
- 'credentialId' => [
- 'type' => 'string',
- ],
- 'credentialName' => [
- 'type' => 'string',
- ],
- 'credentialAuthType' => [
- 'type' => 'string',
- ],
- 'credentialSourceType' => [
- 'type' => 'string',
- ],
- 'enabled' => [
- 'type' => 'boolean',
- ],
- 'createdAt' => [
- 'type' => 'string',
- ],
- 'updatedAt' => [
- 'type' => 'string',
- ],
- 'relatedResourceCount' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
+ 'credentialId' => ['type' => 'string', 'description' => ''],
+ 'credentialName' => ['type' => 'string', 'description' => ''],
+ 'credentialAuthType' => ['type' => 'string', 'description' => ''],
+ 'credentialSourceType' => ['type' => 'string', 'description' => ''],
+ 'enabled' => ['type' => 'boolean', 'description' => ''],
+ 'createdAt' => ['type' => 'string', 'description' => ''],
+ 'updatedAt' => ['type' => 'string', 'description' => ''],
+ 'relatedResourceCount' => ['type' => 'integer', 'format' => 'int32', 'description' => ''],
+ 'description' => ['type' => 'string', 'description' => ''],
+ 'workspaceId' => ['type' => 'string'],
],
+ 'description' => '',
],
'CredentialPublicConfig' => [
'type' => 'object',
'properties' => [
- 'headerKey' => [
- 'type' => 'string',
- ],
- 'provider' => [
- 'type' => 'string',
- ],
+ 'headerKey' => ['type' => 'string'],
+ 'provider' => ['type' => 'string'],
'authType' => [
'type' => 'string',
- 'enum' => [
- 'static_jwks',
- 'remote_jwks',
- ],
+ 'enum' => ['static_jwks', 'remote_jwks'],
],
'remoteConfig' => [
'type' => 'object',
'properties' => [
- 'uri' => [
- 'type' => 'string',
- ],
- 'timeout' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'ttl' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
+ 'uri' => ['type' => 'string'],
+ 'timeout' => ['type' => 'integer', 'format' => 'int32'],
+ 'ttl' => ['type' => 'integer', 'format' => 'int32'],
],
],
+ 'prefix' => ['type' => 'string'],
+ 'jwks' => ['type' => 'string'],
'users' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'username' => [
- 'type' => 'string',
- ],
- 'password' => [
- 'type' => 'string',
- ],
+ 'username' => ['type' => 'string'],
+ 'password' => ['type' => 'string'],
],
],
],
'authConfig' => [
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- ],
+ 'additionalProperties' => ['type' => 'string'],
],
],
],
'CredentialResult' => [
'type' => 'object',
'properties' => [
- 'code' => [
- 'type' => 'string',
- ],
- 'requestId' => [
- 'type' => 'string',
- ],
- 'data' => [
- '$ref' => '#/components/schemas/Credential',
- ],
+ 'code' => ['type' => 'string'],
+ 'requestId' => ['type' => 'string'],
+ 'data' => ['$ref' => '#/components/schemas/Credential'],
],
],
'CustomDomain' => [
@@ -2631,64 +1816,23 @@
'description' => '自定义域名的详细信息,包含域名的所有配置和状态信息',
'type' => 'object',
'properties' => [
- 'domainName' => [
- 'title' => '域名',
- 'description' => '域名。填写已在阿里云备案或接入备案的自定义域名名称。',
- 'type' => 'string',
- 'example' => 'example.com',
- ],
- 'description' => [
- 'title' => '描述',
- 'description' => '描述',
- 'type' => 'string',
- ],
+ 'domainName' => ['title' => '域名', 'description' => '域名。填写已在阿里云备案或接入备案的自定义域名名称。', 'type' => 'string', 'example' => 'example.com'],
+ 'description' => ['title' => '描述', 'description' => '描述', 'type' => 'string'],
'protocol' => [
'title' => '协议类型',
'description' => '域名支持的协议类型:● HTTP:仅支持 HTTP 协议。● HTTPS:仅支持 HTTPS 协议。● HTTP,HTTPS:支持 HTTP 及 HTTPS 协议。',
'type' => 'string',
'example' => 'HTTP',
- 'enum' => [
- 'HTTP',
- 'HTTPS',
- 'HTTP,HTTPS',
- ],
- ],
- 'routeConfig' => [
- 'title' => '路由表',
- 'description' => '路由表:自定义域名访问时的 PATH 到 资源 的映射。',
- 'example' => '{}',
- '$ref' => '#/components/schemas/RouteConfig',
- ],
- 'certConfig' => [
- 'title' => 'HTTPS证书信息',
- 'description' => 'HTTPS 证书的信息。',
- 'example' => '{}',
- '$ref' => '#/components/schemas/CertConfig',
- ],
- 'tlsConfig' => [
- 'title' => 'TLS配置信息',
- 'description' => 'TLS 配置信息。',
- 'example' => '{}',
- '$ref' => '#/components/schemas/TLSConfig',
- ],
- 'createdAt' => [
- 'title' => '创建时间',
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '2025-01-10T10:30:00Z',
- ],
- 'updatedAt' => [
- 'title' => '更新时间',
- 'description' => '更新时间',
- 'type' => 'string',
- 'example' => '2025-01-10T11:45:00Z',
+ 'enum' => ['HTTP', 'HTTPS', 'HTTP,HTTPS'],
],
+ 'routeConfig' => ['title' => '路由表', 'description' => '路由表:自定义域名访问时的 PATH 到 资源 的映射。', 'example' => '{}', '$ref' => '#/components/schemas/RouteConfig'],
+ 'certConfig' => ['title' => 'HTTPS证书信息', 'description' => 'HTTPS 证书的信息。', 'example' => '{}', '$ref' => '#/components/schemas/CertConfig'],
+ 'tlsConfig' => ['title' => 'TLS配置信息', 'description' => 'TLS 配置信息。', 'example' => '{}', '$ref' => '#/components/schemas/TLSConfig'],
+ 'createdAt' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-01-10T10:30:00Z'],
+ 'updatedAt' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string', 'example' => '2025-01-10T11:45:00Z'],
'domainType' => [
'type' => 'string',
- 'enum' => [
- 'STANDARD',
- 'SANDBOX',
- ],
+ 'enum' => ['STANDARD', 'SANDBOX'],
],
],
],
@@ -2697,181 +1841,95 @@
'description' => '创建、获取自定义域名的统一结果格式',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '唯一的请求标识符,用于问题追踪',
- 'type' => 'string',
- 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E',
- ],
- 'data' => [
- 'title' => '自定义域名数据',
- 'description' => '自定义域名的详细信息',
- 'example' => '{}',
- '$ref' => '#/components/schemas/CustomDomain',
- ],
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '自定义域名数据', 'description' => '自定义域名的详细信息', 'example' => '{}', '$ref' => '#/components/schemas/CustomDomain'],
],
],
'CustomRuntimeConfig' => [
'type' => 'object',
'properties' => [
- 'port' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
+ 'port' => ['type' => 'integer', 'format' => 'int32', 'description' => ''],
'command' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
+ 'items' => ['type' => 'string', 'description' => ''],
+ 'description' => '',
],
'args' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
+ 'items' => ['type' => 'string', 'description' => ''],
+ 'description' => '',
],
],
+ 'description' => '',
],
'DeleteBrowserOut' => [
'title' => '',
'description' => '',
'type' => 'object',
'properties' => [
- 'browserId' => [
- 'title' => '浏览器 ID'."\n",
- 'description' => '浏览器 ID'."\n",
- 'type' => 'string',
- ],
- 'browserName' => [
- 'title' => '浏览器名称',
- 'description' => '浏览器名称',
- 'type' => 'string',
- ],
- 'status' => [
- 'title' => '状态',
- 'description' => '状态',
- 'type' => 'string',
- ],
+ 'browserId' => ['title' => '浏览器 ID'."\n", 'description' => '浏览器 ID'."\n", 'type' => 'string'],
+ 'browserName' => ['title' => '浏览器名称', 'description' => '浏览器名称', 'type' => 'string'],
+ 'status' => ['title' => '状态', 'description' => '状态', 'type' => 'string'],
],
],
'DeleteBrowserResult' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '唯一的请求标识符,用于问题追踪',
- 'type' => 'string',
- 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E',
- ],
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'data' => [
- 'title' => '浏览器数据',
- 'description' => '被删除的浏览器详细信息',
- 'example' => '{}',
- '$ref' => '#/components/schemas/Browser',
- ],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'data' => ['title' => '浏览器数据', 'description' => '被删除的浏览器详细信息', 'example' => '{}', '$ref' => '#/components/schemas/Browser'],
],
+ 'description' => '',
],
'DeleteCodeInterpreterOut' => [
'title' => '',
'description' => '',
'type' => 'object',
'properties' => [
- 'codeInterpreterId' => [
- 'title' => '代码解释器 ID',
- 'description' => '代码解释器 ID',
- 'type' => 'string',
- ],
- 'codeInterpreterName' => [
- 'title' => '代码解释器名称',
- 'description' => '代码解释器名称',
- 'type' => 'string',
- ],
- 'status' => [
- 'title' => '状态',
- 'description' => '状态',
- 'type' => 'string',
- ],
+ 'codeInterpreterId' => ['title' => '代码解释器 ID', 'description' => '代码解释器 ID', 'type' => 'string'],
+ 'codeInterpreterName' => ['title' => '代码解释器名称', 'description' => '代码解释器名称', 'type' => 'string'],
+ 'status' => ['title' => '状态', 'description' => '状态', 'type' => 'string'],
],
],
'DeleteCodeInterpreterResult' => [
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '唯一的请求标识符,用于问题追踪',
- 'type' => 'string',
- 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E',
- ],
- 'data' => [
- 'title' => '代码解释器数据',
- 'description' => '被删除的代码解释器详细信息',
- 'example' => '{}',
- '$ref' => '#/components/schemas/CodeInterpreter',
- ],
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '代码解释器数据', 'description' => '被删除的代码解释器详细信息', 'example' => '{}', '$ref' => '#/components/schemas/CodeInterpreter'],
],
+ 'description' => '',
+ ],
+ 'DeleteIMBotNoContent' => [
+ 'title' => '删除 IM Bot 无响应体',
+ 'description' => 'HTTP 204 无 JSON;占位便于部分生成链路',
+ 'type' => 'object',
+ 'properties' => [],
],
'DeleteKnowledgeBaseResult' => [
'title' => '删除知识库返回结构',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '返回码',
- 'type' => 'string',
- ],
- 'requestId' => [
- 'title' => '请求Id',
- 'type' => 'string',
- ],
- 'data' => [
- 'title' => '删除的知识库实体',
- '$ref' => '#/components/schemas/KnowledgeBase',
- ],
+ 'code' => ['title' => '返回码', 'type' => 'string'],
+ 'requestId' => ['title' => '请求Id', 'type' => 'string'],
+ 'data' => ['title' => '删除的知识库实体', '$ref' => '#/components/schemas/KnowledgeBase'],
],
],
'DeleteModelProxyResult' => [
'type' => 'object',
'properties' => [
- 'code' => [
- 'type' => 'string',
- ],
- 'requestId' => [
- 'type' => 'string',
- ],
- 'data' => [
- '$ref' => '#/components/schemas/ModelProxy',
- ],
+ 'code' => ['type' => 'string'],
+ 'requestId' => ['type' => 'string'],
+ 'data' => ['$ref' => '#/components/schemas/ModelProxy'],
],
],
'DeleteModelServiceResult' => [
'type' => 'object',
'properties' => [
- 'code' => [
- 'type' => 'string',
- ],
- 'requestId' => [
- 'type' => 'string',
- ],
- 'data' => [
- '$ref' => '#/components/schemas/ModelService',
- ],
+ 'code' => ['type' => 'string'],
+ 'requestId' => ['type' => 'string'],
+ 'data' => ['$ref' => '#/components/schemas/ModelService'],
],
],
'DeleteSandboxResult' => [
@@ -2879,19 +1937,9 @@
'description' => '删除沙箱操作的统一结果格式',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功',
- 'type' => 'string',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '唯一的请求标识符,用于问题追踪',
- 'type' => 'string',
- ],
- 'data' => [
- '$ref' => '#/components/schemas/Sandbox',
- ],
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功', 'type' => 'string'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string'],
+ 'data' => ['$ref' => '#/components/schemas/Sandbox'],
],
],
'DeleteTemplateResult' => [
@@ -2899,19 +1947,9 @@
'description' => '删除模板操作的统一结果格式',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功',
- 'type' => 'string',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '唯一的请求标识符,用于问题追踪',
- 'type' => 'string',
- ],
- 'data' => [
- '$ref' => '#/components/schemas/Template',
- ],
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功', 'type' => 'string'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string'],
+ 'data' => ['$ref' => '#/components/schemas/Template'],
],
],
'DeregisterServiceInput' => [
@@ -2919,45 +1957,30 @@
'description' => '注销外部服务所需的输入参数',
'type' => 'object',
'properties' => [
- 'serviceName' => [
- 'title' => '服务名称',
- 'description' => '要注销的服务名称(UUID格式)',
- 'type' => 'string',
- 'required' => true,
- 'example' => '12345678-1234-1234-1234-123456789abc',
- ],
+ 'serviceName' => ['title' => '服务名称', 'description' => '要注销的服务名称(UUID格式)', 'type' => 'string', 'required' => true, 'example' => '12345678-1234-1234-1234-123456789abc'],
],
],
'DiscoveryEndpoint' => [
'type' => 'object',
'properties' => [
- 'name' => [
- 'type' => 'string',
- ],
+ 'name' => ['type' => 'string'],
'agentEndpointConfigs' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/AgentEndpointConfig',
- ],
+ 'items' => ['$ref' => '#/components/schemas/AgentEndpointConfig'],
],
+ 'credentialName' => ['title' => '凭证名称', 'description' => '该发现端点使用的凭证名称', 'type' => 'string', 'required' => false],
+ 'returnAgentCredentialContent' => ['title' => '是否返回 Agent 凭证内容', 'description' => '是否在发现结果中返回 agent 的凭证内容', 'type' => 'boolean', 'required' => false],
],
],
'DomainInfo' => [
'type' => 'object',
'properties' => [
- 'domainId' => [
- 'type' => 'string',
- ],
- 'name' => [
- 'type' => 'string',
- ],
- 'protocol' => [
- 'type' => 'string',
- ],
- 'certIdentifier' => [
- 'type' => 'string',
- ],
+ 'domainId' => ['type' => 'string', 'description' => ''],
+ 'name' => ['type' => 'string', 'description' => ''],
+ 'protocol' => ['type' => 'string', 'description' => ''],
+ 'certIdentifier' => ['type' => 'string', 'description' => ''],
],
+ 'description' => '',
],
'EmbedderConfig' => [
'type' => 'object',
@@ -2965,122 +1988,249 @@
'config' => [
'type' => 'object',
'properties' => [
- 'model' => [
- 'type' => 'string',
- ],
+ 'model' => ['type' => 'string'],
],
],
- 'modelServiceName' => [
- 'type' => 'string',
+ 'modelServiceName' => ['type' => 'string'],
+ ],
+ ],
+ 'EnvironmentConfiguration' => [
+ 'title' => '环境配置',
+ 'description' => '工作流的环境配置,包含一组命名环境变量',
+ 'type' => 'object',
+ 'properties' => [
+ 'variables' => [
+ 'title' => '变量列表',
+ 'description' => '环境变量条目列表,每个条目包含 name、value 和可选 description',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/EnvironmentVariable'],
+ 'required' => true,
],
],
],
+ 'EnvironmentVariable' => [
+ 'title' => '环境变量',
+ 'description' => '工作流环境变量条目',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['title' => '变量名', 'description' => '环境变量的名称', 'type' => 'string', 'required' => true, 'example' => 'MY_KEY'],
+ 'value' => ['title' => '变量值', 'description' => '环境变量的值', 'type' => 'string', 'required' => true, 'example' => 'my-value'],
+ 'description' => ['title' => '描述', 'description' => '环境变量的描述信息', 'type' => 'string', 'example' => 'A configuration key'],
+ ],
+ ],
'ErrorResult' => [
'title' => 'Error Response',
'description' => '错误响应结构体',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'requestId' => [
- 'title' => 'Request ID',
- 'description' => '唯一的请求标识符,用于问题追踪',
- 'type' => 'string',
- 'example' => '55D4BE40-2811-5CFB-8482-E0E98D575B1E',
- ],
- 'message' => [
- 'title' => 'Error Message',
- 'description' => '错误信息描述',
- 'type' => 'string',
- 'example' => 'Conflict Transaction, process failed',
- ],
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => 'Request ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => '55D4BE40-2811-5CFB-8482-E0E98D575B1E'],
+ 'message' => ['title' => 'Error Message', 'description' => '错误信息描述', 'type' => 'string', 'example' => 'Conflict Transaction, process failed'],
],
],
'FCLinkConfig' => [
'type' => 'object',
'properties' => [
- 'functionName' => [
- 'type' => 'string',
+ 'functionName' => ['type' => 'string', 'description' => ''],
+ 'version' => ['type' => 'string', 'description' => ''],
+ ],
+ 'description' => '',
+ ],
+ 'Flow' => [
+ 'title' => '工作流',
+ 'description' => '工作流的详细信息,包含工作流的所有配置和状态信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'flowId' => ['title' => '工作流ID', 'description' => '工作流的唯一标识符', 'type' => 'string', 'example' => 'flow-1234567890abcdef'],
+ 'flowArn' => ['title' => '工作流ARN', 'description' => '工作流的全局唯一资源名称', 'type' => 'string', 'example' => 'acs:agentrun:cn-hangzhou:123456789012:workspaces/ws-xxx/flows/flow-xxx'],
+ 'flowName' => ['title' => '工作流名称', 'description' => '工作流的名称,用于标识和区分不同的工作流实例', 'type' => 'string', 'example' => 'my-flow'],
+ 'description' => ['title' => '描述', 'description' => '工作流的描述信息,说明该工作流的用途和功能', 'type' => 'string', 'example' => 'Customer service automation flow'],
+ 'definition' => ['title' => '定义', 'description' => '工作流的定义内容', 'type' => 'string', 'example' => '{}'],
+ 'executionRoleArn' => ['title' => '执行角色ARN', 'description' => '为工作流提供访问云服务权限的执行角色ARN', 'type' => 'string', 'example' => 'acs:ram::123456789012:role/FlowExecutionRole'],
+ 'environmentConfiguration' => ['title' => '环境配置', 'description' => '工作流的环境变量配置,包含一组命名变量列表', '$ref' => '#/components/schemas/EnvironmentConfiguration'],
+ 'externalStorageLocation' => ['title' => '外部存储位置', 'description' => '工作流的外部存储位置', 'type' => 'string', 'example' => 'oss://bucket/path'],
+ 'resourceGroupId' => ['title' => '资源组ID', 'description' => '工作流所属的资源组标识符', 'type' => 'string', 'example' => 'rg-acfmxsn4m4a4b4a'],
+ 'tracingConfiguration' => ['title' => '链路追踪配置', 'description' => '工作流的链路追踪配置', '$ref' => '#/components/schemas/TracingConfiguration'],
+ 'loggingConfiguration' => ['title' => '日志配置', 'description' => '工作流的日志配置', '$ref' => '#/components/schemas/LoggingConfiguration'],
+ 'workspaceId' => ['title' => '工作空间ID', 'description' => '工作流所属的工作空间标识符', 'type' => 'string', 'example' => 'ws-1234567890abcdef'],
+ 'createdAt' => ['title' => '创建时间', 'description' => '工作流的创建时间,采用ISO 8601格式', 'type' => 'string', 'example' => '2025-01-10T10:30:00Z'],
+ 'lastUpdatedAt' => ['title' => '最后更新时间', 'description' => '工作流最后一次更新的时间,采用ISO 8601格式', 'type' => 'string', 'example' => '2025-01-10T11:45:00Z'],
+ 'disablePublicNetworkAccess' => ['title' => '禁用公网访问', 'description' => '是否禁用该工作流的公网访问,作为工作流级别的默认策略', 'type' => 'boolean'],
+ ],
+ ],
+ 'FlowEndpoint' => [
+ 'title' => '工作流端点',
+ 'description' => '工作流端点的详细信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'flowId' => ['title' => '工作流ID', 'description' => '工作流的唯一标识符', 'type' => 'string', 'example' => 'flow-1234567890abcdef'],
+ 'flowEndpointId' => ['title' => '工作流端点ID', 'description' => '工作流端点的唯一标识符', 'type' => 'string', 'example' => 'fe-1234567890abcdef'],
+ 'flowEndpointArn' => ['title' => '工作流端点ARN', 'description' => '工作流端点的全局唯一资源名称', 'type' => 'string', 'example' => 'acs:agentrun:cn-hangzhou:123456789012:workspaces/ws-xxx/flows/flow-xxx/endpoints/fe-xxx'],
+ 'flowEndpointName' => ['title' => '名称', 'description' => '工作流端点的名称', 'type' => 'string', 'example' => 'my-flow-endpoint'],
+ 'description' => ['title' => '描述', 'description' => '工作流端点的描述信息', 'type' => 'string', 'example' => 'Production endpoint for flow'],
+ 'targetVersion' => ['title' => '目标版本', 'description' => '工作流端点指向的目标版本号', 'type' => 'string', 'example' => '1'],
+ 'createdAt' => ['title' => '创建时间', 'description' => '工作流端点的创建时间,采用ISO 8601格式', 'type' => 'string', 'example' => '2025-01-10T10:30:00Z'],
+ 'lastUpdatedAt' => ['title' => '最后更新时间', 'description' => '工作流端点最后一次更新的时间,采用ISO 8601格式', 'type' => 'string', 'example' => '2025-01-10T11:45:00Z'],
+ 'routingConfiguration' => [
+ 'title' => '路由配置',
+ 'description' => '工作流端点的版本路由配置',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/FlowEndpointRoutingConfig'],
+ 'example' => '[]',
],
- 'version' => [
- 'type' => 'string',
+ 'disablePublicNetworkAccess' => ['title' => '禁用公网访问', 'description' => '是否禁用该端点的公网访问', 'type' => 'boolean'],
+ ],
+ ],
+ 'FlowEndpointResult' => [
+ 'title' => '工作流端点结果',
+ 'description' => '创建、获取、更新工作流端点的统一结果格式',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '工作流端点数据', 'description' => '工作流端点的详细信息', 'example' => '{}', '$ref' => '#/components/schemas/FlowEndpoint'],
+ ],
+ ],
+ 'FlowEndpointRoutingConfig' => [
+ 'title' => '工作流端点路由配置',
+ 'description' => '工作流端点的版本路由配置,用于流量分配',
+ 'type' => 'object',
+ 'properties' => [
+ 'version' => ['title' => '版本', 'description' => '目标工作流版本号', 'type' => 'string', 'example' => '1'],
+ 'weight' => ['title' => '权重', 'description' => '该版本在流量分配中的权重,0-100', 'type' => 'integer', 'example' => '100'],
+ ],
+ ],
+ 'FlowResult' => [
+ 'title' => '工作流结果',
+ 'description' => '创建、获取、更新工作流的统一结果格式',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '工作流数据', 'description' => '工作流的详细信息', 'example' => '{}', '$ref' => '#/components/schemas/Flow'],
+ ],
+ ],
+ 'FlowVersion' => [
+ 'title' => '工作流版本',
+ 'description' => '工作流版本的详细信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'flowId' => ['title' => '工作流ID', 'description' => '工作流的唯一标识符', 'type' => 'string', 'example' => 'flow-1234567890abcdef'],
+ 'flowVersion' => ['title' => '版本', 'description' => '工作流版本号', 'type' => 'string', 'example' => '1'],
+ 'description' => ['title' => '描述', 'description' => '工作流版本的描述信息', 'type' => 'string', 'example' => 'Version 1.0 - Initial release'],
+ 'createdAt' => ['title' => '创建时间', 'description' => '工作流版本的创建时间,采用ISO 8601格式', 'type' => 'string', 'example' => '2025-01-10T10:30:00Z'],
+ 'flowName' => ['type' => 'string'],
+ 'definition' => ['title' => '定义', 'description' => '工作流版本的定义内容(完整快照,仅在 GetFlowVersion 时返回)', 'type' => 'string', 'example' => 'Type: StateMachine\\nName: my-flow\\n...'],
+ 'environmentConfiguration' => ['title' => '环境配置', 'description' => '工作流版本的环境变量配置(完整快照,仅在 GetFlowVersion 时返回)', '$ref' => '#/components/schemas/EnvironmentConfiguration'],
+ 'externalStorageLocation' => ['title' => '外部存储位置', 'description' => '工作流版本的外部存储位置(完整快照,仅在 GetFlowVersion 时返回)', 'type' => 'string', 'example' => 'oss://bucket/path'],
+ 'tracingConfiguration' => ['title' => '链路追踪配置', 'description' => '工作流版本的链路追踪配置(完整快照,仅在 GetFlowVersion 时返回)', '$ref' => '#/components/schemas/TracingConfiguration'],
+ 'loggingConfiguration' => ['title' => '日志配置', 'description' => '工作流版本的日志配置(完整快照,仅在 GetFlowVersion 时返回)', '$ref' => '#/components/schemas/LoggingConfiguration'],
+ ],
+ ],
+ 'FlowVersionResult' => [
+ 'title' => '工作流版本结果',
+ 'description' => '发布工作流版本的统一结果格式',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '工作流版本数据', 'description' => '工作流版本的详细信息', 'example' => '{}', '$ref' => '#/components/schemas/FlowVersion'],
+ ],
+ ],
+ 'Funagent' => [
+ 'title' => 'Funagent',
+ 'description' => '与 funagent-core metastore.FunAgent 字段集对齐;公共 JSON 键采用 camelCase。当前 core 处理器仅序列化子集(funagentId、funagentName、status、endpoint、createdAt、updatedAt),完整字段需后续扩展 core 的 FunAgentJSON/toJSON 或由 POP 适配层填充。adminSecret、dbPassword 在响应中应脱敏(omit 或 null)。时间字段为 ISO 8601 字符串。',
+ 'type' => 'object',
+ 'properties' => [
+ 'funagentId' => ['title' => 'Funagent ID', 'description' => 'UUID 字符串', 'type' => 'string'],
+ 'funagentName' => ['title' => 'Funagent 名称', 'type' => 'string'],
+ 'regionId' => ['title' => '地域 ID', 'type' => 'string'],
+ 'vpcId' => ['title' => 'VPC ID', 'type' => 'string'],
+ 'vswitchIds' => ['title' => '交换机列表 JSON', 'description' => '与存储一致时为 JSON 字符串', 'type' => 'string'],
+ 'securityGroupId' => ['title' => '安全组 ID', 'type' => 'string'],
+ 'cpu' => ['title' => 'CPU 核数', 'type' => 'number', 'format' => 'float'],
+ 'memory' => ['title' => '内存 MB', 'type' => 'integer', 'format' => 'int32'],
+ 'replicas' => ['title' => '副本数', 'type' => 'integer', 'format' => 'int32'],
+ 'adminName' => ['title' => '管理员用户名', 'type' => 'string'],
+ 'adminSecret' => ['title' => '管理员密码/密钥', 'description' => '敏感;响应中应脱敏', 'type' => 'string'],
+ 'dbType' => ['title' => '数据库类型', 'type' => 'string'],
+ 'dbName' => ['title' => '数据库名', 'type' => 'string'],
+ 'dbInstanceId' => ['title' => '数据库实例 ID', 'type' => 'string'],
+ 'dbHost' => ['title' => '数据库主机', 'type' => 'string'],
+ 'dbPort' => ['title' => '数据库端口', 'type' => 'integer', 'format' => 'int32'],
+ 'dbUsername' => ['title' => '数据库用户名', 'type' => 'string'],
+ 'dbPassword' => ['title' => '数据库密码', 'description' => '敏感;响应中应脱敏', 'type' => 'string'],
+ 'dbConnections' => ['title' => '数据库连接数', 'type' => 'integer', 'format' => 'int32'],
+ 'endpoint' => ['title' => '访问端点', 'type' => 'string'],
+ 'version' => ['title' => '包版本', 'type' => 'string'],
+ 'status' => ['title' => '状态', 'type' => 'string'],
+ 'description' => ['title' => '描述', 'type' => 'string'],
+ 'tenantId' => ['title' => '租户 ID', 'type' => 'string'],
+ 'createdAt' => ['title' => '创建时间', 'description' => 'ISO 8601', 'type' => 'string'],
+ 'updatedAt' => ['title' => '最后更新时间', 'description' => 'ISO 8601', 'type' => 'string'],
+ 'imageUrl' => ['title' => '镜像 URL', 'type' => 'string'],
+ ],
+ ],
+ 'FunagentResult' => [
+ 'title' => 'Funagent 操作结果',
+ 'description' => '创建、获取、删除 Funagent 的统一结果格式',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => 'Funagent 数据', '$ref' => '#/components/schemas/Funagent'],
+ ],
+ ],
+ 'FunagentVersionItem' => [
+ 'title' => 'Funagent 发布版本条目',
+ 'description' => '单次发布的版本号、更新说明列表、发布时间与描述',
+ 'type' => 'object',
+ 'properties' => [
+ 'version' => ['title' => '版本号', 'type' => 'string'],
+ 'publishContent' => [
+ 'title' => '更新内容列表',
+ 'description' => '多条更新说明',
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
],
+ 'publishTime' => ['title' => '发布时间', 'description' => '日期或 ISO 8601 字符串', 'type' => 'string'],
+ 'description' => ['title' => '描述', 'type' => 'string'],
],
],
'Gateway' => [
'type' => 'object',
'properties' => [
- 'name' => [
- 'type' => 'string',
- ],
- 'gatewayId' => [
- 'type' => 'string',
- ],
- 'internetUrl' => [
- 'type' => 'string',
- ],
- 'intranetUrl' => [
- 'type' => 'string',
- ],
- 'createdAt' => [
- 'type' => 'string',
- ],
- 'updatedAt' => [
- 'type' => 'string',
- ],
- 'status' => [
- 'type' => 'string',
- ],
+ 'name' => ['type' => 'string', 'description' => ''],
+ 'gatewayId' => ['type' => 'string', 'description' => ''],
+ 'internetUrl' => ['type' => 'string', 'description' => ''],
+ 'intranetUrl' => ['type' => 'string', 'description' => ''],
+ 'createdAt' => ['type' => 'string', 'description' => ''],
+ 'updatedAt' => ['type' => 'string', 'description' => ''],
+ 'status' => ['type' => 'string', 'description' => ''],
],
+ 'description' => '',
],
'GatewayNetworkConfiguration' => [
'type' => 'object',
'properties' => [
- 'networkMode' => [
- 'title' => '网络模式',
- 'description' => '网络模式',
- 'type' => 'string',
- ],
- 'vpcId' => [
- 'title' => '专有网络ID',
- 'description' => '专有网络ID',
- 'type' => 'string',
- ],
+ 'networkMode' => ['title' => '网络模式', 'description' => '网络模式', 'type' => 'string'],
+ 'vpcId' => ['title' => '专有网络ID', 'description' => '专有网络ID', 'type' => 'string'],
'vswitchIds' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
+ 'items' => ['type' => 'string', 'description' => ''],
+ 'description' => '',
],
],
+ 'description' => '',
],
'GetBrowserSessionResult' => [
'title' => '获取浏览器会话结果',
'description' => '获取浏览器会话结果',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E',
- ],
- 'data' => [
- 'title' => '数据',
- 'description' => '数据',
- 'example' => '{}',
- '$ref' => '#/components/schemas/BrowserSessionOut',
- ],
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '请求ID', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '数据', 'description' => '数据', 'example' => '{}', '$ref' => '#/components/schemas/BrowserSessionOut'],
],
],
'GetCodeInterpreterSessionResult' => [
@@ -3088,121 +2238,90 @@
'description' => '获取代码解释器会话结果',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '请求ID',
- 'type' => 'string',
- ],
- 'data' => [
- 'title' => '数据',
- 'description' => '数据',
- '$ref' => '#/components/schemas/CodeInterpreterSessionOut',
- ],
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string'],
+ 'requestId' => ['title' => '请求ID', 'description' => '请求ID', 'type' => 'string'],
+ 'data' => ['title' => '数据', 'description' => '数据', '$ref' => '#/components/schemas/CodeInterpreterSessionOut'],
],
],
'GetCredentialOutput' => [
'type' => 'object',
'properties' => [
- 'credentialId' => [
- 'type' => 'string',
- ],
- 'credentialName' => [
- 'type' => 'string',
- ],
- 'description' => [
- 'type' => 'string',
- ],
- 'credentialAuthType' => [
- 'type' => 'string',
- ],
- 'credentialSourceType' => [
- 'type' => 'string',
- ],
- 'enabled' => [
- 'type' => 'boolean',
- ],
- 'credentialSecret' => [
- 'type' => 'string',
- ],
+ 'credentialId' => ['type' => 'string', 'description' => ''],
+ 'credentialName' => ['type' => 'string', 'description' => ''],
+ 'description' => ['type' => 'string', 'description' => ''],
+ 'credentialAuthType' => ['type' => 'string', 'description' => ''],
+ 'credentialSourceType' => ['type' => 'string', 'description' => ''],
+ 'enabled' => ['type' => 'boolean', 'description' => ''],
+ 'credentialSecret' => ['type' => 'string', 'description' => ''],
'credentialPublicConfig' => [
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- ],
- ],
- 'createdAt' => [
- 'type' => 'string',
- ],
- 'updatedAt' => [
- 'type' => 'string',
+ 'additionalProperties' => ['type' => 'string', 'description' => ''],
+ 'description' => '',
],
+ 'createdAt' => ['type' => 'string', 'description' => ''],
+ 'updatedAt' => ['type' => 'string', 'description' => ''],
'relatedResources' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/RelatedResource',
- ],
+ 'items' => ['$ref' => '#/components/schemas/RelatedResource', 'description' => ''],
+ 'description' => '',
],
],
+ 'description' => '',
],
'GetDiscoveryEndpointsOutput' => [
'type' => 'object',
'properties' => [
+ 'credentialName' => ['type' => 'string', 'deprecated' => true],
'discoveryEndpoints' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/DiscoveryEndpoint',
- ],
+ 'items' => ['$ref' => '#/components/schemas/DiscoveryEndpoint'],
],
],
],
'GetDiscoveryEndpointsResult' => [
'type' => 'object',
'properties' => [
- 'code' => [
- 'type' => 'string',
- ],
- 'requestId' => [
- 'type' => 'string',
- ],
- 'data' => [
- '$ref' => '#/components/schemas/GetDiscoveryEndpointsOutput',
+ 'code' => ['type' => 'string'],
+ 'requestId' => ['type' => 'string'],
+ 'data' => ['$ref' => '#/components/schemas/GetDiscoveryEndpointsOutput'],
+ ],
+ ],
+ 'GetFunagentVersionsOutput' => [
+ 'title' => '获取 Funagent 版本列表输出',
+ 'type' => 'object',
+ 'properties' => [
+ 'items' => [
+ 'title' => '版本条目列表',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/FunagentVersionItem'],
],
],
],
+ 'GetFunagentVersionsResult' => [
+ 'title' => '获取 Funagent 版本列表结果',
+ 'description' => '与 ListFunagentsResult 一致的信封:code、requestId、data',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '版本列表数据', '$ref' => '#/components/schemas/GetFunagentVersionsOutput'],
+ ],
+ ],
'GetToolOutput' => [
'type' => 'object',
'properties' => [
- 'success' => [
- 'type' => 'boolean',
- ],
- 'data' => [
- '$ref' => '#/components/schemas/ToolInfo',
- ],
+ 'success' => ['type' => 'boolean', 'description' => ''],
+ 'data' => ['$ref' => '#/components/schemas/ToolInfo', 'description' => ''],
],
+ 'description' => '',
],
'GrayTrafficWeight' => [
'title' => '灰度流量权重',
'description' => '单个版本的灰度流量权重配置',
'type' => 'object',
'properties' => [
- 'version' => [
- 'title' => '版本号',
- 'description' => '灰度版本号',
- 'type' => 'string',
- ],
- 'weight' => [
- 'title' => '权重',
- 'description' => '流量权重比例(0.0-1.0)',
- 'type' => 'number',
- 'format' => 'float',
- 'maximum' => '1',
- 'minimum' => '0',
- ],
+ 'version' => ['title' => '版本号', 'description' => '灰度版本号', 'type' => 'string'],
+ 'weight' => ['title' => '权重', 'description' => '流量权重比例(0.0-1.0)', 'type' => 'number', 'format' => 'float', 'maximum' => '1', 'minimum' => '0'],
],
],
'HealthCheckConfig' => [
@@ -3210,52 +2329,12 @@
'description' => '智能体运行时的健康检查配置,用于监控运行时实例的健康状态',
'type' => 'object',
'properties' => [
- 'httpGetUrl' => [
- 'title' => 'HTTP GET URL',
- 'description' => '用于健康检查的HTTP GET请求的URL地址',
- 'type' => 'string',
- 'maximum' => '2048',
- ],
- 'initialDelaySeconds' => [
- 'title' => '初始延迟秒数',
- 'description' => '在容器启动后,首次执行健康检查前的延迟时间(秒)',
- 'type' => 'integer',
- 'format' => 'int32',
- 'maximum' => '120',
- 'minimum' => '0',
- ],
- 'periodSeconds' => [
- 'title' => '检查周期秒数',
- 'description' => '执行健康检查的时间间隔(秒)',
- 'type' => 'integer',
- 'format' => 'int32',
- 'maximum' => '120',
- 'minimum' => '1',
- ],
- 'timeoutSeconds' => [
- 'title' => '超时秒数',
- 'description' => '健康检查的超时时间(秒)',
- 'type' => 'integer',
- 'format' => 'int32',
- 'maximum' => '3',
- 'minimum' => '1',
- ],
- 'failureThreshold' => [
- 'title' => '失败阈值',
- 'description' => '在将容器视为不健康之前,连续失败的健康检查次数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'maximum' => '120',
- 'minimum' => '1',
- ],
- 'successThreshold' => [
- 'title' => '成功阈值',
- 'description' => '在将容器视为健康之前,连续成功的健康检查次数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'maximum' => '120',
- 'minimum' => '1',
- ],
+ 'httpGetUrl' => ['title' => 'HTTP GET URL', 'description' => '用于健康检查的HTTP GET请求的URL地址', 'type' => 'string', 'maximum' => '2048'],
+ 'initialDelaySeconds' => ['title' => '初始延迟秒数', 'description' => '在容器启动后,首次执行健康检查前的延迟时间(秒)', 'type' => 'integer', 'format' => 'int32', 'maximum' => '120', 'minimum' => '0'],
+ 'periodSeconds' => ['title' => '检查周期秒数', 'description' => '执行健康检查的时间间隔(秒)', 'type' => 'integer', 'format' => 'int32', 'maximum' => '120', 'minimum' => '1'],
+ 'timeoutSeconds' => ['title' => '超时秒数', 'description' => '健康检查的超时时间(秒)', 'type' => 'integer', 'format' => 'int32', 'maximum' => '3', 'minimum' => '1'],
+ 'failureThreshold' => ['title' => '失败阈值', 'description' => '在将容器视为不健康之前,连续失败的健康检查次数', 'type' => 'integer', 'format' => 'int32', 'maximum' => '120', 'minimum' => '1'],
+ 'successThreshold' => ['title' => '成功阈值', 'description' => '在将容器视为健康之前,连续成功的健康检查次数', 'type' => 'integer', 'format' => 'int32', 'maximum' => '120', 'minimum' => '1'],
],
],
'HealthCheckConfiguration' => [
@@ -3263,202 +2342,144 @@
'description' => '智能体运行时的健康检查配置,用于监控运行时实例的健康状态',
'type' => 'object',
'properties' => [
- 'httpGetUrl' => [
- 'title' => 'HTTP GET URL',
- 'description' => '用于健康检查的HTTP GET请求的URL地址',
- 'type' => 'string',
- 'maximum' => '2048',
- 'example' => '/ready',
- ],
- 'initialDelaySeconds' => [
- 'title' => '初始延迟秒数',
- 'description' => '在容器启动后,首次执行健康检查前的延迟时间(秒)',
- 'type' => 'integer',
- 'format' => 'int32',
- 'maximum' => '120',
- 'minimum' => '0',
- 'example' => '30',
- ],
- 'periodSeconds' => [
- 'title' => '检查周期秒数',
- 'description' => '执行健康检查的时间间隔(秒)',
- 'type' => 'integer',
- 'format' => 'int32',
- 'maximum' => '120',
- 'minimum' => '1',
- 'example' => '30',
- ],
- 'timeoutSeconds' => [
- 'title' => '超时秒数',
- 'description' => '健康检查的超时时间(秒)',
- 'type' => 'integer',
- 'format' => 'int32',
- 'maximum' => '3',
- 'minimum' => '1',
- 'example' => '3',
- ],
- 'failureThreshold' => [
- 'title' => '失败阈值',
- 'description' => '在将容器视为不健康之前,连续失败的健康检查次数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'maximum' => '120',
- 'minimum' => '1',
- 'example' => '3',
- ],
- 'successThreshold' => [
- 'title' => '成功阈值',
- 'description' => '在将容器视为健康之前,连续成功的健康检查次数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'maximum' => '120',
- 'minimum' => '1',
- 'example' => '1',
- ],
+ 'httpGetUrl' => ['title' => 'HTTP GET URL', 'description' => '用于健康检查的HTTP GET请求的URL地址', 'type' => 'string', 'maximum' => '2048', 'example' => '/ready'],
+ 'initialDelaySeconds' => ['title' => '初始延迟秒数', 'description' => '在容器启动后,首次执行健康检查前的延迟时间(秒)', 'type' => 'integer', 'format' => 'int32', 'maximum' => '120', 'minimum' => '0', 'example' => '30'],
+ 'periodSeconds' => ['title' => '检查周期秒数', 'description' => '执行健康检查的时间间隔(秒)', 'type' => 'integer', 'format' => 'int32', 'maximum' => '120', 'minimum' => '1', 'example' => '30'],
+ 'timeoutSeconds' => ['title' => '超时秒数', 'description' => '健康检查的超时时间(秒)', 'type' => 'integer', 'format' => 'int32', 'maximum' => '3', 'minimum' => '1', 'example' => '3'],
+ 'failureThreshold' => ['title' => '失败阈值', 'description' => '在将容器视为不健康之前,连续失败的健康检查次数', 'type' => 'integer', 'format' => 'int32', 'maximum' => '120', 'minimum' => '1', 'example' => '3'],
+ 'successThreshold' => ['title' => '成功阈值', 'description' => '在将容器视为健康之前,连续成功的健康检查次数', 'type' => 'integer', 'format' => 'int32', 'maximum' => '120', 'minimum' => '1', 'example' => '1'],
],
],
- 'KnowledgeBase' => [
- 'title' => '知识库结构体',
+ 'Hook' => [
'type' => 'object',
'properties' => [
- 'knowledgeBaseId' => [
- 'title' => '知识库Id',
- 'type' => 'string',
- ],
- 'knowledgeBaseName' => [
- 'title' => '知识库名称',
- 'type' => 'string',
- ],
- 'description' => [
- 'title' => '知识库描述',
+ 'url' => ['type' => 'string', 'required' => true],
+ 'description' => ['type' => 'string'],
+ 'apiVersion' => ['type' => 'string'],
+ 'enabled' => ['type' => 'boolean'],
+ 'timeout' => ['type' => 'integer', 'format' => 'int32'],
+ 'event' => [
'type' => 'string',
+ 'required' => true,
+ 'enum' => ['PRE_LIST_TOOLS', 'PRE_CALL_TOOL', 'POST_LIST_TOOLS', 'POST_CALL_TOOL'],
],
- 'provider' => [
- 'title' => '知识库供应商名称(例如ragflow,bailian)',
- 'type' => 'string',
+ 'headers' => [
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string'],
],
- 'credentialName' => [
- 'title' => '身份凭证名称',
+ ],
+ ],
+ 'IMBotInfo' => [
+ 'title' => 'IM Bot 信息',
+ 'description' => '成功响应 data 中单条;不包含 botBizSecret、完整 metadata(与 io.IMBotInfo 一致)',
+ 'type' => 'object',
+ 'properties' => [
+ 'id' => ['type' => 'string'],
+ 'tenantId' => ['type' => 'string'],
+ 'imChannelServerResourceName' => ['type' => 'string'],
+ 'botBizId' => ['type' => 'string'],
+ 'botName' => ['type' => 'string'],
+ 'agentRuntimeId' => ['type' => 'string'],
+ 'botBizType' => [
+ 'description' => 'dingtalk、wecom、feishu、custom',
'type' => 'string',
+ 'enum' => ['dingtalk', 'wecom', 'feishu', 'custom'],
],
- 'createdAt' => [
- 'title' => '创建时间',
+ 'botMode' => [
+ 'description' => 'standard、custom',
'type' => 'string',
+ 'enum' => ['standard', 'custom'],
],
- 'lastUpdatedAt' => [
- 'title' => '最近的更新时间',
+ 'status' => [
'type' => 'string',
+ 'enum' => ['running', 'stopped'],
],
+ 'lastMessageTime' => ['description' => '可选', 'type' => 'string'],
+ 'currentInstances' => ['description' => '可选;来自账号元数据 scaling.currentInstances,同一租户下各 Bot 响应中值相同', 'type' => 'integer', 'format' => 'int64'],
+ 'description' => ['description' => 'Bot 描述信息', 'type' => 'string'],
+ 'metadata' => ['$ref' => '#/components/schemas/IMBotMetadata'],
+ 'createdAt' => ['type' => 'string'],
+ 'updatedAt' => ['type' => 'string'],
+ ],
+ ],
+ 'IMBotMetadata' => [
+ 'title' => 'IM Bot 元数据',
+ 'description' => '创建、更新请求体中 metadata;标准模式下须满足运行时绑定校验;解码兼容历史字段名见 IMBotMetadata.UnmarshalJSON;IMBotInfo 不返回完整 metadata',
+ 'type' => 'object',
+ 'properties' => [
+ 'agentRuntimeId' => ['description' => '绑定的 Agent Runtime UUID', 'type' => 'string'],
+ 'agentRuntimeEndpointId' => ['description' => '可选', 'type' => 'string'],
+ 'agentRuntimeEndpointUrl' => ['description' => '标准模式下必填:下游 Agent 可调用的 URL;custom 模式可省略', 'type' => 'string'],
+ 'protocolType' => ['description' => '标准模式下必填,与 ValidateAgentRuntimeProtocolTypeValue 一致(大小写敏感);custom 模式可省略', 'type' => 'string'],
+ 'role' => ['description' => '不写入单 Bot 持久化 JSON;用于首次/更新时设置租户级 FC RAM 执行角色 ARN(acs:ram::...);FC 启用且非 custom 时按服务逻辑校验', 'type' => 'string', 'maxLength' => 2048],
+ 'customFunctionMeta' => ['description' => '自定义函数元信息;可选;与后端 IMBotMetadata 持久化字段一致', 'type' => 'string', 'maxLength' => 128],
+ ],
+ ],
+ 'IMBotResult' => [
+ 'title' => 'IM Bot 单条操作响应',
+ 'description' => '成功:code=OK,data 为 IMBotInfo;失败见统一错误 JSON(含 message 等,与 respond.go 一致)',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['description' => 'OK 表示成功', 'type' => 'string'],
+ 'requestId' => ['description' => '与响应头 x-funagent-request-id 对应', 'type' => 'string'],
+ 'data' => ['$ref' => '#/components/schemas/IMBotInfo'],
+ ],
+ ],
+ 'KnowledgeBase' => [
+ 'title' => '知识库结构体',
+ 'type' => 'object',
+ 'properties' => [
+ 'knowledgeBaseId' => ['title' => '知识库Id', 'type' => 'string'],
+ 'knowledgeBaseName' => ['title' => '知识库名称', 'type' => 'string'],
+ 'description' => ['title' => '知识库描述', 'type' => 'string'],
+ 'provider' => ['title' => '知识库供应商名称(例如ragflow,bailian)', 'type' => 'string'],
+ 'credentialName' => ['title' => '身份凭证名称', 'type' => 'string'],
+ 'createdAt' => ['title' => '创建时间', 'type' => 'string'],
+ 'lastUpdatedAt' => ['title' => '最近的更新时间', 'type' => 'string'],
'providerSettings' => [
'title' => '知识库供应商配置',
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'any',
- ],
+ 'additionalProperties' => ['type' => 'any'],
],
'retrieveSettings' => [
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'any',
- ],
+ 'additionalProperties' => ['type' => 'any'],
],
+ 'workspaceId' => ['title' => '工作空间ID', 'type' => 'string'],
],
],
'KnowledgeBaseResult' => [
'type' => 'object',
'properties' => [
- 'code' => [
- 'type' => 'string',
- ],
- 'requestId' => [
- 'type' => 'string',
- ],
- 'data' => [
- '$ref' => '#/components/schemas/KnowledgeBase',
- ],
+ 'code' => ['type' => 'string'],
+ 'requestId' => ['type' => 'string'],
+ 'data' => ['$ref' => '#/components/schemas/KnowledgeBase'],
],
],
- 'LLMAPIConfiguration' => [
+ 'ListAgentResourcesOutput' => [
+ 'title' => '智能体资源列表输出',
+ 'description' => '获取智能体资源列表的输出数据结构',
'type' => 'object',
'properties' => [
- 'removeBasePathOnForward' => [
- 'type' => 'boolean',
- ],
- 'basePath' => [
- 'type' => 'string',
- ],
- 'type' => [
- 'type' => 'string',
- ],
- 'modelCategory' => [
- 'type' => 'string',
- ],
- 'aiProtocols' => [
- 'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
- ],
- 'deployConfigs' => [
- 'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/LLMDeployConfig',
- ],
- ],
- 'attachPolicyConfigs' => [
+ 'pageNumber' => ['title' => '页码', 'description' => '当前页码,从 1 开始计数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'pageSize' => ['title' => '页面大小', 'description' => '每页返回的记录数量', 'type' => 'integer', 'format' => 'int32', 'example' => '20'],
+ 'total' => ['title' => '总数', 'description' => '符合条件的资源总数', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
+ 'items' => [
+ 'title' => '资源列表',
+ 'description' => '智能体资源的列表',
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/AttachPolicyConfig',
- ],
- ],
- ],
- ],
- 'LLMConfig' => [
- 'type' => 'object',
- 'properties' => [
- 'config' => [
- 'type' => 'object',
- 'properties' => [
- 'model' => [
- 'type' => 'string',
- ],
- ],
- ],
- 'modelServiceName' => [
- 'type' => 'string',
+ 'items' => ['$ref' => '#/components/schemas/AgentResource'],
],
],
],
- 'LLMDeployConfig' => [
+ 'ListAgentResourcesResult' => [
+ 'title' => '智能体资源列表结果',
+ 'description' => '获取智能体资源列表的统一结果格式',
'type' => 'object',
'properties' => [
- 'backendScene' => [
- 'type' => 'string',
- ],
- 'autoDeploy' => [
- 'type' => 'boolean',
- ],
- 'gatewayType' => [
- 'type' => 'string',
- ],
- 'serviceConfigs' => [
- 'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/TargetServiceConfig',
- ],
- ],
- 'policyConfigs' => [
- 'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/PolicyConfig',
- ],
- ],
- 'customDomainIds' => [
- 'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
- ],
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '智能体资源列表数据', 'description' => '智能体资源列表的详细信息', 'example' => '{}', '$ref' => '#/components/schemas/ListAgentResourcesOutput'],
],
],
'ListAgentRuntimeEndpointsInput' => [
@@ -3466,29 +2487,15 @@
'description' => '用于列出智能体运行时端点的请求参数',
'type' => 'object',
'properties' => [
- 'endpointName' => [
- 'title' => '端点名称',
- 'description' => '按端点名称过滤',
- 'type' => 'string',
- ],
+ 'endpointName' => ['title' => '端点名称', 'description' => '按端点名称过滤', 'type' => 'string'],
'statuses' => [
'title' => '状态列表',
'description' => '按状态过滤',
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
- ],
- 'pageNumber' => [
- 'title' => '页码',
- 'description' => '页码',
- 'type' => 'integer',
- ],
- 'pageSize' => [
- 'title' => '页面大小',
- 'description' => '每页记录数',
- 'type' => 'integer',
+ 'items' => ['type' => 'string', 'description' => ''],
],
+ 'pageNumber' => ['title' => '页码', 'description' => '页码', 'type' => 'integer'],
+ 'pageSize' => ['title' => '页面大小', 'description' => '每页记录数', 'type' => 'integer'],
],
],
'ListAgentRuntimeEndpointsOutput' => [
@@ -3500,25 +2507,11 @@
'title' => '项目列表',
'description' => '项目列表',
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/AgentRuntimeEndpoint',
- ],
- ],
- 'pageNumber' => [
- 'title' => '页码',
- 'description' => '页码',
- 'type' => 'integer',
- ],
- 'pageSize' => [
- 'title' => '页面大小',
- 'description' => '页面大小',
- 'type' => 'integer',
- ],
- 'total' => [
- 'title' => '总数',
- 'description' => '总数',
- 'type' => 'integer',
+ 'items' => ['$ref' => '#/components/schemas/AgentRuntimeEndpoint', 'description' => ''],
],
+ 'pageNumber' => ['title' => '页码', 'description' => '页码', 'type' => 'integer'],
+ 'pageSize' => ['title' => '页面大小', 'description' => '页面大小', 'type' => 'integer'],
+ 'total' => ['title' => '总数', 'description' => '总数', 'type' => 'integer'],
],
],
'ListAgentRuntimeEndpointsResult' => [
@@ -3526,41 +2519,68 @@
'description' => '获取智能体运行时端点列表的统一结果格式',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- 'example' => 'SUCCESS',
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '智能体运行时端点列表数据', 'description' => '智能体运行时端点列表的详细信息', 'example' => '{}', '$ref' => '#/components/schemas/ListAgentRuntimeEndpointsOutput'],
+ ],
+ ],
+ 'ListAgentRuntimesInput' => [
+ 'title' => '列出智能体运行时输入',
+ 'description' => '用于列出智能体运行时的请求参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'agentRuntimeName' => ['title' => '智能体运行时名称', 'description' => '按名称过滤', 'type' => 'string', 'example' => 'my-agent-runtime'],
+ 'statuses' => [
+ 'title' => '状态列表',
+ 'description' => '按状态过滤',
+ 'type' => 'array',
+ 'items' => ['type' => 'string', 'description' => ''],
+ 'example' => 'READY,CREATING',
],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '唯一的请求标识符,用于问题追踪',
- 'type' => 'string',
- 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E',
+ 'systemTags' => [
+ 'title' => '系统标签',
+ 'description' => '按系统标签过滤',
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
+ 'example' => 'acs:ecs:tag1,acs:ecs:tag2',
],
- 'data' => [
- 'title' => '智能体运行时端点列表数据',
- 'description' => '智能体运行时端点列表的详细信息',
- 'example' => '{}',
- '$ref' => '#/components/schemas/ListAgentRuntimeEndpointsOutput',
+ 'pageNumber' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'example' => '1'],
+ 'pageSize' => ['title' => '页面大小', 'description' => '每页记录数', 'type' => 'integer', 'example' => '20'],
+ ],
+ ],
+ 'ListAgentRuntimesOutput' => [
+ 'title' => '智能体运行时列表输出',
+ 'description' => '智能体运行时列表输出',
+ 'type' => 'object',
+ 'properties' => [
+ 'pageNumber' => ['title' => '页码', 'description' => '页码', 'type' => 'integer'],
+ 'pageSize' => ['title' => '页面大小', 'description' => '页面大小', 'type' => 'integer'],
+ 'total' => ['title' => '总数', 'description' => '总数', 'type' => 'integer'],
+ 'items' => [
+ 'title' => '项目列表',
+ 'description' => '项目列表',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/AgentRuntime', 'description' => ''],
],
],
],
+ 'ListAgentRuntimesResult' => [
+ 'title' => '智能体运行时列表结果',
+ 'description' => '获取智能体运行时列表的统一结果格式',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '智能体运行时列表数据', 'description' => '智能体运行时列表的详细信息', 'example' => '{}', '$ref' => '#/components/schemas/ListAgentRuntimesOutput'],
+ ],
+ ],
'ListAgentRuntimeVersionsInput' => [
'title' => '列出智能体运行时版本输入',
'description' => '用于列出智能体运行时版本的请求参数',
'type' => 'object',
'properties' => [
- 'pageNumber' => [
- 'title' => '页码',
- 'description' => '页码',
- 'type' => 'integer',
- ],
- 'pageSize' => [
- 'title' => '页面大小',
- 'description' => '每页记录数',
- 'type' => 'integer',
- ],
+ 'pageNumber' => ['title' => '页码', 'description' => '页码', 'type' => 'integer'],
+ 'pageSize' => ['title' => '页面大小', 'description' => '每页记录数', 'type' => 'integer'],
],
],
'ListAgentRuntimeVersionsOutput' => [
@@ -3572,25 +2592,11 @@
'title' => '项目列表',
'description' => '项目列表',
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/AgentRuntimeVersion',
- ],
- ],
- 'pageNumber' => [
- 'title' => '页码',
- 'description' => '页码',
- 'type' => 'integer',
- ],
- 'pageSize' => [
- 'title' => '页面大小',
- 'description' => '页面大小',
- 'type' => 'integer',
- ],
- 'total' => [
- 'title' => '总数',
- 'description' => '总数',
- 'type' => 'integer',
+ 'items' => ['$ref' => '#/components/schemas/AgentRuntimeVersion', 'description' => ''],
],
+ 'pageNumber' => ['title' => '页码', 'description' => '页码', 'type' => 'integer'],
+ 'pageSize' => ['title' => '页面大小', 'description' => '页面大小', 'type' => 'integer'],
+ 'total' => ['title' => '总数', 'description' => '总数', 'type' => 'integer'],
],
],
'ListAgentRuntimeVersionsResult' => [
@@ -3598,138 +2604,64 @@
'description' => '获取智能体运行时版本列表的统一结果格式',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '唯一的请求标识符,用于问题追踪',
- 'type' => 'string',
- 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E',
- ],
- 'data' => [
- 'title' => '智能体运行时版本列表数据',
- 'description' => '智能体运行时版本列表的详细信息',
- 'example' => '{}',
- '$ref' => '#/components/schemas/ListAgentRuntimeVersionsOutput',
- ],
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '智能体运行时版本列表数据', 'description' => '智能体运行时版本列表的详细信息', 'example' => '{}', '$ref' => '#/components/schemas/ListAgentRuntimeVersionsOutput'],
],
],
- 'ListAgentRuntimesInput' => [
- 'title' => '列出智能体运行时输入',
- 'description' => '用于列出智能体运行时的请求参数',
+ 'ListBrowserSessionResult' => [
+ 'title' => '浏览器会话列表结果',
+ 'description' => '浏览器会话列表结果',
'type' => 'object',
'properties' => [
- 'agentRuntimeName' => [
- 'title' => '智能体运行时名称',
- 'description' => '按名称过滤',
- 'type' => 'string',
- 'example' => 'my-agent-runtime',
- ],
- 'statuses' => [
- 'title' => '状态列表',
- 'description' => '按状态过滤',
- 'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
- 'example' => 'READY,CREATING',
- ],
- 'pageNumber' => [
- 'title' => '页码',
- 'description' => '页码',
- 'type' => 'integer',
- 'example' => '1',
- ],
- 'pageSize' => [
- 'title' => '页面大小',
- 'description' => '每页记录数',
- 'type' => 'integer',
- 'example' => '20',
- ],
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '请求ID', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '数据', 'description' => '数据', 'example' => '{}', '$ref' => '#/components/schemas/BrowserSessionListOut'],
],
],
- 'ListAgentRuntimesOutput' => [
- 'title' => '智能体运行时列表输出',
- 'description' => '智能体运行时列表输出',
+ 'ListBrowserSessionsData' => [
+ 'title' => '浏览器会话列表数据',
+ 'description' => '浏览器会话列表数据',
'type' => 'object',
'properties' => [
- 'items' => [
- 'title' => '项目列表',
- 'description' => '项目列表',
+ 'sessions' => [
+ 'title' => '会话列表',
+ 'description' => '会话列表',
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/AgentRuntime',
- ],
- ],
- 'pageNumber' => [
- 'title' => '页码',
- 'description' => '页码',
- 'type' => 'integer',
- ],
- 'pageSize' => [
- 'title' => '页面大小',
- 'description' => '页面大小',
- 'type' => 'integer',
- ],
- 'total' => [
- 'title' => '总数',
- 'description' => '总数',
- 'type' => 'integer',
+ 'items' => ['$ref' => '#/components/schemas/BrowserSessionItem', 'description' => ''],
],
+ 'total' => ['title' => '总数', 'description' => '总数', 'type' => 'integer', 'format' => 'int64'],
+ 'pageNumber' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32'],
+ 'pageSize' => ['title' => '页大小', 'description' => '页大小', 'type' => 'integer', 'format' => 'int32'],
+ 'maxResults' => ['title' => '最大结果数', 'description' => '最大结果数', 'type' => 'integer', 'format' => 'int32'],
+ 'nextToken' => ['title' => '下一页标记', 'description' => '下一页标记', 'type' => 'string'],
],
],
- 'ListAgentRuntimesResult' => [
- 'title' => '智能体运行时列表结果',
- 'description' => '获取智能体运行时列表的统一结果格式',
+ 'ListBrowserSessionsOutput' => [
+ 'title' => '浏览器会话列表输出',
+ 'description' => '浏览器会话列表输出',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '唯一的请求标识符,用于问题追踪',
- 'type' => 'string',
- 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E',
- ],
- 'data' => [
- 'title' => '智能体运行时列表数据',
- 'description' => '智能体运行时列表的详细信息',
- 'example' => '{}',
- '$ref' => '#/components/schemas/ListAgentRuntimesOutput',
+ 'items' => [
+ 'title' => '项目列表',
+ 'description' => '项目列表',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/BrowserSession', 'description' => ''],
],
+ 'pageNumber' => ['title' => '页码', 'description' => '页码', 'type' => 'integer'],
+ 'pageSize' => ['title' => '页面大小', 'description' => '页面大小', 'type' => 'integer'],
+ 'total' => ['title' => '总数', 'description' => '总数', 'type' => 'integer'],
],
],
- 'ListBrowserSessionResult' => [
+ 'ListBrowserSessionsResult' => [
'title' => '浏览器会话列表结果',
- 'description' => '浏览器会话列表结果',
+ 'description' => '获取浏览器会话列表的统一结果格式',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E',
- ],
- 'data' => [
- 'title' => '数据',
- 'description' => '数据',
- 'example' => '{}',
- '$ref' => '#/components/schemas/BrowserSessionListOut',
- ],
+ 'code' => ['title' => '响应状态码', 'description' => 'HTTP状态码,200表示成功', 'type' => 'integer'],
+ 'success' => ['title' => '请求是否成功', 'description' => 'true表示请求成功,false表示失败', 'type' => 'boolean'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string'],
+ 'data' => ['title' => '浏览器会话列表数据', 'description' => '浏览器会话列表的详细信息', '$ref' => '#/components/schemas/ListBrowserSessionsOutput'],
],
],
'ListBrowsersInput' => [
@@ -3737,24 +2669,9 @@
'description' => '列出浏览器输入',
'type' => 'object',
'properties' => [
- 'browserName' => [
- 'title' => '浏览器名称',
- 'description' => '按浏览器名称过滤',
- 'type' => 'string',
- 'example' => 'my-browser',
- ],
- 'pageSize' => [
- 'title' => '页面大小',
- 'description' => '页面大小',
- 'type' => 'integer',
- 'example' => '20',
- ],
- 'pageNumber' => [
- 'title' => '页码',
- 'description' => '页码',
- 'type' => 'integer',
- 'example' => '1',
- ],
+ 'browserName' => ['title' => '浏览器名称', 'description' => '按浏览器名称过滤', 'type' => 'string', 'example' => 'my-browser'],
+ 'pageSize' => ['title' => '页面大小', 'description' => '页面大小', 'type' => 'integer', 'example' => '20'],
+ 'pageNumber' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'example' => '1'],
],
],
'ListBrowsersOutput' => [
@@ -3762,31 +2679,14 @@
'description' => '列出浏览器输出',
'type' => 'object',
'properties' => [
- 'pageNumber' => [
- 'title' => '页码',
- 'description' => '页码',
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'pageSize' => [
- 'title' => '页面大小',
- 'description' => '页面大小',
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'total' => [
- 'title' => '总数',
- 'description' => '总数',
- 'type' => 'integer',
- 'format' => 'int64',
- ],
+ 'pageNumber' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32'],
+ 'pageSize' => ['title' => '页面大小', 'description' => '页面大小', 'type' => 'integer', 'format' => 'int32'],
+ 'total' => ['title' => '总数', 'description' => '总数', 'type' => 'integer', 'format' => 'int64'],
'items' => [
'title' => '浏览器列表',
'description' => '浏览器列表',
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/Browser',
- ],
+ 'items' => ['$ref' => '#/components/schemas/Browser', 'description' => ''],
],
],
],
@@ -3795,24 +2695,9 @@
'description' => '获取浏览器列表的统一结果格式',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '唯一的请求标识符,用于问题追踪',
- 'type' => 'string',
- 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E',
- ],
- 'data' => [
- 'title' => '浏览器列表数据',
- 'description' => '浏览器列表的详细信息',
- 'example' => '{}',
- '$ref' => '#/components/schemas/ListBrowsersOutput',
- ],
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '浏览器列表数据', 'description' => '浏览器列表的详细信息', 'example' => '{}', '$ref' => '#/components/schemas/ListBrowsersOutput'],
],
],
'ListCodeInterpreterSessionResult' => [
@@ -3820,24 +2705,54 @@
'description' => '代码解释器会话列表结果',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E',
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '请求ID', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '数据', 'description' => '数据', 'example' => '{}', '$ref' => '#/components/schemas/CodeInterpreterSessionListOut'],
+ ],
+ ],
+ 'ListCodeInterpreterSessionsData' => [
+ 'title' => '代码解释器会话列表数据',
+ 'description' => '代码解释器会话列表数据',
+ 'type' => 'object',
+ 'properties' => [
+ 'sessions' => [
+ 'title' => '会话列表',
+ 'description' => '会话列表',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/CodeInterpreterSessionItem', 'description' => ''],
],
- 'data' => [
- 'title' => '数据',
- 'description' => '数据',
- 'example' => '{}',
- '$ref' => '#/components/schemas/CodeInterpreterSessionListOut',
+ 'total' => ['title' => '总数', 'description' => '总数', 'type' => 'integer', 'format' => 'int64'],
+ 'pageNumber' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32'],
+ 'pageSize' => ['title' => '页大小', 'description' => '页大小', 'type' => 'integer', 'format' => 'int32'],
+ 'maxResults' => ['title' => '最大结果数', 'description' => '最大结果数', 'type' => 'integer', 'format' => 'int32'],
+ 'nextToken' => ['title' => '下一页标记', 'description' => '下一页标记', 'type' => 'string'],
+ ],
+ ],
+ 'ListCodeInterpreterSessionsOutput' => [
+ 'title' => '代码解释器会话列表输出',
+ 'description' => '代码解释器会话列表输出',
+ 'type' => 'object',
+ 'properties' => [
+ 'items' => [
+ 'title' => '项目列表',
+ 'description' => '项目列表',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/CodeInterpreterSession', 'description' => ''],
],
+ 'pageNumber' => ['title' => '页码', 'description' => '页码', 'type' => 'integer'],
+ 'pageSize' => ['title' => '页面大小', 'description' => '页面大小', 'type' => 'integer'],
+ 'total' => ['title' => '总数', 'description' => '总数', 'type' => 'integer'],
+ ],
+ ],
+ 'ListCodeInterpreterSessionsResult' => [
+ 'title' => '代码解释器会话列表结果',
+ 'description' => '获取代码解释器会话列表的统一结果格式',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['title' => '响应状态码', 'description' => 'HTTP状态码,200表示成功', 'type' => 'integer'],
+ 'success' => ['title' => '请求是否成功', 'description' => 'true表示请求成功,false表示失败', 'type' => 'boolean'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string'],
+ 'data' => ['title' => '代码解释器会话列表数据', 'description' => '代码解释器会话列表的详细信息', '$ref' => '#/components/schemas/ListCodeInterpreterSessionsOutput'],
],
],
'ListCodeInterpretersInput' => [
@@ -3845,25 +2760,9 @@
'description' => '列出代码解释器输入',
'type' => 'object',
'properties' => [
- 'codeInterpreterName' => [
- 'title' => '代码解释器名称',
- 'description' => '按代码解释器名称过滤',
- 'type' => 'string',
- ],
- 'pageNumber' => [
- 'title' => '页码',
- 'description' => '页码',
- 'type' => 'integer',
- 'minimum' => '1',
- 'default' => '1',
- ],
- 'pageSize' => [
- 'title' => '页面大小',
- 'description' => '页面大小',
- 'type' => 'integer',
- 'minimum' => '1',
- 'default' => '20',
- ],
+ 'codeInterpreterName' => ['title' => '代码解释器名称', 'description' => '按代码解释器名称过滤', 'type' => 'string'],
+ 'pageNumber' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'minimum' => '1', 'default' => '1'],
+ 'pageSize' => ['title' => '页面大小', 'description' => '页面大小', 'type' => 'integer', 'minimum' => '1', 'default' => '20'],
],
],
'ListCodeInterpretersOutput' => [
@@ -3871,31 +2770,14 @@
'description' => '列出代码解释器输出',
'type' => 'object',
'properties' => [
- 'pageNumber' => [
- 'title' => '页码',
- 'description' => '页码',
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'pageSize' => [
- 'title' => '页面大小',
- 'description' => '页面大小',
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'total' => [
- 'title' => '总数',
- 'description' => '总数',
- 'type' => 'integer',
- 'format' => 'int64',
- ],
+ 'pageNumber' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32'],
+ 'pageSize' => ['title' => '页面大小', 'description' => '页面大小', 'type' => 'integer', 'format' => 'int32'],
+ 'total' => ['title' => '总数', 'description' => '总数', 'type' => 'integer', 'format' => 'int64'],
'items' => [
'title' => '代码解释器列表',
'description' => '代码解释器列表',
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/CodeInterpreter',
- ],
+ 'items' => ['$ref' => '#/components/schemas/CodeInterpreter', 'description' => ''],
],
],
],
@@ -3904,95 +2786,76 @@
'description' => '获取代码解释器列表的统一结果格式',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '唯一的请求标识符,用于问题追踪',
- 'type' => 'string',
- 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E',
- ],
- 'data' => [
- 'title' => '代码解释器列表数据',
- 'description' => '代码解释器列表的详细信息',
- 'example' => '{}',
- '$ref' => '#/components/schemas/ListCodeInterpretersOutput',
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '代码解释器列表数据', 'description' => '代码解释器列表的详细信息', 'example' => '{}', '$ref' => '#/components/schemas/ListCodeInterpretersOutput'],
+ ],
+ ],
+ 'ListConsumerAPIKeysOutput' => [
+ 'title' => '消费者API密钥列表输出',
+ 'type' => 'object',
+ 'properties' => [
+ 'pageNumber' => ['title' => '页码', 'description' => '当前页码', 'type' => 'integer', 'example' => '1'],
+ 'pageSize' => ['title' => '页面大小', 'description' => '每页记录数', 'type' => 'integer', 'example' => '20'],
+ 'total' => ['title' => '总数', 'description' => '符合条件的消费者API密钥总数', 'type' => 'integer', 'example' => '10'],
+ 'items' => [
+ 'title' => '项目列表',
+ 'description' => '消费者API密钥列表',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/ConsumerAPIKey'],
],
],
],
+ 'ListConsumerAPIKeysResult' => [
+ 'title' => '消费者API密钥列表结果',
+ 'description' => '获取消费者API密钥列表的统一结果格式',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '消费者API密钥列表数据', 'description' => '消费者API密钥列表的详细信息', 'example' => '{}', '$ref' => '#/components/schemas/ListConsumerAPIKeysOutput'],
+ ],
+ ],
'ListCredentialsOutput' => [
'type' => 'object',
'properties' => [
- 'total' => [
- 'type' => 'string',
- ],
- 'pageSize' => [
- 'type' => 'string',
- ],
- 'pageNumber' => [
- 'type' => 'string',
- ],
+ 'total' => ['type' => 'string', 'description' => ''],
+ 'pageSize' => ['type' => 'string', 'description' => ''],
+ 'pageNumber' => ['type' => 'string', 'description' => ''],
'items' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/CredentialListItem',
- ],
+ 'items' => ['$ref' => '#/components/schemas/CredentialListItem', 'description' => ''],
+ 'description' => '',
],
],
+ 'description' => '',
],
'ListCredentialsResult' => [
'type' => 'object',
'properties' => [
- 'code' => [
- 'type' => 'string',
- ],
- 'requestId' => [
- 'type' => 'string',
- ],
- 'data' => [
- '$ref' => '#/components/schemas/ListCredentialsOutput',
- ],
+ 'code' => ['type' => 'string'],
+ 'requestId' => ['type' => 'string'],
+ 'data' => ['$ref' => '#/components/schemas/ListCredentialsOutput'],
],
],
'ListCustomDomainsOutput' => [
'type' => 'object',
'properties' => [
- 'pageSize' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'pageNumber' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'total' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
+ 'pageSize' => ['type' => 'integer', 'format' => 'int32'],
+ 'pageNumber' => ['type' => 'integer', 'format' => 'int32'],
+ 'total' => ['type' => 'integer', 'format' => 'int32'],
'items' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/CustomDomain',
- ],
+ 'items' => ['$ref' => '#/components/schemas/CustomDomain'],
],
],
],
'ListCustomDomainsResult' => [
'type' => 'object',
'properties' => [
- 'code' => [
- 'type' => 'string',
- ],
- 'requestId' => [
- 'type' => 'string',
- ],
- 'data' => [
- '$ref' => '#/components/schemas/ListCustomDomainsOutput',
- ],
+ 'code' => ['type' => 'string'],
+ 'requestId' => ['type' => 'string'],
+ 'data' => ['$ref' => '#/components/schemas/ListCustomDomainsOutput'],
],
],
'ListDomainsOutput' => [
@@ -4000,212 +2863,296 @@
'properties' => [
'items' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/DomainInfo',
- ],
- ],
- 'pageNumber' => [
- 'type' => 'string',
+ 'items' => ['$ref' => '#/components/schemas/DomainInfo', 'description' => ''],
+ 'description' => '',
],
- 'pageSize' => [
- 'type' => 'string',
- ],
- 'totalCount' => [
- 'type' => 'string',
+ 'pageNumber' => ['type' => 'string', 'description' => ''],
+ 'pageSize' => ['type' => 'string', 'description' => ''],
+ 'totalCount' => ['type' => 'string', 'description' => ''],
+ ],
+ 'description' => '',
+ ],
+ 'ListFlowEndpointsOutput' => [
+ 'title' => '工作流端点列表输出',
+ 'type' => 'object',
+ 'properties' => [
+ 'pageNumber' => ['title' => '页码', 'type' => 'integer'],
+ 'pageSize' => ['title' => '页面大小', 'type' => 'integer'],
+ 'total' => ['title' => '总数', 'type' => 'integer'],
+ 'items' => [
+ 'title' => '工作流端点列表',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/FlowEndpoint'],
],
],
],
- 'ListGatewaysOutput' => [
+ 'ListFlowEndpointsResult' => [
+ 'title' => '工作流端点列表结果',
+ 'description' => '获取工作流端点列表的统一结果格式',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '工作流端点列表数据', 'description' => '工作流端点列表的详细信息', 'example' => '{}', '$ref' => '#/components/schemas/ListFlowEndpointsOutput'],
+ ],
+ ],
+ 'ListFlowsOutput' => [
+ 'title' => '工作流列表输出',
'type' => 'object',
'properties' => [
+ 'pageNumber' => ['title' => '页码', 'type' => 'integer'],
+ 'pageSize' => ['title' => '页面大小', 'type' => 'integer'],
+ 'total' => ['title' => '总数', 'type' => 'integer'],
'items' => [
- '$ref' => '#/components/schemas/Gateway',
+ 'title' => '工作流列表',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/Flow'],
],
- 'pageNumber' => [
- 'type' => 'integer',
- 'format' => 'int32',
+ ],
+ ],
+ 'ListFlowsResult' => [
+ 'title' => '工作流列表结果',
+ 'description' => '获取工作流列表的统一结果格式',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '工作流列表数据', 'description' => '工作流列表的详细信息', 'example' => '{}', '$ref' => '#/components/schemas/ListFlowsOutput'],
+ ],
+ ],
+ 'ListFlowVersionsOutput' => [
+ 'title' => '工作流版本列表输出',
+ 'type' => 'object',
+ 'properties' => [
+ 'pageNumber' => ['title' => '页码', 'type' => 'integer'],
+ 'pageSize' => ['title' => '页面大小', 'type' => 'integer'],
+ 'total' => ['title' => '总数', 'type' => 'integer'],
+ 'items' => [
+ 'title' => '工作流版本列表',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/FlowVersion'],
],
- 'pageSize' => [
- 'type' => 'integer',
- 'format' => 'int32',
+ ],
+ ],
+ 'ListFlowVersionsResult' => [
+ 'title' => '工作流版本列表结果',
+ 'description' => '获取工作流版本列表的统一结果格式',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '工作流版本列表数据', 'description' => '工作流版本列表的详细信息', 'example' => '{}', '$ref' => '#/components/schemas/ListFlowVersionsOutput'],
+ ],
+ ],
+ 'ListFunagentsInput' => [
+ 'title' => '列出 Funagent 输入',
+ 'description' => 'POP 使用 pageNumber/pageSize;转发 funagent-core 时映射为 limit=pageSize、offset=(pageNumber-1)*pageSize',
+ 'type' => 'object',
+ 'properties' => [
+ 'funagentName' => ['title' => '按名称过滤', 'type' => 'string'],
+ 'status' => ['title' => '按状态过滤', 'type' => 'string'],
+ 'pageNumber' => ['title' => '页码', 'type' => 'integer', 'example' => '1'],
+ 'pageSize' => ['title' => '页面大小', 'type' => 'integer', 'example' => '20'],
+ ],
+ ],
+ 'ListFunagentsOutput' => [
+ 'title' => '列出 Funagent 输出',
+ 'type' => 'object',
+ 'properties' => [
+ 'pageNumber' => ['title' => '页码', 'type' => 'integer'],
+ 'pageSize' => ['title' => '页面大小', 'type' => 'integer'],
+ 'total' => ['title' => '总数', 'type' => 'integer'],
+ 'items' => [
+ 'title' => '项目列表',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/Funagent'],
],
- 'total' => [
- 'type' => 'integer',
- 'format' => 'int32',
+ ],
+ ],
+ 'ListFunagentsResult' => [
+ 'title' => '列出 Funagent 结果',
+ 'description' => '获取 Funagent 列表的统一结果格式',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => 'Funagent 列表数据', '$ref' => '#/components/schemas/ListFunagentsOutput'],
+ ],
+ ],
+ 'ListGatewaysOutput' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'items' => ['$ref' => '#/components/schemas/Gateway', 'description' => ''],
+ 'pageNumber' => ['type' => 'integer', 'format' => 'int32', 'description' => ''],
+ 'pageSize' => ['type' => 'integer', 'format' => 'int32', 'description' => ''],
+ 'total' => ['type' => 'integer', 'format' => 'int32', 'description' => ''],
+ ],
+ 'description' => '',
+ ],
+ 'ListIMBotsOutput' => [
+ 'title' => 'IM Bot 分页列表 data',
+ 'description' => '成功响应中 data 为 items + pageNumber + pageSize + total',
+ 'type' => 'object',
+ 'properties' => [
+ 'items' => [
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/IMBotInfo'],
],
+ 'pageNumber' => ['type' => 'integer', 'format' => 'int32'],
+ 'pageSize' => ['type' => 'integer', 'format' => 'int32'],
+ 'total' => ['type' => 'integer', 'format' => 'int32'],
+ ],
+ ],
+ 'ListIMBotsResult' => [
+ 'title' => '列举 IM Bots 响应',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['type' => 'string'],
+ 'requestId' => ['type' => 'string'],
+ 'data' => ['$ref' => '#/components/schemas/ListIMBotsOutput'],
],
],
'ListKnowledgeBasesOutput' => [
'type' => 'object',
'properties' => [
- 'pageNumber' => [
- 'title' => '页数',
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'pageSize' => [
- 'title' => '每页实体的大小',
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'total' => [
- 'title' => '总页数',
- 'type' => 'integer',
- 'format' => 'int64',
- ],
+ 'pageNumber' => ['title' => '页数', 'type' => 'integer', 'format' => 'int32'],
+ 'pageSize' => ['title' => '每页实体的大小', 'type' => 'integer', 'format' => 'int32'],
+ 'total' => ['title' => '总页数', 'type' => 'integer', 'format' => 'int64'],
'items' => [
'title' => '知识库实体列表信息',
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/KnowledgeBase',
- ],
+ 'items' => ['$ref' => '#/components/schemas/KnowledgeBase'],
],
],
],
'ListKnowledgeBasesResult' => [
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '返回码',
- 'type' => 'string',
- ],
- 'requestId' => [
- 'title' => '请求Id',
- 'type' => 'string',
- ],
- 'data' => [
- 'title' => '返回知识库列表数据',
- '$ref' => '#/components/schemas/ListKnowledgeBasesOutput',
- ],
+ 'code' => ['title' => '返回码', 'type' => 'string'],
+ 'requestId' => ['title' => '请求Id', 'type' => 'string'],
+ 'data' => ['title' => '返回知识库列表数据', '$ref' => '#/components/schemas/ListKnowledgeBasesOutput'],
],
],
'ListMemoryCollectionsOutput' => [
'type' => 'object',
'properties' => [
- 'pageNumber' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'pageSize' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'total' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
+ 'pageNumber' => ['type' => 'integer', 'format' => 'int32'],
+ 'pageSize' => ['type' => 'integer', 'format' => 'int32'],
+ 'total' => ['type' => 'integer', 'format' => 'int64'],
'items' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/MemoryCollection',
- ],
+ 'items' => ['$ref' => '#/components/schemas/MemoryCollection'],
],
],
],
'ListMemoryCollectionsResult' => [
'type' => 'object',
'properties' => [
- 'code' => [
- 'type' => 'string',
- ],
- 'requestId' => [
- 'type' => 'string',
- ],
- 'data' => [
- '$ref' => '#/components/schemas/ListMemoryCollectionsOutput',
+ 'code' => ['type' => 'string'],
+ 'requestId' => ['type' => 'string'],
+ 'data' => ['$ref' => '#/components/schemas/ListMemoryCollectionsOutput'],
+ ],
+ ],
+ 'ListModelConnectionsOutput' => [
+ 'title' => '模型连接列表输出',
+ 'type' => 'object',
+ 'properties' => [
+ 'pageNumber' => ['title' => '页码', 'description' => '当前页码', 'type' => 'integer', 'example' => '1'],
+ 'pageSize' => ['title' => '页面大小', 'description' => '每页记录数', 'type' => 'integer', 'example' => '20'],
+ 'total' => ['title' => '总数', 'description' => '符合条件的模型连接总数', 'type' => 'integer', 'example' => '10'],
+ 'items' => [
+ 'title' => '项目列表',
+ 'description' => '模型连接列表',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/ModelConnection'],
],
],
],
+ 'ListModelConnectionsResult' => [
+ 'title' => '模型连接列表结果',
+ 'description' => '获取模型连接列表的统一结果格式',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '模型连接列表数据', 'description' => '模型连接列表的详细信息', 'example' => '{}', '$ref' => '#/components/schemas/ListModelConnectionsOutput'],
+ ],
+ ],
'ListModelProxiesOutput' => [
'type' => 'object',
'properties' => [
- 'pageNumber' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'pageSize' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'total' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
+ 'pageNumber' => ['type' => 'integer', 'format' => 'int32'],
+ 'pageSize' => ['type' => 'integer', 'format' => 'int32'],
+ 'total' => ['type' => 'integer', 'format' => 'int64'],
'items' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/ModelProxy',
- ],
+ 'items' => ['$ref' => '#/components/schemas/ModelProxy'],
],
],
],
'ListModelProxiesResult' => [
'type' => 'object',
'properties' => [
- 'code' => [
- 'type' => 'string',
- ],
- 'requestId' => [
- 'type' => 'string',
- ],
- 'data' => [
- '$ref' => '#/components/schemas/ListModelProxiesOutput',
- ],
+ 'code' => ['type' => 'string'],
+ 'requestId' => ['type' => 'string'],
+ 'data' => ['$ref' => '#/components/schemas/ListModelProxiesOutput'],
],
],
'ListModelServicesOutput' => [
'type' => 'object',
'properties' => [
- 'pageNumber' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'pageSize' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'total' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
+ 'pageNumber' => ['type' => 'integer', 'format' => 'int32'],
+ 'pageSize' => ['type' => 'integer', 'format' => 'int32'],
+ 'total' => ['type' => 'integer', 'format' => 'int64'],
'items' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/ModelService',
- ],
+ 'items' => ['$ref' => '#/components/schemas/ModelService'],
],
],
],
'ListModelServicesResult' => [
'type' => 'object',
'properties' => [
- 'code' => [
- 'type' => 'string',
- ],
- 'requestId' => [
- 'type' => 'string',
- ],
- 'data' => [
- '$ref' => '#/components/schemas/ListModelServicesOutput',
+ 'code' => ['type' => 'string'],
+ 'requestId' => ['type' => 'string'],
+ 'data' => ['$ref' => '#/components/schemas/ListModelServicesOutput'],
+ ],
+ ],
+ 'ListRateLimitRulesOutput' => [
+ 'title' => '限流规则列表输出',
+ 'type' => 'object',
+ 'properties' => [
+ 'pageNumber' => ['title' => '页码', 'description' => '当前页码', 'type' => 'integer', 'example' => '1'],
+ 'pageSize' => ['title' => '页面大小', 'description' => '每页记录数', 'type' => 'integer', 'example' => '20'],
+ 'total' => ['title' => '总数', 'description' => '符合条件的限流规则总数', 'type' => 'integer', 'example' => '10'],
+ 'items' => [
+ 'title' => '项目列表',
+ 'description' => '限流规则列表',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/RateLimitRule'],
],
],
],
+ 'ListRateLimitRulesResult' => [
+ 'title' => '限流规则列表结果',
+ 'description' => '获取限流规则列表的统一结果格式',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '限流规则列表数据', 'description' => '限流规则列表的详细信息', 'example' => '{}', '$ref' => '#/components/schemas/ListRateLimitRulesOutput'],
+ ],
+ ],
'ListSandboxesOutput' => [
'title' => '沙箱列表输出',
'description' => '沙箱列表查询结果',
'type' => 'object',
'properties' => [
- 'nextToken' => [
- 'title' => '分页Token',
- 'type' => 'string',
- ],
+ 'nextToken' => ['title' => '分页Token', 'type' => 'string'],
'items' => [
'title' => '沙箱列表项目',
'type' => 'array',
- 'items' => [
- 'title' => '沙箱列表',
- '$ref' => '#/components/schemas/Sandbox',
- ],
+ 'items' => ['title' => '沙箱列表', '$ref' => '#/components/schemas/Sandbox'],
'required' => true,
],
],
@@ -4215,63 +3162,38 @@
'description' => '获取沙箱列表的统一结果格式',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '返回码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '唯一的请求标识符,用于问题追踪',
- 'type' => 'string',
- 'example' => '55D4BE40-2811-5CFB-8482-E0E98D575B1E',
- ],
- 'data' => [
- 'title' => '沙箱列表数据',
- 'description' => '沙箱列表的详细信息',
- '$ref' => '#/components/schemas/ListSandboxesOutput',
+ 'code' => ['title' => '返回码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => '55D4BE40-2811-5CFB-8482-E0E98D575B1E'],
+ 'data' => ['title' => '沙箱列表数据', 'description' => '沙箱列表的详细信息', '$ref' => '#/components/schemas/ListSandboxesOutput'],
+ ],
+ ],
+ 'ListServicesOutput' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'pageNumber' => ['type' => 'string', 'description' => ''],
+ 'pageSize' => ['type' => 'string', 'description' => ''],
+ 'totalCount' => ['type' => 'string', 'description' => ''],
+ 'items' => [
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/ServiceInfo', 'description' => ''],
+ 'description' => '',
],
],
+ 'description' => '',
],
'ListTemplatesOutput' => [
'title' => '模板列表输出',
'description' => '模板列表查询结果',
'type' => 'object',
'properties' => [
- 'pageNumber' => [
- 'title' => '页码',
- 'description' => '页码',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '1',
- ],
- 'pageSize' => [
- 'title' => '每页大小',
- 'description' => '每页大小',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '10',
- ],
- 'total' => [
- 'title' => '总数',
- 'description' => '总数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '10',
- ],
+ 'pageNumber' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
+ 'pageSize' => ['title' => '每页大小', 'description' => '每页大小', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '10'],
+ 'total' => ['title' => '总数', 'description' => '总数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '10'],
'items' => [
'title' => '模板列表',
'description' => '模板列表',
'type' => 'array',
- 'items' => [
- 'title' => '模板',
- 'description' => '模板',
- '$ref' => '#/components/schemas/Template',
- ],
+ 'items' => ['title' => '模板', 'description' => '模板', '$ref' => '#/components/schemas/Template'],
'required' => true,
],
],
@@ -4281,23 +3203,9 @@
'description' => '获取模板列表的统一结果格式',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '唯一的请求标识符,用于问题追踪',
- 'type' => 'string',
- 'example' => 'C0595DB0-D1EE-55C3-8DDD-790872C7EC2F',
- ],
- 'data' => [
- 'title' => '模板列表数据',
- 'description' => '模板列表的详细信息',
- '$ref' => '#/components/schemas/ListTemplatesOutput',
- ],
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'C0595DB0-D1EE-55C3-8DDD-790872C7EC2F'],
+ 'data' => ['title' => '模板列表数据', 'description' => '模板列表的详细信息', '$ref' => '#/components/schemas/ListTemplatesOutput'],
],
],
'ListToolsOutput' => [
@@ -4305,500 +3213,458 @@
'properties' => [
'data' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/ToolListItem',
- ],
- ],
- 'pageSize' => [
- 'type' => 'integer',
- 'format' => 'int32',
+ 'items' => ['$ref' => '#/components/schemas/ToolListItem', 'description' => ''],
+ 'description' => '',
],
- 'pageNum' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'total' => [
- 'type' => 'integer',
- 'format' => 'int32',
+ 'pageSize' => ['type' => 'integer', 'format' => 'int32', 'description' => ''],
+ 'pageNum' => ['type' => 'integer', 'format' => 'int32', 'description' => ''],
+ 'total' => ['type' => 'integer', 'format' => 'int32', 'description' => ''],
+ ],
+ 'description' => '',
+ ],
+ 'ListToolsOutputV2' => [
+ 'title' => '工具列表输出',
+ 'description' => '工具列表查询的返回结果,包含分页信息和工具列表数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'pageSize' => ['title' => '每页大小', 'description' => '每页返回的工具数量', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ 'pageNumber' => ['title' => '页码', 'description' => '当前页码,从 1 开始', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'total' => ['title' => '总数', 'description' => '符合条件的工具总数', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'items' => [
+ 'title' => '工具列表',
+ 'description' => '当前页的工具详细信息列表',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/Tool'],
],
],
],
+ 'ListToolsResult' => [
+ 'title' => '列出工具返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['title' => '返回码', 'type' => 'string'],
+ 'requestId' => ['title' => '请求ID', 'type' => 'string'],
+ 'data' => ['title' => '工具列表结果', '$ref' => '#/components/schemas/ListToolsOutputV2'],
+ ],
+ ],
'ListWorkspacesOutput' => [
'type' => 'object',
'properties' => [
'workspaces' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/Workspace',
- ],
+ 'items' => ['$ref' => '#/components/schemas/Workspace'],
],
- 'total' => [
- 'type' => 'integer',
- 'format' => 'int64',
+ 'total' => ['type' => 'integer', 'format' => 'int64'],
+ 'pageNumber' => ['type' => 'integer', 'format' => 'int32'],
+ 'pageSize' => ['type' => 'integer', 'format' => 'int32'],
+ ],
+ ],
+ 'ListWorkspacesResult' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['type' => 'string'],
+ 'requestId' => ['type' => 'string'],
+ 'data' => ['$ref' => '#/components/schemas/ListWorkspacesOutput'],
+ ],
+ ],
+ 'LLMAPIConfiguration' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'removeBasePathOnForward' => ['type' => 'boolean', 'description' => ''],
+ 'basePath' => ['type' => 'string', 'description' => ''],
+ 'type' => ['type' => 'string', 'description' => ''],
+ 'modelCategory' => ['type' => 'string', 'description' => ''],
+ 'aiProtocols' => [
+ 'type' => 'array',
+ 'items' => ['type' => 'string', 'description' => ''],
+ 'description' => '',
],
- 'pageNumber' => [
- 'type' => 'integer',
- 'format' => 'int32',
+ 'deployConfigs' => [
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/LLMDeployConfig', 'description' => ''],
+ 'description' => '',
],
- 'pageSize' => [
- 'type' => 'integer',
- 'format' => 'int32',
+ 'attachPolicyConfigs' => [
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/AttachPolicyConfig', 'description' => ''],
+ 'description' => '',
],
],
+ 'description' => '',
],
- 'ListWorkspacesResult' => [
+ 'LLMConfig' => [
'type' => 'object',
'properties' => [
- 'code' => [
- 'type' => 'string',
+ 'config' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'model' => ['type' => 'string'],
+ ],
],
- 'requestId' => [
- 'type' => 'string',
+ 'modelServiceName' => ['type' => 'string'],
+ ],
+ ],
+ 'LLMDeployConfig' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'backendScene' => ['type' => 'string', 'description' => ''],
+ 'autoDeploy' => ['type' => 'boolean', 'description' => ''],
+ 'gatewayType' => ['type' => 'string', 'description' => ''],
+ 'serviceConfigs' => [
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/TargetServiceConfig', 'description' => ''],
+ 'description' => '',
],
- 'data' => [
- '$ref' => '#/components/schemas/ListWorkspacesOutput',
+ 'policyConfigs' => [
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/PolicyConfig', 'description' => ''],
+ 'description' => '',
+ ],
+ 'customDomainIds' => [
+ 'type' => 'array',
+ 'items' => ['type' => 'string', 'description' => ''],
+ 'description' => '',
],
],
+ 'description' => '',
],
'LogConfiguration' => [
'title' => '日志配置',
'description' => '智能体运行时的SLS(简单日志服务)配置',
'type' => 'object',
'properties' => [
- 'project' => [
- 'title' => '项目名称',
- 'description' => 'SLS项目名称',
- 'type' => 'string',
- 'example' => 'agent-runtime-logs',
- ],
- 'logstore' => [
- 'title' => '日志库名称',
- 'description' => 'SLS日志库名称',
- 'type' => 'string',
- 'example' => 'agent-runtime-logs',
+ 'project' => ['title' => '项目名称', 'description' => 'SLS项目名称', 'type' => 'string', 'example' => 'agent-runtime-logs'],
+ 'logstore' => ['title' => '日志库名称', 'description' => 'SLS日志库名称', 'type' => 'string', 'example' => 'agent-runtime-logs'],
+ ],
+ ],
+ 'LogDestination' => [
+ 'title' => '日志目标',
+ 'description' => '日志输出的目标配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'slsLogDestination' => ['title' => 'SLS日志目标', 'description' => '阿里云日志服务(SLS)的日志目标配置', '$ref' => '#/components/schemas/SLSLogDestination'],
+ ],
+ ],
+ 'LoggingConfiguration' => [
+ 'title' => '日志配置',
+ 'description' => '工作流的日志配置信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'destinations' => [
+ 'title' => '日志目标',
+ 'description' => '日志输出的目标配置列表',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/LogDestination'],
],
],
],
'MCPAPI' => [
'type' => 'object',
'properties' => [
- 'description' => [
- 'type' => 'string',
- ],
- 'toolId' => [
- 'type' => 'string',
- ],
- 'match' => [
- '$ref' => '#/components/schemas/MCPMatch',
- ],
- 'backendConfig' => [
- '$ref' => '#/components/schemas/MCPBackendConfig',
- ],
- 'protocol' => [
- 'type' => 'string',
- ],
- 'exposedUriPath' => [
- 'type' => 'string',
- ],
- 'mcpStatisticsEnable' => [
- 'type' => 'boolean',
- ],
- 'toolsConfig' => [
- 'type' => 'string',
- ],
+ 'description' => ['type' => 'string', 'description' => ''],
+ 'toolId' => ['type' => 'string', 'description' => ''],
+ 'match' => ['$ref' => '#/components/schemas/MCPMatch', 'description' => ''],
+ 'backendConfig' => ['$ref' => '#/components/schemas/MCPBackendConfig', 'description' => ''],
+ 'protocol' => ['type' => 'string', 'description' => ''],
+ 'exposedUriPath' => ['type' => 'string', 'description' => ''],
+ 'mcpStatisticsEnable' => ['type' => 'boolean', 'description' => ''],
+ 'toolsConfig' => ['type' => 'string', 'description' => ''],
],
+ 'description' => '',
],
'MCPAPIConfiguration' => [
'type' => 'object',
'properties' => [
- 'toolId' => [
- 'type' => 'string',
- ],
- 'description' => [
- 'type' => 'string',
- ],
- 'protocol' => [
- 'type' => 'string',
- ],
- 'exposedUriPath' => [
- 'type' => 'string',
- ],
- 'mcpStatisticsEnable' => [
- 'type' => 'boolean',
- ],
+ 'toolId' => ['type' => 'string', 'description' => ''],
+ 'description' => ['type' => 'string', 'description' => ''],
+ 'protocol' => ['type' => 'string', 'description' => ''],
+ 'exposedUriPath' => ['type' => 'string', 'description' => ''],
+ 'mcpStatisticsEnable' => ['type' => 'boolean', 'description' => ''],
],
+ 'description' => '',
],
'MCPBackendConfig' => [
'type' => 'object',
'properties' => [
- 'scene' => [
- 'type' => 'string',
- ],
+ 'scene' => ['type' => 'string', 'description' => ''],
'services' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/MCPServiceConfig',
- ],
+ 'items' => ['$ref' => '#/components/schemas/MCPServiceConfig', 'description' => ''],
+ 'description' => '',
],
],
+ 'description' => '',
],
- 'MCPMatch' => [
+ 'McpConfig' => [
+ 'title' => 'MCP配置',
+ 'description' => 'Model Context Protocol (MCP) 工具的配置信息,用于定义 MCP 工具的会话管理、代理设置和绑定关系等核心配置。',
'type' => 'object',
'properties' => [
- 'path' => [
- '$ref' => '#/components/schemas/MCPPathMatch',
+ 'sessionAffinity' => [
+ 'title' => '会话亲和性',
+ 'description' => '会话亲和性策略,用于控制请求的路由方式。NONE:无亲和性,MCP_SSE:基于 SSE 的会话亲和性,MCP_STREAMABLE:基于流式 HTTP 的会话亲和性',
+ 'type' => 'string',
+ 'enumValueTitles' => ['NONE' => '无亲和性 - 请求可以路由到任意实例', 'MCP_SSE' => 'MCP SSE 亲和性 - 基于 SSE 连接的会话保持', 'MCP_STREAMABLE' => 'MCP 流式亲和性 - 基于流式 HTTP 连接的会话保持'],
+ 'example' => 'MCP_STREAMABLE',
+ 'enum' => ['NONE', 'MCP_SSE', 'MCP_STREAMABLE'],
],
+ 'sessionAffinityConfig' => ['title' => '会话亲和性配置', 'description' => '会话亲和性的详细配置信息,JSON 格式字符串,包含会话保持的具体参数', 'type' => 'string'],
+ 'proxyEnabled' => ['title' => '代理启用', 'description' => '是否启用 MCP 代理功能,启用后可以通过代理配置对 MCP 请求进行拦截和处理', 'type' => 'boolean', 'example' => 'true'],
+ 'mcpProxyConfiguration' => ['title' => 'MCP代理配置', 'description' => 'MCP 代理的详细配置,包括钩子函数等,用于在 MCP 请求处理过程中执行自定义逻辑', '$ref' => '#/components/schemas/McpProxyConfiguration'],
+ 'boundConfiguration' => ['title' => '绑定配置', 'description' => '工具的绑定配置,定义工具与 HTTP 路径和方法的映射关系', '$ref' => '#/components/schemas/BoundConfiguration'],
+ ],
+ ],
+ 'MCPMatch' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'path' => ['$ref' => '#/components/schemas/MCPPathMatch', 'description' => ''],
],
+ 'description' => '',
],
'MCPPathMatch' => [
'type' => 'object',
'properties' => [
- 'type' => [
- 'type' => 'string',
- ],
- 'value' => [
- 'type' => 'string',
+ 'type' => ['type' => 'string', 'description' => ''],
+ 'value' => ['type' => 'string', 'description' => ''],
+ ],
+ 'description' => '',
+ ],
+ 'McpProxyConfiguration' => [
+ 'title' => 'MCP代理配置',
+ 'description' => 'MCP 代理的配置信息,用于在 MCP 请求处理流程中注入自定义的钩子函数,实现请求拦截、修改和增强等功能。',
+ 'type' => 'object',
+ 'properties' => [
+ 'hooks' => [
+ 'title' => '钩子函数列表',
+ 'description' => 'MCP 代理的钩子函数配置列表,每个钩子可以在请求处理的不同阶段执行自定义逻辑',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/Hook'],
],
],
],
'MCPServerConfig' => [
'type' => 'object',
'properties' => [
- 'transportType' => [
- 'type' => 'string',
- ],
- 'serverUrl' => [
- 'type' => 'string',
- ],
- 'ssePath' => [
- 'type' => 'string',
- ],
+ 'transportType' => ['type' => 'string', 'description' => ''],
+ 'serverUrl' => ['type' => 'string', 'description' => ''],
+ 'ssePath' => ['type' => 'string', 'description' => ''],
],
+ 'description' => '',
],
'MCPServiceConfig' => [
'type' => 'object',
'properties' => [
- 'serviceId' => [
- 'type' => 'string',
- ],
+ 'serviceId' => ['type' => 'string', 'description' => ''],
],
+ 'description' => '',
],
'MemoryCollection' => [
'type' => 'object',
'properties' => [
- 'memoryCollectionName' => [
- 'type' => 'string',
- ],
- 'memoryCollectionId' => [
- 'type' => 'string',
- ],
- 'description' => [
- 'type' => 'string',
- ],
- 'llmConfig' => [
- '$ref' => '#/components/schemas/LLMConfig',
- ],
- 'embedderConfig' => [
- '$ref' => '#/components/schemas/EmbedderConfig',
- ],
- 'vectorStoreConfig' => [
- '$ref' => '#/components/schemas/VectorStoreConfig',
- ],
- 'networkConfiguration' => [
- '$ref' => '#/components/schemas/NetworkConfiguration',
- ],
- 'executionRoleArn' => [
- 'type' => 'string',
- ],
- 'createdAt' => [
- 'type' => 'string',
- ],
- 'lastUpdatedAt' => [
- 'type' => 'string',
- ],
- 'enableConversationHistory' => [
- 'type' => 'boolean',
- ],
- 'enableConversationState' => [
- 'type' => 'boolean',
- ],
+ 'memoryCollectionName' => ['type' => 'string'],
+ 'memoryCollectionId' => ['type' => 'string'],
+ 'description' => ['type' => 'string'],
+ 'llmConfig' => ['$ref' => '#/components/schemas/LLMConfig'],
+ 'embedderConfig' => ['$ref' => '#/components/schemas/EmbedderConfig'],
+ 'vectorStoreConfig' => ['$ref' => '#/components/schemas/VectorStoreConfig'],
+ 'networkConfiguration' => ['$ref' => '#/components/schemas/NetworkConfiguration'],
+ 'executionRoleArn' => ['type' => 'string'],
+ 'createdAt' => ['type' => 'string'],
+ 'lastUpdatedAt' => ['type' => 'string'],
+ 'enableConversationHistory' => ['type' => 'boolean'],
+ 'enableConversationState' => ['type' => 'boolean'],
+ 'workspaceId' => ['type' => 'string'],
],
],
'MemoryCollectionResult' => [
'type' => 'object',
'properties' => [
- 'code' => [
- 'type' => 'string',
- ],
- 'requestId' => [
- 'type' => 'string',
- ],
- 'data' => [
- '$ref' => '#/components/schemas/MemoryCollection',
- ],
+ 'code' => ['type' => 'string'],
+ 'requestId' => ['type' => 'string'],
+ 'data' => ['$ref' => '#/components/schemas/MemoryCollection'],
],
],
'Model' => [
'type' => 'object',
'properties' => [
- 'modelId' => [
- 'type' => 'string',
- ],
- 'tenantId' => [
- 'type' => 'string',
- ],
- 'name' => [
- 'type' => 'string',
- ],
- 'provider' => [
- 'type' => 'string',
- ],
- 'type' => [
- 'type' => 'string',
- ],
- 'address' => [
- 'type' => 'string',
- ],
- 'apiKey' => [
- 'type' => 'string',
- ],
- 'models' => [
- 'type' => 'string',
- ],
- 'modelsWeight' => [
- 'type' => 'string',
- ],
- 'desc' => [
- 'type' => 'string',
- ],
- 'createdTime' => [
- 'type' => 'string',
- ],
- 'updateTime' => [
- 'type' => 'string',
+ 'modelId' => ['type' => 'string', 'description' => ''],
+ 'tenantId' => ['type' => 'string', 'description' => ''],
+ 'name' => ['type' => 'string', 'description' => ''],
+ 'provider' => ['type' => 'string', 'description' => ''],
+ 'type' => ['type' => 'string', 'description' => ''],
+ 'address' => ['type' => 'string', 'description' => ''],
+ 'apiKey' => ['type' => 'string', 'description' => ''],
+ 'models' => ['type' => 'string', 'description' => ''],
+ 'modelsWeight' => ['type' => 'string', 'description' => ''],
+ 'desc' => ['type' => 'string', 'description' => ''],
+ 'createdTime' => ['type' => 'string', 'description' => ''],
+ 'updateTime' => ['type' => 'string', 'description' => ''],
+ 'gatewayId' => ['type' => 'string', 'description' => ''],
+ 'targetId' => ['type' => 'string', 'description' => ''],
+ ],
+ 'description' => '',
+ ],
+ 'ModelConnection' => [
+ 'title' => '模型连接',
+ 'description' => '模型连接的详细信息,用于配置AI网关与模型提供商之间的连接',
+ 'type' => 'object',
+ 'properties' => [
+ 'modelConnectionId' => ['title' => '模型连接ID', 'description' => '模型连接的唯一标识符', 'type' => 'string', 'example' => 'mc-1234567890abcdef'],
+ 'modelConnectionName' => ['title' => '模型连接名称', 'description' => '模型连接的唯一名称标识', 'type' => 'string', 'example' => 'my-openai-connection'],
+ 'description' => ['title' => '描述', 'description' => '模型连接的描述信息', 'type' => 'string', 'example' => 'OpenAI GPT-4 connection for production'],
+ 'provider' => ['title' => '提供商', 'description' => '模型提供商名称', 'type' => 'string', 'example' => 'openai'],
+ 'providerSettings' => ['title' => '供应商设置', 'description' => '模型提供商的配置信息', 'example' => '{}', '$ref' => '#/components/schemas/ModelConnectionProviderSettings'],
+ 'createdAt' => ['title' => '创建时间', 'description' => '模型连接的创建时间,采用ISO 8601格式', 'type' => 'string', 'example' => '2025-01-10T10:30:00Z'],
+ 'lastUpdatedAt' => ['title' => '最后更新时间', 'description' => '模型连接最后一次更新的时间,采用ISO 8601格式', 'type' => 'string', 'example' => '2025-01-10T11:45:00Z'],
+ 'workspaceId' => ['title' => '工作空间ID', 'description' => '模型连接所属的工作空间标识符', 'type' => 'string', 'example' => 'ws-1234567890abcdef'],
+ 'modelInfoConfigs' => [
+ 'title' => '模型信息配置列表',
+ 'description' => '模型元数据配置列表,包含各个模型的功能特性和参数规则',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/ModelInfoConfig'],
],
- 'gatewayId' => [
- 'type' => 'string',
+ 'consumerApiKeys' => [
+ 'title' => '消费者API密钥绑定',
+ 'description' => '绑定的消费者API密钥列表',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/ModelConnectionConsumerAPIKey'],
],
- 'targetId' => [
- 'type' => 'string',
+ ],
+ ],
+ 'ModelConnectionConsumerAPIKey' => [
+ 'title' => '消费者API密钥绑定信息',
+ 'description' => '模型连接响应中的消费者API密钥绑定信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'apiKeyId' => ['title' => 'API密钥ID', 'description' => '消费者API密钥记录的唯一标识', 'type' => 'string', 'example' => '12345678-1234-1234-1234-123456789abc'],
+ 'value' => ['type' => 'string'],
+ ],
+ ],
+ 'ModelConnectionProviderSettings' => [
+ 'title' => '模型连接供应商设置',
+ 'description' => '模型连接的供应商配置信息,包括基础URL、模型名称列表等',
+ 'type' => 'object',
+ 'properties' => [
+ 'baseUrl' => ['title' => '基础URL', 'description' => '模型提供商的默认API基础地址', 'type' => 'string', 'example' => 'https://api.openai.com/v1'],
+ 'modelNames' => [
+ 'title' => '模型名称列表',
+ 'description' => '该连接支持的模型名称列表',
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
],
],
],
+ 'ModelConnectionResult' => [
+ 'title' => '模型连接结果',
+ 'description' => '创建、获取、更新、删除模型连接的统一结果格式',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '模型连接数据', 'description' => '模型连接的详细信息', 'example' => '{}', '$ref' => '#/components/schemas/ModelConnection'],
+ ],
+ ],
'ModelFeatures' => [
'type' => 'object',
'properties' => [
- 'vision' => [
- 'type' => 'boolean',
- ],
- 'agentThought' => [
- 'type' => 'boolean',
- ],
- 'toolCall' => [
- 'type' => 'boolean',
- ],
- 'multiToolCall' => [
- 'type' => 'boolean',
- ],
- 'streamToolCall' => [
- 'type' => 'boolean',
- ],
+ 'vision' => ['type' => 'boolean'],
+ 'agentThought' => ['type' => 'boolean'],
+ 'toolCall' => ['type' => 'boolean'],
+ 'multiToolCall' => ['type' => 'boolean'],
+ 'streamToolCall' => ['type' => 'boolean'],
],
],
'ModelInfoConfig' => [
'type' => 'object',
'properties' => [
- 'modelName' => [
- 'type' => 'string',
- ],
- 'modelFeatures' => [
- '$ref' => '#/components/schemas/ModelFeatures',
- ],
- 'modelProperties' => [
- '$ref' => '#/components/schemas/ModelProperties',
- ],
+ 'modelName' => ['type' => 'string'],
+ 'modelFeatures' => ['$ref' => '#/components/schemas/ModelFeatures'],
+ 'modelProperties' => ['$ref' => '#/components/schemas/ModelProperties'],
'modelParameterRules' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/ModelParameterRule',
- ],
+ 'items' => ['$ref' => '#/components/schemas/ModelParameterRule'],
],
],
],
'ModelParameterRule' => [
'type' => 'object',
'properties' => [
- 'name' => [
- 'type' => 'string',
- ],
- 'type' => [
- 'type' => 'string',
- ],
- 'default' => [
- 'type' => 'any',
- ],
- 'min' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'max' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'required' => [
- 'type' => 'boolean',
- ],
+ 'name' => ['type' => 'string'],
+ 'type' => ['type' => 'string'],
+ 'default' => ['type' => 'any'],
+ 'min' => ['type' => 'integer', 'format' => 'int32'],
+ 'max' => ['type' => 'integer', 'format' => 'int32'],
+ 'required' => ['type' => 'boolean'],
],
],
'ModelProperties' => [
'type' => 'object',
'properties' => [
- 'contextSize' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
+ 'contextSize' => ['type' => 'integer', 'format' => 'int32'],
],
],
'ModelProxy' => [
'type' => 'object',
'properties' => [
- 'modelProxyId' => [
- 'type' => 'string',
- ],
- 'modelProxyName' => [
- 'type' => 'string',
- ],
- 'description' => [
- 'type' => 'string',
- ],
- 'modelType' => [
- 'type' => 'string',
- ],
- 'proxyMode' => [
- 'type' => 'string',
- ],
- 'proxyConfig' => [
- '$ref' => '#/components/schemas/ProxyConfig',
- ],
- 'functionName' => [
- 'type' => 'string',
- ],
- 'status' => [
- 'type' => 'string',
- ],
- 'credentialName' => [
- 'type' => 'string',
- ],
- 'serviceRegionId' => [
- 'type' => 'string',
- ],
- 'endpoint' => [
- 'type' => 'string',
- ],
- 'litellmVersion' => [
- 'type' => 'string',
- ],
- 'cpu' => [
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'memory' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'createdAt' => [
- 'type' => 'string',
- ],
- 'lastUpdatedAt' => [
- 'type' => 'string',
- ],
- 'networkConfiguration' => [
- '$ref' => '#/components/schemas/NetworkConfiguration',
- ],
- 'statusReason' => [
- 'type' => 'string',
- ],
- 'logConfiguration' => [
- '$ref' => '#/components/schemas/LogConfiguration',
- ],
- 'executionRoleArn' => [
- 'type' => 'string',
- ],
+ 'modelProxyId' => ['type' => 'string'],
+ 'modelProxyName' => ['type' => 'string'],
+ 'description' => ['type' => 'string'],
+ 'modelType' => ['type' => 'string'],
+ 'proxyMode' => ['type' => 'string'],
+ 'proxyConfig' => ['$ref' => '#/components/schemas/ProxyConfig'],
+ 'functionName' => ['type' => 'string'],
+ 'status' => ['type' => 'string'],
+ 'credentialName' => ['type' => 'string'],
+ 'serviceRegionId' => ['type' => 'string'],
+ 'endpoint' => ['type' => 'string'],
+ 'litellmVersion' => ['type' => 'string'],
+ 'cpu' => ['type' => 'number', 'format' => 'float'],
+ 'memory' => ['type' => 'integer', 'format' => 'int32'],
+ 'createdAt' => ['type' => 'string'],
+ 'lastUpdatedAt' => ['type' => 'string'],
+ 'networkConfiguration' => ['$ref' => '#/components/schemas/NetworkConfiguration'],
+ 'statusReason' => ['type' => 'string'],
+ 'logConfiguration' => ['$ref' => '#/components/schemas/LogConfiguration'],
+ 'executionRoleArn' => ['type' => 'string'],
+ 'workspaceId' => ['type' => 'string'],
],
],
'ModelProxyResult' => [
'type' => 'object',
'properties' => [
- 'code' => [
- 'type' => 'string',
- ],
- 'requestId' => [
- 'type' => 'string',
- ],
- 'data' => [
- '$ref' => '#/components/schemas/ModelProxy',
- ],
+ 'code' => ['type' => 'string'],
+ 'requestId' => ['type' => 'string'],
+ 'data' => ['$ref' => '#/components/schemas/ModelProxy'],
],
],
'ModelService' => [
'type' => 'object',
'properties' => [
- 'modelServiceName' => [
- 'type' => 'string',
- ],
- 'description' => [
- 'type' => 'string',
- ],
- 'modelType' => [
- 'type' => 'string',
- ],
- 'provider' => [
- 'type' => 'string',
- ],
- 'providerSettings' => [
- '$ref' => '#/components/schemas/ProviderSettings',
- ],
- 'status' => [
- 'type' => 'string',
- ],
- 'credentialName' => [
- 'type' => 'string',
- ],
- 'createdAt' => [
- 'type' => 'string',
- ],
- 'lastUpdatedAt' => [
- 'type' => 'string',
- ],
- 'networkConfiguration' => [
- '$ref' => '#/components/schemas/NetworkConfiguration',
- ],
- 'statusReason' => [
- 'type' => 'string',
- ],
+ 'modelServiceName' => ['type' => 'string'],
+ 'description' => ['type' => 'string'],
+ 'modelType' => ['type' => 'string'],
+ 'provider' => ['type' => 'string'],
+ 'providerSettings' => ['$ref' => '#/components/schemas/ProviderSettings'],
+ 'status' => ['type' => 'string'],
+ 'credentialName' => ['type' => 'string'],
+ 'createdAt' => ['type' => 'string'],
+ 'lastUpdatedAt' => ['type' => 'string'],
+ 'networkConfiguration' => ['$ref' => '#/components/schemas/NetworkConfiguration'],
+ 'statusReason' => ['type' => 'string'],
+ 'modelServiceId' => ['type' => 'string'],
'modelInfoConfigs' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/ModelInfoConfig',
- ],
- ],
- 'modelServiceId' => [
- 'type' => 'string',
+ 'items' => ['$ref' => '#/components/schemas/ModelInfoConfig'],
],
+ 'workspaceId' => ['type' => 'string'],
],
],
'ModelServiceResult' => [
'type' => 'object',
'properties' => [
- 'code' => [
- 'type' => 'string',
- ],
- 'requestId' => [
- 'type' => 'string',
- ],
- 'data' => [
- '$ref' => '#/components/schemas/ModelService',
- ],
+ 'code' => ['type' => 'string'],
+ 'requestId' => ['type' => 'string'],
+ 'data' => ['$ref' => '#/components/schemas/ModelService'],
],
],
'NASConfig' => [
@@ -4806,33 +3672,16 @@
'description' => 'NAS配置',
'type' => 'object',
'properties' => [
- 'groupId' => [
- 'title' => '群组ID。',
- 'description' => '群组ID',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '100',
- ],
+ 'groupId' => ['title' => '群组ID。', 'description' => '群组ID', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
'mountPoints' => [
'title' => '挂载点列表。',
'description' => '挂载点列表',
'type' => 'array',
- 'items' => [
- 'description' => '挂载点配置',
- '$ref' => '#/components/schemas/NASMountConfig',
- ],
+ 'items' => ['description' => '挂载点配置', '$ref' => '#/components/schemas/NASMountConfig'],
'required' => false,
'maxItems' => 5,
],
- 'userId' => [
- 'title' => '账号ID。',
- 'description' => '账号ID',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '100',
- ],
+ 'userId' => ['title' => '账号ID。', 'description' => '账号ID', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
],
],
'NASMountConfig' => [
@@ -4840,28 +3689,9 @@
'description' => 'NAS挂载点列表',
'type' => 'object',
'properties' => [
- 'enableTLS' => [
- 'title' => '使用传输加密方式挂载。 说明:仅通用型NAS支持传输加密',
- 'description' => '使用传输加密方式挂载。 说明:仅通用型NAS支持传输加密',
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'mountDir' => [
- 'title' => '本地挂载目录。',
- 'description' => '本地挂载目录。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/home/test',
- 'maxLength' => 64,
- ],
- 'serverAddr' => [
- 'title' => 'NAS服务器地址。',
- 'description' => 'NAS服务器地址。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '***-uni85.cn-hangzhou.nas.com:/',
- 'maxLength' => 128,
- ],
+ 'enableTLS' => ['title' => '使用传输加密方式挂载。 说明:仅通用型NAS支持传输加密', 'description' => '使用传输加密方式挂载。 说明:仅通用型NAS支持传输加密', 'type' => 'boolean', 'required' => false],
+ 'mountDir' => ['title' => '本地挂载目录。', 'description' => '本地挂载目录。', 'type' => 'string', 'required' => false, 'example' => '/home/test', 'maxLength' => 64],
+ 'serverAddr' => ['title' => 'NAS服务器地址。', 'description' => 'NAS服务器地址。', 'type' => 'string', 'required' => false, 'example' => '***-uni85.cn-hangzhou.nas.com:/', 'maxLength' => 128],
],
],
'NetworkConfiguration' => [
@@ -4873,37 +3703,38 @@
'description' => '网络模式',
'type' => 'string',
'example' => 'PRIVATE',
- 'enum' => [
- 'PUBLIC',
- 'PRIVATE',
- 'PUBLIC_AND_PRIVATE',
- ],
- ],
- 'vpcId' => [
- 'title' => '专有网络ID',
- 'description' => '专有网络ID',
- 'type' => 'string',
- 'example' => 'vpc-1234567890abcdef0',
- ],
- 'securityGroupId' => [
- 'title' => '安全组ID',
- 'description' => '安全组ID',
- 'type' => 'string',
- 'example' => 'sg-1234567890abcdef0',
+ 'enum' => ['PUBLIC', 'PRIVATE', 'PUBLIC_AND_PRIVATE'],
],
+ 'vpcId' => ['title' => '专有网络ID', 'description' => '专有网络ID', 'type' => 'string', 'example' => 'vpc-1234567890abcdef0'],
+ 'securityGroupId' => ['title' => '安全组ID', 'description' => '安全组ID', 'type' => 'string', 'example' => 'sg-1234567890abcdef0'],
'vswitchIds' => [
'title' => '交换机ID列表',
'description' => '交换机ID列表',
'type' => 'array',
- 'items' => [
- 'description' => '交换机ID',
- 'type' => 'string',
- 'example' => 'vsw-sg-1234567890abcdef0',
- ],
+ 'items' => ['description' => '交换机ID', 'type' => 'string', 'example' => 'vsw-sg-1234567890abcdef0'],
'example' => 'vsw-1234567890abcdef0,vsw-abcdef1234567890',
],
],
],
+ 'OssConfiguration' => [
+ 'title' => 'OSS配置',
+ 'description' => '代码解释器或浏览器的OSS配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'bucketName' => ['title' => 'OSS存储桶名称', 'description' => 'OSS存储桶名称', 'type' => 'string', 'required' => true, 'example' => 'a-test-oss'],
+ 'prefix' => ['title' => 'OSS对象前缀/路径', 'description' => 'OSS对象前缀/路径', 'type' => 'string', 'required' => true, 'example' => '/'],
+ 'mountPoint' => ['title' => 'OSS挂载点', 'description' => 'OSS挂载点', 'type' => 'string', 'required' => true, 'example' => '/mnt/oss1'],
+ 'permission' => [
+ 'title' => '权限',
+ 'description' => '权限',
+ 'type' => 'string',
+ 'example' => 'READ_WRITE',
+ 'enum' => ['READ_ONLY', 'READ_WRITE'],
+ ],
+ 'region' => ['title' => 'oss地域', 'description' => 'oss地域', 'type' => 'string', 'example' => 'ch-hangzhou', 'default' => 'cn-hangzhou'],
+ 'endpoint' => ['title' => 'OSS端点', 'type' => 'string'],
+ ],
+ ],
'OSSMountConfig' => [
'title' => 'OSS挂载配置',
'description' => 'OSS挂载配置',
@@ -4913,10 +3744,7 @@
'title' => 'OSS挂载点配置。',
'description' => 'OSS挂载点配置。',
'type' => 'array',
- 'items' => [
- 'description' => 'OSS 挂载点配置',
- '$ref' => '#/components/schemas/OSSMountPoint',
- ],
+ 'items' => ['description' => 'OSS 挂载点配置', '$ref' => '#/components/schemas/OSSMountPoint'],
'required' => false,
'maxItems' => 5,
],
@@ -4927,179 +3755,66 @@
'description' => 'OSS挂载点配置',
'type' => 'object',
'properties' => [
- 'bucketName' => [
- 'title' => '挂载的OSS Bucket。',
- 'description' => '挂载的OSS Bucket。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-bucket',
- 'maxLength' => 64,
- 'minLength' => 3,
- ],
- 'bucketPath' => [
- 'title' => '挂载的OSS Bucket路径。',
- 'description' => '挂载的OSS Bucket路径。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/my-dir',
- 'maxLength' => 128,
- ],
- 'endpoint' => [
- 'title' => 'OSS访问地址。',
- 'description' => 'OSS访问地址。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'http://oss-cn-shanghai.aliyuncs.com',
- 'maxLength' => 128,
- ],
- 'mountDir' => [
- 'title' => '挂载目录。',
- 'description' => '挂载目录。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/mnt/dir',
- 'maxLength' => 64,
- 'minLength' => 2,
- ],
- 'readOnly' => [
- 'title' => '是否只读。',
- 'description' => '是否只读。',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- ],
- ],
- 'OssConfiguration' => [
- 'title' => 'OSS配置',
- 'description' => '代码解释器或浏览器的OSS配置',
- 'type' => 'object',
- 'properties' => [
- 'bucketName' => [
- 'title' => 'OSS存储桶名称',
- 'description' => 'OSS存储桶名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'a-test-oss',
- ],
- 'prefix' => [
- 'title' => 'OSS对象前缀/路径',
- 'description' => 'OSS对象前缀/路径',
- 'type' => 'string',
- 'required' => true,
- 'example' => '/',
- ],
- 'mountPoint' => [
- 'title' => 'OSS挂载点',
- 'description' => 'OSS挂载点',
- 'type' => 'string',
- 'required' => true,
- 'example' => '/mnt/oss1',
- ],
- 'permission' => [
- 'title' => '权限',
- 'description' => '权限',
- 'type' => 'string',
- 'example' => 'READ_WRITE',
- 'enum' => [
- 'READ_ONLY',
- 'READ_WRITE',
- ],
- ],
- 'region' => [
- 'title' => 'oss地域',
- 'description' => 'oss地域',
- 'type' => 'string',
- 'example' => 'ch-hangzhou',
- 'default' => 'cn-hangzhou',
- ],
+ 'bucketName' => ['title' => '挂载的OSS Bucket。', 'description' => '挂载的OSS Bucket。', 'type' => 'string', 'required' => false, 'example' => 'my-bucket', 'maxLength' => 64, 'minLength' => 3],
+ 'bucketPath' => ['title' => '挂载的OSS Bucket路径。', 'description' => '挂载的OSS Bucket路径。', 'type' => 'string', 'required' => false, 'example' => '/my-dir', 'maxLength' => 128],
+ 'endpoint' => ['title' => 'OSS访问地址。', 'description' => 'OSS访问地址。', 'type' => 'string', 'required' => false, 'example' => 'http://oss-cn-shanghai.aliyuncs.com', 'maxLength' => 128],
+ 'mountDir' => ['title' => '挂载目录。', 'description' => '挂载目录。', 'type' => 'string', 'required' => false, 'example' => '/mnt/dir', 'maxLength' => 64, 'minLength' => 2],
+ 'readOnly' => ['title' => '是否只读。', 'description' => '是否只读。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'PaginationInfo' => [
'type' => 'object',
'properties' => [
- 'page' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'limit' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'total' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'totalPages' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
+ 'page' => ['type' => 'integer', 'format' => 'int32', 'description' => ''],
+ 'limit' => ['type' => 'integer', 'format' => 'int32', 'description' => ''],
+ 'total' => ['type' => 'integer', 'format' => 'int32', 'description' => ''],
+ 'totalPages' => ['type' => 'integer', 'format' => 'int32', 'description' => ''],
],
+ 'description' => '',
],
'PathConfig' => [
'title' => '路径配置',
'description' => '路径配置:定义路由规则对应的请求路径、支持的方法和资源信息',
'type' => 'object',
'properties' => [
- 'path' => [
- 'title' => '请求路径',
- 'description' => '此条路由规则对应的请求路径。',
- 'type' => 'string',
- 'example' => '/login',
- ],
- 'resourceName' => [
- 'title' => '资源名称',
- 'description' => '资源名称',
- 'type' => 'string',
- ],
+ 'path' => ['title' => '请求路径', 'description' => '此条路由规则对应的请求路径。', 'type' => 'string', 'example' => '/login'],
+ 'resourceName' => ['title' => '资源名称', 'description' => '资源名称', 'type' => 'string'],
'resourceType' => [
'title' => '资源类型',
'description' => '资源类型(和凭证关联资源类型一致)',
'type' => 'string',
'example' => 'runtime',
- 'enum' => [
- 'runtime',
- ],
+ 'enum' => ['runtime', 'flow'],
],
- 'agentRuntimeEndpointName' => [
- 'title' => 'Agent Runtime版本',
- 'description' => 'agent runtime 版本(仅当 resourceType 为 runtime 时有效)',
+ 'agentRuntimeEndpointName' => ['title' => 'Agent Runtime版本', 'description' => 'agent runtime 版本(仅当 resourceType 为 runtime 时有效)', 'type' => 'string'],
+ 'compatibleProtocol' => [
+ 'title' => '兼容协议',
+ 'description' => '兼容协议,指定后端响应格式转换。仅当 resourceType 为 flow 时必填:native 表示 FnF 原生调用;openai、dify-workflow、dify-chatflow 为对应兼容 API。',
'type' => 'string',
+ 'example' => 'native',
+ 'enum' => ['native', 'openai', 'dify-workflow', 'dify-chatflow'],
],
+ 'flowEndpointName' => ['title' => 'Flow版本别名', 'description' => 'Flow 版本/别名(仅当 resourceType 为 flow 时有效,默认 Default)', 'type' => 'string', 'example' => 'Default'],
'methods' => [
'title' => '支持的方法',
'description' => '支持的方法有:HEAD, GET, POST, PUT, DELETE, PATCH, OPTIONS',
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
+ 'items' => ['type' => 'string'],
'example' => '[\'GET\']',
],
+ 'removeBasePathOnForward' => ['type' => 'boolean'],
],
],
'PolarFsConfig' => [
'description' => 'PFS 挂载配置',
'type' => 'object',
'properties' => [
- 'groupId' => [
- 'description' => '组ID',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1000',
- ],
- 'userId' => [
- 'description' => '用户 ID',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1000',
- ],
+ 'groupId' => ['description' => '组ID', 'type' => 'integer', 'format' => 'int32', 'example' => '1000'],
+ 'userId' => ['description' => '用户 ID', 'type' => 'integer', 'format' => 'int32', 'example' => '1000'],
'mountPoints' => [
'description' => 'FPS 挂载点',
'type' => 'array',
- 'items' => [
- 'description' => 'PFS挂载点信息',
- '$ref' => '#/components/schemas/PolarFsMountConfig',
- ],
+ 'items' => ['description' => 'PFS挂载点信息', '$ref' => '#/components/schemas/PolarFsMountConfig'],
],
],
],
@@ -5107,37 +3822,20 @@
'description' => 'PFS文件挂载配置',
'type' => 'object',
'properties' => [
- 'instanceId' => [
- 'description' => '实例ID。',
- 'type' => 'string',
- 'example' => 'pfs-cn-6sa48a6gk001',
- ],
- 'mountDir' => [
- 'description' => '本地挂载目录。'."\n"
- ."\n",
- 'type' => 'string',
- 'example' => '/',
- ],
- 'remoteDir' => [
- 'description' => '远程挂载目录',
- 'type' => 'string',
- 'example' => '/mnt/pfs',
- ],
+ 'instanceId' => ['description' => '实例ID。', 'type' => 'string', 'example' => 'pfs-cn-6sa48a6gk001'],
+ 'mountDir' => ['description' => '本地挂载目录。'."\n"
+ ."\n", 'type' => 'string', 'example' => '/'],
+ 'remoteDir' => ['description' => '远程挂载目录', 'type' => 'string', 'example' => '/mnt/pfs'],
],
],
'PolicyConfig' => [
'type' => 'object',
'properties' => [
- 'type' => [
- 'type' => 'string',
- ],
- 'enable' => [
- 'type' => 'boolean',
- ],
- 'aiFallbackConfig' => [
- '$ref' => '#/components/schemas/AiFallbackConfig',
- ],
+ 'type' => ['type' => 'string', 'description' => ''],
+ 'enable' => ['type' => 'boolean', 'description' => ''],
+ 'aiFallbackConfig' => ['$ref' => '#/components/schemas/AiFallbackConfig', 'description' => ''],
],
+ 'description' => '',
],
'ProtocolConfiguration' => [
'title' => '协议配置',
@@ -5150,20 +3848,13 @@
'type' => 'string',
'deprecated' => true,
'example' => 'HTTP',
- 'enum' => [
- 'HTTP',
- 'MCP',
- ],
+ 'enum' => ['HTTP', 'MCP'],
],
'protocolSettings' => [
'title' => '协议设置',
'description' => '详细的协议配置信息',
'type' => 'array',
- 'items' => [
- 'title' => '协议设置项',
- 'description' => '协议设置项',
- '$ref' => '#/components/schemas/ProtocolSettings',
- ],
+ 'items' => ['title' => '协议设置项', 'description' => '协议设置项', '$ref' => '#/components/schemas/ProtocolSettings'],
],
],
],
@@ -5172,79 +3863,30 @@
'description' => '协议设置表示详细的协议配置信息',
'type' => 'object',
'properties' => [
- 'name' => [
- 'title' => '协议名称',
- 'description' => '协议名称',
- 'type' => 'string',
- ],
- 'path' => [
- 'title' => '协议路径',
- 'description' => '协议路径',
- 'type' => 'string',
- ],
- 'pathPrefix' => [
- 'title' => '协议路径前缀',
- 'description' => '协议路径前缀',
- 'type' => 'string',
- ],
- 'headers' => [
- 'title' => '请求头',
- 'description' => '请求头',
- 'type' => 'string',
- ],
- 'method' => [
- 'title' => 'HTTP方法',
- 'description' => 'HTTP方法',
- 'type' => 'string',
- ],
- 'inputBodyJsonSchema' => [
- 'title' => '请求体JSON模式',
- 'description' => '请求体JSON模式',
- 'type' => 'string',
- ],
- 'outputBodyJsonSchema' => [
- 'title' => '响应体JSON模式',
- 'description' => '响应体JSON模式',
- 'type' => 'string',
- ],
- 'requestContentType' => [
- 'title' => '请求内容类型',
- 'description' => '请求内容类型',
- 'type' => 'string',
- ],
- 'responseContentType' => [
- 'title' => '响应内容类型',
- 'description' => '响应内容类型',
- 'type' => 'string',
- ],
- 'A2AAgentCard' => [
- 'title' => 'A2A Agent Card',
- 'description' => 'A2A Agent Card',
- 'type' => 'string',
- 'deprecated' => true,
- ],
- 'a2aAgentCard' => [
- 'type' => 'string',
- ],
- 'a2aAgentCardUrl' => [
- 'type' => 'string',
- ],
+ 'type' => ['title' => '协议类型', 'description' => '协议类型标识,用于校验与去重;合法取值由后端校验', 'type' => 'string'],
+ 'name' => ['title' => '协议名称', 'description' => '可选展示名/别名,不再作为协议类型标识', 'type' => 'string', 'required' => false],
+ 'config' => ['title' => '配置', 'description' => '协议配置的 JSON 字符串', 'type' => 'string', 'required' => false],
+ 'path' => ['title' => '协议路径', 'description' => '协议路径', 'type' => 'string', 'deprecated' => true],
+ 'pathPrefix' => ['title' => '协议路径前缀', 'description' => '协议路径前缀,建议使用 config', 'type' => 'string', 'deprecated' => true],
+ 'headers' => ['title' => '请求头', 'description' => '请求头', 'type' => 'string', 'deprecated' => true],
+ 'method' => ['title' => 'HTTP方法', 'description' => 'HTTP方法', 'type' => 'string', 'deprecated' => true],
+ 'inputBodyJsonSchema' => ['title' => '请求体JSON模式', 'description' => '请求体JSON模式', 'type' => 'string', 'deprecated' => true],
+ 'outputBodyJsonSchema' => ['title' => '响应体JSON模式', 'description' => '响应体JSON模式', 'type' => 'string', 'deprecated' => true],
+ 'requestContentType' => ['title' => '请求内容类型', 'description' => '请求内容类型', 'type' => 'string', 'deprecated' => true],
+ 'responseContentType' => ['title' => '响应内容类型', 'description' => '响应内容类型', 'type' => 'string', 'deprecated' => true],
+ 'A2AAgentCard' => ['type' => 'string', 'deprecated' => true],
+ 'a2aAgentCard' => ['type' => 'string', 'deprecated' => true],
+ 'a2aAgentCardUrl' => ['type' => 'string', 'deprecated' => true],
],
],
'ProviderSettings' => [
'type' => 'object',
'properties' => [
- 'baseUrl' => [
- 'type' => 'string',
- ],
- 'apiKey' => [
- 'type' => 'string',
- ],
+ 'baseUrl' => ['type' => 'string'],
+ 'apiKey' => ['type' => 'string'],
'modelNames' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
+ 'items' => ['type' => 'string'],
],
],
],
@@ -5254,87 +3896,41 @@
'policies' => [
'type' => 'object',
'properties' => [
- 'requestTimeout' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'numRetries' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'cache' => [
- 'type' => 'boolean',
- ],
- 'concurrencyLimit' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
+ 'requestTimeout' => ['type' => 'integer', 'format' => 'int32'],
+ 'numRetries' => ['type' => 'integer', 'format' => 'int32'],
+ 'cache' => ['type' => 'boolean'],
+ 'concurrencyLimit' => ['type' => 'integer', 'format' => 'int32'],
'fallbacks' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'modelServiceName' => [
- 'type' => 'string',
- ],
- 'modelName' => [
- 'type' => 'string',
- ],
+ 'modelServiceName' => ['type' => 'string'],
+ 'modelName' => ['type' => 'string'],
],
],
],
'tokenRateLimiter' => [
'type' => 'object',
'properties' => [
- 'tps' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'tpm' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'tph' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'tpd' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
+ 'tps' => ['type' => 'integer', 'format' => 'int32'],
+ 'tpm' => ['type' => 'integer', 'format' => 'int32'],
+ 'tph' => ['type' => 'integer', 'format' => 'int32'],
+ 'tpd' => ['type' => 'integer', 'format' => 'int32'],
],
],
'aiGuardrailConfig' => [
'type' => 'object',
'properties' => [
- 'checkRequest' => [
- 'type' => 'boolean',
- ],
- 'checkResponse' => [
- 'type' => 'boolean',
- ],
- 'level' => [
- 'type' => 'string',
- ],
- 'maxTextLength' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'blockOnContentModeration' => [
- 'type' => 'boolean',
- ],
- 'blockOnSensitiveData' => [
- 'type' => 'boolean',
- ],
- 'blockOnPromptAttack' => [
- 'type' => 'boolean',
- ],
- 'blockOnMaliciousUrl' => [
- 'type' => 'boolean',
- ],
- 'blockOnModelHallucination' => [
- 'type' => 'boolean',
- ],
+ 'checkRequest' => ['type' => 'boolean'],
+ 'checkResponse' => ['type' => 'boolean'],
+ 'level' => ['type' => 'string'],
+ 'maxTextLength' => ['type' => 'integer', 'format' => 'int32'],
+ 'blockOnContentModeration' => ['type' => 'boolean'],
+ 'blockOnSensitiveData' => ['type' => 'boolean'],
+ 'blockOnPromptAttack' => ['type' => 'boolean'],
+ 'blockOnMaliciousUrl' => ['type' => 'boolean'],
+ 'blockOnModelHallucination' => ['type' => 'boolean'],
],
],
],
@@ -5344,155 +3940,142 @@
'items' => [
'type' => 'object',
'properties' => [
- 'modelServiceName' => [
- 'type' => 'string',
- ],
- 'weight' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'baseUrl' => [
- 'type' => 'string',
- ],
+ 'modelServiceName' => ['type' => 'string'],
+ 'weight' => ['type' => 'integer', 'format' => 'int32'],
+ 'baseUrl' => ['type' => 'string'],
'modelNames' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
+ 'items' => ['type' => 'string'],
],
],
],
],
],
],
+ 'PublishFlowVersionInput' => [
+ 'title' => '发布工作流版本输入',
+ 'description' => '发布工作流版本所需的输入参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'description' => ['title' => '描述', 'description' => '工作流版本的描述信息', 'type' => 'string', 'example' => 'Version 1.0 - Initial release'],
+ ],
+ ],
'PublishRuntimeVersionInput' => [
'title' => '发布运行时版本输入',
'description' => '发布运行时版本输入',
'type' => 'object',
'properties' => [
- 'description' => [
- 'title' => '版本描述',
- 'description' => '此版本的描述',
- 'type' => 'string',
- ],
- 'publisher' => [
- 'title' => '发布者',
- 'description' => '发布此版本的用户或系统标识',
- 'type' => 'string',
- 'example' => 'user123',
- ],
+ 'description' => ['title' => '版本描述', 'description' => '此版本的描述', 'type' => 'string'],
+ 'publisher' => ['title' => '发布者', 'description' => '发布此版本的用户或系统标识', 'type' => 'string', 'example' => 'user123'],
],
],
- 'RecordingConfiguration' => [
- 'title' => '浏览器录制配置',
- 'description' => '浏览器录制配置',
+ 'RateLimitRule' => [
+ 'title' => '限流规则',
+ 'description' => '限流规则的详细信息,用于控制AI网关的请求速率',
'type' => 'object',
'properties' => [
- 'enabled' => [
- 'title' => '是否启用录制',
- 'description' => '是否启用录制',
- 'type' => 'boolean',
- 'required' => true,
- ],
- 'ossLocation' => [
- 'title' => 'OSS位置',
- '$ref' => '#/components/schemas/OssConfiguration',
+ 'rateLimitRuleId' => ['title' => '规则ID', 'description' => '限流规则的唯一标识符', 'type' => 'string', 'example' => '12345678-1234-1234-1234-123456789abc'],
+ 'descriptorType' => ['title' => '描述符类型', 'description' => '限流规则的描述符类型,如model、user等', 'type' => 'string', 'example' => 'model'],
+ 'descriptorId' => ['title' => '描述符ID', 'description' => '限流规则的描述符标识,用于关联具体的限流对象', 'type' => 'string', 'example' => 'model:gpt-4'],
+ 'enabled' => ['title' => '启用状态', 'description' => '限流规则是否启用,true表示启用,false表示禁用', 'type' => 'boolean', 'example' => 'true'],
+ 'createdAt' => ['title' => '创建时间', 'description' => '限流规则的创建时间,采用ISO 8601格式', 'type' => 'string', 'example' => '2025-01-10T10:30:00Z'],
+ 'lastUpdatedAt' => ['title' => '更新时间', 'description' => '限流规则最后一次更新的时间,采用ISO 8601格式', 'type' => 'string', 'example' => '2025-01-10T11:45:00Z'],
+ 'windows' => [
+ 'title' => '限流窗口列表',
+ 'description' => '限流时间窗口配置列表,支持多个窗口叠加限流',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/WindowLimit'],
],
],
],
+ 'RateLimitRuleResult' => [
+ 'title' => '限流规则结果',
+ 'description' => '创建、获取、更新、删除限流规则的统一结果格式',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '限流规则数据', 'description' => '限流规则的详细信息', 'example' => '{}', '$ref' => '#/components/schemas/RateLimitRule'],
+ ],
+ ],
'RegisterServiceInput' => [
'title' => '注册服务输入',
'description' => '注册外部服务所需的输入参数',
'type' => 'object',
'properties' => [
- 'tenantId' => [
- 'title' => '租户ID',
- 'description' => '租户ID,用于多租户隔离',
- 'type' => 'string',
- 'required' => true,
- 'example' => '1234567890123456',
- ],
- 'serviceName' => [
- 'title' => '服务名称',
- 'description' => '服务名称,在租户内唯一',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-service',
- ],
- 'serviceType' => [
- 'title' => '服务类型',
- 'description' => '服务类型',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'FC',
- ],
+ 'tenantId' => ['title' => '租户ID', 'description' => '租户ID,用于多租户隔离', 'type' => 'string', 'required' => true, 'example' => '1234567890123456'],
+ 'serviceName' => ['title' => '服务名称', 'description' => '服务名称,在租户内唯一', 'type' => 'string', 'required' => true, 'example' => 'my-service'],
+ 'serviceType' => ['title' => '服务类型', 'description' => '服务类型', 'type' => 'string', 'required' => true, 'example' => 'FC'],
'protocol' => [
'title' => '协议类型',
'description' => '服务的协议类型',
'type' => 'string',
'required' => true,
'example' => 'HTTP',
- 'enum' => [
- 'HTTP',
- 'MCP-SSE',
- 'MCP-STREAMABLE-HTTP',
- ],
- ],
- 'serviceBackendEndpoint' => [
- 'title' => '服务后端端点',
- 'description' => '转发的下游服务端点URL,必须是有效的HTTP/HTTPS地址(这里是 FC trigger endpoint)',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'https://123456789.cn-hangzhou.fc.aliyuncs.com/2016-08-15/proxy/my-service/my-function/',
- ],
- 'resourceName' => [
- 'title' => '资源名称',
- 'description' => '关联的资源名称',
- 'type' => 'string',
- 'example' => 'my-resource',
- ],
- 'credentialName' => [
- 'title' => '凭证名称',
- 'description' => '关联的凭证ID,用于服务认证',
- 'type' => 'string',
- 'example' => 'my-credential',
+ 'enum' => ['HTTP', 'MCP-SSE', 'MCP-STREAMABLE-HTTP'],
],
+ 'serviceBackendEndpoint' => ['title' => '服务后端端点', 'description' => '转发的下游服务端点URL,必须是有效的HTTP/HTTPS地址(这里是 FC trigger endpoint)', 'type' => 'string', 'required' => true, 'example' => 'https://123456789.cn-hangzhou.fc.aliyuncs.com/2016-08-15/proxy/my-service/my-function/'],
+ 'resourceName' => ['title' => '资源名称', 'description' => '关联的资源名称', 'type' => 'string', 'example' => 'my-resource'],
+ 'credentialName' => ['title' => '凭证名称', 'description' => '关联的凭证ID,用于服务认证', 'type' => 'string', 'example' => 'my-credential'],
+ ],
+ ],
+ 'RegistryAuthConfig' => [
+ 'title' => '镜像仓库认证配置',
+ 'description' => '自定义容器镜像仓库的认证配置信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'userName' => ['title' => '用户名', 'description' => '镜像仓库的登录用户名', 'type' => 'string', 'example' => 'admin'],
+ 'password' => ['title' => '密码', 'description' => '镜像仓库的登录密码', 'type' => 'string', 'example' => 'abc***'],
+ ],
+ ],
+ 'RegistryCertConfig' => [
+ 'title' => '镜像仓库证书配置',
+ 'description' => '自定义容器镜像仓库的证书配置信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'insecure' => ['title' => '是否跳过证书验证', 'description' => '是否跳过TLS证书验证,设置为true时将不验证镜像仓库的证书', 'type' => 'boolean', 'example' => 'false'],
+ 'rootCaCertBase64' => ['title' => '根CA证书Base64', 'description' => '镜像仓库的根CA证书Base64编码,用于自签名证书的验证', 'type' => 'string', 'example' => 'cm9vdF9jYV9jZXJ0X2Jhc2U2NA=='],
+ ],
+ ],
+ 'RegistryConfig' => [
+ 'title' => '镜像仓库配置',
+ 'description' => '自定义容器镜像仓库的配置信息,包括认证、证书和网络配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'authConfig' => ['title' => '认证配置', 'description' => '镜像仓库的认证配置信息', 'example' => '{}', '$ref' => '#/components/schemas/RegistryAuthConfig'],
+ 'certConfig' => ['title' => '证书配置', 'description' => '镜像仓库的证书配置信息', 'example' => '{}', '$ref' => '#/components/schemas/RegistryCertConfig'],
+ 'networkConfig' => ['title' => '网络配置', 'description' => '镜像仓库的网络配置信息', 'example' => '{}', '$ref' => '#/components/schemas/RegistryNetworkConfig'],
+ ],
+ ],
+ 'RegistryNetworkConfig' => [
+ 'title' => '镜像仓库网络配置',
+ 'description' => '自定义容器镜像仓库的网络配置信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'vpcId' => ['title' => 'VPC ID', 'description' => '镜像仓库所在的VPC ID', 'type' => 'string', 'example' => 'vpc-xxxxxxxxxxxxx'],
+ 'vSwitchId' => ['title' => '交换机ID', 'description' => '镜像仓库所在的交换机ID', 'type' => 'string', 'example' => 'vsw-xxxxxxxxxxxxx'],
+ 'securityGroupId' => ['title' => '安全组ID', 'description' => '镜像仓库的安全组ID', 'type' => 'string', 'example' => 'sg-xxxxxxxxxxxxx'],
],
],
'RelatedResource' => [
'type' => 'object',
'properties' => [
- 'resourceId' => [
- 'type' => 'string',
- ],
- 'resourceName' => [
- 'type' => 'string',
- ],
+ 'resourceId' => ['type' => 'string'],
+ 'resourceName' => ['type' => 'string'],
'resourceType' => [
'type' => 'string',
- 'enum' => [
- 'litellm',
- 'model',
- 'runtime',
- 'template',
- 'model',
- ],
+ 'enum' => ['litellm', 'model', 'runtime', 'template', 'model'],
],
],
],
'RelatedWorkload' => [
'type' => 'object',
'properties' => [
- 'resourceId' => [
- 'type' => 'string',
- ],
- 'resourceName' => [
- 'type' => 'string',
- ],
- 'resourceType' => [
- 'type' => 'string',
- ],
+ 'resourceId' => ['type' => 'string', 'description' => ''],
+ 'resourceName' => ['type' => 'string', 'description' => ''],
+ 'resourceType' => ['type' => 'string', 'description' => ''],
],
+ 'description' => '',
],
'RouteConfig' => [
'title' => '路由配置',
@@ -5503,9 +4086,7 @@
'title' => '路由表',
'description' => '路由表:自定义域名访问时的 PATH 到 Function 的映射列表。',
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/PathConfig',
- ],
+ 'items' => ['$ref' => '#/components/schemas/PathConfig'],
'example' => '[]',
],
],
@@ -5519,187 +4100,140 @@
'title' => '版本权重列表',
'description' => '不同版本的流量权重配置',
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/VersionWeight',
- ],
+ 'items' => ['$ref' => '#/components/schemas/VersionWeight', 'description' => ''],
],
],
],
+ 'RuntimeAgentIdentityConfig' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'identityProviderName' => ['type' => 'string'],
+ 'workloadIdentityName' => ['type' => 'string'],
+ ],
+ ],
'Sandbox' => [
'title' => '沙箱',
'description' => 'AgentRun沙箱实例',
'type' => 'object',
'properties' => [
- 'sandboxId' => [
- 'title' => '沙箱ID',
- 'description' => '沙箱ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => '01KAWBP6JQD0J3Z34BP4WMX1KG',
- ],
- 'templateId' => [
- 'title' => '模板ID',
- 'description' => '模板ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => '8d409d30-cac1-445a-95d5-476c47780336.schema',
- ],
- 'templateName' => [
- 'title' => '模板名称',
- 'description' => '模板名称',
- 'type' => 'string',
- 'example' => 'my-template',
- ],
+ 'sandboxId' => ['title' => '沙箱ID', 'description' => '沙箱ID', 'type' => 'string', 'required' => true, 'example' => '01KAWBP6JQD0J3Z34BP4WMX1KG'],
+ 'templateId' => ['title' => '模板ID', 'description' => '模板ID', 'type' => 'string', 'required' => true, 'example' => '8d409d30-cac1-445a-95d5-476c47780336.schema'],
+ 'templateName' => ['title' => '模板名称', 'description' => '模板名称', 'type' => 'string', 'example' => 'my-template'],
'status' => [
'title' => '状态',
'description' => '状态',
'type' => 'string',
'required' => true,
'example' => 'READY',
- 'enum' => [
- 'READY',
- 'TERMINATED',
- ],
- ],
- 'createdAt' => [
- 'title' => '创建时间',
- 'description' => '沙箱创建时间',
- 'type' => 'string',
- 'required' => true,
- 'example' => '2025-11-26T10:54:17.770719+08:00',
- ],
- 'lastUpdatedAt' => [
- 'title' => '最后更新时间',
- 'description' => '最后更新时间',
- 'type' => 'string',
- 'example' => '2025-11-26T10:54:17.770719+08:00',
- ],
- 'sandboxIdleTimeoutSeconds' => [
- 'title' => '沙箱空闲超时时间',
- 'description' => '沙箱空闲超时时间(秒)',
- 'type' => 'integer',
- 'format' => 'int32',
- 'maximum' => '21600',
- 'minimum' => '1',
- 'example' => '1800',
- ],
- 'endedAt' => [
- 'title' => '沙箱终止时间',
- 'description' => '沙箱终止时间',
- 'type' => 'string',
- 'example' => '2025-11-26T10:54:17.770719+08:00',
- ],
- 'sandboxArn' => [
- 'title' => '沙箱资源ARN',
- 'description' => '沙箱资源ARN',
- 'type' => 'string',
- 'example' => 'acs:ram::1760720386195983:role/aliyunfcdefaultrole',
- ],
- 'sandboxIdleTTLInSeconds' => [
- 'title' => '沙箱生命周期存活时间',
- 'description' => '沙箱生命周期时间(已弃用)',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '已弃用',
- ],
- 'metadata' => [
- 'title' => '沙箱元数据',
- 'description' => '沙箱元数据',
- 'type' => 'object',
- 'example' => '{}',
+ 'enum' => ['READY', 'TERMINATED', 'PAUSING', 'PAUSED', 'RESUMING', 'PAUSE_FAIL', 'RESUME_FAIL'],
],
+ 'createdAt' => ['title' => '创建时间', 'description' => '沙箱创建时间', 'type' => 'string', 'required' => true, 'example' => '2025-11-26T10:54:17.770719+08:00'],
+ 'lastUpdatedAt' => ['title' => '最后更新时间', 'description' => '最后更新时间', 'type' => 'string', 'example' => '2025-11-26T10:54:17.770719+08:00'],
+ 'sandboxIdleTimeoutSeconds' => ['title' => '沙箱空闲超时时间', 'description' => '沙箱空闲超时时间(秒)', 'type' => 'integer', 'format' => 'int32', 'maximum' => '21600', 'minimum' => '1', 'example' => '1800'],
+ 'endedAt' => ['title' => '沙箱终止时间', 'description' => '沙箱终止时间', 'type' => 'string', 'example' => '2025-11-26T10:54:17.770719+08:00'],
+ 'sandboxArn' => ['title' => '沙箱资源ARN', 'description' => '沙箱资源ARN', 'type' => 'string', 'example' => 'acs:ram::1760720386195983:role/aliyunfcdefaultrole'],
+ 'sandboxIdleTTLInSeconds' => ['title' => '沙箱生命周期存活时间', 'description' => '沙箱生命周期时间(已弃用)', 'type' => 'integer', 'format' => 'int32', 'example' => '已弃用'],
+ 'metadata' => ['title' => '沙箱元数据', 'description' => '沙箱元数据', 'type' => 'object', 'example' => '{}'],
],
],
- 'SandboxHealthCheckOut' => [
+ 'SandboxResult' => [
+ 'title' => '沙箱结果',
+ 'description' => '沙箱操作的统一结果格式',
'type' => 'object',
'properties' => [
- 'status' => [
- 'title' => '健康状态',
- 'description' => '健康状态,OK表示健康',
- 'type' => 'string',
- 'required' => true,
- 'enum' => [
- 'OK',
- ],
- ],
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '沙箱数据', 'description' => '沙箱的详细信息', 'required' => true, '$ref' => '#/components/schemas/Sandbox'],
],
],
- 'SandboxHealthCheckResult' => [
- 'title' => '沙箱健康检查结果',
- 'description' => '沙箱健康检查的统一结果格式',
+ 'ScalingConfig' => [
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '返回结果码',
- 'description' => 'SUCCESS 为成功',
- 'type' => 'string',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '唯一的请求标识符,用于问题追踪',
- 'type' => 'string',
- ],
- 'data' => [
- '$ref' => '#/components/schemas/SandboxHealthCheckOut',
+ 'minInstances' => ['title' => '最小实例数', 'type' => 'integer', 'format' => 'int64', 'example' => '2'],
+ 'scheduledPolicies' => [
+ 'title' => '定时扩容策略',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/ScheduledPolicy'],
],
],
],
- 'SandboxResult' => [
- 'title' => '沙箱结果',
- 'description' => '沙箱操作的统一结果格式',
+ 'ScalingStatus' => [
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '唯一的请求标识符,用于问题追踪',
- 'type' => 'string',
- 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E',
- ],
- 'data' => [
- 'title' => '沙箱数据',
- 'description' => '沙箱的详细信息',
- 'required' => true,
- '$ref' => '#/components/schemas/Sandbox',
+ 'minInstances' => ['title' => '最小实例数量', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'targetInstances' => ['title' => '目标实例数量', 'type' => 'integer', 'format' => 'int64', 'example' => '2'],
+ 'currentInstances' => ['title' => '当前实例数', 'type' => 'integer', 'format' => 'int64', 'example' => '2'],
+ 'scheduledPolicies' => [
+ 'title' => '定时伸缩策略',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/ScheduledPolicy'],
],
+ 'currentError' => ['title' => '当前错误', 'type' => 'string', 'example' => 'error'],
+ ],
+ ],
+ 'ScheduledPolicy' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['title' => '策略名称', 'type' => 'string', 'example' => 'scale-up-morning'],
+ 'startTime' => ['title' => '策略生效时间', 'type' => 'string', 'example' => '2024-01-01T08:00:00'],
+ 'endTime' => ['title' => '策略失效时间', 'type' => 'string', 'example' => '2024-01-01T08:00:00'],
+ 'scheduleExpression' => ['title' => '定时配置', 'type' => 'string', 'example' => 'cron(0 8 * * ? *)'],
+ 'timeZone' => ['title' => '时区', 'type' => 'string', 'example' => 'Asia/Shanghai'],
+ 'target' => ['title' => '策略目标实例数', 'type' => 'integer', 'format' => 'int64', 'example' => '20'],
],
],
'ServiceConfig' => [
'type' => 'object',
'properties' => [
- 'name' => [
- 'type' => 'string',
- ],
- 'aiServiceConfig' => [
- '$ref' => '#/components/schemas/AiServiceConfig',
- ],
+ 'name' => ['type' => 'string', 'description' => ''],
+ 'aiServiceConfig' => ['$ref' => '#/components/schemas/AiServiceConfig', 'description' => ''],
+ ],
+ 'description' => '',
+ ],
+ 'ServiceInfo' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'serviceID' => ['type' => 'string', 'description' => ''],
+ 'gatewayID' => ['type' => 'string', 'description' => ''],
+ 'name' => ['type' => 'string', 'description' => ''],
+ 'aiServiceConfig' => ['$ref' => '#/components/schemas/AiServiceConfig', 'description' => ''],
+ 'createdAt' => ['type' => 'string', 'description' => ''],
+ 'updatedAt' => ['type' => 'string', 'description' => ''],
],
+ 'description' => '',
],
'ServiceResult' => [
'title' => '服务结果',
'description' => '外部服务操作的统一结果格式',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '唯一的请求标识符,用于问题追踪',
- 'type' => 'string',
- ],
- 'data' => [
- 'title' => '服务数据',
- 'description' => '服务的详细信息',
- 'type' => 'any',
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string'],
+ 'data' => ['title' => '服务数据', 'description' => '服务的详细信息', 'type' => 'any'],
+ ],
+ ],
+ 'SessionConfig' => [
+ 'title' => '会话配置',
+ 'description' => '会话配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'timeout' => ['title' => '超时时间(秒)', 'description' => '超时时间(秒)', 'type' => 'integer', 'format' => 'int32'],
+ 'environment' => [
+ 'title' => '环境变量',
+ 'description' => '环境变量',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string', 'description' => ''],
],
+ 'workingDirectory' => ['title' => '工作目录', 'description' => '工作目录', 'type' => 'string'],
+ ],
+ ],
+ 'SLSLogDestination' => [
+ 'title' => 'SLS日志目标',
+ 'description' => '阿里云日志服务(SLS)的日志目标配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'project' => ['title' => '项目名称', 'description' => 'SLS项目名称', 'type' => 'string', 'example' => 'my-sls-project'],
+ 'logStore' => ['title' => '日志库名称', 'description' => 'SLS日志库名称', 'type' => 'string', 'example' => 'my-logstore'],
],
],
'StartBrowserSessionInput' => [
@@ -5707,12 +4241,7 @@
'description' => '启动浏览器会话请求',
'type' => 'object',
'properties' => [
- 'name' => [
- 'title' => '浏览器会话名称',
- 'description' => '浏览器会话名称',
- 'type' => 'string',
- 'example' => 'my-browser-session',
- ],
+ 'name' => ['title' => '浏览器会话名称', 'description' => '浏览器会话名称', 'type' => 'string', 'example' => 'my-browser-session'],
],
],
'StartBrowserSessionResult' => [
@@ -5720,24 +4249,9 @@
'description' => '启动浏览器会话结果',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E',
- ],
- 'data' => [
- 'title' => '数据',
- 'description' => '数据',
- 'example' => '{}',
- '$ref' => '#/components/schemas/BrowserSessionOut',
- ],
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '请求ID', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '数据', 'description' => '数据', 'example' => '{}', '$ref' => '#/components/schemas/BrowserSessionOut'],
],
],
'StartCodeInterpreterSessionInput' => [
@@ -5745,11 +4259,7 @@
'description' => '启动代码解释器会话所需的请求参数',
'type' => 'object',
'properties' => [
- 'name' => [
- 'title' => '会话名称',
- 'description' => '代码解释器会话的名称,用于标识和区分不同的会话实例',
- 'type' => 'string',
- ],
+ 'name' => ['title' => '会话名称', 'description' => '代码解释器会话的名称,用于标识和区分不同的会话实例', 'type' => 'string'],
],
],
'StartCodeInterpreterSessionResult' => [
@@ -5757,21 +4267,17 @@
'description' => '启动代码解释器会话结果',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '请求ID',
- 'type' => 'string',
- ],
- 'data' => [
- 'title' => '数据',
- 'description' => '数据',
- '$ref' => '#/components/schemas/CodeInterpreterSessionOut',
- ],
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string'],
+ 'requestId' => ['title' => '请求ID', 'description' => '请求ID', 'type' => 'string'],
+ 'data' => ['title' => '数据', 'description' => '数据', '$ref' => '#/components/schemas/CodeInterpreterSessionOut'],
+ ],
+ ],
+ 'StartSessionInput' => [
+ 'title' => '启动会话输入',
+ 'description' => '启动会话输入',
+ 'type' => 'object',
+ 'properties' => [
+ 'config' => ['title' => '会话配置', 'description' => '会话配置', '$ref' => '#/components/schemas/SessionConfig'],
],
],
'StopCodeInterpreterSessionResult' => [
@@ -5779,264 +4285,82 @@
'description' => '停止代码解释器会话结果',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '请求ID',
- 'type' => 'string',
- ],
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string'],
+ 'requestId' => ['title' => '请求ID', 'description' => '请求ID', 'type' => 'string'],
],
],
'StopSandboxResult' => [
'description' => '停止代码解释器结果',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => '结果码',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'requestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E',
- ],
- 'data' => [
- 'description' => '代码解释器的详细信息,包含解释器的所有配置和状态信息',
- '$ref' => '#/components/schemas/Sandbox',
- ],
- ],
- ],
- 'TLSConfig' => [
- 'title' => 'TLS配置',
- 'description' => 'TLS配置信息,包括TLS版本和加密套件',
- 'type' => 'object',
- 'properties' => [
- 'minVersion' => [
- 'title' => 'TLS最小版本号',
- 'description' => 'TLS 最小版本号。',
- 'type' => 'string',
- 'example' => 'TLSv1.2',
- 'enum' => [
- 'TLSv1.3',
- 'TLSv1.2',
- ],
- ],
- 'cipherSuites' => [
- 'title' => 'TLS加密套件列表',
- 'description' => 'TLS 加密套件列表。',
- 'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
- 'example' => '[\'TLS_RSA_WITH_RC4_128_SHA\']',
- ],
- 'maxVersion' => [
- 'title' => 'TLS最大版本号',
- 'description' => 'TLS 最大版本号。',
- 'type' => 'string',
- 'example' => 'TLSv1.3',
- 'enum' => [
- 'TLSv1.3',
- 'TLSv1.2',
- ],
- ],
+ 'code' => ['title' => '结果码', 'description' => '结果码', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['description' => '代码解释器的详细信息,包含解释器的所有配置和状态信息', '$ref' => '#/components/schemas/Sandbox'],
],
],
'Target' => [
'type' => 'object',
'properties' => [
- 'targetType' => [
- 'type' => 'string',
- ],
- 'llmConfig' => [
- '$ref' => '#/components/schemas/LLMAPIConfiguration',
- ],
- 'mcpAPI' => [
- '$ref' => '#/components/schemas/MCPAPI',
- ],
+ 'targetType' => ['type' => 'string', 'description' => ''],
+ 'llmConfig' => ['$ref' => '#/components/schemas/LLMAPIConfiguration', 'description' => ''],
+ 'mcpAPI' => ['$ref' => '#/components/schemas/MCPAPI', 'description' => ''],
],
+ 'description' => '',
],
'TargetConfiguration' => [
'type' => 'object',
'properties' => [
- 'targetType' => [
- 'type' => 'string',
- ],
- 'llmAPIConfig' => [
- '$ref' => '#/components/schemas/LLMAPIConfiguration',
- ],
- 'mcpAPIConfig' => [
- '$ref' => '#/components/schemas/MCPAPIConfiguration',
- ],
+ 'targetType' => ['type' => 'string', 'description' => ''],
+ 'llmAPIConfig' => ['$ref' => '#/components/schemas/LLMAPIConfiguration', 'description' => ''],
+ 'mcpAPIConfig' => ['$ref' => '#/components/schemas/MCPAPIConfiguration', 'description' => ''],
],
+ 'description' => '',
],
'TargetServiceConfig' => [
'type' => 'object',
'properties' => [
- 'weight' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'modelName' => [
- 'type' => 'string',
- ],
- 'modelNamePattern' => [
- 'type' => 'string',
- ],
- 'modelId' => [
- 'type' => 'string',
- ],
+ 'weight' => ['type' => 'integer', 'format' => 'int64', 'description' => ''],
+ 'modelName' => ['type' => 'string', 'description' => ''],
+ 'modelNamePattern' => ['type' => 'string', 'description' => ''],
+ 'modelId' => ['type' => 'string', 'description' => ''],
],
+ 'description' => '',
],
'Template' => [
'title' => '模板数据',
'description' => '模板数据',
'type' => 'object',
'properties' => [
- 'templateId' => [
- 'title' => '模板id',
- 'description' => '模板id',
- 'type' => 'string',
- 'required' => true,
- 'example' => '996ffd5e-003f-4700-9f24-9e2a1c19019b.schema',
- ],
- 'templateName' => [
- 'title' => '模板名称',
- 'description' => '模板名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'browser-1767874121726',
- ],
- 'templateVersion' => [
- 'title' => '模板版本',
- 'description' => '模板版本',
- 'type' => 'string',
- 'example' => '预留',
- ],
- 'cpu' => [
- 'title' => 'cpu 核数',
- 'description' => 'cpu 核数',
- 'type' => 'number',
- 'format' => 'float',
- 'required' => true,
- 'example' => '4',
- ],
- 'memory' => [
- 'title' => '内存规格',
- 'description' => '内存规格',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '4096',
- ],
- 'templateArn' => [
- 'title' => '模板 ARN',
- 'description' => '模板 ARN',
- 'type' => 'string',
- 'example' => 'acs:agentrun:cn-hangzhou:12345678:templates/efb6de2f-1814-42a2-b7f3-474a0e0b3a48',
- ],
- 'createdAt' => [
- 'title' => '创建时间',
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '2026-01-15T17:12:59.375168+08:00',
- ],
- 'lastUpdatedAt' => [
- 'title' => '最后更新时间',
- 'description' => '最后更新时间',
- 'type' => 'string',
- 'example' => '2026-01-15T17:12:59.375168+08:00',
- ],
- 'status' => [
- 'title' => '状态',
- 'description' => '状态',
- 'type' => 'string',
- 'example' => 'READY',
- ],
- 'statusReason' => [
- 'title' => '状态原因',
- 'description' => '状态原因',
- 'type' => 'string',
- 'example' => 'SDK Error',
- ],
- 'executionRoleArn' => [
- 'title' => '执行角色',
- 'description' => '执行角色',
- 'type' => 'string',
- 'example' => 'acs:agentrun:cn-hangzhou:12345678:templates/efb6de2f-1814-42a2-b7f3-474a0e0b3a48',
- ],
- 'templateType' => [
- 'title' => '模板类型',
- 'description' => '模板类型',
- 'type' => 'string',
- 'example' => 'Browser',
- ],
- 'containerConfiguration' => [
- 'title' => '自定义镜像配置',
- 'description' => '自定义镜像配置',
- '$ref' => '#/components/schemas/ContainerConfiguration',
- ],
- 'networkConfiguration' => [
- 'title' => '网络配置',
- 'description' => '网络配置',
- '$ref' => '#/components/schemas/NetworkConfiguration',
- ],
- 'credentialConfiguration' => [
- 'title' => '鉴权配置',
- 'description' => '鉴权配置',
- '$ref' => '#/components/schemas/CredentialConfiguration',
- ],
- 'logConfiguration' => [
- 'title' => '日志配置',
- 'description' => '日志配置',
- '$ref' => '#/components/schemas/LogConfiguration',
- ],
- 'sandboxIdleTimeoutInSeconds' => [
- 'title' => '沙箱闲置超时时间',
- 'description' => '沙箱闲置超时时间',
- 'type' => 'string',
- 'example' => '1800',
- ],
- 'sandboxTTLInSeconds' => [
- 'title' => '沙箱生命周期存活时间(已弃用)',
- 'description' => '沙箱生命周期存活时间(已弃用)',
- 'type' => 'string',
- 'deprecated' => true,
- 'example' => '已弃用',
- ],
- 'resourceName' => [
- 'title' => '资源名称',
- 'description' => '资源名称',
- 'type' => 'string',
- 'example' => 'agentrun-f2570dd4-c8a2-452c-8bd5-4ef74b0a69b5',
- ],
+ 'templateId' => ['title' => '模板id', 'description' => '模板id', 'type' => 'string', 'required' => true, 'example' => '996ffd5e-003f-4700-9f24-9e2a1c19019b.schema'],
+ 'templateName' => ['title' => '模板名称', 'description' => '模板名称', 'type' => 'string', 'required' => true, 'example' => 'browser-1767874121726'],
+ 'templateVersion' => ['title' => '模板版本', 'description' => '模板版本', 'type' => 'string', 'example' => '预留'],
+ 'cpu' => ['title' => 'cpu 核数', 'description' => 'cpu 核数', 'type' => 'number', 'format' => 'float', 'required' => true, 'example' => '4'],
+ 'memory' => ['title' => '内存规格', 'description' => '内存规格', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '4096'],
+ 'templateArn' => ['title' => '模板 ARN', 'description' => '模板 ARN', 'type' => 'string', 'example' => 'acs:agentrun:cn-hangzhou:12345678:templates/efb6de2f-1814-42a2-b7f3-474a0e0b3a48'],
+ 'createdAt' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2026-01-15T17:12:59.375168+08:00'],
+ 'lastUpdatedAt' => ['title' => '最后更新时间', 'description' => '最后更新时间', 'type' => 'string', 'example' => '2026-01-15T17:12:59.375168+08:00'],
+ 'status' => ['title' => '状态', 'description' => '状态', 'type' => 'string', 'example' => 'READY'],
+ 'statusReason' => ['title' => '状态原因', 'description' => '状态原因', 'type' => 'string', 'example' => 'SDK Error'],
+ 'executionRoleArn' => ['title' => '执行角色', 'description' => '执行角色', 'type' => 'string', 'example' => 'acs:agentrun:cn-hangzhou:12345678:templates/efb6de2f-1814-42a2-b7f3-474a0e0b3a48'],
+ 'templateType' => ['title' => '模板类型', 'description' => '模板类型', 'type' => 'string', 'example' => 'Browser'],
+ 'containerConfiguration' => ['title' => '自定义镜像配置', 'description' => '自定义镜像配置', '$ref' => '#/components/schemas/ContainerConfiguration'],
+ 'networkConfiguration' => ['title' => '网络配置', 'description' => '网络配置', '$ref' => '#/components/schemas/NetworkConfiguration'],
+ 'credentialConfiguration' => ['title' => '鉴权配置', 'description' => '鉴权配置', '$ref' => '#/components/schemas/CredentialConfiguration'],
+ 'logConfiguration' => ['title' => '日志配置', 'description' => '日志配置', '$ref' => '#/components/schemas/LogConfiguration'],
+ 'sandboxIdleTimeoutInSeconds' => ['title' => '沙箱闲置超时时间', 'description' => '沙箱闲置超时时间', 'type' => 'string', 'example' => '1800'],
+ 'sandboxTTLInSeconds' => ['title' => '沙箱生命周期存活时间', 'description' => '沙箱生命周期存活时间(已弃用)', 'type' => 'string', 'deprecated' => false, 'example' => '已弃用'],
+ 'resourceName' => ['title' => '资源名称', 'description' => '资源名称', 'type' => 'string', 'example' => 'agentrun-f2570dd4-c8a2-452c-8bd5-4ef74b0a69b5'],
'mcpOptions' => [
'title' => 'MCP选项',
'description' => 'MCP选项',
'type' => 'object',
'properties' => [
- 'transport' => [
- 'title' => '传输类型',
- 'description' => '传输类型',
- 'type' => 'string',
- 'example' => 'streamable-http',
- ],
+ 'transport' => ['title' => '传输类型', 'description' => '传输类型', 'type' => 'string', 'example' => 'streamable-http'],
'enabledTools' => [
'title' => '开启的工具列表',
'description' => '开启的工具列表',
'type' => 'array',
- 'items' => [
- 'description' => '开启的工具',
- 'type' => 'string',
- 'example' => 'execute_code',
- ],
+ 'items' => ['description' => '开启的工具', 'type' => 'string', 'example' => 'execute_code'],
],
],
],
@@ -6045,83 +4369,36 @@
'description' => 'MCP服务器状态',
'type' => 'object',
'properties' => [
- 'status' => [
- 'title' => 'MCP状态',
- 'description' => 'MCP状态',
- 'type' => 'string',
- 'example' => 'CREATING',
- ],
- 'statusReason' => [
- 'title' => '状态原因',
- 'description' => '状态原因',
- 'type' => 'string',
- 'example' => 'SDK Error',
- ],
- 'accessEndpoint' => [
- 'title' => '访问端点',
- 'description' => '访问端点',
- 'type' => 'string',
- 'example' => '/mcp',
- ],
- ],
- ],
- 'diskSize' => [
- 'title' => '磁盘大小',
- 'description' => '磁盘大小',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10240',
- ],
- 'description' => [
- 'title' => '模板描述',
- 'description' => '模板描述',
- 'type' => 'string',
- 'example' => 'template描述',
- ],
- 'allowAnonymousManage' => [
- 'title' => '是否允许数据链路调用创建/停止/删除沙箱接口',
- 'description' => '是否允许数据链路调用创建/停止/删除沙箱接口',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'nasConfig' => [
- 'title' => 'NAS 挂载配置项目',
- 'description' => 'NAS 挂载配置项目',
- '$ref' => '#/components/schemas/NASConfig',
- ],
- 'enableAgent' => [
- 'title' => 'Sandbox Agent 开关',
- 'description' => 'Sandbox Agent 开关',
- 'type' => 'boolean',
- ],
+ 'status' => ['title' => 'MCP状态', 'description' => 'MCP状态', 'type' => 'string', 'example' => 'CREATING'],
+ 'statusReason' => ['title' => '状态原因', 'description' => '状态原因', 'type' => 'string', 'example' => 'SDK Error'],
+ 'accessEndpoint' => ['title' => '访问端点', 'description' => '访问端点', 'type' => 'string', 'example' => '/mcp'],
+ ],
+ ],
+ 'diskSize' => ['title' => '磁盘大小', 'description' => '磁盘大小', 'type' => 'integer', 'format' => 'int32', 'example' => '10240'],
+ 'description' => ['title' => '模板描述', 'description' => '模板描述', 'type' => 'string', 'example' => 'template描述'],
+ 'allowAnonymousManage' => ['title' => '是否允许数据链路调用创建/停止/删除沙箱接口', 'description' => '是否允许数据链路调用创建/停止/删除沙箱接口', 'type' => 'boolean', 'example' => 'true'],
+ 'nasConfig' => ['title' => 'NAS 挂载配置项目', 'description' => 'NAS 挂载配置项目', '$ref' => '#/components/schemas/NASConfig'],
+ 'enableAgent' => ['title' => 'Sandbox Agent 开关', 'description' => 'Sandbox Agent 开关', 'type' => 'boolean'],
+ 'workspaceId' => ['title' => '关联的空间 ID', 'description' => '关联的空间 ID', 'type' => 'string'],
+ 'scalingStatus' => ['title' => '弹性状态', 'description' => '弹性状态', '$ref' => '#/components/schemas/ScalingStatus'],
'environmentVariables' => [
'description' => '智能体运行时的环境变量配置',
'type' => 'object',
- 'additionalProperties' => [
- 'description' => '智能体运行时的环境变量配置',
- 'type' => 'string',
- 'example' => '{\'FCTEST_IDE_ENV\': \'IDE\'}',
- ],
+ 'additionalProperties' => ['description' => '智能体运行时的环境变量配置', 'type' => 'string', 'example' => '{\'FCTEST_IDE_ENV\': \'IDE\'}'],
],
'templateConfiguration' => [
'description' => '模板配置(灵活的对象结构,根据 templateType 不同而不同)',
'type' => 'object',
- 'additionalProperties' => [
- 'description' => '模板配置(灵活的对象结构,根据 templateType 不同而不同)',
- 'type' => 'any',
- 'example' => '{"example":"test"}',
- ],
+ 'additionalProperties' => ['description' => '模板配置(灵活的对象结构,根据 templateType 不同而不同)', 'type' => 'any', 'example' => '{"example":"test"}'],
],
'ossConfiguration' => [
'title' => 'oss 配置',
'description' => 'oss 配置',
'type' => 'array',
- 'items' => [
- 'title' => 'oss 配置',
- 'description' => 'oss 配置',
- '$ref' => '#/components/schemas/OssConfiguration',
- ],
+ 'items' => ['title' => 'oss 配置', 'description' => 'oss 配置', '$ref' => '#/components/schemas/OssConfiguration'],
],
+ 'enablePreStop' => ['title' => '是否开启实例销毁前回调', 'type' => 'boolean'],
+ 'preStopTimeoutInSeconds' => ['title' => '实例销毁前回调超时时间(秒)', 'type' => 'integer', 'format' => 'int32'],
],
],
'TemplateResult' => [
@@ -6129,133 +4406,181 @@
'description' => '模板操作的统一结果格式',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '结果码',
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '唯一的请求标识符,用于问题追踪',
- 'type' => 'string',
- 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E',
- ],
- 'data' => [
- 'title' => '模板数据',
- 'description' => '模板的详细信息',
- 'required' => true,
- '$ref' => '#/components/schemas/Template',
- ],
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '模板数据', 'description' => '模板的详细信息', 'required' => true, '$ref' => '#/components/schemas/Template'],
],
],
- 'ToolInfo' => [
+ 'TLSConfig' => [
+ 'title' => 'TLS配置',
+ 'description' => 'TLS配置信息,包括TLS版本和加密套件',
'type' => 'object',
'properties' => [
- 'id' => [
+ 'minVersion' => [
+ 'title' => 'TLS最小版本号',
+ 'description' => 'TLS 最小版本号。',
'type' => 'string',
+ 'example' => 'TLSv1.2',
+ 'enum' => ['TLSv1.3', 'TLSv1.2'],
],
- 'name' => [
- 'type' => 'string',
+ 'cipherSuites' => [
+ 'title' => 'TLS加密套件列表',
+ 'description' => 'TLS 加密套件列表。',
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
+ 'example' => '[\'TLS_RSA_WITH_RC4_128_SHA\']',
],
- 'description' => [
+ 'maxVersion' => [
+ 'title' => 'TLS最大版本号',
+ 'description' => 'TLS 最大版本号。',
'type' => 'string',
+ 'example' => 'TLSv1.3',
+ 'enum' => ['TLSv1.3', 'TLSv1.2'],
],
+ ],
+ ],
+ 'Tool' => [
+ 'title' => '工具',
+ 'description' => '工具是 AgentRun 中用于扩展 Agent 能力的核心组件,支持 MCP(Model Context Protocol)、函数调用和技能等多种类型。工具可以通过不同的创建方式部署,包括远程 MCP 服务器、本地 MCP 进程、代码包和容器等。',
+ 'type' => 'object',
+ 'properties' => [
+ 'toolId' => ['title' => '工具ID', 'description' => '工具的唯一标识符,由系统自动生成', 'type' => 'string', 'example' => 'tool-abc123'],
+ 'toolName' => ['title' => '工具名称', 'description' => '工具的名称,用于标识和引用工具', 'type' => 'string', 'example' => 'my-mcp-tool'],
+ 'workspaceId' => ['title' => '工作空间ID', 'description' => '工具所属的工作空间标识符', 'type' => 'string', 'example' => 'workspace-xyz789'],
+ 'description' => ['title' => '工具描述', 'description' => '工具的详细描述信息,说明工具的功能和用途', 'type' => 'string', 'example' => '这是一个用于处理文档的 MCP 工具'],
'toolType' => [
+ 'title' => '工具类型',
+ 'description' => '工具的类型,支持:MCP(Model Context Protocol 工具)、FUNCTIONCALL(函数调用工具)、SKILL(技能工具)',
+ 'type' => 'string',
+ 'enumValueTitles' => ['MCP' => 'MCP 工具 - 基于 Model Context Protocol 的工具', 'FUNCTIONCALL' => '函数调用工具 - 通过函数调用方式实现的工具', 'SKILL' => '技能工具 - 预定义的技能类型工具'],
+ 'example' => 'MCP',
+ 'enum' => ['MCP', 'FUNCTIONCALL', 'SKILL'],
+ ],
+ 'createMethod' => [
+ 'title' => '创建方式',
+ 'description' => '工具的创建方式,支持:MCP_REMOTE(远程 MCP 服务器)、MCP_LOCAL_STDIO(本地 MCP 标准输入输出)、MCP_BUNDLE(MCP 打包部署)、CODE_PACKAGE(代码包部署)、OPENAPI_IMPORT(OpenAPI 导入)',
+ 'type' => 'string',
+ 'enumValueTitles' => ['MCP_REMOTE' => '远程 MCP 服务器 - 连接到远程运行的 MCP 服务器', 'MCP_LOCAL_STDIO' => '本地 MCP 标准输入输出 - 通过标准输入输出与本地 MCP 进程通信', 'MCP_BUNDLE' => 'MCP 打包部署 - 将 MCP 工具打包后部署', 'CODE_PACKAGE' => '代码包部署 - 通过代码包方式部署工具', 'OPENAPI_IMPORT' => 'OpenAPI 导入 - 从 OpenAPI 规范导入工具定义'],
+ 'example' => 'MCP_REMOTE',
+ 'enum' => ['MCP_REMOTE', 'MCP_LOCAL_STDIO', 'MCP_BUNDLE', 'CODE_PACKAGE', 'OPENAPI_IMPORT'],
+ ],
+ 'protocolSpec' => ['title' => '协议规范', 'description' => '工具使用的协议规范定义,JSON 格式的字符串', 'type' => 'string'],
+ 'mcpConfig' => ['title' => 'MCP配置', 'description' => 'MCP 工具的配置信息,包括会话亲和性、代理配置等', '$ref' => '#/components/schemas/McpConfig'],
+ 'status' => ['title' => '工具状态', 'description' => '工具的当前运行状态,如:Running(运行中)、Stopped(已停止)、Failed(失败)等', 'type' => 'string', 'example' => 'Running'],
+ 'statusReason' => ['title' => '状态原因', 'description' => '工具状态的详细原因说明,特别是在失败或异常状态时提供错误信息', 'type' => 'string'],
+ 'executionRoleArn' => ['title' => '执行角色ARN', 'description' => '工具执行时使用的 RAM 角色 ARN,用于权限控制', 'type' => 'string', 'example' => 'acs:ram::123456789:role/AliyunFCDefaultRole'],
+ 'artifactType' => [
+ 'title' => '制品类型',
+ 'description' => '工具部署的制品类型,支持:Code(代码包)、Container(容器镜像)',
'type' => 'string',
+ 'enumValueTitles' => ['Code' => '代码包 - 使用代码包形式部署', 'Container' => '容器镜像 - 使用容器镜像形式部署'],
+ 'example' => 'Code',
+ 'enum' => ['Code', 'Container'],
+ ],
+ 'networkConfiguration' => ['title' => '网络配置', 'description' => '工具的网络配置,包括 VPC、安全组等信息', '$ref' => '#/components/schemas/NetworkConfiguration'],
+ 'codeConfiguration' => ['title' => '代码配置', 'description' => '代码包类型工具的配置信息,包括代码位置、入口函数等', '$ref' => '#/components/schemas/CodeConfiguration'],
+ 'containerConfiguration' => ['title' => '容器配置', 'description' => '容器类型工具的配置信息,包括镜像地址、启动命令等', '$ref' => '#/components/schemas/ContainerConfiguration'],
+ 'logConfiguration' => ['title' => '日志配置', 'description' => '工具的日志配置,包括日志存储位置和日志级别等', '$ref' => '#/components/schemas/LogConfiguration'],
+ 'ossMountConfig' => ['title' => 'OSS挂载配置', 'description' => '对象存储 OSS 的挂载配置,用于工具访问 OSS 存储', '$ref' => '#/components/schemas/OSSMountConfig'],
+ 'nasConfig' => ['title' => 'NAS配置', 'description' => '文件存储 NAS 的配置信息,用于工具访问 NAS 文件系统', '$ref' => '#/components/schemas/NASConfig'],
+ 'cpu' => ['title' => 'CPU配置', 'description' => '工具实例的 CPU 核心数,单位为核', 'type' => 'number', 'format' => 'float', 'example' => '0.5'],
+ 'memory' => ['title' => '内存配置', 'description' => '工具实例的内存大小,单位为 MB', 'type' => 'integer', 'format' => 'int32', 'example' => '512'],
+ 'port' => ['title' => '端口号', 'description' => '工具服务监听的端口号', 'type' => 'integer', 'format' => 'int32', 'example' => '8080'],
+ 'createdAt' => ['title' => '创建时间', 'description' => '工具的创建时间,ISO 8601 格式', 'type' => 'string', 'example' => '2025-09-10T10:00:00Z'],
+ 'updatedAt' => ['title' => '更新时间', 'description' => '工具的最后更新时间,ISO 8601 格式', 'type' => 'string', 'example' => '2025-09-10T12:00:00Z'],
+ 'credentialName' => ['title' => '凭证名称', 'description' => '工具使用的凭证名称,用于访问需要认证的外部服务', 'type' => 'string', 'example' => 'my-credential'],
+ 'timeout' => ['title' => '超时时间', 'description' => '工具执行的超时时间,单位为秒', 'type' => 'integer', 'format' => 'int32', 'example' => '300'],
+ 'environmentVariables' => [
+ 'title' => '环境变量',
+ 'description' => '工具运行时的环境变量配置,键值对形式',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string'],
+ 'example' => '{"ENV": "production", "LOG_LEVEL": "info"}',
],
- 'schema' => [
- 'type' => 'string',
- ],
- 'createdAt' => [
- 'type' => 'string',
- ],
- 'updatedAt' => [
- 'type' => 'string',
- ],
- 'sourceType' => [
- 'type' => 'string',
- ],
- 'CAPConfig' => [
- '$ref' => '#/components/schemas/CAPConfig',
- ],
+ 'agentIdentityEnabled' => ['type' => 'boolean'],
+ 'agentIdentityConfig' => ['$ref' => '#/components/schemas/ToolAgentIdentityConfig'],
+ ],
+ ],
+ 'ToolAgentIdentityConfig' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'authorizationEnabled' => ['type' => 'boolean'],
+ 'credentialProviderType' => ['type' => 'string'],
+ 'credentialProviderArn' => ['type' => 'string'],
],
],
+ 'ToolInfo' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'id' => ['type' => 'string', 'description' => ''],
+ 'name' => ['type' => 'string', 'description' => ''],
+ 'description' => ['type' => 'string', 'description' => ''],
+ 'toolType' => ['type' => 'string', 'description' => ''],
+ 'schema' => ['type' => 'string', 'description' => ''],
+ 'createdAt' => ['type' => 'string', 'description' => ''],
+ 'updatedAt' => ['type' => 'string', 'description' => ''],
+ 'sourceType' => ['type' => 'string', 'description' => ''],
+ 'CAPConfig' => ['$ref' => '#/components/schemas/CAPConfig', 'description' => ''],
+ ],
+ 'description' => '',
+ ],
'ToolListItem' => [
'type' => 'object',
'properties' => [
- 'id' => [
- 'type' => 'string',
- ],
- 'name' => [
- 'type' => 'string',
- ],
- 'description' => [
- 'type' => 'string',
- ],
- 'toolType' => [
- 'type' => 'string',
- ],
- 'createdAt' => [
- 'type' => 'string',
- ],
- 'updatedAt' => [
- 'type' => 'string',
- ],
- 'sourceType' => [
- 'type' => 'string',
- ],
- 'schema' => [
- 'type' => 'string',
- ],
- 'CAPConfig' => [
- '$ref' => '#/components/schemas/CAPConfig',
- ],
+ 'id' => ['type' => 'string', 'description' => ''],
+ 'name' => ['type' => 'string', 'description' => ''],
+ 'description' => ['type' => 'string', 'description' => ''],
+ 'toolType' => ['type' => 'string', 'description' => ''],
+ 'createdAt' => ['type' => 'string', 'description' => ''],
+ 'updatedAt' => ['type' => 'string', 'description' => ''],
+ 'sourceType' => ['type' => 'string', 'description' => ''],
+ 'schema' => ['type' => 'string', 'description' => ''],
+ 'CAPConfig' => ['$ref' => '#/components/schemas/CAPConfig', 'description' => ''],
+ ],
+ 'description' => '',
+ ],
+ 'ToolResult' => [
+ 'title' => '工具结果',
+ 'description' => '创建、获取工具的统一结果格式',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['title' => '结果码', 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['title' => '请求ID', 'description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => ['title' => '工具数据', 'description' => '工具的详细信息', 'example' => '{}', '$ref' => '#/components/schemas/Tool'],
+ ],
+ ],
+ 'TracingConfiguration' => [
+ 'title' => '链路追踪配置',
+ 'description' => '工作流的链路追踪配置信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'enabled' => ['title' => '是否启用', 'description' => '是否启用链路追踪功能', 'type' => 'boolean', 'example' => 'true'],
],
],
'TriggerConfig' => [
'type' => 'object',
'properties' => [
- 'authType' => [
- 'type' => 'string',
- ],
+ 'authType' => ['type' => 'string', 'description' => ''],
'methods' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
+ 'items' => ['type' => 'string', 'description' => ''],
+ 'description' => '',
],
],
+ 'description' => '',
],
'UpdateAgentRuntimeEndpointInput' => [
'title' => '更新智能体运行时端点输入',
'description' => '更新智能体运行时端点输入',
'type' => 'object',
'properties' => [
- 'agentRuntimeEndpointName' => [
- 'title' => '智能体运行时端点名称',
- 'description' => '智能体运行时端点名称',
- 'type' => 'string',
- 'example' => 'production-endpoint',
- ],
- 'targetVersion' => [
- 'title' => '目标版本',
- 'description' => '智能体运行时的目标版本',
- 'type' => 'string',
- 'example' => 'LATEST',
- ],
- 'description' => [
- 'title' => '描述',
- 'description' => '描述',
- 'type' => 'string',
- 'example' => 'Updated endpoint configuration',
- ],
- 'routingConfiguration' => [
- 'title' => '路由配置',
- 'description' => '智能体运行时端点的路由配置,支持多版本权重分配',
- 'example' => '{}',
- '$ref' => '#/components/schemas/RoutingConfiguration',
- ],
+ 'agentRuntimeEndpointName' => ['title' => '智能体运行时端点名称', 'description' => '智能体运行时端点名称', 'type' => 'string', 'example' => 'production-endpoint'],
+ 'targetVersion' => ['title' => '目标版本', 'description' => '智能体运行时的目标版本', 'type' => 'string', 'example' => 'LATEST'],
+ 'description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'Updated endpoint configuration'],
+ 'routingConfiguration' => ['title' => '路由配置', 'description' => '智能体运行时端点的路由配置,支持多版本权重分配', 'example' => '{}', '$ref' => '#/components/schemas/RoutingConfiguration'],
+ 'disablePublicNetworkAccess' => ['title' => '禁用公网访问', 'description' => '是否禁用该端点的公网访问', 'type' => 'boolean'],
+ 'scalingConfig' => ['title' => '弹性配置', 'description' => '端点的弹性伸缩配置,包括最小实例数和定时扩容策略(复用 ScalingConfig)', '$ref' => '#/components/schemas/ScalingConfig'],
+ 'deleteScalingConfig' => ['title' => '是否删除弹性配置', 'description' => '为 true 时删除该端点的弹性配置', 'type' => 'boolean'],
],
],
'UpdateAgentRuntimeInput' => [
@@ -6263,653 +4588,539 @@
'description' => '更新智能体运行时输入',
'type' => 'object',
'properties' => [
- 'agentRuntimeName' => [
- 'title' => '智能体运行时名称',
- 'description' => '智能体运行时名称',
- 'type' => 'string',
- 'example' => 'my-agent-runtime',
- ],
- 'description' => [
- 'title' => '描述',
- 'description' => '描述',
- 'type' => 'string',
- 'example' => '更新后的智能体运行时描述',
- ],
+ 'agentRuntimeName' => ['title' => '智能体运行时名称', 'description' => '智能体运行时名称', 'type' => 'string', 'example' => 'my-agent-runtime'],
+ 'description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => '更新后的智能体运行时描述'],
'artifactType' => [
'title' => '制品类型',
'description' => '制品类型',
'type' => 'string',
'example' => 'Code',
- 'enum' => [
- 'Code',
- 'Container',
- ],
- ],
- 'codeConfiguration' => [
- 'title' => '代码配置',
- 'description' => '代码配置',
- 'example' => '{}',
- '$ref' => '#/components/schemas/CodeConfiguration',
- ],
- 'containerConfiguration' => [
- 'title' => '容器配置',
- 'description' => '容器配置',
- 'example' => '{}',
- '$ref' => '#/components/schemas/ContainerConfiguration',
- ],
- 'credentialName' => [
- 'title' => '凭证名称',
- 'description' => '用于访问智能体的凭证名称,访问智能体运行时将使用此凭证进行身份验证',
- 'type' => 'string',
- 'example' => 'my-credential',
- ],
- 'externalAgentEndpointUrl' => [
- 'title' => '外部智能体端点URL',
- 'description' => '外部注册类型的智能体访问端点地址,用于连接已部署在外部的智能体服务',
- 'type' => 'string',
- 'example' => 'https://external-agent.example.com/api',
- ],
- 'networkConfiguration' => [
- 'title' => '网络配置',
- 'description' => '网络配置',
- 'example' => '{}',
- '$ref' => '#/components/schemas/NetworkConfiguration',
- ],
- 'protocolConfiguration' => [
- 'title' => '协议配置',
- 'description' => '协议配置',
- 'example' => '{}',
- '$ref' => '#/components/schemas/ProtocolConfiguration',
- ],
- 'executionRoleArn' => [
- 'title' => '执行角色ARN',
- 'description' => '为智能体运行时提供访问云服务权限的执行角色ARN',
- 'type' => 'string',
- 'example' => 'acs:ram::1760720386195983:role/AgentRunExecutionRole',
- ],
- 'cpu' => [
- 'title' => 'CPU配置',
- 'description' => 'CPU配置',
- 'type' => 'number',
- 'format' => 'float',
- 'required' => true,
- 'example' => '1.0',
- ],
- 'memory' => [
- 'title' => '内存配置',
- 'description' => '内存配置',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1024',
- ],
- 'port' => [
- 'title' => '端口',
- 'description' => '端口',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8080',
- ],
- 'sessionConcurrencyLimitPerInstance' => [
- 'title' => '每个实例的会话并发数',
- 'description' => '每个运行时实例允许的最大并发会话数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'maximum' => '200',
- 'minimum' => '1',
- 'example' => '100',
- ],
- 'logConfiguration' => [
- 'title' => '日志配置',
- 'description' => 'SLS(简单日志服务)配置',
- 'example' => '{}',
- '$ref' => '#/components/schemas/LogConfiguration',
- ],
- 'sessionIdleTimeoutSeconds' => [
- 'title' => '会话空闲超时秒数',
- 'description' => '会话的空闲超时时间,单位为秒。实例没有会话请求后处于空闲状态,空闲态为闲置计费模式,超过此超时时间后会话自动过期,不可继续使用',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '3600',
- ],
- 'healthCheckConfiguration' => [
- 'title' => '健康检查配置',
- 'description' => '智能体运行时的健康检查配置,用于监控运行时实例的健康状态',
- 'example' => '{}',
- '$ref' => '#/components/schemas/HealthCheckConfiguration',
- ],
- 'nasConfig' => [
- 'title' => 'NAS配置',
- 'description' => '文件存储NAS的配置信息,用于挂载NAS文件系统到智能体运行时',
- 'example' => '{}',
- '$ref' => '#/components/schemas/NASConfig',
- ],
- 'ossMountConfig' => [
- 'title' => 'OSS挂载配置',
- 'description' => '对象存储OSS的挂载配置信息,用于挂载OSS存储桶到智能体运行时',
- 'example' => '{}',
- '$ref' => '#/components/schemas/OSSMountConfig',
- ],
+ 'enum' => ['Code', 'Container'],
+ ],
+ 'codeConfiguration' => ['title' => '代码配置', 'description' => '代码配置', 'example' => '{}', '$ref' => '#/components/schemas/CodeConfiguration'],
+ 'containerConfiguration' => ['title' => '容器配置', 'description' => '容器配置', 'example' => '{}', '$ref' => '#/components/schemas/ContainerConfiguration'],
+ 'credentialName' => ['title' => '凭证名称', 'description' => '用于访问智能体的凭证名称,访问智能体运行时将使用此凭证进行身份验证', 'type' => 'string', 'example' => 'my-credential'],
+ 'externalAgentEndpointUrl' => ['title' => '外部智能体端点URL', 'description' => '外部注册类型的智能体访问端点地址,用于连接已部署在外部的智能体服务', 'type' => 'string', 'example' => 'https://external-agent.example.com/api'],
+ 'networkConfiguration' => ['title' => '网络配置', 'description' => '网络配置', 'example' => '{}', '$ref' => '#/components/schemas/NetworkConfiguration'],
+ 'protocolConfiguration' => ['title' => '协议配置', 'description' => '协议配置', 'example' => '{}', '$ref' => '#/components/schemas/ProtocolConfiguration'],
+ 'executionRoleArn' => ['title' => '执行角色ARN', 'description' => '为智能体运行时提供访问云服务权限的执行角色ARN', 'type' => 'string', 'example' => 'acs:ram::1760720386195983:role/AgentRunExecutionRole'],
+ 'cpu' => ['title' => 'CPU配置', 'description' => 'CPU配置', 'type' => 'number', 'format' => 'float', 'required' => true, 'example' => '1.0'],
+ 'memory' => ['title' => '内存配置', 'description' => '内存配置', 'type' => 'integer', 'format' => 'int32', 'example' => '1024'],
+ 'diskSize' => ['title' => '磁盘大小', 'description' => '磁盘大小', 'type' => 'integer', 'format' => 'int32'],
+ 'port' => ['title' => '端口', 'description' => '端口', 'type' => 'integer', 'format' => 'int32', 'example' => '8080'],
+ 'sessionConcurrencyLimitPerInstance' => ['title' => '每个实例的会话并发数', 'description' => '每个运行时实例允许的最大并发会话数', 'type' => 'integer', 'format' => 'int32', 'maximum' => '200', 'minimum' => '1', 'example' => '100'],
+ 'logConfiguration' => ['title' => '日志配置', 'description' => 'SLS(简单日志服务)配置', 'example' => '{}', '$ref' => '#/components/schemas/LogConfiguration'],
+ 'sessionIdleTimeoutSeconds' => ['title' => '会话空闲超时秒数', 'description' => '会话的空闲超时时间,单位为秒。实例没有会话请求后处于空闲状态,空闲态为闲置计费模式,超过此超时时间后会话自动过期,不可继续使用', 'type' => 'integer', 'format' => 'int32', 'example' => '3600'],
+ 'enableSessionIsolation' => ['title' => '启用会话隔离', 'description' => '是否启用会话隔离,启用后每个会话将在独立的环境中运行', 'type' => 'boolean', 'example' => 'false'],
+ 'disableOndemand' => ['title' => '禁用按需弹性', 'description' => '是否禁用按需弹性能力。默认为 false,设置为 true 时关闭按需弹性', 'type' => 'boolean', 'example' => 'false'],
+ 'disableSessionAffinity' => ['title' => '禁用会话亲和', 'description' => '是否禁用会话亲和性。默认为 false(即默认启用会话亲和),设置为 true 时关闭会话亲和', 'type' => 'boolean', 'example' => 'false'],
+ 'sessionAffinityType' => [
+ 'title' => '会话亲和类型',
+ 'description' => '会话亲和模式。NONE 表示关闭会话亲和;HEADER_FIELD 表示基于请求头的会话亲和;GENERATED_COOKIE 表示由 FC 生成 Cookie 进行会话亲和;COOKIE 为兼容别名,服务端会归一为 GENERATED_COOKIE',
+ 'type' => 'string',
+ 'example' => 'GENERATED_COOKIE',
+ 'enum' => ['NONE', 'HEADER_FIELD', 'GENERATED_COOKIE', 'COOKIE'],
+ ],
+ 'headerFieldName' => ['title' => '会话亲和请求头名称', 'description' => '当 sessionAffinityType 为 HEADER_FIELD 时用于会话亲和的请求头名称', 'type' => 'string', 'example' => 'x-agentrun-session-id', 'maxLength' => 128],
+ 'forceEvictInstances' => ['title' => '强制驱逐实例会话', 'description' => '更新运行时配置后是否尽力驱逐当前活跃 FC 会话,使新配置尽快生效', 'type' => 'boolean', 'example' => 'true'],
+ 'healthCheckConfiguration' => ['title' => '健康检查配置', 'description' => '智能体运行时的健康检查配置,用于监控运行时实例的健康状态', 'example' => '{}', '$ref' => '#/components/schemas/HealthCheckConfiguration'],
+ 'armsConfiguration' => ['title' => 'ARMS配置', 'description' => '应用实时监控服务(ARMS)的配置信息', 'example' => '{}', '$ref' => '#/components/schemas/ArmsConfiguration'],
+ 'nasConfig' => ['title' => 'NAS配置', 'description' => '文件存储NAS的配置信息,用于挂载NAS文件系统到智能体运行时', 'example' => '{}', '$ref' => '#/components/schemas/NASConfig'],
+ 'ossMountConfig' => ['title' => 'OSS挂载配置', 'description' => '对象存储OSS的挂载配置信息,用于挂载OSS存储桶到智能体运行时', 'example' => '{}', '$ref' => '#/components/schemas/OSSMountConfig'],
+ 'workspaceId' => ['type' => 'string', 'description' => ''],
'environmentVariables' => [
'title' => '环境变量',
'description' => '环境变量',
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- ],
+ 'additionalProperties' => ['type' => 'string', 'description' => ''],
'example' => 'ENV_VAR1=value1,ENV_VAR2=value2',
],
- 'workspaceId' => [
- 'type' => 'string',
+ 'systemTags' => [
+ 'title' => '系统标签',
+ 'description' => '智能体运行时的系统标签信息,用于系统级别的资源分类和管理',
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
+ 'example' => 'system-tag-1,system-tag-2',
],
+ 'agentIdentityEnabled' => ['type' => 'boolean'],
+ 'agentIdentityConfig' => ['$ref' => '#/components/schemas/RuntimeAgentIdentityConfig'],
+ 'edition' => ['type' => 'string'],
],
],
'UpdateApigLLMModelInput' => [
'type' => 'object',
'properties' => [
- 'name' => [
- 'type' => 'string',
- ],
- 'provider' => [
- 'type' => 'string',
- ],
- 'type' => [
- 'type' => 'string',
- ],
- 'address' => [
- 'type' => 'string',
- ],
- 'apiKey' => [
- 'type' => 'string',
- ],
- 'desc' => [
- 'type' => 'string',
- ],
+ 'name' => ['type' => 'string'],
+ 'provider' => ['type' => 'string'],
+ 'type' => ['type' => 'string'],
+ 'address' => ['type' => 'string'],
+ 'apiKey' => ['type' => 'string'],
+ 'desc' => ['type' => 'string'],
'models' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
+ 'items' => ['type' => 'string'],
],
],
],
+ 'UpdateConsumerAPIKeyInput' => [
+ 'title' => '更新消费者API密钥输入',
+ 'description' => '更新消费者API密钥的输入参数,所有字段均为可选,仅更新提供的字段',
+ 'type' => 'object',
+ 'properties' => [
+ 'active' => ['title' => '启用状态', 'description' => '是否启用该密钥', 'type' => 'boolean', 'example' => 'false'],
+ 'description' => ['title' => '描述', 'description' => '更新后的描述信息', 'type' => 'string', 'example' => '更新后的密钥描述'],
+ ],
+ ],
'UpdateCredentialInput' => [
'type' => 'object',
'properties' => [
- 'credentialSecret' => [
- 'type' => 'string',
- ],
- 'description' => [
- 'type' => 'string',
- ],
- 'enabled' => [
- 'type' => 'boolean',
- ],
- 'credentialPublicConfig' => [
- '$ref' => '#/components/schemas/CredentialPublicConfig',
- ],
+ 'credentialSecret' => ['type' => 'string', 'description' => ''],
+ 'description' => ['type' => 'string', 'description' => ''],
+ 'enabled' => ['type' => 'boolean', 'description' => ''],
+ 'credentialPublicConfig' => ['$ref' => '#/components/schemas/CredentialPublicConfig', 'description' => ''],
+ 'workspaceId' => ['type' => 'string'],
],
+ 'description' => '',
],
'UpdateCredentialOutput' => [
'type' => 'object',
'properties' => [
- 'credentialId' => [
- 'type' => 'string',
- ],
- 'credentialName' => [
- 'type' => 'string',
- ],
- 'description' => [
- 'type' => 'string',
- ],
- 'credentialAuthType' => [
- 'type' => 'string',
- ],
- 'credentialSourceType' => [
- 'type' => 'string',
- ],
- 'enabled' => [
- 'type' => 'boolean',
- ],
- 'credentialSecret' => [
- 'type' => 'string',
- ],
+ 'credentialId' => ['type' => 'string', 'description' => ''],
+ 'credentialName' => ['type' => 'string', 'description' => ''],
+ 'description' => ['type' => 'string', 'description' => ''],
+ 'credentialAuthType' => ['type' => 'string', 'description' => ''],
+ 'credentialSourceType' => ['type' => 'string', 'description' => ''],
+ 'enabled' => ['type' => 'boolean', 'description' => ''],
+ 'credentialSecret' => ['type' => 'string', 'description' => ''],
'credentialPublicConfig' => [
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- ],
- ],
- 'createdAt' => [
- 'type' => 'string',
- ],
- 'updatedAt' => [
- 'type' => 'string',
+ 'additionalProperties' => ['type' => 'string', 'description' => ''],
+ 'description' => '',
],
+ 'createdAt' => ['type' => 'string', 'description' => ''],
+ 'updatedAt' => ['type' => 'string', 'description' => ''],
'relatedResources' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/RelatedResource',
- ],
+ 'items' => ['$ref' => '#/components/schemas/RelatedResource', 'description' => ''],
+ 'description' => '',
],
],
+ 'description' => '',
],
'UpdateCustomDomainInput' => [
'title' => '更新自定义域名请求',
'description' => '更新自定义域名所需的输入参数',
'type' => 'object',
'properties' => [
- 'description' => [
- 'title' => '描述',
- 'description' => '描述',
- 'type' => 'string',
- ],
+ 'description' => ['title' => '描述', 'description' => '描述', 'type' => 'string'],
'protocol' => [
'title' => '协议类型',
'description' => '域名支持的协议类型:● HTTP:仅支持 HTTP 协议。● HTTPS:仅支持 HTTPS 协议。● HTTP,HTTPS:支持 HTTP 及 HTTPS 协议。',
'type' => 'string',
'example' => 'HTTP',
- 'enum' => [
- 'HTTP',
- 'HTTPS',
- 'HTTP,HTTPS',
- ],
- ],
- 'routeConfig' => [
- 'title' => '路由表',
- 'description' => '路由表:自定义域名访问时的 PATH 到 资源 的映射。',
- 'example' => '{}',
- '$ref' => '#/components/schemas/RouteConfig',
- ],
- 'certConfig' => [
- 'title' => 'HTTPS证书信息',
- 'description' => 'HTTPS 证书的信息。',
- 'example' => '{}',
- '$ref' => '#/components/schemas/CertConfig',
- ],
- 'tlsConfig' => [
- 'title' => 'TLS配置信息',
- 'description' => 'TLS 配置信息。',
- 'example' => '{}',
- '$ref' => '#/components/schemas/TLSConfig',
+ 'enum' => ['HTTP', 'HTTPS', 'HTTP,HTTPS'],
],
+ 'routeConfig' => ['title' => '路由表', 'description' => '路由表:自定义域名访问时的 PATH 到 资源 的映射。', 'example' => '{}', '$ref' => '#/components/schemas/RouteConfig'],
+ 'certConfig' => ['title' => 'HTTPS证书信息', 'description' => 'HTTPS 证书的信息。', 'example' => '{}', '$ref' => '#/components/schemas/CertConfig'],
+ 'tlsConfig' => ['title' => 'TLS配置信息', 'description' => 'TLS 配置信息。', 'example' => '{}', '$ref' => '#/components/schemas/TLSConfig'],
],
],
'UpdateDiscoveryEndpointsInput' => [
'type' => 'object',
'properties' => [
+ 'credentialName' => ['type' => 'string', 'deprecated' => true],
'discoveryEndpoints' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/DiscoveryEndpoint',
- ],
+ 'items' => ['$ref' => '#/components/schemas/DiscoveryEndpoint'],
],
],
],
'UpdateDomainInput' => [
'type' => 'object',
'properties' => [
- 'protocol' => [
- 'type' => 'string',
- ],
- 'certIdentifier' => [
- 'type' => 'string',
+ 'protocol' => ['type' => 'string', 'description' => ''],
+ 'certIdentifier' => ['type' => 'string', 'description' => ''],
+ ],
+ 'description' => '',
+ ],
+ 'UpdateFlowDraftInput' => [
+ 'title' => '更新工作流草稿输入',
+ 'description' => '更新工作流草稿的输入参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'description' => ['title' => '描述', 'description' => '工作流的描述信息', 'type' => 'string'],
+ 'definition' => ['title' => '定义', 'description' => '工作流的 FDL 定义', 'type' => 'string'],
+ 'executionRoleArn' => ['title' => '执行角色 ARN', 'description' => '工作流执行时使用的 RAM 角色 ARN', 'type' => 'string'],
+ 'environmentConfiguration' => ['title' => '环境配置', 'description' => '工作流执行期间可以访问的环境变量配置,包含一组命名变量列表', '$ref' => '#/components/schemas/EnvironmentConfiguration'],
+ 'externalStorageLocation' => ['title' => '外部存储位置', 'description' => '工作流执行历史的外部存储位置', 'type' => 'string'],
+ ],
+ ],
+ 'UpdateFlowEndpointInput' => [
+ 'title' => '更新工作流端点输入',
+ 'description' => '更新工作流端点所需的输入参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'flowEndpointName' => ['title' => '工作流端点名称', 'description' => '工作流端点的唯一标识名称', 'type' => 'string', 'example' => 'my-flow-endpoint'],
+ 'description' => ['title' => '描述', 'description' => '工作流端点的描述信息', 'type' => 'string', 'example' => 'Production endpoint for flow'],
+ 'targetVersion' => ['title' => '目标版本', 'description' => '工作流端点指向的目标版本号', 'type' => 'string', 'example' => '1'],
+ 'routingConfiguration' => [
+ 'title' => '路由配置',
+ 'description' => '工作流端点的版本路由配置,用于流量分配',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/FlowEndpointRoutingConfig'],
+ 'example' => '[]',
],
+ 'disablePublicNetworkAccess' => ['title' => '禁用公网访问', 'description' => '是否禁用该端点的公网访问', 'type' => 'boolean'],
],
],
- 'UpdateKnowledgeBaseInput' => [
+ 'UpdateFlowInput' => [
+ 'title' => '更新工作流输入',
+ 'description' => '更新工作流所需的输入参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'flowName' => ['title' => '工作流名称', 'description' => '工作流的唯一标识名称,用于区分不同的工作流实例', 'type' => 'string', 'example' => 'my-flow'],
+ 'description' => ['title' => '描述', 'description' => '工作流的描述信息,用于说明该工作流的用途和功能', 'type' => 'string', 'example' => 'Customer service automation flow'],
+ 'definition' => ['title' => '定义', 'description' => '工作流的定义内容,采用JSON或YAML格式', 'type' => 'string', 'example' => '{}'],
+ 'executionRoleArn' => ['title' => '执行角色ARN', 'description' => '为工作流提供访问云服务权限的执行角色ARN', 'type' => 'string', 'example' => 'acs:ram::123456789012:role/FlowExecutionRole'],
+ 'environmentConfiguration' => ['title' => '环境配置', 'description' => '工作流的环境变量配置,包含一组命名变量列表', '$ref' => '#/components/schemas/EnvironmentConfiguration'],
+ 'externalStorageLocation' => ['title' => '外部存储位置', 'description' => '工作流的外部存储位置,如OSS路径', 'type' => 'string', 'example' => 'oss://bucket/path'],
+ 'resourceGroupId' => ['title' => '资源组ID', 'description' => '工作流所属的资源组标识符', 'type' => 'string', 'example' => 'rg-acfmxsn4m4a4b4a'],
+ 'tracingConfiguration' => ['title' => '链路追踪配置', 'description' => '工作流的链路追踪配置', '$ref' => '#/components/schemas/TracingConfiguration'],
+ 'loggingConfiguration' => ['title' => '日志配置', 'description' => '工作流的日志配置', '$ref' => '#/components/schemas/LoggingConfiguration'],
+ 'workspaceId' => ['title' => '工作空间ID', 'description' => '工作流所属的工作空间标识符,用于资源隔离和权限管理', 'type' => 'string', 'example' => 'ws-1234567890abcdef'],
+ 'disablePublicNetworkAccess' => ['title' => '禁用公网访问', 'description' => '是否禁用该工作流的公网访问,作为工作流级别的默认策略。当 FlowEndpoint 未指定时,将继承此值', 'type' => 'boolean'],
+ ],
+ ],
+ 'UpdateFunagentInput' => [
+ 'title' => '更新 Funagent 输入',
+ 'description' => 'PATCH 语义的可选字段;未传字段不修改。JSON omitempty。',
'type' => 'object',
'properties' => [
- 'description' => [
- 'title' => '知识库描述',
+ 'description' => ['title' => '描述', 'type' => 'string'],
+ 'version' => ['title' => '包版本', 'type' => 'string'],
+ 'cpu' => ['title' => 'CPU 核数', 'type' => 'number', 'format' => 'float'],
+ 'memory' => ['title' => '内存 MB', 'type' => 'integer', 'format' => 'int32'],
+ 'replicas' => ['title' => '副本数', 'type' => 'integer', 'format' => 'int32'],
+ 'adminName' => ['title' => '管理员用户名', 'type' => 'string'],
+ 'adminSecret' => ['title' => '管理员密码', 'description' => '敏感字段', 'type' => 'string'],
+ 'dbType' => ['title' => '数据库类型', 'type' => 'string'],
+ 'dbName' => ['title' => '数据库名', 'type' => 'string'],
+ 'dbInstanceId' => ['title' => '数据库实例 ID', 'type' => 'string'],
+ 'dbHost' => ['title' => '数据库主机', 'type' => 'string'],
+ 'dbPort' => ['title' => '数据库端口', 'type' => 'integer', 'format' => 'int32'],
+ 'dbUsername' => ['title' => '数据库用户名', 'type' => 'string'],
+ 'dbPassword' => ['title' => '数据库密码', 'description' => '敏感字段', 'type' => 'string'],
+ 'dbConnections' => ['title' => '数据库连接数', 'type' => 'integer', 'format' => 'int32'],
+ ],
+ ],
+ 'UpdateIMBotInput' => [
+ 'title' => '更新 IM Bot 请求体',
+ 'description' => '字段均可选;metadata 合并入现有 metadata(非整包替换);合并结果含非空 role 时更新租户 FC 执行角色;更新后仍校验标准模式运行时绑定',
+ 'type' => 'object',
+ 'properties' => [
+ 'botName' => ['type' => 'string', 'maxLength' => 128],
+ 'botBizId' => ['type' => 'string', 'maxLength' => 128],
+ 'botBizSecret' => ['description' => '若提供则不可为空字符串', 'type' => 'string', 'maxLength' => 2048],
+ 'botBizType' => [
+ 'type' => 'string',
+ 'enum' => ['dingtalk', 'wecom', 'feishu', 'custom'],
+ ],
+ 'botMode' => [
+ 'description' => '不可与租户已固定的 deployment 模式冲突',
'type' => 'string',
+ 'enum' => ['standard', 'custom'],
],
- 'credentialName' => [
- 'title' => '凭证名称',
+ 'status' => [
'type' => 'string',
+ 'enum' => ['running', 'stopped'],
],
+ 'minInstances' => ['description' => '≥ 1,更新账号级 FC 最小实例', 'type' => 'integer', 'format' => 'int32'],
+ 'description' => ['description' => 'Bot 描述信息', 'type' => 'string', 'maxLength' => 512],
+ 'metadata' => ['$ref' => '#/components/schemas/IMBotMetadata'],
+ ],
+ ],
+ 'UpdateKnowledgeBaseInput' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'description' => ['title' => '知识库描述', 'type' => 'string'],
+ 'credentialName' => ['title' => '凭证名称', 'type' => 'string'],
'providerSettings' => [
'title' => '知识库供应商配置',
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'any',
- ],
+ 'additionalProperties' => ['type' => 'any'],
],
'retrieveSettings' => [
'title' => '检索配置',
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'any',
- ],
+ 'additionalProperties' => ['type' => 'any'],
],
+ 'workspaceId' => ['title' => '工作空间ID', 'type' => 'string'],
],
],
'UpdateMemoryCollectionInput' => [
'type' => 'object',
'properties' => [
- 'description' => [
- 'type' => 'string',
- ],
- 'llmConfig' => [
- '$ref' => '#/components/schemas/LLMConfig',
- ],
- 'embedderConfig' => [
- '$ref' => '#/components/schemas/EmbedderConfig',
- ],
- 'vectorStoreConfig' => [
- '$ref' => '#/components/schemas/VectorStoreConfig',
- ],
- 'networkConfiguration' => [
- '$ref' => '#/components/schemas/NetworkConfiguration',
- ],
- 'executionRoleArn' => [
- 'type' => 'string',
- ],
- 'enableConversationHistory' => [
- 'type' => 'boolean',
- ],
- 'enableConversationState' => [
- 'type' => 'boolean',
- ],
+ 'description' => ['type' => 'string'],
+ 'llmConfig' => ['$ref' => '#/components/schemas/LLMConfig'],
+ 'embedderConfig' => ['$ref' => '#/components/schemas/EmbedderConfig'],
+ 'vectorStoreConfig' => ['$ref' => '#/components/schemas/VectorStoreConfig'],
+ 'networkConfiguration' => ['$ref' => '#/components/schemas/NetworkConfiguration'],
+ 'executionRoleArn' => ['type' => 'string'],
+ 'enableConversationHistory' => ['type' => 'boolean'],
+ 'enableConversationState' => ['type' => 'boolean'],
+ 'workspaceId' => ['type' => 'string'],
],
],
- 'UpdateModelInput' => [
+ 'UpdateModelConnectionInput' => [
+ 'title' => '更新模型连接输入',
+ 'description' => '更新模型连接的输入参数,所有字段均为可选,仅更新提供的字段',
'type' => 'object',
'properties' => [
- 'name' => [
- 'type' => 'string',
- ],
- 'provider' => [
- 'type' => 'string',
- ],
- 'type' => [
- 'type' => 'string',
- ],
- 'address' => [
- 'type' => 'string',
- ],
- 'apiKey' => [
- 'type' => 'string',
+ 'description' => ['title' => '描述', 'description' => '更新后的描述信息', 'type' => 'string', 'example' => 'Updated connection description'],
+ 'providerSettings' => ['title' => '供应商设置', 'description' => '更新后的模型提供商配置信息', 'example' => '{}', '$ref' => '#/components/schemas/ModelConnectionProviderSettings'],
+ 'modelInfoConfigs' => [
+ 'title' => '模型信息配置列表',
+ 'description' => '更新后的模型元数据配置列表',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/ModelInfoConfig'],
],
- 'models' => [
+ 'consumerApiKeys' => [
+ 'title' => '消费者API密钥绑定',
+ 'description' => '更新绑定的消费者API密钥列表',
'type' => 'array',
'items' => [
- 'type' => 'string',
+ 'type' => 'object',
+ 'properties' => [
+ 'apiKeyId' => ['type' => 'string'],
+ 'value' => ['type' => 'string'],
+ ],
],
],
- 'desc' => [
- 'type' => 'string',
+ ],
+ ],
+ 'UpdateModelInput' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['type' => 'string', 'description' => ''],
+ 'provider' => ['type' => 'string', 'description' => ''],
+ 'type' => ['type' => 'string', 'description' => ''],
+ 'address' => ['type' => 'string', 'description' => ''],
+ 'apiKey' => ['type' => 'string', 'description' => ''],
+ 'models' => [
+ 'type' => 'array',
+ 'items' => ['type' => 'string', 'description' => ''],
+ 'description' => '',
],
+ 'desc' => ['type' => 'string', 'description' => ''],
],
+ 'description' => '',
],
'UpdateModelProxyInput' => [
'type' => 'object',
'properties' => [
- 'description' => [
- 'type' => 'string',
- ],
- 'proxyConfig' => [
- '$ref' => '#/components/schemas/ProxyConfig',
- ],
- 'credentialName' => [
- 'type' => 'string',
- ],
- 'networkConfiguration' => [
- '$ref' => '#/components/schemas/NetworkConfiguration',
- ],
- 'logConfiguration' => [
- '$ref' => '#/components/schemas/LogConfiguration',
- ],
- 'armsConfiguration' => [
- '$ref' => '#/components/schemas/ArmsConfiguration',
- ],
- 'executionRoleArn' => [
- 'type' => 'string',
- ],
+ 'description' => ['type' => 'string'],
+ 'proxyConfig' => ['$ref' => '#/components/schemas/ProxyConfig'],
+ 'credentialName' => ['type' => 'string'],
+ 'networkConfiguration' => ['$ref' => '#/components/schemas/NetworkConfiguration'],
+ 'logConfiguration' => ['$ref' => '#/components/schemas/LogConfiguration'],
+ 'armsConfiguration' => ['$ref' => '#/components/schemas/ArmsConfiguration'],
+ 'executionRoleArn' => ['type' => 'string'],
+ 'workspaceId' => ['type' => 'string'],
],
],
'UpdateModelServiceInput' => [
'type' => 'object',
'properties' => [
- 'description' => [
- 'type' => 'string',
- ],
- 'credentialName' => [
- 'type' => 'string',
- ],
- 'providerSettings' => [
- '$ref' => '#/components/schemas/ProviderSettings',
- ],
- 'networkConfiguration' => [
- '$ref' => '#/components/schemas/NetworkConfiguration',
- ],
- 'status' => [
- 'type' => 'string',
- ],
+ 'description' => ['type' => 'string'],
+ 'credentialName' => ['type' => 'string'],
+ 'providerSettings' => ['$ref' => '#/components/schemas/ProviderSettings'],
+ 'networkConfiguration' => ['$ref' => '#/components/schemas/NetworkConfiguration'],
+ 'status' => ['type' => 'string'],
+ 'statusReason' => ['type' => 'string'],
'modelInfoConfigs' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/ModelInfoConfig',
- ],
+ 'items' => ['$ref' => '#/components/schemas/ModelInfoConfig'],
],
- 'statusReason' => [
- 'type' => 'string',
+ 'workspaceId' => ['type' => 'string'],
+ ],
+ ],
+ 'UpdateRateLimitRuleInput' => [
+ 'title' => '更新限流规则输入',
+ 'description' => '更新限流规则的输入参数,仅可更新计数模式、启用状态和时间窗口',
+ 'type' => 'object',
+ 'properties' => [
+ 'enabled' => ['title' => '启用状态', 'description' => '是否启用该限流规则', 'type' => 'boolean', 'example' => 'false'],
+ 'windows' => [
+ 'title' => '限流窗口列表',
+ 'description' => '限流时间窗口配置列表,提供时将整组覆盖',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/WindowLimit'],
],
],
],
+ 'UpdateServiceInput' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'aiServiceConfig' => ['$ref' => '#/components/schemas/AiServiceConfig', 'description' => ''],
+ ],
+ 'description' => '',
+ ],
'UpdateTargetConfigurationInput' => [
'type' => 'object',
'properties' => [
- 'domainId' => [
- 'type' => 'string',
- ],
- 'targetConfiguration' => [
- '$ref' => '#/components/schemas/TargetConfiguration',
- ],
+ 'domainId' => ['type' => 'string', 'description' => ''],
+ 'targetConfiguration' => ['$ref' => '#/components/schemas/TargetConfiguration', 'description' => ''],
],
+ 'description' => '',
],
'UpdateTemplateInput' => [
'title' => '更新模板输入',
'description' => '更新模板所需的输入参数',
'type' => 'object',
'properties' => [
- 'description' => [
- 'title' => '模板描述',
- 'type' => 'string',
- ],
- 'containerConfiguration' => [
- 'title' => '容器配置',
- 'description' => '容器配置(内置的不可改)',
- '$ref' => '#/components/schemas/ContainerConfiguration',
- ],
- 'credentialConfiguration' => [
- 'title' => '凭证配置',
- '$ref' => '#/components/schemas/CredentialConfiguration',
- ],
- 'networkConfiguration' => [
- 'title' => '网络配置',
- '$ref' => '#/components/schemas/NetworkConfiguration',
- ],
- 'logConfiguration' => [
- 'title' => '日志配置',
- '$ref' => '#/components/schemas/LogConfiguration',
- ],
- 'executionRoleArn' => [
- 'title' => '执行角色ARN',
- 'type' => 'string',
- ],
- 'cpu' => [
- 'title' => 'CPU资源配置',
- 'description' => 'CPU资源配置(单位:核心)',
- 'type' => 'number',
- 'format' => 'float',
- ],
- 'memory' => [
- 'title' => '内存资源配置',
- 'description' => '内存资源配置(单位:MB)',
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'sandboxIdleTimeoutInSeconds' => [
- 'title' => '沙箱空闲超时时间',
- 'description' => '沙箱空闲超时时间(秒)',
- 'type' => 'integer',
- 'format' => 'int32',
- 'maximum' => '21600',
- 'minimum' => '1',
- ],
- 'sandboxTTLInSeconds' => [
- 'title' => '沙箱生命周期存活时间(已弃用)',
- 'description' => '沙箱存活时间(秒)',
- 'type' => 'integer',
- 'format' => 'int32',
- 'deprecated' => true,
- 'maximum' => '21600',
- 'minimum' => '1',
- ],
- 'armsConfiguration' => [
- '$ref' => '#/components/schemas/ArmsConfiguration',
- ],
- 'allowAnonymousManage' => [
- 'title' => '是否允许数据链路调用创建/停止/删除沙箱接口',
- 'type' => 'boolean',
- ],
- 'nasConfig' => [
- 'title' => 'NAS 挂载配置项',
- '$ref' => '#/components/schemas/NASConfig',
- ],
+ 'description' => ['title' => '模板描述', 'description' => '模板描述', 'type' => 'string', 'example' => 'demo description'],
+ 'containerConfiguration' => ['title' => '容器配置', 'description' => '容器配置(内置的不可改)', '$ref' => '#/components/schemas/ContainerConfiguration'],
+ 'credentialConfiguration' => ['title' => '凭证配置', 'description' => '凭证配置', '$ref' => '#/components/schemas/CredentialConfiguration'],
+ 'networkConfiguration' => ['title' => '网络配置', 'description' => '网络配置', '$ref' => '#/components/schemas/NetworkConfiguration'],
+ 'logConfiguration' => ['title' => '日志配置', 'description' => '日志配置', '$ref' => '#/components/schemas/LogConfiguration'],
+ 'executionRoleArn' => ['title' => '执行角色ARN', 'description' => '执行角色ARN', 'type' => 'string', 'example' => 'arn:acs:agentrun:cn-hangzhou:123456789:xxx/test'],
+ 'cpu' => ['title' => 'CPU资源配置', 'description' => 'CPU资源配置(单位:核心)', 'type' => 'number', 'format' => 'float', 'example' => '2'],
+ 'memory' => ['title' => '内存资源配置', 'description' => '内存资源配置(单位:MB)', 'type' => 'integer', 'format' => 'int32', 'example' => '4'],
+ 'sandboxIdleTimeoutInSeconds' => ['title' => '沙箱空闲超时时间', 'description' => '沙箱空闲超时时间(秒)', 'type' => 'integer', 'format' => 'int32', 'maximum' => '21600', 'minimum' => '1', 'example' => '21600'],
+ 'sandboxTTLInSeconds' => ['title' => '沙箱生命周期存活时间', 'description' => '沙箱存活时间(秒)', 'type' => 'integer', 'format' => 'int32', 'deprecated' => false, 'maximum' => '604800', 'minimum' => '1', 'example' => '86400'],
+ 'armsConfiguration' => ['description' => '应用实时监控服务(ARMS)的配置信息', '$ref' => '#/components/schemas/ArmsConfiguration'],
+ 'allowAnonymousManage' => ['title' => '是否允许数据链路调用创建/停止/删除沙箱接口', 'description' => '是否允许数据链路调用创建/停止/删除沙箱接口', 'type' => 'boolean', 'example' => 'true'],
+ 'nasConfig' => ['title' => 'NAS 挂载配置项', 'description' => 'NAS 挂载配置项', '$ref' => '#/components/schemas/NASConfig'],
+ 'enableAgent' => ['title' => 'Sandbox Agent 开关', 'description' => 'Sandbox Agent 开关', 'type' => 'boolean', 'example' => 'true'],
+ 'workspaceId' => ['title' => '关联的空间 ID', 'description' => '关联的空间 ID', 'type' => 'string', 'example' => 'ws-1234567890abcdef'],
+ 'scalingConfig' => ['title' => '弹性配置', 'description' => '弹性配置', '$ref' => '#/components/schemas/ScalingConfig'],
+ 'enablePreStop' => ['title' => '是否开启实例销毁前回调', 'type' => 'boolean'],
+ 'preStopTimeoutInSeconds' => ['title' => '实例销毁前回调超时时间(秒)', 'type' => 'integer', 'format' => 'int32'],
'ossConfiguration' => [
+ 'description' => 'OSS挂载配置',
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/OssConfiguration',
- ],
+ 'items' => ['description' => 'OSS挂载配置', '$ref' => '#/components/schemas/OssConfiguration'],
],
'environmentVariables' => [
'title' => '环境变量',
+ 'description' => '环境变量',
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- ],
+ 'additionalProperties' => ['description' => '环境变量配置', 'type' => 'string', 'example' => '{\'HOME\': \'/tmp/\', \'POC_DIR_PREFIX\': \'/app/\'}'],
],
'templateConfiguration' => [
'title' => '模板配置',
'description' => '模板配置(灵活的对象结构,根据 templateType 不同而不同)',
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'any',
- ],
- ],
- 'enableAgent' => [
- 'title' => 'Sandbox Agent 开关',
- 'type' => 'boolean',
+ 'additionalProperties' => ['description' => '模板配置(灵活的对象结构,根据 templateType 不同而不同)', 'type' => 'any', 'example' => '{"templateCustomConfiguration":"demo"}'],
],
],
],
'UpdateToolData' => [
'type' => 'object',
'properties' => [
- 'id' => [
- 'type' => 'string',
- ],
- 'name' => [
- 'type' => 'string',
- ],
- 'sourceType' => [
- 'type' => 'string',
- ],
- 'toolType' => [
- 'type' => 'string',
- ],
- 'updatedAt' => [
- 'type' => 'string',
- ],
+ 'id' => ['type' => 'string', 'description' => ''],
+ 'name' => ['type' => 'string', 'description' => ''],
+ 'sourceType' => ['type' => 'string', 'description' => ''],
+ 'toolType' => ['type' => 'string', 'description' => ''],
+ 'updatedAt' => ['type' => 'string', 'description' => ''],
],
+ 'description' => '',
],
'UpdateToolInput' => [
'type' => 'object',
'properties' => [
- 'name' => [
- 'type' => 'string',
- ],
- 'description' => [
+ 'name' => ['type' => 'string', 'description' => ''],
+ 'description' => ['type' => 'string', 'description' => ''],
+ 'schema' => ['type' => 'string', 'description' => ''],
+ ],
+ 'description' => '',
+ ],
+ 'UpdateToolInputV2' => [
+ 'title' => '更新工具输入参数',
+ 'description' => '更新现有工具时需要提供的参数信息。所有字段均为可选,只需提供需要更新的字段即可,未提供的字段将保持原有值不变。',
+ 'type' => 'object',
+ 'properties' => [
+ 'workspaceId' => ['title' => '工作空间ID', 'description' => '更新工具所属的工作空间标识符', 'type' => 'string', 'example' => 'workspace-xyz789'],
+ 'description' => ['title' => '工具描述', 'description' => '更新工具的描述信息', 'type' => 'string', 'example' => '更新后的工具描述'],
+ 'createMethod' => [
+ 'title' => '创建方式',
+ 'description' => '更新工具的创建方式。支持:MCP_REMOTE、MCP_LOCAL_STDIO、MCP_BUNDLE、CODE_PACKAGE、OPENAPI_IMPORT',
'type' => 'string',
+ 'enumValueTitles' => ['MCP_REMOTE' => '远程 MCP 服务器 - 连接到远程运行的 MCP 服务器', 'MCP_LOCAL_STDIO' => '本地 MCP 标准输入输出 - 通过标准输入输出与本地 MCP 进程通信', 'MCP_BUNDLE' => 'MCP 打包部署 - 将 MCP 工具打包后部署', 'CODE_PACKAGE' => '代码包部署 - 通过代码包方式部署工具', 'OPENAPI_IMPORT' => 'OpenAPI 导入 - 从 OpenAPI 规范导入工具定义'],
+ 'example' => 'MCP_REMOTE',
+ 'enum' => ['MCP_REMOTE', 'MCP_LOCAL_STDIO', 'MCP_BUNDLE', 'CODE_PACKAGE', 'OPENAPI_IMPORT'],
],
- 'schema' => [
+ 'protocolSpec' => ['title' => '协议规范', 'description' => '更新工具使用的协议规范定义', 'type' => 'string'],
+ 'mcpConfig' => ['title' => 'MCP配置', 'description' => '更新 MCP 工具的配置信息,包括会话亲和性、代理配置等', '$ref' => '#/components/schemas/McpConfig'],
+ 'executionRoleArn' => ['title' => '执行角色ARN', 'description' => '更新工具执行时使用的 RAM 角色 ARN', 'type' => 'string', 'example' => 'acs:ram::123456789:role/AliyunFCDefaultRole'],
+ 'artifactType' => [
+ 'title' => '制品类型',
+ 'description' => '更新工具部署的制品类型,支持:Code(代码包)、Container(容器镜像)',
'type' => 'string',
+ 'enumValueTitles' => ['Code' => '代码包 - 使用代码包形式部署工具', 'Container' => '容器镜像 - 使用容器镜像形式部署工具'],
+ 'example' => 'Code',
+ 'enum' => ['Code', 'Container'],
+ ],
+ 'networkConfiguration' => ['title' => '网络配置', 'description' => '更新工具的网络配置', '$ref' => '#/components/schemas/NetworkConfiguration'],
+ 'codeConfiguration' => ['title' => '代码配置', 'description' => '更新代码包类型工具的配置信息', '$ref' => '#/components/schemas/CodeConfiguration'],
+ 'containerConfiguration' => ['title' => '容器配置', 'description' => '更新容器类型工具的配置信息', '$ref' => '#/components/schemas/ContainerConfiguration'],
+ 'logConfiguration' => ['title' => '日志配置', 'description' => '更新工具的日志配置', '$ref' => '#/components/schemas/LogConfiguration'],
+ 'ossMountConfig' => ['title' => 'OSS挂载配置', 'description' => '更新对象存储 OSS 的挂载配置', '$ref' => '#/components/schemas/OSSMountConfig'],
+ 'nasConfig' => ['title' => 'NAS配置', 'description' => '更新文件存储 NAS 的配置信息', '$ref' => '#/components/schemas/NASConfig'],
+ 'cpu' => ['title' => 'CPU配置', 'description' => '更新工具实例的 CPU 核心数,单位为核', 'type' => 'number', 'format' => 'float', 'example' => '1.0'],
+ 'memory' => ['title' => '内存配置', 'description' => '更新工具实例的内存大小,单位为 MB', 'type' => 'integer', 'format' => 'int32', 'example' => '1024'],
+ 'port' => ['title' => '端口号', 'description' => '更新工具服务监听的端口号', 'type' => 'integer', 'format' => 'int32', 'example' => '8080'],
+ 'credentialName' => ['title' => '凭证名称', 'description' => '更新工具使用的凭证名称', 'type' => 'string', 'example' => 'my-credential'],
+ 'timeout' => ['title' => '超时时间', 'description' => '更新工具执行的超时时间,单位为秒', 'type' => 'integer', 'format' => 'int32', 'example' => '600'],
+ 'environmentVariables' => [
+ 'title' => '环境变量',
+ 'description' => '更新工具运行时的环境变量配置',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string'],
+ 'example' => '{"ENV": "production"}',
],
+ 'agentIdentityEnabled' => ['type' => 'boolean'],
+ 'agentIdentityConfig' => ['$ref' => '#/components/schemas/ToolAgentIdentityConfig'],
],
],
'UpdateToolOutput' => [
'type' => 'object',
'properties' => [
- 'success' => [
- 'type' => 'boolean',
- ],
- 'message' => [
- 'type' => 'string',
- ],
- 'data' => [
- '$ref' => '#/components/schemas/UpdateToolData',
- ],
+ 'success' => ['type' => 'boolean', 'description' => ''],
+ 'message' => ['type' => 'string', 'description' => ''],
+ 'data' => ['$ref' => '#/components/schemas/UpdateToolData', 'description' => ''],
],
+ 'description' => '',
],
'UpdateWorkspaceInput' => [
'type' => 'object',
'properties' => [
- 'description' => [
- 'type' => 'string',
- ],
+ 'description' => ['type' => 'string'],
],
],
'VectorStoreConfig' => [
'type' => 'object',
'properties' => [
- 'provider' => [
- 'type' => 'string',
- ],
+ 'provider' => ['type' => 'string'],
'config' => [
'type' => 'object',
'properties' => [
- 'endpoint' => [
- 'type' => 'string',
- ],
- 'instanceName' => [
- 'type' => 'string',
- ],
- 'vectorDimension' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'collectionName' => [
- 'type' => 'string',
- ],
+ 'endpoint' => ['type' => 'string'],
+ 'instanceName' => ['type' => 'string'],
+ 'vectorDimension' => ['type' => 'integer', 'format' => 'int32'],
+ 'collectionName' => ['type' => 'string'],
],
],
'mysqlConfig' => [
'type' => 'object',
'properties' => [
- 'host' => [
- 'type' => 'string',
- ],
- 'dbName' => [
- 'type' => 'string',
- ],
- 'collectionName' => [
- 'type' => 'string',
- ],
- 'user' => [
- 'type' => 'string',
- ],
- 'credentialName' => [
- 'type' => 'string',
- ],
- 'vectorDimension' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'port' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
+ 'host' => ['type' => 'string'],
+ 'dbName' => ['type' => 'string'],
+ 'collectionName' => ['type' => 'string'],
+ 'user' => ['type' => 'string'],
+ 'credentialName' => ['type' => 'string'],
+ 'vectorDimension' => ['type' => 'integer', 'format' => 'int32'],
+ 'port' => ['type' => 'integer', 'format' => 'int32'],
],
],
],
@@ -6919,3214 +5130,3877 @@
'description' => '单个版本的权重配置',
'type' => 'object',
'properties' => [
- 'version' => [
- 'title' => '版本号',
- 'description' => '智能体运行时版本号',
- 'type' => 'string',
- ],
- 'weight' => [
- 'title' => '权重',
- 'description' => '流量权重比例(0.0-1.0)',
- 'type' => 'number',
- 'format' => 'float',
- 'maximum' => '1',
- 'minimum' => '0',
- ],
+ 'version' => ['title' => '版本号', 'description' => '智能体运行时版本号', 'type' => 'string'],
+ 'weight' => ['title' => '权重', 'description' => '流量权重比例(0.0-1.0)', 'type' => 'number', 'format' => 'float', 'maximum' => '1', 'minimum' => '0'],
],
],
- 'ViewPortConfiguration' => [
- 'title' => '浏览器视口配置',
- 'description' => '浏览器视口配置',
+ 'WindowLimit' => [
+ 'title' => '限流时间窗口',
+ 'description' => '限流规则中的时间窗口配置,定义在指定时间段内允许的最大请求数',
'type' => 'object',
'properties' => [
- 'height' => [
- 'title' => '视口高度',
- 'description' => '视口高度(像素)',
- 'type' => 'number',
- 'format' => 'float',
- 'required' => true,
- ],
- 'width' => [
- 'title' => '视口宽度',
- 'description' => '视口宽度(像素)',
- 'type' => 'number',
- 'format' => 'float',
- 'required' => true,
- ],
+ 'durationSecs' => ['title' => '窗口时长(秒)', 'description' => '限流时间窗口的持续时间,单位为秒', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '60'],
+ 'limit' => ['title' => '请求限制数', 'description' => '在指定时间窗口内允许的最大请求数量', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '100'],
],
],
'Workspace' => [
'type' => 'object',
'properties' => [
- 'workspaceId' => [
- 'type' => 'string',
- ],
- 'workspaceArn' => [
- 'type' => 'string',
- ],
- 'name' => [
- 'type' => 'string',
- ],
- 'description' => [
- 'type' => 'string',
- ],
- 'isDefault' => [
- 'type' => 'boolean',
- ],
- 'resourceGroupId' => [
- 'type' => 'string',
- ],
- 'createdAt' => [
- 'type' => 'string',
- ],
- 'updatedAt' => [
- 'type' => 'string',
+ 'workspaceId' => ['type' => 'string'],
+ 'workspaceArn' => ['type' => 'string'],
+ 'name' => ['type' => 'string'],
+ 'description' => ['type' => 'string'],
+ 'isDefault' => ['type' => 'boolean'],
+ 'resourceGroupId' => ['type' => 'string'],
+ 'createdAt' => ['type' => 'string'],
+ 'updatedAt' => ['type' => 'string'],
+ ],
+ ],
+ 'WorkspacePermissionEvaluateResult' => [
+ 'title' => '单个 Workspace 权限校验结果',
+ 'description' => '对应请求 workspaceIds 中的一项;顺序与请求 workspaceIds 一致',
+ 'type' => 'object',
+ 'properties' => [
+ 'workspaceId' => ['description' => '回显请求中的 workspace ID(trim 后)', 'type' => 'string'],
+ 'workspaceFound' => ['description' => '当前租户下是否解析到该 workspace;为 false 时各 permissions 一般为 allowed: false,不会调用 RAM', 'type' => 'boolean'],
+ 'permissions' => [
+ 'description' => '各 action 的校验结果;顺序与请求 actions 一致',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/WorkspacePermissionItem'],
],
],
],
+ 'WorkspacePermissionItem' => [
+ 'title' => '单条 RAM 权限校验结果',
+ 'description' => '对应请求 actions 中的一项;顺序与请求 actions 一致',
+ 'type' => 'object',
+ 'properties' => [
+ 'action' => ['description' => '归一化后的 RAM action,始终含 agentrun: 前缀,如 agentrun:ListTemplates', 'type' => 'string'],
+ 'allowed' => ['description' => 'RAM 判定通过为 true;workspace 不存在、非法/不支持 action、RAM SDK 报错等均为 false', 'type' => 'boolean'],
+ 'message' => ['description' => '人类可读原因;通过时通常为空字符串', 'type' => 'string'],
+ 'accessDeniedDetail' => ['description' => 'RAM 明确拒绝且可构造 detail 时返回;通过或非 RAM 拒绝场景省略', '$ref' => '#/components/schemas/AccessDeniedDetail'],
+ ],
+ ],
'WorkspaceResult' => [
'type' => 'object',
'properties' => [
- 'code' => [
- 'type' => 'string',
- ],
- 'requestId' => [
- 'type' => 'string',
- ],
- 'data' => [
- '$ref' => '#/components/schemas/Workspace',
- ],
+ 'code' => ['type' => 'string'],
+ 'requestId' => ['type' => 'string'],
+ 'data' => ['$ref' => '#/components/schemas/Workspace'],
],
],
],
],
'apis' => [
- 'CreateAgentRuntime' => [
- 'summary' => '创建智能体运行时。',
- 'description' => '创建一个新的智能体运行时实例,用于执行AI代理任务。智能体运行时是AgentRun服务的核心组件,提供代码执行、浏览器操作、内存管理等能力。',
- 'path' => '/2025-09-10/agents/runtimes',
- 'methods' => [
- 'post',
+ 'ActivateTemplateMCP' => [
+ 'path' => '/2025-09-10/templates/{templateName}/mcp/activate',
+ 'methods' => ['patch'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
- 'schemes' => [
- 'https',
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
+ 'tenantRelevance' => 'tenant',
],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求Body。',
+ 'type' => 'object',
+ 'properties' => [
+ 'enabledTools' => [
+ 'title' => '启用的工具列表'."\n",
+ 'description' => '启用的工具列表'."\n",
+ 'type' => 'array',
+ 'items' => ['description' => 'enabledTools', 'type' => 'string', 'required' => false, 'example' => '["health","run_code","list_contexts","create_context","get_context","delete_context","read_file","write_file","file_system_list","file_system_stat","file_system_download","file_system_mkdir","file_system_move","file_system_remove","file_system_upload","process_exec_cmd","process_tty","process_list","process_stat","process_kill"]'],
+ 'required' => false,
+ ],
+ 'transport' => [
+ 'title' => '传输协议',
+ 'description' => '传输协议',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'streamable-http',
+ 'enum' => ['sse', 'streamable-http'],
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'templateName',
+ 'in' => 'path',
+ 'schema' => ['title' => '模板名称', 'description' => '模板名称', 'type' => 'string', 'required' => false, 'example' => 'demo-template'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['description' => '沙箱模板详情', '$ref' => '#/components/schemas/TemplateResult'],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '启用 TemplateMCP 服务',
+ 'summary' => '启用 沙箱 MCP 服务,用于客户端通过MCP协议进行访问沙箱。',
+ 'description' => '启动后,会自动部署沙箱模板对应的MCP服务函数,MCP服务保证mcp-session-id和SandboxID的唯一映射。MCP client执行工具调用时,MCP服务会自动创建Sandbox',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:ActivateTemplateMCP',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"templateId\\": \\"996ffd5e-003f-4700-9f24-9e2a1c19019b.schema\\",\\n \\"templateName\\": \\"browser-1767874121726\\",\\n \\"templateVersion\\": \\"预留\\",\\n \\"cpu\\": 4,\\n \\"memory\\": 4096,\\n \\"templateArn\\": \\"acs:agentrun:cn-hangzhou:12345678:templates/efb6de2f-1814-42a2-b7f3-474a0e0b3a48\\",\\n \\"createdAt\\": \\"2026-01-15T17:12:59.375168+08:00\\",\\n \\"lastUpdatedAt\\": \\"2026-01-15T17:12:59.375168+08:00\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"SDK Error\\",\\n \\"executionRoleArn\\": \\"acs:agentrun:cn-hangzhou:12345678:templates/efb6de2f-1814-42a2-b7f3-474a0e0b3a48\\",\\n \\"templateType\\": \\"Browser\\",\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"/usr/local/bin/entrypoint.sh\\"\\n ],\\n \\"registryConfig\\": {\\n \\"authConfig\\": {\\n \\"userName\\": \\"admin\\",\\n \\"password\\": \\"abc***\\"\\n },\\n \\"certConfig\\": {\\n \\"insecure\\": false,\\n \\"rootCaCertBase64\\": \\"cm9vdF9jYV9jZXJ0X2Jhc2U2NA==\\"\\n },\\n \\"networkConfig\\": {\\n \\"vpcId\\": \\"vpc-xxxxxxxxxxxxx\\",\\n \\"vSwitchId\\": \\"vsw-xxxxxxxxxxxxx\\",\\n \\"securityGroupId\\": \\"sg-xxxxxxxxxxxxx\\"\\n }\\n },\\n \\"port\\": 5000\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"credentialConfiguration\\": {\\n \\"credentialName\\": \\"deepagent-key\\"\\n },\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"sandboxIdleTimeoutInSeconds\\": \\"1800\\",\\n \\"sandboxTTLInSeconds\\": \\"已弃用\\",\\n \\"resourceName\\": \\"agentrun-f2570dd4-c8a2-452c-8bd5-4ef74b0a69b5\\",\\n \\"mcpOptions\\": {\\n \\"transport\\": \\"streamable-http\\",\\n \\"enabledTools\\": [\\n \\"execute_code\\"\\n ]\\n },\\n \\"mcpState\\": {\\n \\"status\\": \\"CREATING\\",\\n \\"statusReason\\": \\"SDK Error\\",\\n \\"accessEndpoint\\": \\"/mcp\\"\\n },\\n \\"diskSize\\": 10240,\\n \\"description\\": \\"template描述\\",\\n \\"allowAnonymousManage\\": true,\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"enableAgent\\": true,\\n \\"workspaceId\\": \\"\\",\\n \\"scalingStatus\\": {\\n \\"minInstances\\": 1,\\n \\"targetInstances\\": 2,\\n \\"currentInstances\\": 2,\\n \\"scheduledPolicies\\": [\\n {\\n \\"name\\": \\"scale-up-morning\\",\\n \\"startTime\\": \\"2024-01-01T08:00:00\\",\\n \\"endTime\\": \\"2024-01-01T08:00:00\\",\\n \\"scheduleExpression\\": \\"cron(0 8 * * ? *)\\",\\n \\"timeZone\\": \\"Asia/Shanghai\\",\\n \\"target\\": 20\\n }\\n ],\\n \\"currentError\\": \\"error\\"\\n },\\n \\"environmentVariables\\": {\\n \\"key\\": \\"{\'FCTEST_IDE_ENV\': \'IDE\'}\\"\\n },\\n \\"templateConfiguration\\": {\\n \\"key\\": \\"{\\\\\\"example\\\\\\":\\\\\\"test\\\\\\"}\\"\\n },\\n \\"ossConfiguration\\": [\\n {\\n \\"bucketName\\": \\"a-test-oss\\",\\n \\"prefix\\": \\"/\\",\\n \\"mountPoint\\": \\"/mnt/oss1\\",\\n \\"permission\\": \\"READ_WRITE\\",\\n \\"region\\": \\"ch-hangzhou\\",\\n \\"endpoint\\": \\"\\"\\n }\\n ],\\n \\"enablePreStop\\": true,\\n \\"preStopTimeoutInSeconds\\": 0\\n }\\n}","type":"json"}]',
+ ],
+ 'ConvertFlowDSL' => [
+ 'path' => '/2025-09-10/flows/action/convertDsl',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['title' => 'Flow DSL转换请求参数', 'description' => 'Flow DSL转换请求参数', 'required' => true, '$ref' => '#/components/schemas/ConvertFlowDSLInput'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['title' => '返回Flow DSL转换结果', 'description' => '返回Flow DSL转换结果', '$ref' => '#/components/schemas/ConvertFlowDSLResult'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '流程DSL转换',
+ 'summary' => '转换Flow DSL。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'produces' => [
- 'application/json',
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"flow\\": {\\n \\"flowName\\": \\"dify-flow\\",\\n \\"description\\": \\"Converted from external workflow\\",\\n \\"definition\\": \\"\\",\\n \\"environmentConfiguration\\": {\\n \\"variables\\": [\\n {\\n \\"name\\": \\"MY_KEY\\",\\n \\"value\\": \\"my-value\\",\\n \\"description\\": \\"A configuration key\\"\\n }\\n ]\\n }\\n },\\n \\"conversionPlan\\": {\\n \\"summary\\": {\\n \\"totalNodes\\": 10,\\n \\"compatibleNodes\\": 7,\\n \\"nodesNeedConfig\\": 2,\\n \\"nodesNeedConversion\\": 0,\\n \\"unsupportedNodes\\": 1\\n },\\n \\"issues\\": [\\n {\\n \\"nodeId\\": \\"1760514991682\\",\\n \\"nodeType\\": \\"tool\\",\\n \\"nodeTitle\\": \\"Google Search\\",\\n \\"level\\": \\"warning\\",\\n \\"issueType\\": \\"needs_config\\",\\n \\"description\\": \\"Tool node requires Toolset installation\\",\\n \\"suggestion\\": \\"Install Toolset \'google\' before using this flow\\",\\n \\"details\\": {\\n \\"key\\": \\"\\"\\n }\\n }\\n ]\\n },\\n \\"toolsetInstallations\\": [\\n {\\n \\"name\\": \\"google\\",\\n \\"description\\": \\"Google Search Plugin\\",\\n \\"spec\\": {\\n \\"key\\": \\"\\"\\n }\\n }\\n ],\\n \\"pluginErrors\\": [\\n {\\n \\"nodeId\\": \\"1760514996015\\",\\n \\"providerName\\": \\"langgenius\\",\\n \\"toolName\\": \\"google_search\\",\\n \\"reason\\": \\"Plugin not found in marketplace\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
+ ],
+ 'CreateAgentRuntime' => [
+ 'summary' => '创建智能体运行时。',
+ 'description' => '创建一个新的智能体运行时实例,用于执行AI代理任务。智能体运行时是AgentRun服务的核心组件,提供代码执行、浏览器操作、内存管理等能力。',
+ 'path' => '/2025-09-10/agents/runtimes',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'tags' => [],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- 'FEATUREfc739PD5',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY', 'FEATUREfc739PD5'],
],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
- 'schema' => [
- 'title' => '创建智能体运行时请求参数',
- 'description' => '创建代理运行时请求参数',
- 'required' => true,
- '$ref' => '#/components/schemas/CreateAgentRuntimeInput',
- ],
+ 'schema' => ['title' => '创建智能体运行时请求参数', 'description' => '创建代理运行时请求参数', 'required' => true, '$ref' => '#/components/schemas/CreateAgentRuntimeInput'],
],
],
'responses' => [
200 => [
'description' => '成功响应 - 返回创建的智能体运行时信息,包括运行时ID、状态、配置等详细信息',
- 'schema' => [
- 'title' => '返回创建结构体的结果',
- 'description' => '创建、获取代理运行时的结果格式',
- '$ref' => '#/components/schemas/AgentRuntimeResult',
- ],
+ 'schema' => ['title' => '返回创建结构体的结果', 'description' => '创建、获取代理运行时的结果格式', '$ref' => '#/components/schemas/AgentRuntimeResult'],
'examples' => [],
],
500 => [
- 'schema' => [
- '$ref' => '#/components/schemas/ErrorResult',
- ],
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"agentRuntimeId\\": \\"ar-1234567890abcdef\\",\\n \\"agentRuntimeName\\": \\"my-agent-runtime\\",\\n \\"agentRuntimeArn\\": \\"acs:agentrun:cn-hangzhou:1760720386195983:runtimes/7a1b6d39-9f8f-4ce2-b9c9-6db1b0b9e169\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Runtime is ready for use\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"description\\": \\"AI agent runtime for customer service automation\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/AgentRunExecutionRole\\",\\n \\"credentialName\\": \\"my-credential\\",\\n \\"externalAgentEndpointUrl\\": \\"https://external-agent.example.com/api\\",\\n \\"agentRuntimeVersion\\": \\"1\\",\\n \\"artifactType\\": \\"Code\\",\\n \\"codeConfiguration\\": {\\n \\"zipFile\\": \\"UEsDBAoAAAAAANF\\",\\n \\"ossBucketName\\": \\"my-agent-code-bucket\\",\\n \\"ossObjectName\\": \\"agent-code-v1.0.zip\\",\\n \\"checksum\\": \\"1234567890123456789\\",\\n \\"language\\": \\"python3.12\\",\\n \\"command\\": [\\n \\"\\"\\n ]\\n },\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"\\"\\n ],\\n \\"port\\": 0\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"protocolConfiguration\\": {\\n \\"type\\": \\"HTTP\\",\\n \\"protocolSettings\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"path\\": \\"\\",\\n \\"pathPrefix\\": \\"\\",\\n \\"headers\\": \\"\\",\\n \\"method\\": \\"\\",\\n \\"inputBodyJsonSchema\\": \\"\\",\\n \\"outputBodyJsonSchema\\": \\"\\",\\n \\"requestContentType\\": \\"\\",\\n \\"responseContentType\\": \\"\\",\\n \\"A2AAgentCard\\": \\"\\",\\n \\"a2aAgentCard\\": \\"\\",\\n \\"a2aAgentCardUrl\\": \\"\\"\\n }\\n ]\\n },\\n \\"cpu\\": 2,\\n \\"memory\\": 2048,\\n \\"port\\": 8080,\\n \\"sessionConcurrencyLimitPerInstance\\": 100,\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"resourceName\\": \\"my-agent-runtime-resource\\",\\n \\"healthCheckConfiguration\\": {\\n \\"httpGetUrl\\": \\"/ready\\",\\n \\"initialDelaySeconds\\": 30,\\n \\"periodSeconds\\": 30,\\n \\"timeoutSeconds\\": 3,\\n \\"failureThreshold\\": 3,\\n \\"successThreshold\\": 1\\n },\\n \\"armsConfiguration\\": {\\n \\"enableArms\\": true,\\n \\"armsLicenseKey\\": \\"arms-license-key-123456\\"\\n },\\n \\"sessionIdleTimeoutSeconds\\": 3600,\\n \\"environmentVariables\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"tags\\": [\\n \\"\\"\\n ],\\n \\"resourceGroupId\\": \\"\\",\\n \\"workspaceId\\": \\"ws-1234567890abcdef\\",\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n }\\n }\\n}","type":"json"}]',
+ 'staticInfo' => ['returnType' => 'synchronous'],
'title' => '创建智能体运行时',
- ],
- 'GetAgentRuntime' => [
- 'summary' => '获取智能体运行时',
- 'description' => '根据智能体运行时ID获取指定智能体运行时的详细信息,包括配置、状态、资源使用情况等。',
- 'path' => '/2025-09-10/agents/runtimes/{agentRuntimeId}',
- 'methods' => [
- 'get',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateAgentRuntime'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateAgentRuntime',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Agent', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"agentRuntimeId\\": \\"ar-1234567890abcdef\\",\\n \\"agentRuntimeName\\": \\"my-agent-runtime\\",\\n \\"agentRuntimeArn\\": \\"acs:agentrun:cn-hangzhou:1760720386195983:runtimes/7a1b6d39-9f8f-4ce2-b9c9-6db1b0b9e169\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Runtime is ready for use\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"description\\": \\"AI agent runtime for customer service automation\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/AgentRunExecutionRole\\",\\n \\"credentialName\\": \\"my-credential\\",\\n \\"externalAgentEndpointUrl\\": \\"https://external-agent.example.com/api\\",\\n \\"agentRuntimeVersion\\": \\"1\\",\\n \\"artifactType\\": \\"Code\\",\\n \\"codeConfiguration\\": {\\n \\"zipFile\\": \\"UEsDBAoAAAAAANF\\",\\n \\"ossBucketName\\": \\"my-agent-code-bucket\\",\\n \\"ossObjectName\\": \\"agent-code-v1.0.zip\\",\\n \\"checksum\\": \\"1234567890123456789\\",\\n \\"language\\": \\"python3.12\\",\\n \\"command\\": [\\n \\"\\"\\n ]\\n },\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"/usr/local/bin/entrypoint.sh\\"\\n ],\\n \\"registryConfig\\": {\\n \\"authConfig\\": {\\n \\"userName\\": \\"admin\\",\\n \\"password\\": \\"abc***\\"\\n },\\n \\"certConfig\\": {\\n \\"insecure\\": false,\\n \\"rootCaCertBase64\\": \\"cm9vdF9jYV9jZXJ0X2Jhc2U2NA==\\"\\n },\\n \\"networkConfig\\": {\\n \\"vpcId\\": \\"vpc-xxxxxxxxxxxxx\\",\\n \\"vSwitchId\\": \\"vsw-xxxxxxxxxxxxx\\",\\n \\"securityGroupId\\": \\"sg-xxxxxxxxxxxxx\\"\\n }\\n },\\n \\"port\\": 5000\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"protocolConfiguration\\": {\\n \\"type\\": \\"HTTP\\",\\n \\"protocolSettings\\": [\\n {\\n \\"type\\": \\"\\",\\n \\"name\\": \\"\\",\\n \\"config\\": \\"\\",\\n \\"path\\": \\"\\",\\n \\"pathPrefix\\": \\"\\",\\n \\"headers\\": \\"\\",\\n \\"method\\": \\"\\",\\n \\"inputBodyJsonSchema\\": \\"\\",\\n \\"outputBodyJsonSchema\\": \\"\\",\\n \\"requestContentType\\": \\"\\",\\n \\"responseContentType\\": \\"\\",\\n \\"A2AAgentCard\\": \\"\\",\\n \\"a2aAgentCard\\": \\"\\",\\n \\"a2aAgentCardUrl\\": \\"\\"\\n }\\n ]\\n },\\n \\"cpu\\": 2,\\n \\"memory\\": 2048,\\n \\"diskSize\\": 0,\\n \\"port\\": 8080,\\n \\"sessionConcurrencyLimitPerInstance\\": 100,\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"healthCheckConfiguration\\": {\\n \\"httpGetUrl\\": \\"/ready\\",\\n \\"initialDelaySeconds\\": 30,\\n \\"periodSeconds\\": 30,\\n \\"timeoutSeconds\\": 3,\\n \\"failureThreshold\\": 3,\\n \\"successThreshold\\": 1\\n },\\n \\"sessionIdleTimeoutSeconds\\": 3600,\\n \\"enableSessionIsolation\\": false,\\n \\"disableOndemand\\": false,\\n \\"disableSessionAffinity\\": false,\\n \\"sessionAffinityType\\": \\"GENERATED_COOKIE\\",\\n \\"headerFieldName\\": \\"x-agentrun-session-id\\",\\n \\"resourceGroupId\\": \\"\\",\\n \\"workspaceId\\": \\"ws-1234567890abcdef\\",\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n },\\n \\"environmentVariables\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"systemTags\\": [\\n \\"\\"\\n ],\\n \\"agentIdentityEnabled\\": \\"\\",\\n \\"agentIdentityConfig\\": {\\n \\"identityProviderName\\": \\"\\",\\n \\"workloadIdentityName\\": \\"\\"\\n },\\n \\"edition\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'CreateAgentRuntimeEndpoint' => [
+ 'summary' => '创建智能体运行时的访问端点',
+ 'description' => '为指定的智能体运行时创建新的端点,用于外部访问和调用。端点是智能体运行时对外提供服务的入口。',
+ 'path' => '/2025-09-10/agents/runtimes/{agentRuntimeId}/endpoints',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcVF016G',
- ],
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
],
'parameters' => [
[
'name' => 'agentRuntimeId',
'in' => 'path',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '智能体运行时ID',
- 'description' => '智能体运行时ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => '12345678-1234-1234-1234-123456789abc',
- ],
+ 'schema' => ['title' => '智能体运行时ID', 'description' => '代理运行时ID', 'type' => 'string', 'required' => true, 'example' => '12345678-1234-1234-1234-123456789abc'],
'examples' => [],
],
[
- 'name' => 'agentRuntimeVersion',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '智能体运行时版本',
- 'description' => '智能体运行时版本',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'v1.0.0',
- ],
- 'examples' => [],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['title' => '创建智能体运行时端点输入', 'description' => '创建代理运行时端点输入', 'required' => true, '$ref' => '#/components/schemas/CreateAgentRuntimeEndpointInput'],
],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 返回指定智能体运行时的完整信息,包括配置参数、运行状态、资源分配等',
- 'schema' => [
- 'title' => '返回获取结构体的结果',
- 'description' => '返回获取结构体的结果',
- '$ref' => '#/components/schemas/AgentRuntimeResult',
- ],
+ 'description' => '成功响应 - 返回创建的智能体运行时端点信息,包括端点ID、访问地址、状态等',
+ 'schema' => ['title' => '返回创建结构体的结果', 'description' => '返回创建结构体的结果', '$ref' => '#/components/schemas/AgentRuntimeEndpointResult'],
'examples' => [],
],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"agentRuntimeId\\": \\"ar-1234567890abcdef\\",\\n \\"agentRuntimeName\\": \\"my-agent-runtime\\",\\n \\"agentRuntimeArn\\": \\"acs:agentrun:cn-hangzhou:1760720386195983:runtimes/7a1b6d39-9f8f-4ce2-b9c9-6db1b0b9e169\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Runtime is ready for use\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"description\\": \\"AI agent runtime for customer service automation\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/AgentRunExecutionRole\\",\\n \\"credentialName\\": \\"my-credential\\",\\n \\"externalAgentEndpointUrl\\": \\"https://external-agent.example.com/api\\",\\n \\"agentRuntimeVersion\\": \\"1\\",\\n \\"artifactType\\": \\"Code\\",\\n \\"codeConfiguration\\": {\\n \\"zipFile\\": \\"UEsDBAoAAAAAANF\\",\\n \\"ossBucketName\\": \\"my-agent-code-bucket\\",\\n \\"ossObjectName\\": \\"agent-code-v1.0.zip\\",\\n \\"checksum\\": \\"1234567890123456789\\",\\n \\"language\\": \\"python3.12\\",\\n \\"command\\": [\\n \\"\\"\\n ]\\n },\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"\\"\\n ],\\n \\"port\\": 0\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"protocolConfiguration\\": {\\n \\"type\\": \\"HTTP\\",\\n \\"protocolSettings\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"path\\": \\"\\",\\n \\"pathPrefix\\": \\"\\",\\n \\"headers\\": \\"\\",\\n \\"method\\": \\"\\",\\n \\"inputBodyJsonSchema\\": \\"\\",\\n \\"outputBodyJsonSchema\\": \\"\\",\\n \\"requestContentType\\": \\"\\",\\n \\"responseContentType\\": \\"\\",\\n \\"A2AAgentCard\\": \\"\\",\\n \\"a2aAgentCard\\": \\"\\",\\n \\"a2aAgentCardUrl\\": \\"\\"\\n }\\n ]\\n },\\n \\"cpu\\": 2,\\n \\"memory\\": 2048,\\n \\"port\\": 8080,\\n \\"sessionConcurrencyLimitPerInstance\\": 100,\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"resourceName\\": \\"my-agent-runtime-resource\\",\\n \\"healthCheckConfiguration\\": {\\n \\"httpGetUrl\\": \\"/ready\\",\\n \\"initialDelaySeconds\\": 30,\\n \\"periodSeconds\\": 30,\\n \\"timeoutSeconds\\": 3,\\n \\"failureThreshold\\": 3,\\n \\"successThreshold\\": 1\\n },\\n \\"armsConfiguration\\": {\\n \\"enableArms\\": true,\\n \\"armsLicenseKey\\": \\"arms-license-key-123456\\"\\n },\\n \\"sessionIdleTimeoutSeconds\\": 3600,\\n \\"environmentVariables\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"tags\\": [\\n \\"\\"\\n ],\\n \\"resourceGroupId\\": \\"\\",\\n \\"workspaceId\\": \\"ws-1234567890abcdef\\",\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n }\\n }\\n}","type":"json"}]',
- 'title' => '获取智能体运行时',
- ],
- 'UpdateAgentRuntime' => [
- 'summary' => '更新智能体运行时',
- 'description' => '更新指定智能体运行时的配置信息,包括资源分配、网络配置、环境变量等。更新操作会触发运行时重启。',
- 'path' => '/2025-09-10/agents/runtimes/{agentRuntimeId}',
- 'methods' => [
- 'put',
+ 'title' => '创建智能体运行时的访问端点',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateAgentRuntimeEndpoint'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateAgentRuntimeEndpoint',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"agentRuntimeId\\": \\"ar-1234567890abcdef\\",\\n \\"agentRuntimeEndpointId\\": \\"are-1234567890abcdef\\",\\n \\"agentRuntimeEndpointArn\\": \\"acs:agentrun:cn-hangzhou:1760720386195983:runtime-endpoints/e56d483c-db80-4116-9ec4-25f16f5facfd\\",\\n \\"agentRuntimeEndpointName\\": \\"production-endpoint\\",\\n \\"description\\": \\"Production endpoint for customer service agent\\",\\n \\"status\\": \\"ACTIVE\\",\\n \\"statusReason\\": \\"Endpoint is active and ready\\",\\n \\"targetVersion\\": \\"LATEST\\",\\n \\"routingConfiguration\\": {\\n \\"versionWeights\\": [\\n {\\n \\"version\\": \\"\\",\\n \\"weight\\": 0\\n }\\n ]\\n },\\n \\"endpointPublicUrl\\": \\"https://ar-1234567890abcdef.cn-hangzhou.agentrun.aliyuncs.com\\",\\n \\"disablePublicNetworkAccess\\": true,\\n \\"scalingStatus\\": {\\n \\"minInstances\\": 1,\\n \\"targetInstances\\": 2,\\n \\"currentInstances\\": 2,\\n \\"scheduledPolicies\\": [\\n {\\n \\"name\\": \\"scale-up-morning\\",\\n \\"startTime\\": \\"2024-01-01T08:00:00\\",\\n \\"endTime\\": \\"2024-01-01T08:00:00\\",\\n \\"scheduleExpression\\": \\"cron(0 8 * * ? *)\\",\\n \\"timeZone\\": \\"Asia/Shanghai\\",\\n \\"target\\": 20\\n }\\n ],\\n \\"currentError\\": \\"error\\"\\n }\\n }\\n}","type":"json"}]',
+ ],
+ 'CreateBrowser' => [
+ 'path' => '/2025-09-10/agents/browsers',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'update',
+ 'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfc739PD5',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcVF016G'],
],
'parameters' => [
[
- 'name' => 'agentRuntimeId',
- 'in' => 'path',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '智能体运行时ID',
- 'description' => '代理运行时ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => '12345678-1234-1234-1234-123456789abc',
- ],
- 'examples' => [],
- ],
- [
'name' => 'body',
'in' => 'body',
'style' => 'json',
- 'schema' => [
- 'title' => '更新智能体运行时输入参数',
- 'description' => '更新代理运行时输入参数',
- 'required' => true,
- '$ref' => '#/components/schemas/UpdateAgentRuntimeInput',
- ],
+ 'schema' => ['description' => '创建参数请求体', 'required' => true, '$ref' => '#/components/schemas/CreateBrowserInput'],
],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 返回更新后的智能体运行时信息,包括新的配置参数和运行状态',
- 'schema' => [
- 'title' => '返回更新结构体的结果',
- 'description' => '返回更新结构体的结果',
- '$ref' => '#/components/schemas/AgentRuntimeResult',
- ],
+ 'schema' => ['title' => '返回创建结构体的结果', 'description' => '返回创建结构体的结果', '$ref' => '#/components/schemas/BrowserResult'],
'examples' => [],
],
- 500 => [
- 'schema' => [
- '$ref' => '#/components/schemas/ErrorResult',
+ ],
+ 'title' => '创建浏览器沙箱',
+ 'summary' => '创建浏览器沙箱',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateBrowser',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"agentRuntimeId\\": \\"ar-1234567890abcdef\\",\\n \\"agentRuntimeName\\": \\"my-agent-runtime\\",\\n \\"agentRuntimeArn\\": \\"acs:agentrun:cn-hangzhou:1760720386195983:runtimes/7a1b6d39-9f8f-4ce2-b9c9-6db1b0b9e169\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Runtime is ready for use\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"description\\": \\"AI agent runtime for customer service automation\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/AgentRunExecutionRole\\",\\n \\"credentialName\\": \\"my-credential\\",\\n \\"externalAgentEndpointUrl\\": \\"https://external-agent.example.com/api\\",\\n \\"agentRuntimeVersion\\": \\"1\\",\\n \\"artifactType\\": \\"Code\\",\\n \\"codeConfiguration\\": {\\n \\"zipFile\\": \\"UEsDBAoAAAAAANF\\",\\n \\"ossBucketName\\": \\"my-agent-code-bucket\\",\\n \\"ossObjectName\\": \\"agent-code-v1.0.zip\\",\\n \\"checksum\\": \\"1234567890123456789\\",\\n \\"language\\": \\"python3.12\\",\\n \\"command\\": [\\n \\"\\"\\n ]\\n },\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"\\"\\n ],\\n \\"port\\": 0\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"protocolConfiguration\\": {\\n \\"type\\": \\"HTTP\\",\\n \\"protocolSettings\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"path\\": \\"\\",\\n \\"pathPrefix\\": \\"\\",\\n \\"headers\\": \\"\\",\\n \\"method\\": \\"\\",\\n \\"inputBodyJsonSchema\\": \\"\\",\\n \\"outputBodyJsonSchema\\": \\"\\",\\n \\"requestContentType\\": \\"\\",\\n \\"responseContentType\\": \\"\\",\\n \\"A2AAgentCard\\": \\"\\",\\n \\"a2aAgentCard\\": \\"\\",\\n \\"a2aAgentCardUrl\\": \\"\\"\\n }\\n ]\\n },\\n \\"cpu\\": 2,\\n \\"memory\\": 2048,\\n \\"port\\": 8080,\\n \\"sessionConcurrencyLimitPerInstance\\": 100,\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"resourceName\\": \\"my-agent-runtime-resource\\",\\n \\"healthCheckConfiguration\\": {\\n \\"httpGetUrl\\": \\"/ready\\",\\n \\"initialDelaySeconds\\": 30,\\n \\"periodSeconds\\": 30,\\n \\"timeoutSeconds\\": 3,\\n \\"failureThreshold\\": 3,\\n \\"successThreshold\\": 1\\n },\\n \\"armsConfiguration\\": {\\n \\"enableArms\\": true,\\n \\"armsLicenseKey\\": \\"arms-license-key-123456\\"\\n },\\n \\"sessionIdleTimeoutSeconds\\": 3600,\\n \\"environmentVariables\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"tags\\": [\\n \\"\\"\\n ],\\n \\"resourceGroupId\\": \\"\\",\\n \\"workspaceId\\": \\"ws-1234567890abcdef\\",\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n }\\n }\\n}","type":"json"}]',
- 'title' => '更新智能体运行时',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"browserId\\": \\"browser-1234567890abcdef\\",\\n \\"browserName\\": \\"my-browser\\",\\n \\"description\\": \\"Web automation browser for testing\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Browser is ready for use\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/BrowserExecutionRole\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"recording\\": {\\n \\"enabled\\": true,\\n \\"ossLocation\\": {\\n \\"bucket\\": \\"\\",\\n \\"prefix\\": \\"\\"\\n }\\n },\\n \\"memory\\": 2048,\\n \\"credentialId\\": \\"cred-1234567890abcdef\\",\\n \\"cpu\\": 2,\\n \\"tenantId\\": \\"tenant-1234567890abcdef\\"\\n }\\n}","type":"json"}]',
],
- 'DeleteAgentRuntime' => [
- 'summary' => '删除智能体运行时',
- 'description' => '删除指定的智能体运行时实例,包括其所有相关资源和数据。删除操作不可逆,请谨慎操作。',
- 'path' => '/2025-09-10/agents/runtimes/{agentRuntimeId}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'CreateCodeInterpreter' => [
+ 'path' => '/2025-09-10/agents/code-interpreters',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'delete',
+ 'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfc739PD5',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY', 'FEATUREfcVF016G'],
],
'parameters' => [
[
- 'name' => 'agentRuntimeId',
- 'in' => 'path',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '智能体运行时ID',
- 'description' => '智能体运行时ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => '12345678-1234-1234-1234-123456789abc',
- ],
- 'examples' => [],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['description' => '创建请求参数', 'required' => true, '$ref' => '#/components/schemas/CreateCodeInterpreterInput'],
],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 确认智能体运行时已成功删除,返回删除操作的结果信息',
- 'schema' => [
- 'title' => '返回删除结构体的结果',
- 'description' => '返回删除结构体的结果',
- '$ref' => '#/components/schemas/AgentRuntimeResult',
- ],
+ 'schema' => ['title' => '返回创建结构体的结果', 'description' => '返回创建结构体的结果', '$ref' => '#/components/schemas/CodeInterpreterResult'],
'examples' => [],
],
- 500 => [
- 'schema' => [
- '$ref' => '#/components/schemas/ErrorResult',
+ ],
+ 'title' => '创建代码解释器',
+ 'summary' => '创建代码解释器',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateCodeInterpreter',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"agentRuntimeId\\": \\"ar-1234567890abcdef\\",\\n \\"agentRuntimeName\\": \\"my-agent-runtime\\",\\n \\"agentRuntimeArn\\": \\"acs:agentrun:cn-hangzhou:1760720386195983:runtimes/7a1b6d39-9f8f-4ce2-b9c9-6db1b0b9e169\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Runtime is ready for use\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"description\\": \\"AI agent runtime for customer service automation\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/AgentRunExecutionRole\\",\\n \\"credentialName\\": \\"my-credential\\",\\n \\"externalAgentEndpointUrl\\": \\"https://external-agent.example.com/api\\",\\n \\"agentRuntimeVersion\\": \\"1\\",\\n \\"artifactType\\": \\"Code\\",\\n \\"codeConfiguration\\": {\\n \\"zipFile\\": \\"UEsDBAoAAAAAANF\\",\\n \\"ossBucketName\\": \\"my-agent-code-bucket\\",\\n \\"ossObjectName\\": \\"agent-code-v1.0.zip\\",\\n \\"checksum\\": \\"1234567890123456789\\",\\n \\"language\\": \\"python3.12\\",\\n \\"command\\": [\\n \\"\\"\\n ]\\n },\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"\\"\\n ],\\n \\"port\\": 0\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"protocolConfiguration\\": {\\n \\"type\\": \\"HTTP\\",\\n \\"protocolSettings\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"path\\": \\"\\",\\n \\"pathPrefix\\": \\"\\",\\n \\"headers\\": \\"\\",\\n \\"method\\": \\"\\",\\n \\"inputBodyJsonSchema\\": \\"\\",\\n \\"outputBodyJsonSchema\\": \\"\\",\\n \\"requestContentType\\": \\"\\",\\n \\"responseContentType\\": \\"\\",\\n \\"A2AAgentCard\\": \\"\\",\\n \\"a2aAgentCard\\": \\"\\",\\n \\"a2aAgentCardUrl\\": \\"\\"\\n }\\n ]\\n },\\n \\"cpu\\": 2,\\n \\"memory\\": 2048,\\n \\"port\\": 8080,\\n \\"sessionConcurrencyLimitPerInstance\\": 100,\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"resourceName\\": \\"my-agent-runtime-resource\\",\\n \\"healthCheckConfiguration\\": {\\n \\"httpGetUrl\\": \\"/ready\\",\\n \\"initialDelaySeconds\\": 30,\\n \\"periodSeconds\\": 30,\\n \\"timeoutSeconds\\": 3,\\n \\"failureThreshold\\": 3,\\n \\"successThreshold\\": 1\\n },\\n \\"armsConfiguration\\": {\\n \\"enableArms\\": true,\\n \\"armsLicenseKey\\": \\"arms-license-key-123456\\"\\n },\\n \\"sessionIdleTimeoutSeconds\\": 3600,\\n \\"environmentVariables\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"tags\\": [\\n \\"\\"\\n ],\\n \\"resourceGroupId\\": \\"\\",\\n \\"workspaceId\\": \\"ws-1234567890abcdef\\",\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n }\\n }\\n}","type":"json"}]',
- 'title' => '删除智能体运行时',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"codeInterpreterId\\": \\"ci-1234567890abcdef\\",\\n \\"codeInterpreterName\\": \\"my-code-interpreter\\",\\n \\"description\\": \\"Python code interpreter for data analysis\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/CodeInterpreterExecutionRole\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Code interpreter is ready for use\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"memory\\": 2048,\\n \\"cpu\\": 2,\\n \\"tenantId\\": \\"tenant-1234567890abcdef\\"\\n }\\n}","type":"json"}]',
],
- 'ListAgentRuntimes' => [
- 'summary' => '获取智能体运行时列表',
- 'description' => '获取当前用户的所有智能体运行时列表,支持按名称、标签等条件过滤,支持分页查询。',
- 'path' => '/2025-09-10/agents/runtimes',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'CreateCredential' => [
+ 'path' => '/2025-09-10/agents/credentials',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'list',
+ 'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfc739PD5',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY', 'FEATUREfcVF016G'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'agentRuntimeName',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '按智能体运行时名称过滤',
- 'description' => '按智能体运行时名称过滤',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-runtime',
- ],
- 'examples' => [],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'schema' => ['description' => '创建智能体运行时所需的输入参数', 'required' => false, '$ref' => '#/components/schemas/CreateCredentialInput'],
],
- [
- 'name' => 'status',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '按状态过滤',
- 'description' => '按状态过滤',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'READY,CREATING',
- ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ 'schema' => ['description' => 'CredentialResult', '$ref' => '#/components/schemas/CredentialResult'],
'examples' => [],
],
+ ],
+ 'title' => '创建新凭证',
+ 'summary' => '创建新凭证。',
+ 'description' => '获取当前用户的所有模板列表,支持按模板类型过滤,支持分页查询。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateCredential'],
+ ],
+ ],
+ 'ramActions' => [
[
- 'name' => 'pageNumber',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '页码',
- 'description' => '页码',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateCredential',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
- 'examples' => [],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"credentialId\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"credentialAuthType\\": \\"\\",\\n \\"credentialSourceType\\": \\"\\",\\n \\"enabled\\": true,\\n \\"credentialSecret\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"updatedAt\\": \\"\\",\\n \\"credentialPublicConfig\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"relatedResources\\": [\\n {\\n \\"resourceId\\": \\"\\",\\n \\"resourceName\\": \\"\\",\\n \\"resourceType\\": \\"\\"\\n }\\n ],\\n \\"workspaceId\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'CreateCustomDomain' => [
+ 'summary' => '创建自定义域名',
+ 'path' => '/2025-09-10/agents/custom-domains',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'tags' => [],
+ 'security' => [
[
- 'name' => 'pageSize',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '页面大小',
- 'description' => '页面大小',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
- 'examples' => [],
+ 'AK' => [],
],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY', 'FEATUREfcVF016G'],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
[
- 'name' => 'searchMode',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '查询模式',
- 'description' => '查询模式',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'fuzzy',
- ],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'schema' => ['description' => '创建自定义域名请求参数', 'required' => false, '$ref' => '#/components/schemas/CreateCustomDomainInput'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'description' => 'Successful response',
+ 'headers' => [],
+ 'schema' => ['description' => '自定义域名的结果格式', '$ref' => '#/components/schemas/CustomDomainResult'],
'examples' => [],
],
+ ],
+ 'title' => '创建自定义域名',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
[
- 'name' => 'resourceGroupId',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'deprecated' => true,
- 'required' => false,
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateCustomDomain',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"domainName\\": \\"example.com\\",\\n \\"description\\": \\"\\",\\n \\"protocol\\": \\"HTTP\\",\\n \\"routeConfig\\": {\\n \\"routes\\": [\\n {\\n \\"path\\": \\"/login\\",\\n \\"resourceName\\": \\"\\",\\n \\"resourceType\\": \\"runtime\\",\\n \\"agentRuntimeEndpointName\\": \\"\\",\\n \\"compatibleProtocol\\": \\"native\\",\\n \\"flowEndpointName\\": \\"Default\\",\\n \\"methods\\": [\\n \\"\\"\\n ],\\n \\"removeBasePathOnForward\\": true\\n }\\n ]\\n },\\n \\"certConfig\\": {\\n \\"certName\\": \\"my-cert\\",\\n \\"certificate\\": \\"-----BEGIN CERTIFICATE-----\\\\\\\\nxxxxx\\\\\\\\n-----END CERTIFICATE-----\\",\\n \\"privateKey\\": \\"-----BEGIN RSA PRIVATE KEY-----\\\\\\\\nxxxxx\\\\\\\\n-----END RSA PRIVATE KEY-----\\"\\n },\\n \\"tlsConfig\\": {\\n \\"minVersion\\": \\"TLSv1.2\\",\\n \\"cipherSuites\\": [\\n \\"\\"\\n ],\\n \\"maxVersion\\": \\"TLSv1.3\\"\\n },\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"updatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"domainType\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'CreateFlow' => [
+ 'path' => '/2025-09-10/flows',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'tags' => [],
+ 'security' => [
[
- 'name' => 'workspaceId',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '工作空间ID',
- 'description' => '工作空间ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ws-1234567890abcdef',
- ],
- 'examples' => [],
+ 'AK' => [],
],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
[
- 'name' => 'discoveryResourceGroupId',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '服务发现资源组ID',
- 'description' => '服务发现资源组ID',
- 'type' => 'string',
- 'deprecated' => true,
- 'required' => false,
- 'example' => 'rg-123456',
- ],
- 'examples' => [],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['title' => '创建工作流请求参数', 'description' => '创建工作流所需的完整配置信息,包括工作流名称、定义、执行角色等', 'required' => true, '$ref' => '#/components/schemas/CreateFlowInput'],
],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 返回智能体运行时列表,包含分页信息和运行时详情',
- 'schema' => [
- 'title' => '返回列表结构体的结果',
- 'description' => '返回列表结构体的结果',
- '$ref' => '#/components/schemas/ListAgentRuntimesResult',
- ],
+ 'schema' => ['title' => '返回创建结构体的结果', 'description' => '返回创建结构体的结果', '$ref' => '#/components/schemas/FlowResult'],
'examples' => [],
],
500 => [
- 'schema' => [
- '$ref' => '#/components/schemas/ErrorResult',
- ],
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"items\\": [\\n {\\n \\"agentRuntimeId\\": \\"ar-1234567890abcdef\\",\\n \\"agentRuntimeName\\": \\"my-agent-runtime\\",\\n \\"agentRuntimeArn\\": \\"acs:agentrun:cn-hangzhou:1760720386195983:runtimes/7a1b6d39-9f8f-4ce2-b9c9-6db1b0b9e169\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Runtime is ready for use\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"description\\": \\"AI agent runtime for customer service automation\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/AgentRunExecutionRole\\",\\n \\"credentialName\\": \\"my-credential\\",\\n \\"externalAgentEndpointUrl\\": \\"https://external-agent.example.com/api\\",\\n \\"agentRuntimeVersion\\": \\"1\\",\\n \\"artifactType\\": \\"Code\\",\\n \\"codeConfiguration\\": {\\n \\"zipFile\\": \\"UEsDBAoAAAAAANF\\",\\n \\"ossBucketName\\": \\"my-agent-code-bucket\\",\\n \\"ossObjectName\\": \\"agent-code-v1.0.zip\\",\\n \\"checksum\\": \\"1234567890123456789\\",\\n \\"language\\": \\"python3.12\\",\\n \\"command\\": [\\n \\"\\"\\n ]\\n },\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"\\"\\n ],\\n \\"port\\": 0\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"protocolConfiguration\\": {\\n \\"type\\": \\"HTTP\\",\\n \\"protocolSettings\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"path\\": \\"\\",\\n \\"pathPrefix\\": \\"\\",\\n \\"headers\\": \\"\\",\\n \\"method\\": \\"\\",\\n \\"inputBodyJsonSchema\\": \\"\\",\\n \\"outputBodyJsonSchema\\": \\"\\",\\n \\"requestContentType\\": \\"\\",\\n \\"responseContentType\\": \\"\\",\\n \\"A2AAgentCard\\": \\"\\",\\n \\"a2aAgentCard\\": \\"\\",\\n \\"a2aAgentCardUrl\\": \\"\\"\\n }\\n ]\\n },\\n \\"cpu\\": 2,\\n \\"memory\\": 2048,\\n \\"port\\": 8080,\\n \\"sessionConcurrencyLimitPerInstance\\": 100,\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"resourceName\\": \\"my-agent-runtime-resource\\",\\n \\"healthCheckConfiguration\\": {\\n \\"httpGetUrl\\": \\"/ready\\",\\n \\"initialDelaySeconds\\": 30,\\n \\"periodSeconds\\": 30,\\n \\"timeoutSeconds\\": 3,\\n \\"failureThreshold\\": 3,\\n \\"successThreshold\\": 1\\n },\\n \\"armsConfiguration\\": {\\n \\"enableArms\\": true,\\n \\"armsLicenseKey\\": \\"arms-license-key-123456\\"\\n },\\n \\"sessionIdleTimeoutSeconds\\": 3600,\\n \\"environmentVariables\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"tags\\": [\\n \\"\\"\\n ],\\n \\"resourceGroupId\\": \\"\\",\\n \\"workspaceId\\": \\"ws-1234567890abcdef\\",\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n }\\n }\\n ],\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0,\\n \\"total\\": 0\\n }\\n}","type":"json"}]',
- 'title' => '获取智能体运行时列表',
- ],
- 'CreateAgentRuntimeEndpoint' => [
- 'summary' => '创建智能体运行时的访问端点',
- 'description' => '为指定的智能体运行时创建新的端点,用于外部访问和调用。端点是智能体运行时对外提供服务的入口。',
- 'path' => '/2025-09-10/agents/runtimes/{agentRuntimeId}/endpoints',
- 'methods' => [
- 'post',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '创建流程编排',
+ 'description' => '创建一个新的流程编排类型智能体。流程编排是AgentRun服务的核心组件,支持可视化编排和版本管理。',
+ 'summary' => '创建工作流。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateFlow',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"flowId\\": \\"flow-1234567890abcdef\\",\\n \\"flowArn\\": \\"acs:agentrun:cn-hangzhou:123456789012:workspaces/ws-xxx/flows/flow-xxx\\",\\n \\"flowName\\": \\"my-flow\\",\\n \\"description\\": \\"Customer service automation flow\\",\\n \\"definition\\": \\"{}\\",\\n \\"executionRoleArn\\": \\"acs:ram::123456789012:role/FlowExecutionRole\\",\\n \\"environmentConfiguration\\": {\\n \\"variables\\": [\\n {\\n \\"name\\": \\"MY_KEY\\",\\n \\"value\\": \\"my-value\\",\\n \\"description\\": \\"A configuration key\\"\\n }\\n ]\\n },\\n \\"externalStorageLocation\\": \\"oss://bucket/path\\",\\n \\"resourceGroupId\\": \\"rg-acfmxsn4m4a4b4a\\",\\n \\"tracingConfiguration\\": {\\n \\"enabled\\": true\\n },\\n \\"loggingConfiguration\\": {\\n \\"destinations\\": [\\n {\\n \\"slsLogDestination\\": {\\n \\"project\\": \\"my-sls-project\\",\\n \\"logStore\\": \\"my-logstore\\"\\n }\\n }\\n ]\\n },\\n \\"workspaceId\\": \\"ws-1234567890abcdef\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"disablePublicNetworkAccess\\": true\\n }\\n}","type":"json"}]',
+ ],
+ 'CreateFlowEndpoint' => [
+ 'summary' => '创建工作流端点。',
+ 'description' => '为指定工作流创建一个新的端点,用于对外提供服务访问。',
+ 'path' => '/2025-09-10/flows/{flowName}/endpoints',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfc739PD5',
- ],
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'agentRuntimeId',
+ 'name' => 'flowName',
'in' => 'path',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '智能体运行时ID',
- 'description' => '代理运行时ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => '12345678-1234-1234-1234-123456789abc',
- ],
+ 'schema' => ['title' => '工作流ID', 'description' => '工作流ID', 'type' => 'string', 'required' => true, 'example' => 'flow-1234567890abcdef'],
'examples' => [],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
- 'schema' => [
- 'title' => '创建智能体运行时端点输入',
- 'description' => '创建代理运行时端点输入',
- 'required' => true,
- '$ref' => '#/components/schemas/CreateAgentRuntimeEndpointInput',
- ],
+ 'schema' => ['title' => '创建工作流端点请求参数', 'description' => '创建工作流端点请求参数', 'required' => true, '$ref' => '#/components/schemas/CreateFlowEndpointInput'],
],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 返回创建的智能体运行时端点信息,包括端点ID、访问地址、状态等',
- 'schema' => [
- 'title' => '返回创建结构体的结果',
- 'description' => '返回创建结构体的结果',
- '$ref' => '#/components/schemas/AgentRuntimeEndpointResult',
- ],
+ 'description' => '成功响应 - 返回创建的工作流端点信息',
+ 'schema' => ['title' => '返回创建结构体的结果', 'description' => '返回创建结构体的结果', '$ref' => '#/components/schemas/FlowEndpointResult'],
'examples' => [],
],
500 => [
- 'schema' => [
- '$ref' => '#/components/schemas/ErrorResult',
- ],
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"agentRuntimeId\\": \\"ar-1234567890abcdef\\",\\n \\"agentRuntimeEndpointId\\": \\"are-1234567890abcdef\\",\\n \\"agentRuntimeEndpointArn\\": \\"acs:agentrun:cn-hangzhou:1760720386195983:runtime-endpoints/e56d483c-db80-4116-9ec4-25f16f5facfd\\",\\n \\"agentRuntimeEndpointName\\": \\"production-endpoint\\",\\n \\"description\\": \\"Production endpoint for customer service agent\\",\\n \\"status\\": \\"ACTIVE\\",\\n \\"statusReason\\": \\"Endpoint is active and ready\\",\\n \\"targetVersion\\": \\"LATEST\\",\\n \\"routingConfiguration\\": {\\n \\"versionWeights\\": [\\n {\\n \\"version\\": \\"\\",\\n \\"weight\\": 0\\n }\\n ]\\n },\\n \\"tags\\": [\\n \\"\\"\\n ],\\n \\"resourceName\\": \\"my-runtime-endpoint-resource\\",\\n \\"endpointPublicUrl\\": \\"https://ar-1234567890abcdef.cn-hangzhou.agentrun.aliyuncs.com\\"\\n }\\n}","type":"json"}]',
- 'title' => '创建智能体运行时的访问端点',
- ],
- 'ListAgentRuntimeEndpoints' => [
- 'summary' => '获取智能体运行时访问端点列表',
- 'description' => '获取指定智能体运行时的所有端点列表,支持按名称过滤和分页查询。端点用于外部系统访问智能体运行时服务。',
- 'path' => '/2025-09-10/agents/runtimes/{agentRuntimeId}/endpoints',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
+ 'title' => '创建流程调用端点',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"flowId\\": \\"flow-1234567890abcdef\\",\\n \\"flowEndpointId\\": \\"fe-1234567890abcdef\\",\\n \\"flowEndpointArn\\": \\"acs:agentrun:cn-hangzhou:123456789012:workspaces/ws-xxx/flows/flow-xxx/endpoints/fe-xxx\\",\\n \\"flowEndpointName\\": \\"my-flow-endpoint\\",\\n \\"description\\": \\"Production endpoint for flow\\",\\n \\"targetVersion\\": \\"1\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"routingConfiguration\\": [\\n {\\n \\"version\\": \\"1\\",\\n \\"weight\\": 100\\n }\\n ],\\n \\"disablePublicNetworkAccess\\": true\\n }\\n}","type":"json"}]',
+ ],
+ 'CreateIMBot' => [
+ 'path' => '/2025-09-10/agents/im-bots',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'list',
+ 'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfc739PD5',
- ],
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
],
'parameters' => [
[
- 'name' => 'agentRuntimeId',
- 'in' => 'path',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '智能体运行时ID',
- 'description' => '智能体运行时ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => '12345678-1234-1234-1234-123456789abc',
- ],
- 'examples' => [],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['required' => true, '$ref' => '#/components/schemas/CreateIMBotInput', 'description' => ''],
],
- [
- 'name' => 'endpointName',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '按端点名称过滤',
- 'description' => '按端点名称过滤',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-endpoint',
- ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['$ref' => '#/components/schemas/IMBotResult', 'description' => ''],
'examples' => [],
],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'summary' => '创建 IM Bot',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
[
- 'name' => 'pageNumber',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '页码',
- 'description' => '页码',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateIMBot',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
- 'examples' => [],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"id\\": \\"\\",\\n \\"tenantId\\": \\"\\",\\n \\"imChannelServerResourceName\\": \\"\\",\\n \\"botBizId\\": \\"\\",\\n \\"botName\\": \\"\\",\\n \\"agentRuntimeId\\": \\"\\",\\n \\"botBizType\\": \\"\\",\\n \\"botMode\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"lastMessageTime\\": \\"\\",\\n \\"currentInstances\\": 0,\\n \\"description\\": \\"\\",\\n \\"metadata\\": {\\n \\"agentRuntimeId\\": \\"\\",\\n \\"agentRuntimeEndpointId\\": \\"\\",\\n \\"agentRuntimeEndpointUrl\\": \\"\\",\\n \\"protocolType\\": \\"\\",\\n \\"role\\": \\"\\",\\n \\"customFunctionMeta\\": \\"\\"\\n },\\n \\"createdAt\\": \\"\\",\\n \\"updatedAt\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'CreateKnowledgeBase' => [
+ 'path' => '/2025-09-10/agents/knowledgebases',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
[
- 'name' => 'pageSize',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '页面大小',
- 'description' => '页面大小',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
- 'examples' => [],
+ 'AK' => [],
],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
[
- 'name' => 'searchMode',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '查询模式',
- 'description' => '查询模式',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'fuzzy',
- ],
- 'examples' => [],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'schema' => ['description' => '创建知识库数据结构。', 'required' => false, '$ref' => '#/components/schemas/CreateKnowledgeBaseInput'],
],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 返回智能体运行时端点列表,包含分页信息和端点详情',
- 'schema' => [
- 'title' => '返回列表结构体的结果',
- 'description' => '返回列表结构体的结果',
- '$ref' => '#/components/schemas/ListAgentRuntimeEndpointsResult',
- ],
- 'examples' => [],
+ 'schema' => ['description' => '创建知识库返回结果。', '$ref' => '#/components/schemas/KnowledgeBaseResult'],
],
- 500 => [
- 'schema' => [
- '$ref' => '#/components/schemas/ErrorResult',
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '创建知识库',
+ 'summary' => '创建知识库。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateKnowledgeBase',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Knowledgebase', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/knowledgebases/*'],
+ ],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"items\\": [\\n {\\n \\"agentRuntimeId\\": \\"ar-1234567890abcdef\\",\\n \\"agentRuntimeEndpointId\\": \\"are-1234567890abcdef\\",\\n \\"agentRuntimeEndpointArn\\": \\"acs:agentrun:cn-hangzhou:1760720386195983:runtime-endpoints/e56d483c-db80-4116-9ec4-25f16f5facfd\\",\\n \\"agentRuntimeEndpointName\\": \\"production-endpoint\\",\\n \\"description\\": \\"Production endpoint for customer service agent\\",\\n \\"status\\": \\"ACTIVE\\",\\n \\"statusReason\\": \\"Endpoint is active and ready\\",\\n \\"targetVersion\\": \\"LATEST\\",\\n \\"routingConfiguration\\": {\\n \\"versionWeights\\": [\\n {\\n \\"version\\": \\"\\",\\n \\"weight\\": 0\\n }\\n ]\\n },\\n \\"tags\\": [\\n \\"\\"\\n ],\\n \\"resourceName\\": \\"my-runtime-endpoint-resource\\",\\n \\"endpointPublicUrl\\": \\"https://ar-1234567890abcdef.cn-hangzhou.agentrun.aliyuncs.com\\"\\n }\\n ],\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0,\\n \\"total\\": 0\\n }\\n}","type":"json"}]',
- 'title' => '获取智能体运行时访问端点列表',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"knowledgeBaseId\\": \\"\\",\\n \\"knowledgeBaseName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"provider\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"providerSettings\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"retrieveSettings\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"workspaceId\\": \\"\\"\\n }\\n}","type":"json"}]',
],
- 'GetAgentRuntimeEndpoint' => [
- 'summary' => '获取智能体运行时访问端点',
- 'path' => '/2025-09-10/agents/runtimes/{agentRuntimeId}/endpoints/{agentRuntimeEndpointId}',
- 'methods' => [
- 'get',
+ 'CreateMemoryCollection' => [
+ 'path' => '/2025-09-10/agents/memory-collections',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcUDVD99'],
],
- 'schemes' => [
- 'https',
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['description' => '记忆存储配置信息', 'required' => false, '$ref' => '#/components/schemas/CreateMemoryCollectionInput'],
+ ],
],
- 'tags' => [],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['description' => '记忆存储配置信息', '$ref' => '#/components/schemas/MemoryCollectionResult'],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '创建记忆存储',
+ 'summary' => '添加记忆存储',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateMemoryCollection',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"memoryCollectionName\\": \\"\\",\\n \\"memoryCollectionId\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"llmConfig\\": {\\n \\"config\\": {\\n \\"model\\": \\"\\"\\n },\\n \\"modelServiceName\\": \\"\\"\\n },\\n \\"embedderConfig\\": {\\n \\"config\\": {\\n \\"model\\": \\"\\"\\n },\\n \\"modelServiceName\\": \\"\\"\\n },\\n \\"vectorStoreConfig\\": {\\n \\"provider\\": \\"\\",\\n \\"config\\": {\\n \\"endpoint\\": \\"\\",\\n \\"instanceName\\": \\"\\",\\n \\"vectorDimension\\": 0,\\n \\"collectionName\\": \\"\\"\\n },\\n \\"mysqlConfig\\": {\\n \\"host\\": \\"\\",\\n \\"dbName\\": \\"\\",\\n \\"collectionName\\": \\"\\",\\n \\"user\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"vectorDimension\\": 0,\\n \\"port\\": 0\\n }\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"executionRoleArn\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"enableConversationHistory\\": true,\\n \\"enableConversationState\\": true,\\n \\"workspaceId\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'CreateModelProxy' => [
+ 'summary' => '创建模型治理',
+ 'path' => '/2025-09-10/agents/model-proxies',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['description' => '创建智能体运行时所需的输入参数', 'required' => false, '$ref' => '#/components/schemas/CreateModelProxyInput'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['description' => 'ModelProxyResult', '$ref' => '#/components/schemas/ModelProxyResult'],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '创建模型治理',
+ 'description' => '获取当前用户的所有模板列表,支持按模板类型过滤,支持分页查询。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateModelProxy'],
+ ],
],
- 'produces' => [
- 'application/json',
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateModelProxy',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"modelProxyId\\": \\"\\",\\n \\"modelProxyName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"modelType\\": \\"\\",\\n \\"proxyMode\\": \\"\\",\\n \\"proxyConfig\\": {\\n \\"policies\\": {\\n \\"requestTimeout\\": 0,\\n \\"numRetries\\": 0,\\n \\"cache\\": true,\\n \\"concurrencyLimit\\": 0,\\n \\"fallbacks\\": [\\n {\\n \\"modelServiceName\\": \\"\\",\\n \\"modelName\\": \\"\\"\\n }\\n ],\\n \\"tokenRateLimiter\\": {\\n \\"tps\\": 0,\\n \\"tpm\\": 0,\\n \\"tph\\": 0,\\n \\"tpd\\": 0\\n },\\n \\"aiGuardrailConfig\\": {\\n \\"checkRequest\\": true,\\n \\"checkResponse\\": true,\\n \\"level\\": \\"\\",\\n \\"maxTextLength\\": 0,\\n \\"blockOnContentModeration\\": true,\\n \\"blockOnSensitiveData\\": true,\\n \\"blockOnPromptAttack\\": true,\\n \\"blockOnMaliciousUrl\\": true,\\n \\"blockOnModelHallucination\\": true\\n }\\n },\\n \\"endpoints\\": [\\n {\\n \\"modelServiceName\\": \\"\\",\\n \\"weight\\": 0,\\n \\"baseUrl\\": \\"\\",\\n \\"modelNames\\": [\\n \\"\\"\\n ]\\n }\\n ]\\n },\\n \\"functionName\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"serviceRegionId\\": \\"\\",\\n \\"endpoint\\": \\"\\",\\n \\"litellmVersion\\": \\"\\",\\n \\"cpu\\": 0,\\n \\"memory\\": 0,\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"statusReason\\": \\"\\",\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"executionRoleArn\\": \\"\\",\\n \\"workspaceId\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'CreateModelService' => [
+ 'path' => '/2025-09-10/agents/model-services',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfc739PD5',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'agentRuntimeId',
- 'in' => 'path',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '智能体运行时ID',
- 'description' => '智能体运行时ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => '12345678-1234-1234-1234-123456789abc',
- ],
- 'examples' => [],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['description' => '创建代码解释器所需的输入参数', 'required' => false, '$ref' => '#/components/schemas/CreateModelServiceInput'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['description' => 'ModelServiceResult', '$ref' => '#/components/schemas/ModelServiceResult'],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '创建模型',
+ 'summary' => '创建模型。',
+ 'description' => '获取当前用户的所有模板列表,支持按模板类型过滤,支持分页查询。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateModelService'],
],
+ ],
+ 'ramActions' => [
[
- 'name' => 'agentRuntimeEndpointId',
- 'in' => 'path',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '智能体运行时端点ID',
- 'description' => '智能体运行时端点ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => '87654321-4321-4321-4321-210987654321',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateModelService',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
- 'examples' => [],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"modelServiceName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"modelType\\": \\"\\",\\n \\"provider\\": \\"\\",\\n \\"providerSettings\\": {\\n \\"baseUrl\\": \\"\\",\\n \\"apiKey\\": \\"\\",\\n \\"modelNames\\": [\\n \\"\\"\\n ]\\n },\\n \\"status\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"statusReason\\": \\"\\",\\n \\"modelServiceId\\": \\"\\",\\n \\"modelInfoConfigs\\": [\\n {\\n \\"modelName\\": \\"\\",\\n \\"modelFeatures\\": {\\n \\"vision\\": true,\\n \\"agentThought\\": true,\\n \\"toolCall\\": true,\\n \\"multiToolCall\\": true,\\n \\"streamToolCall\\": true\\n },\\n \\"modelProperties\\": {\\n \\"contextSize\\": 0\\n },\\n \\"modelParameterRules\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"type\\": \\"\\",\\n \\"default\\": \\"\\",\\n \\"min\\": 0,\\n \\"max\\": 0,\\n \\"required\\": true\\n }\\n ]\\n }\\n ],\\n \\"workspaceId\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'CreateSandbox' => [
+ 'path' => '/2025-09-10/sandboxes',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'tags' => [],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['title' => '创建沙箱请求参数', 'description' => '创建沙箱请求参数', 'required' => true, '$ref' => '#/components/schemas/CreateSandboxInput'],
],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 返回指定智能体运行时端点的详细信息',
- 'schema' => [
- 'title' => '返回获取结构体的结果',
- 'description' => '返回获取结构体的结果',
- '$ref' => '#/components/schemas/AgentRuntimeEndpointResult',
- ],
+ 'schema' => ['title' => '返回创建结构体的结果', 'description' => '返回创建结构体的结果', '$ref' => '#/components/schemas/SandboxResult'],
'examples' => [],
],
500 => [
- 'schema' => [
- '$ref' => '#/components/schemas/ErrorResult',
- ],
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"agentRuntimeId\\": \\"ar-1234567890abcdef\\",\\n \\"agentRuntimeEndpointId\\": \\"are-1234567890abcdef\\",\\n \\"agentRuntimeEndpointArn\\": \\"acs:agentrun:cn-hangzhou:1760720386195983:runtime-endpoints/e56d483c-db80-4116-9ec4-25f16f5facfd\\",\\n \\"agentRuntimeEndpointName\\": \\"production-endpoint\\",\\n \\"description\\": \\"Production endpoint for customer service agent\\",\\n \\"status\\": \\"ACTIVE\\",\\n \\"statusReason\\": \\"Endpoint is active and ready\\",\\n \\"targetVersion\\": \\"LATEST\\",\\n \\"routingConfiguration\\": {\\n \\"versionWeights\\": [\\n {\\n \\"version\\": \\"\\",\\n \\"weight\\": 0\\n }\\n ]\\n },\\n \\"tags\\": [\\n \\"\\"\\n ],\\n \\"resourceName\\": \\"my-runtime-endpoint-resource\\",\\n \\"endpointPublicUrl\\": \\"https://ar-1234567890abcdef.cn-hangzhou.agentrun.aliyuncs.com\\"\\n }\\n}","type":"json"}]',
- 'title' => '获取智能体运行时访问端点',
- ],
- 'UpdateAgentRuntimeEndpoint' => [
- 'summary' => '更新智能体运行时访问端点',
- 'path' => '/2025-09-10/agents/runtimes/{agentRuntimeId}/endpoints/{agentRuntimeEndpointId}',
- 'methods' => [
- 'put',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '创建 Sandbox',
+ 'summary' => '创建 Sandbox。',
+ 'description' => '根据模板创建一个新的沙箱实例。沙箱是运行时的执行环境,可以执行代码或运行浏览器。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateSandbox',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"sandboxId\\": \\"01KAWBP6JQD0J3Z34BP4WMX1KG\\",\\n \\"templateId\\": \\"8d409d30-cac1-445a-95d5-476c47780336.schema\\",\\n \\"templateName\\": \\"my-template\\",\\n \\"status\\": \\"READY\\",\\n \\"createdAt\\": \\"2025-11-26T10:54:17.770719+08:00\\",\\n \\"lastUpdatedAt\\": \\"2025-11-26T10:54:17.770719+08:00\\",\\n \\"sandboxIdleTimeoutSeconds\\": 1800,\\n \\"endedAt\\": \\"2025-11-26T10:54:17.770719+08:00\\",\\n \\"sandboxArn\\": \\"acs:ram::1760720386195983:role/aliyunfcdefaultrole\\",\\n \\"sandboxIdleTTLInSeconds\\": 0,\\n \\"metadata\\": {}\\n }\\n}","type":"json"}]',
+ ],
+ 'CreateTemplate' => [
+ 'path' => '/2025-09-10/templates',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['title' => '创建模板请求参数', 'description' => '创建模板请求参数', 'required' => true, '$ref' => '#/components/schemas/CreateTemplateInput'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['title' => '返回创建结构体的结果', 'description' => '返回模板创建结果', '$ref' => '#/components/schemas/TemplateResult'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '创建模板',
+ 'summary' => '创建模板。',
+ 'description' => '创建一个新的模板,用于后续创建沙箱。模板定义了沙箱的运行时环境、资源配置等。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateTemplate'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'produces' => [
- 'application/json',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"templateId\\": \\"996ffd5e-003f-4700-9f24-9e2a1c19019b.schema\\",\\n \\"templateName\\": \\"browser-1767874121726\\",\\n \\"templateVersion\\": \\"预留\\",\\n \\"cpu\\": 4,\\n \\"memory\\": 4096,\\n \\"templateArn\\": \\"acs:agentrun:cn-hangzhou:12345678:templates/efb6de2f-1814-42a2-b7f3-474a0e0b3a48\\",\\n \\"createdAt\\": \\"2026-01-15T17:12:59.375168+08:00\\",\\n \\"lastUpdatedAt\\": \\"2026-01-15T17:12:59.375168+08:00\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"SDK Error\\",\\n \\"executionRoleArn\\": \\"acs:agentrun:cn-hangzhou:12345678:templates/efb6de2f-1814-42a2-b7f3-474a0e0b3a48\\",\\n \\"templateType\\": \\"Browser\\",\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"/usr/local/bin/entrypoint.sh\\"\\n ],\\n \\"registryConfig\\": {\\n \\"authConfig\\": {\\n \\"userName\\": \\"admin\\",\\n \\"password\\": \\"abc***\\"\\n },\\n \\"certConfig\\": {\\n \\"insecure\\": false,\\n \\"rootCaCertBase64\\": \\"cm9vdF9jYV9jZXJ0X2Jhc2U2NA==\\"\\n },\\n \\"networkConfig\\": {\\n \\"vpcId\\": \\"vpc-xxxxxxxxxxxxx\\",\\n \\"vSwitchId\\": \\"vsw-xxxxxxxxxxxxx\\",\\n \\"securityGroupId\\": \\"sg-xxxxxxxxxxxxx\\"\\n }\\n },\\n \\"port\\": 5000\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"credentialConfiguration\\": {\\n \\"credentialName\\": \\"deepagent-key\\"\\n },\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"sandboxIdleTimeoutInSeconds\\": \\"1800\\",\\n \\"sandboxTTLInSeconds\\": \\"已弃用\\",\\n \\"resourceName\\": \\"agentrun-f2570dd4-c8a2-452c-8bd5-4ef74b0a69b5\\",\\n \\"mcpOptions\\": {\\n \\"transport\\": \\"streamable-http\\",\\n \\"enabledTools\\": [\\n \\"execute_code\\"\\n ]\\n },\\n \\"mcpState\\": {\\n \\"status\\": \\"CREATING\\",\\n \\"statusReason\\": \\"SDK Error\\",\\n \\"accessEndpoint\\": \\"/mcp\\"\\n },\\n \\"diskSize\\": 10240,\\n \\"description\\": \\"template描述\\",\\n \\"allowAnonymousManage\\": true,\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"enableAgent\\": true,\\n \\"workspaceId\\": \\"\\",\\n \\"scalingStatus\\": {\\n \\"minInstances\\": 1,\\n \\"targetInstances\\": 2,\\n \\"currentInstances\\": 2,\\n \\"scheduledPolicies\\": [\\n {\\n \\"name\\": \\"scale-up-morning\\",\\n \\"startTime\\": \\"2024-01-01T08:00:00\\",\\n \\"endTime\\": \\"2024-01-01T08:00:00\\",\\n \\"scheduleExpression\\": \\"cron(0 8 * * ? *)\\",\\n \\"timeZone\\": \\"Asia/Shanghai\\",\\n \\"target\\": 20\\n }\\n ],\\n \\"currentError\\": \\"error\\"\\n },\\n \\"environmentVariables\\": {\\n \\"key\\": \\"{\'FCTEST_IDE_ENV\': \'IDE\'}\\"\\n },\\n \\"templateConfiguration\\": {\\n \\"key\\": \\"{\\\\\\"example\\\\\\":\\\\\\"test\\\\\\"}\\"\\n },\\n \\"ossConfiguration\\": [\\n {\\n \\"bucketName\\": \\"a-test-oss\\",\\n \\"prefix\\": \\"/\\",\\n \\"mountPoint\\": \\"/mnt/oss1\\",\\n \\"permission\\": \\"READ_WRITE\\",\\n \\"region\\": \\"ch-hangzhou\\",\\n \\"endpoint\\": \\"\\"\\n }\\n ],\\n \\"enablePreStop\\": true,\\n \\"preStopTimeoutInSeconds\\": 0\\n }\\n}","type":"json"}]',
+ ],
+ 'CreateTool' => [
+ 'summary' => 'Create a tool.',
+ 'description' => '创建一个新的工具,支持创建 MCP、函数调用和技能等多种类型的工具。工具创建后可以被 Agent 调用以扩展其能力。',
+ 'path' => '/2025-09-10/agents/tools',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'tags' => [],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'update',
+ 'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfc739PD5',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY', 'FEATUREfcVF016G'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'agentRuntimeId',
- 'in' => 'path',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '智能体运行时ID',
- 'description' => '智能体运行时ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => '12345678-1234-1234-1234-123456789abc',
- ],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'schema' => ['title' => '请求体', 'description' => '请求体', 'required' => false, '$ref' => '#/components/schemas/CreateToolInputV2'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'description' => '创建成功,返回工具的详细信息',
+ 'headers' => [],
+ 'schema' => ['description' => '工具返回结果', '$ref' => '#/components/schemas/ToolResult'],
'examples' => [],
],
+ ],
+ 'title' => '创建工具',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
[
- 'name' => 'agentRuntimeEndpointId',
- 'in' => 'path',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '智能体运行时端点ID',
- 'description' => '智能体运行时端点ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => '87654321-4321-4321-4321-210987654321',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateTool',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Tool', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/tools/*'],
+ ],
],
- 'examples' => [],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"toolId\\": \\"tool-abc123\\",\\n \\"toolName\\": \\"my-mcp-tool\\",\\n \\"workspaceId\\": \\"workspace-xyz789\\",\\n \\"description\\": \\"这是一个用于处理文档的 MCP 工具\\",\\n \\"toolType\\": \\"MCP\\",\\n \\"createMethod\\": \\"MCP_REMOTE\\",\\n \\"protocolSpec\\": \\"\\",\\n \\"mcpConfig\\": {\\n \\"sessionAffinity\\": \\"MCP_STREAMABLE\\",\\n \\"sessionAffinityConfig\\": \\"\\",\\n \\"proxyEnabled\\": true,\\n \\"mcpProxyConfiguration\\": {\\n \\"hooks\\": [\\n {\\n \\"url\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"apiVersion\\": \\"\\",\\n \\"enabled\\": true,\\n \\"timeout\\": 0,\\n \\"event\\": \\"\\",\\n \\"headers\\": {\\n \\"key\\": \\"\\"\\n }\\n }\\n ]\\n },\\n \\"boundConfiguration\\": {\\n \\"boundTools\\": [\\n {\\n \\"toolName\\": \\"my-tool\\",\\n \\"method\\": \\"POST\\",\\n \\"path\\": \\"/api/v1/tools\\",\\n \\"apis\\": [\\n {\\n \\"method\\": \\"\\",\\n \\"path\\": \\"\\"\\n }\\n ]\\n }\\n ]\\n }\\n },\\n \\"status\\": \\"Running\\",\\n \\"statusReason\\": \\"\\",\\n \\"executionRoleArn\\": \\"acs:ram::123456789:role/AliyunFCDefaultRole\\",\\n \\"artifactType\\": \\"Code\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"codeConfiguration\\": {\\n \\"zipFile\\": \\"UEsDBAoAAAAAANF\\",\\n \\"ossBucketName\\": \\"my-agent-code-bucket\\",\\n \\"ossObjectName\\": \\"agent-code-v1.0.zip\\",\\n \\"checksum\\": \\"1234567890123456789\\",\\n \\"language\\": \\"python3.12\\",\\n \\"command\\": [\\n \\"\\"\\n ]\\n },\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"/usr/local/bin/entrypoint.sh\\"\\n ],\\n \\"registryConfig\\": {\\n \\"authConfig\\": {\\n \\"userName\\": \\"admin\\",\\n \\"password\\": \\"abc***\\"\\n },\\n \\"certConfig\\": {\\n \\"insecure\\": false,\\n \\"rootCaCertBase64\\": \\"cm9vdF9jYV9jZXJ0X2Jhc2U2NA==\\"\\n },\\n \\"networkConfig\\": {\\n \\"vpcId\\": \\"vpc-xxxxxxxxxxxxx\\",\\n \\"vSwitchId\\": \\"vsw-xxxxxxxxxxxxx\\",\\n \\"securityGroupId\\": \\"sg-xxxxxxxxxxxxx\\"\\n }\\n },\\n \\"port\\": 5000\\n },\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n },\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"cpu\\": 0.5,\\n \\"memory\\": 512,\\n \\"port\\": 8080,\\n \\"createdAt\\": \\"2025-09-10T10:00:00Z\\",\\n \\"updatedAt\\": \\"2025-09-10T12:00:00Z\\",\\n \\"credentialName\\": \\"my-credential\\",\\n \\"timeout\\": 300,\\n \\"environmentVariables\\": {\\n \\"key\\": \\"\\"\\n }\\n }\\n}","type":"json"}]',
+ ],
+ 'CreateWorkspace' => [
+ 'summary' => '创建工作空间',
+ 'description' => '创建工作空间',
+ 'path' => '/2025-09-10/workspaces',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'tags' => [],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
- 'schema' => [
- 'title' => '更新智能体运行时端点输入',
- 'description' => '更新智能体运行时端点输入',
- 'required' => true,
- '$ref' => '#/components/schemas/UpdateAgentRuntimeEndpointInput',
- ],
+ 'schema' => ['description' => '创建工作空间请求体。', 'required' => false, '$ref' => '#/components/schemas/CreateWorkspaceInput'],
],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 返回更新后的智能体运行时端点信息',
- 'schema' => [
- 'title' => '返回更新结构体的结果',
- 'description' => '返回更新结构体的结果',
- '$ref' => '#/components/schemas/AgentRuntimeEndpointResult',
+ 'description' => '成功响应 - 返回创建的智能体运行时信息,包括运行时ID、状态、配置等详细信息',
+ 'schema' => ['description' => '返回结果', '$ref' => '#/components/schemas/WorkspaceResult'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '创建工作空间',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateWorkspace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"workspaceId\\": \\"\\",\\n \\"workspaceArn\\": \\"\\",\\n \\"name\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"isDefault\\": true,\\n \\"resourceGroupId\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"updatedAt\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'DeleteAgentRuntime' => [
+ 'summary' => '删除智能体运行时',
+ 'description' => '删除指定的智能体运行时实例,包括其所有相关资源和数据。删除操作不可逆,请谨慎操作。',
+ 'path' => '/2025-09-10/agents/runtimes/{agentRuntimeId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
+ 'tags' => [],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'agentRuntimeId',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '智能体运行时ID', 'description' => '智能体运行时ID', 'type' => 'string', 'required' => true, 'example' => '12345678-1234-1234-1234-123456789abc'],
+ 'examples' => [],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'description' => '成功响应 - 确认智能体运行时已成功删除,返回删除操作的结果信息',
+ 'schema' => ['title' => '返回删除结构体的结果', 'description' => '返回删除结构体的结果', '$ref' => '#/components/schemas/AgentRuntimeResult'],
'examples' => [],
],
500 => [
- 'schema' => [
- '$ref' => '#/components/schemas/ErrorResult',
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
+ ],
+ 'title' => '删除智能体运行时',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteAgentRuntime',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Agent', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/{#runtimeName}'],
+ ],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"agentRuntimeId\\": \\"ar-1234567890abcdef\\",\\n \\"agentRuntimeEndpointId\\": \\"are-1234567890abcdef\\",\\n \\"agentRuntimeEndpointArn\\": \\"acs:agentrun:cn-hangzhou:1760720386195983:runtime-endpoints/e56d483c-db80-4116-9ec4-25f16f5facfd\\",\\n \\"agentRuntimeEndpointName\\": \\"production-endpoint\\",\\n \\"description\\": \\"Production endpoint for customer service agent\\",\\n \\"status\\": \\"ACTIVE\\",\\n \\"statusReason\\": \\"Endpoint is active and ready\\",\\n \\"targetVersion\\": \\"LATEST\\",\\n \\"routingConfiguration\\": {\\n \\"versionWeights\\": [\\n {\\n \\"version\\": \\"\\",\\n \\"weight\\": 0\\n }\\n ]\\n },\\n \\"tags\\": [\\n \\"\\"\\n ],\\n \\"resourceName\\": \\"my-runtime-endpoint-resource\\",\\n \\"endpointPublicUrl\\": \\"https://ar-1234567890abcdef.cn-hangzhou.agentrun.aliyuncs.com\\"\\n }\\n}","type":"json"}]',
- 'title' => '更新智能体运行时访问端点',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"agentRuntimeId\\": \\"ar-1234567890abcdef\\",\\n \\"agentRuntimeName\\": \\"my-agent-runtime\\",\\n \\"agentRuntimeArn\\": \\"acs:agentrun:cn-hangzhou:1760720386195983:runtimes/7a1b6d39-9f8f-4ce2-b9c9-6db1b0b9e169\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Runtime is ready for use\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"description\\": \\"AI agent runtime for customer service automation\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/AgentRunExecutionRole\\",\\n \\"credentialName\\": \\"my-credential\\",\\n \\"externalAgentEndpointUrl\\": \\"https://external-agent.example.com/api\\",\\n \\"agentRuntimeVersion\\": \\"1\\",\\n \\"artifactType\\": \\"Code\\",\\n \\"codeConfiguration\\": {\\n \\"zipFile\\": \\"UEsDBAoAAAAAANF\\",\\n \\"ossBucketName\\": \\"my-agent-code-bucket\\",\\n \\"ossObjectName\\": \\"agent-code-v1.0.zip\\",\\n \\"checksum\\": \\"1234567890123456789\\",\\n \\"language\\": \\"python3.12\\",\\n \\"command\\": [\\n \\"\\"\\n ]\\n },\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"/usr/local/bin/entrypoint.sh\\"\\n ],\\n \\"registryConfig\\": {\\n \\"authConfig\\": {\\n \\"userName\\": \\"admin\\",\\n \\"password\\": \\"abc***\\"\\n },\\n \\"certConfig\\": {\\n \\"insecure\\": false,\\n \\"rootCaCertBase64\\": \\"cm9vdF9jYV9jZXJ0X2Jhc2U2NA==\\"\\n },\\n \\"networkConfig\\": {\\n \\"vpcId\\": \\"vpc-xxxxxxxxxxxxx\\",\\n \\"vSwitchId\\": \\"vsw-xxxxxxxxxxxxx\\",\\n \\"securityGroupId\\": \\"sg-xxxxxxxxxxxxx\\"\\n }\\n },\\n \\"port\\": 5000\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"protocolConfiguration\\": {\\n \\"type\\": \\"HTTP\\",\\n \\"protocolSettings\\": [\\n {\\n \\"type\\": \\"\\",\\n \\"name\\": \\"\\",\\n \\"config\\": \\"\\",\\n \\"path\\": \\"\\",\\n \\"pathPrefix\\": \\"\\",\\n \\"headers\\": \\"\\",\\n \\"method\\": \\"\\",\\n \\"inputBodyJsonSchema\\": \\"\\",\\n \\"outputBodyJsonSchema\\": \\"\\",\\n \\"requestContentType\\": \\"\\",\\n \\"responseContentType\\": \\"\\",\\n \\"A2AAgentCard\\": \\"\\",\\n \\"a2aAgentCard\\": \\"\\",\\n \\"a2aAgentCardUrl\\": \\"\\"\\n }\\n ]\\n },\\n \\"cpu\\": 2,\\n \\"memory\\": 2048,\\n \\"diskSize\\": 0,\\n \\"port\\": 8080,\\n \\"sessionConcurrencyLimitPerInstance\\": 100,\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"healthCheckConfiguration\\": {\\n \\"httpGetUrl\\": \\"/ready\\",\\n \\"initialDelaySeconds\\": 30,\\n \\"periodSeconds\\": 30,\\n \\"timeoutSeconds\\": 3,\\n \\"failureThreshold\\": 3,\\n \\"successThreshold\\": 1\\n },\\n \\"sessionIdleTimeoutSeconds\\": 3600,\\n \\"enableSessionIsolation\\": false,\\n \\"disableOndemand\\": false,\\n \\"disableSessionAffinity\\": false,\\n \\"sessionAffinityType\\": \\"GENERATED_COOKIE\\",\\n \\"headerFieldName\\": \\"x-agentrun-session-id\\",\\n \\"resourceGroupId\\": \\"\\",\\n \\"workspaceId\\": \\"ws-1234567890abcdef\\",\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n },\\n \\"environmentVariables\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"systemTags\\": [\\n \\"\\"\\n ],\\n \\"agentIdentityEnabled\\": \\"\\",\\n \\"agentIdentityConfig\\": {\\n \\"identityProviderName\\": \\"\\",\\n \\"workloadIdentityName\\": \\"\\"\\n },\\n \\"edition\\": \\"\\"\\n }\\n}","type":"json"}]',
],
'DeleteAgentRuntimeEndpoint' => [
- 'summary' => '删除智能体访问端点',
'path' => '/2025-09-10/agents/runtimes/{agentRuntimeId}/endpoints/{agentRuntimeEndpointId}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfc739PD5',
- ],
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
],
'parameters' => [
[
'name' => 'agentRuntimeId',
'in' => 'path',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '智能体运行时ID',
- 'description' => '智能体运行时ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => '12345678-1234-1234-1234-123456789abc',
- ],
+ 'schema' => ['title' => '智能体运行时ID', 'description' => '智能体运行时ID', 'type' => 'string', 'required' => true, 'example' => '12345678-1234-1234-1234-123456789abc'],
'examples' => [],
],
[
'name' => 'agentRuntimeEndpointId',
'in' => 'path',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '智能体运行时端点ID',
- 'description' => '智能体运行时端点ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => '87654321-4321-4321-4321-210987654321',
- ],
+ 'schema' => ['title' => '智能体运行时端点ID', 'description' => '智能体运行时端点ID', 'type' => 'string', 'required' => true, 'example' => '87654321-4321-4321-4321-210987654321'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 确认智能体运行时端点已成功删除',
- 'schema' => [
- 'title' => '返回删除结构体的结果',
- 'description' => '返回删除结构体的结果',
- '$ref' => '#/components/schemas/AgentRuntimeEndpointResult',
- ],
+ 'schema' => ['title' => '返回删除结构体的结果', 'description' => '返回删除结构体的结果', '$ref' => '#/components/schemas/AgentRuntimeEndpointResult'],
'examples' => [],
],
500 => [
- 'schema' => [
- '$ref' => '#/components/schemas/ErrorResult',
- ],
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"agentRuntimeId\\": \\"ar-1234567890abcdef\\",\\n \\"agentRuntimeEndpointId\\": \\"are-1234567890abcdef\\",\\n \\"agentRuntimeEndpointArn\\": \\"acs:agentrun:cn-hangzhou:1760720386195983:runtime-endpoints/e56d483c-db80-4116-9ec4-25f16f5facfd\\",\\n \\"agentRuntimeEndpointName\\": \\"production-endpoint\\",\\n \\"description\\": \\"Production endpoint for customer service agent\\",\\n \\"status\\": \\"ACTIVE\\",\\n \\"statusReason\\": \\"Endpoint is active and ready\\",\\n \\"targetVersion\\": \\"LATEST\\",\\n \\"routingConfiguration\\": {\\n \\"versionWeights\\": [\\n {\\n \\"version\\": \\"\\",\\n \\"weight\\": 0\\n }\\n ]\\n },\\n \\"tags\\": [\\n \\"\\"\\n ],\\n \\"resourceName\\": \\"my-runtime-endpoint-resource\\",\\n \\"endpointPublicUrl\\": \\"https://ar-1234567890abcdef.cn-hangzhou.agentrun.aliyuncs.com\\"\\n }\\n}","type":"json"}]',
'title' => '删除智能体访问端点',
- ],
- 'PublishRuntimeVersion' => [
- 'summary' => '发布智能体运行时新版本',
- 'description' => '为指定的智能体运行时发布新版本,用于版本管理和部署。新版本可以包含代码更新、配置变更等内容。',
- 'path' => '/2025-09-10/agents/runtimes/{agentRuntimeId}/versions',
- 'methods' => [
- 'post',
+ 'summary' => '删除智能体访问端点',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteAgentRuntimeEndpoint',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Endpoint', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/{#runtimeName}/runtime-endpoints/{#endpointName}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"agentRuntimeId\\": \\"ar-1234567890abcdef\\",\\n \\"agentRuntimeEndpointId\\": \\"are-1234567890abcdef\\",\\n \\"agentRuntimeEndpointArn\\": \\"acs:agentrun:cn-hangzhou:1760720386195983:runtime-endpoints/e56d483c-db80-4116-9ec4-25f16f5facfd\\",\\n \\"agentRuntimeEndpointName\\": \\"production-endpoint\\",\\n \\"description\\": \\"Production endpoint for customer service agent\\",\\n \\"status\\": \\"ACTIVE\\",\\n \\"statusReason\\": \\"Endpoint is active and ready\\",\\n \\"targetVersion\\": \\"LATEST\\",\\n \\"routingConfiguration\\": {\\n \\"versionWeights\\": [\\n {\\n \\"version\\": \\"\\",\\n \\"weight\\": 0\\n }\\n ]\\n },\\n \\"endpointPublicUrl\\": \\"https://ar-1234567890abcdef.cn-hangzhou.agentrun.aliyuncs.com\\",\\n \\"disablePublicNetworkAccess\\": true,\\n \\"scalingStatus\\": {\\n \\"minInstances\\": 1,\\n \\"targetInstances\\": 2,\\n \\"currentInstances\\": 2,\\n \\"scheduledPolicies\\": [\\n {\\n \\"name\\": \\"scale-up-morning\\",\\n \\"startTime\\": \\"2024-01-01T08:00:00\\",\\n \\"endTime\\": \\"2024-01-01T08:00:00\\",\\n \\"scheduleExpression\\": \\"cron(0 8 * * ? *)\\",\\n \\"timeZone\\": \\"Asia/Shanghai\\",\\n \\"target\\": 20\\n }\\n ],\\n \\"currentError\\": \\"error\\"\\n }\\n }\\n}","type":"json"}]',
+ ],
+ 'DeleteBrowser' => [
+ 'summary' => '删除浏览器沙箱',
+ 'description' => '删除指定的浏览器实例,包括其所有相关资源和数据。删除操作不可逆,请谨慎操作。',
+ 'path' => '/2025-09-10/agents/browsers/{browserId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'none',
+ 'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREdevsTN0KZI',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcVF016G'],
],
'parameters' => [
[
- 'name' => 'agentRuntimeId',
+ 'name' => 'browserId',
'in' => 'path',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '智能体运行时ID',
- 'description' => '智能体运行时ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => '12345678-1234-1234-1234-123456789abc',
- ],
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '浏览器ID', 'description' => '浏览器ID', 'type' => 'string', 'required' => true, 'example' => '12345678-1234-1234-1234-123456789abc'],
'examples' => [],
],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '发布版本的请求体信息',
- 'required' => false,
- '$ref' => '#/components/schemas/PublishRuntimeVersionInput',
- ],
- ],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 返回新发布的运行时版本信息,包括版本号、状态、发布时间等',
- 'schema' => [
- 'title' => '返回创建结构体的结果',
- 'description' => '返回创建结构体的结果',
- '$ref' => '#/components/schemas/AgentRuntimeVersionResult',
- ],
- 'examples' => [],
+ 'schema' => ['title' => '返回删除结构体的结果', 'description' => '返回删除结构体的结果', '$ref' => '#/components/schemas/DeleteBrowserResult'],
],
- 500 => [
- 'schema' => [
- '$ref' => '#/components/schemas/ErrorResult',
+ ],
+ 'title' => '删除浏览器沙箱',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteBrowser',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"agentRuntimeArn\\": \\"acs:agentrun:cn-hangzhou:1760720386195983:runtimes/7a1b6d39-9f8f-4ce2-b9c9-6db1b0b9e169\\",\\n \\"agentRuntimeId\\": \\"ar-1234567890abcdef\\",\\n \\"agentRuntimeName\\": \\"my-agent-runtime\\",\\n \\"agentRuntimeVersion\\": \\"LATEST\\",\\n \\"description\\": \\"Initial release with basic functionality\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T10:30:00Z\\"\\n }\\n}","type":"json"}]',
- 'title' => '发布智能体运行时新版本',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"code\\": \\"SUCCESS\\",\\n \\"data\\": {\\n \\"browserId\\": \\"browser-1234567890abcdef\\",\\n \\"browserName\\": \\"my-browser\\",\\n \\"description\\": \\"Web automation browser for testing\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Browser is ready for use\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/BrowserExecutionRole\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"recording\\": {\\n \\"enabled\\": true,\\n \\"ossLocation\\": {\\n \\"bucket\\": \\"\\",\\n \\"prefix\\": \\"\\"\\n }\\n },\\n \\"memory\\": 2048,\\n \\"credentialId\\": \\"cred-1234567890abcdef\\",\\n \\"cpu\\": 2,\\n \\"tenantId\\": \\"tenant-1234567890abcdef\\"\\n }\\n}","type":"json"}]',
],
- 'ListAgentRuntimeVersions' => [
- 'summary' => '获取智能体运行时版本',
- 'path' => '/2025-09-10/agents/runtimes/{agentRuntimeId}/versions',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'DeleteCodeInterpreter' => [
+ 'path' => '/2025-09-10/agents/code-interpreters/{codeInterpreterId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'list',
+ 'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfc739PD5',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
],
'parameters' => [
[
- 'name' => 'agentRuntimeId',
+ 'name' => 'codeInterpreterId',
'in' => 'path',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '智能体运行时ID',
- 'description' => '智能体运行时ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => '12345678-1234-1234-1234-123456789abc',
- ],
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '代码解释器ID', 'description' => '代码解释器ID', 'type' => 'string', 'required' => true, 'example' => '12345678-1234-1234-1234-123456789abc'],
'examples' => [],
],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['title' => '返回删除结构体的结果', 'description' => '返回删除结构体的结果', '$ref' => '#/components/schemas/DeleteCodeInterpreterResult'],
+ ],
+ ],
+ 'title' => '删除代码解释器',
+ 'summary' => '删除代码解释器',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
[
- 'name' => 'pageNumber',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '页码',
- 'description' => '页码',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteCodeInterpreter',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
- 'examples' => [],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"codeInterpreterId\\": \\"ci-1234567890abcdef\\",\\n \\"codeInterpreterName\\": \\"my-code-interpreter\\",\\n \\"description\\": \\"Python code interpreter for data analysis\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/CodeInterpreterExecutionRole\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Code interpreter is ready for use\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"memory\\": 2048,\\n \\"cpu\\": 2,\\n \\"tenantId\\": \\"tenant-1234567890abcdef\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'DeleteCredential' => [
+ 'path' => '/2025-09-10/agents/credentials/{credentialName}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
+ 'tags' => [],
+ 'security' => [
[
- 'name' => 'pageSize',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '页面大小',
- 'description' => '页面大小',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY', 'FEATUREfcVF016G'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'credentialName',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'credentialName', 'type' => 'string', 'required' => false, 'example' => 'credentialName'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 返回智能体运行时版本列表,包含分页信息和版本详情',
- 'schema' => [
- 'title' => '返回列表结构体的结果',
- 'description' => '返回列表结构体的结果',
- '$ref' => '#/components/schemas/ListAgentRuntimeVersionsResult',
- ],
+ 'headers' => [],
+ 'schema' => ['description' => 'CredentialResult', '$ref' => '#/components/schemas/CredentialResult'],
'examples' => [],
],
- 500 => [
- 'schema' => [
- '$ref' => '#/components/schemas/ErrorResult',
+ ],
+ 'title' => '删除指定凭证',
+ 'summary' => '删除指定凭证。',
+ 'description' => '获取当前用户的所有模板列表,支持按模板类型过滤,支持分页查询。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteCredential',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Credential', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/credentials/{#credentialName}'],
+ ],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"items\\": [\\n {\\n \\"agentRuntimeArn\\": \\"acs:agentrun:cn-hangzhou:1760720386195983:runtimes/7a1b6d39-9f8f-4ce2-b9c9-6db1b0b9e169\\",\\n \\"agentRuntimeId\\": \\"ar-1234567890abcdef\\",\\n \\"agentRuntimeName\\": \\"my-agent-runtime\\",\\n \\"agentRuntimeVersion\\": \\"LATEST\\",\\n \\"description\\": \\"Initial release with basic functionality\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T10:30:00Z\\"\\n }\\n ],\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0,\\n \\"total\\": 0\\n }\\n}","type":"json"}]',
- 'title' => '获取智能体运行时版本',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"credentialId\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"credentialAuthType\\": \\"\\",\\n \\"credentialSourceType\\": \\"\\",\\n \\"enabled\\": true,\\n \\"credentialSecret\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"updatedAt\\": \\"\\",\\n \\"credentialPublicConfig\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"relatedResources\\": [\\n {\\n \\"resourceId\\": \\"\\",\\n \\"resourceName\\": \\"\\",\\n \\"resourceType\\": \\"\\"\\n }\\n ],\\n \\"workspaceId\\": \\"\\"\\n }\\n}","type":"json"}]',
],
- 'CreateTemplate' => [
- 'summary' => '创建模板。',
- 'description' => '创建一个新的模板,用于后续创建沙箱。模板定义了沙箱的运行时环境、资源配置等。',
- 'path' => '/2025-09-10/templates',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'DeleteCustomDomain' => [
+ 'summary' => '删除自定义域名。',
+ 'path' => '/2025-09-10/agents/custom-domains/{domainName}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY', 'FEATUREfcVF016G'],
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'title' => '创建模板请求参数',
- 'description' => '创建模板请求参数',
- 'required' => true,
- '$ref' => '#/components/schemas/CreateTemplateInput',
- ],
+ 'name' => 'domainName',
+ 'in' => 'path',
+ 'schema' => ['description' => '自定义域名', 'type' => 'string', 'required' => false, 'example' => 'mydomain.com'],
],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 返回创建的模板信息,包括模板ID、状态、配置等详细信息',
- 'schema' => [
- 'title' => '返回创建结构体的结果',
- 'description' => '返回模板创建结果',
- '$ref' => '#/components/schemas/TemplateResult',
- ],
+ 'description' => 'Successful response',
+ 'headers' => [],
+ 'schema' => ['description' => '自定义域名信息', '$ref' => '#/components/schemas/CustomDomainResult'],
'examples' => [],
],
- 500 => [
- 'schema' => [
- '$ref' => '#/components/schemas/ErrorResult',
+ ],
+ 'title' => '删除自定义域名',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteCustomDomain',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"templateId\\": \\"\\",\\n \\"templateName\\": \\"\\",\\n \\"templateVersion\\": \\"\\",\\n \\"cpu\\": 0,\\n \\"memory\\": 0,\\n \\"templateArn\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"statusReason\\": \\"\\",\\n \\"executionRoleArn\\": \\"\\",\\n \\"templateType\\": \\"\\",\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"\\"\\n ],\\n \\"port\\": 0\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"credentialConfiguration\\": {\\n \\"credentialName\\": \\"\\"\\n },\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"sandboxIdleTimeoutInSeconds\\": \\"\\",\\n \\"sandboxTTLInSeconds\\": \\"\\",\\n \\"resourceName\\": \\"\\",\\n \\"mcpOptions\\": {\\n \\"transport\\": \\"streamable-http\\",\\n \\"enabledTools\\": [\\n \\"\\"\\n ]\\n },\\n \\"mcpState\\": {\\n \\"status\\": \\"\\",\\n \\"statusReason\\": \\"\\",\\n \\"accessEndpoint\\": \\"\\"\\n },\\n \\"diskSize\\": 0,\\n \\"description\\": \\"\\",\\n \\"allowAnonymousManage\\": true,\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"enableAgent\\": true,\\n \\"environmentVariables\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"templateConfiguration\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"ossConfiguration\\": [\\n {\\n \\"bucketName\\": \\"\\",\\n \\"prefix\\": \\"\\",\\n \\"mountPoint\\": \\"\\",\\n \\"permission\\": \\"\\",\\n \\"region\\": \\"ch-hangzhou\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '创建模板',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"domainName\\": \\"example.com\\",\\n \\"description\\": \\"\\",\\n \\"protocol\\": \\"HTTP\\",\\n \\"routeConfig\\": {\\n \\"routes\\": [\\n {\\n \\"path\\": \\"/login\\",\\n \\"resourceName\\": \\"\\",\\n \\"resourceType\\": \\"runtime\\",\\n \\"agentRuntimeEndpointName\\": \\"\\",\\n \\"compatibleProtocol\\": \\"native\\",\\n \\"flowEndpointName\\": \\"Default\\",\\n \\"methods\\": [\\n \\"\\"\\n ],\\n \\"removeBasePathOnForward\\": true\\n }\\n ]\\n },\\n \\"certConfig\\": {\\n \\"certName\\": \\"my-cert\\",\\n \\"certificate\\": \\"-----BEGIN CERTIFICATE-----\\\\\\\\nxxxxx\\\\\\\\n-----END CERTIFICATE-----\\",\\n \\"privateKey\\": \\"-----BEGIN RSA PRIVATE KEY-----\\\\\\\\nxxxxx\\\\\\\\n-----END RSA PRIVATE KEY-----\\"\\n },\\n \\"tlsConfig\\": {\\n \\"minVersion\\": \\"TLSv1.2\\",\\n \\"cipherSuites\\": [\\n \\"\\"\\n ],\\n \\"maxVersion\\": \\"TLSv1.3\\"\\n },\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"updatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"domainType\\": \\"\\"\\n }\\n}","type":"json"}]',
],
- 'GetTemplate' => [
- 'summary' => '获取模板。',
- 'description' => '根据模板名称获取指定模板的详细信息,包括配置、状态等。',
- 'path' => '/2025-09-10/templates/{templateName}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'DeleteFlow' => [
+ 'path' => '/2025-09-10/flows/{flowName}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
- 'name' => 'templateName',
+ 'name' => 'flowName',
'in' => 'path',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '模板名称',
- 'description' => '模板名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-template',
- ],
+ 'schema' => ['title' => '工作流ID', 'description' => '工作流ID', 'type' => 'string', 'required' => true, 'example' => 'demo-flow'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 返回指定模板的完整信息,包括配置参数、运行状态等',
- 'schema' => [
- 'title' => '返回获取结构体的结果',
- 'description' => '返回获取模板结果',
- '$ref' => '#/components/schemas/TemplateResult',
- ],
+ 'schema' => ['title' => '返回删除结构体的结果', 'description' => '返回删除结构体的结果', '$ref' => '#/components/schemas/CommonResult'],
'examples' => [],
],
500 => [
- 'schema' => [
- '$ref' => '#/components/schemas/ErrorResult',
- ],
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"templateId\\": \\"\\",\\n \\"templateName\\": \\"\\",\\n \\"templateVersion\\": \\"\\",\\n \\"cpu\\": 0,\\n \\"memory\\": 0,\\n \\"templateArn\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"statusReason\\": \\"\\",\\n \\"executionRoleArn\\": \\"\\",\\n \\"templateType\\": \\"\\",\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"\\"\\n ],\\n \\"port\\": 0\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"credentialConfiguration\\": {\\n \\"credentialName\\": \\"\\"\\n },\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"sandboxIdleTimeoutInSeconds\\": \\"\\",\\n \\"sandboxTTLInSeconds\\": \\"\\",\\n \\"resourceName\\": \\"\\",\\n \\"mcpOptions\\": {\\n \\"transport\\": \\"streamable-http\\",\\n \\"enabledTools\\": [\\n \\"\\"\\n ]\\n },\\n \\"mcpState\\": {\\n \\"status\\": \\"\\",\\n \\"statusReason\\": \\"\\",\\n \\"accessEndpoint\\": \\"\\"\\n },\\n \\"diskSize\\": 0,\\n \\"description\\": \\"\\",\\n \\"allowAnonymousManage\\": true,\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"enableAgent\\": true,\\n \\"environmentVariables\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"templateConfiguration\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"ossConfiguration\\": [\\n {\\n \\"bucketName\\": \\"\\",\\n \\"prefix\\": \\"\\",\\n \\"mountPoint\\": \\"\\",\\n \\"permission\\": \\"\\",\\n \\"region\\": \\"ch-hangzhou\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '获取模板',
- ],
- 'ListTemplates' => [
- 'summary' => '列出模板。',
- 'description' => '获取当前用户的所有模板列表,支持按模板类型过滤,支持分页查询。',
- 'path' => '/2025-09-10/templates',
- 'methods' => [
- 'get',
+ 'title' => '删除流程编排',
+ 'summary' => '删除工作流。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteFlow',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/{#flowId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": \\"\\"\\n}","type":"json"}]',
+ ],
+ 'DeleteFlowEndpoint' => [
+ 'path' => '/2025-09-10/flows/{flowName}/endpoints/{flowEndpointName}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'list',
+ 'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
- 'name' => 'templateType',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '模板类型',
- 'description' => '模板类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Browser',
- 'enum' => [
- 'Browser',
- 'CodeInterpreter',
- 'AllInOne',
- 'CustomImage',
- ],
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'pageNumber',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '页码',
- 'description' => '页码',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'name' => 'flowName',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '工作流ID', 'description' => '工作流ID', 'type' => 'string', 'required' => true, 'example' => 'demo-flow'],
'examples' => [],
],
[
- 'name' => 'pageSize',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '页面大小',
- 'description' => '页面大小',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '20',
- ],
+ 'name' => 'flowEndpointName',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '工作流端点ID', 'description' => '工作流端点ID', 'type' => 'string', 'required' => true, 'example' => 'prod'],
'examples' => [],
],
- [
- 'name' => 'status',
- 'in' => 'query',
- 'schema' => [
- 'title' => '状态',
- 'description' => '状态',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'READY',
- ],
- ],
- [
- 'name' => 'templateName',
- 'in' => 'query',
- 'schema' => [
- 'title' => '模板名称',
- 'description' => '模板名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'temp-abc',
- ],
- ],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 返回模板列表,包含分页信息和模板详情',
- 'schema' => [
- 'description' => '返回列表结构体的结果',
- '$ref' => '#/components/schemas/ListTemplatesResult',
- ],
+ 'schema' => ['title' => '返回删除结构体的结果', 'description' => '返回删除结构体的结果', '$ref' => '#/components/schemas/CommonResult'],
'examples' => [],
],
500 => [
- 'schema' => [
- '$ref' => '#/components/schemas/ErrorResult',
- ],
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0,\\n \\"total\\": 0,\\n \\"items\\": [\\n {\\n \\"templateId\\": \\"\\",\\n \\"templateName\\": \\"\\",\\n \\"templateVersion\\": \\"\\",\\n \\"cpu\\": 0,\\n \\"memory\\": 0,\\n \\"templateArn\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"statusReason\\": \\"\\",\\n \\"executionRoleArn\\": \\"\\",\\n \\"templateType\\": \\"\\",\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"\\"\\n ],\\n \\"port\\": 0\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"credentialConfiguration\\": {\\n \\"credentialName\\": \\"\\"\\n },\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"sandboxIdleTimeoutInSeconds\\": \\"\\",\\n \\"sandboxTTLInSeconds\\": \\"\\",\\n \\"resourceName\\": \\"\\",\\n \\"mcpOptions\\": {\\n \\"transport\\": \\"streamable-http\\",\\n \\"enabledTools\\": [\\n \\"\\"\\n ]\\n },\\n \\"mcpState\\": {\\n \\"status\\": \\"\\",\\n \\"statusReason\\": \\"\\",\\n \\"accessEndpoint\\": \\"\\"\\n },\\n \\"diskSize\\": 0,\\n \\"description\\": \\"\\",\\n \\"allowAnonymousManage\\": true,\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"enableAgent\\": true,\\n \\"environmentVariables\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"templateConfiguration\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"ossConfiguration\\": [\\n {\\n \\"bucketName\\": \\"\\",\\n \\"prefix\\": \\"\\",\\n \\"mountPoint\\": \\"\\",\\n \\"permission\\": \\"\\",\\n \\"region\\": \\"ch-hangzhou\\"\\n }\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '列出模板',
- ],
- 'UpdateTemplate' => [
- 'summary' => '更新模板。',
- 'description' => '更新指定模板的配置信息,包括资源配置、网络配置、环境变量等。',
- 'path' => '/2025-09-10/templates/{templateName}',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'https',
+ 'title' => '删除流程编排调用端点',
+ 'summary' => '删除工作流端点',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": \\"\\"\\n}","type":"json"}]',
+ ],
+ 'DeleteFlowVersion' => [
+ 'path' => '/2025-09-10/flows/{flowName}/versions/{flowVersion}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'update',
+ 'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
- 'name' => 'templateName',
+ 'name' => 'flowName',
'in' => 'path',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '模板名称',
- 'description' => '模板名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-template',
- ],
+ 'schema' => ['title' => '工作流名称', 'description' => '工作流名称', 'type' => 'string', 'required' => true, 'example' => 'my-flow'],
'examples' => [],
],
[
- 'name' => 'clientToken',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '客户端令牌',
- 'description' => '客户端令牌',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'clientToken',
- ],
+ 'name' => 'flowVersion',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '版本号', 'description' => '版本号', 'type' => 'string', 'required' => true, 'example' => '1'],
'examples' => [],
],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'title' => '更新模板请求参数',
- 'description' => '更新模板请求参数',
- 'required' => true,
- '$ref' => '#/components/schemas/UpdateTemplateInput',
- ],
- ],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 返回更新后的模板信息',
- 'schema' => [
- 'title' => '返回更新结构体的结果',
- 'description' => '返回更新模板的结果',
- '$ref' => '#/components/schemas/TemplateResult',
- ],
+ 'schema' => ['title' => '返回删除结构体的结果', 'description' => '返回删除结构体的结果', '$ref' => '#/components/schemas/CommonResult'],
'examples' => [],
],
500 => [
- 'schema' => [
- '$ref' => '#/components/schemas/ErrorResult',
- ],
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'title' => '删除流程版本',
+ 'summary' => '删除工作流版本。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"templateId\\": \\"\\",\\n \\"templateName\\": \\"\\",\\n \\"templateVersion\\": \\"\\",\\n \\"cpu\\": 0,\\n \\"memory\\": 0,\\n \\"templateArn\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"statusReason\\": \\"\\",\\n \\"executionRoleArn\\": \\"\\",\\n \\"templateType\\": \\"\\",\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"\\"\\n ],\\n \\"port\\": 0\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"credentialConfiguration\\": {\\n \\"credentialName\\": \\"\\"\\n },\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"sandboxIdleTimeoutInSeconds\\": \\"\\",\\n \\"sandboxTTLInSeconds\\": \\"\\",\\n \\"resourceName\\": \\"\\",\\n \\"mcpOptions\\": {\\n \\"transport\\": \\"streamable-http\\",\\n \\"enabledTools\\": [\\n \\"\\"\\n ]\\n },\\n \\"mcpState\\": {\\n \\"status\\": \\"\\",\\n \\"statusReason\\": \\"\\",\\n \\"accessEndpoint\\": \\"\\"\\n },\\n \\"diskSize\\": 0,\\n \\"description\\": \\"\\",\\n \\"allowAnonymousManage\\": true,\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"enableAgent\\": true,\\n \\"environmentVariables\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"templateConfiguration\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"ossConfiguration\\": [\\n {\\n \\"bucketName\\": \\"\\",\\n \\"prefix\\": \\"\\",\\n \\"mountPoint\\": \\"\\",\\n \\"permission\\": \\"\\",\\n \\"region\\": \\"ch-hangzhou\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '更新模板',
- ],
- 'DeleteTemplate' => [
- 'summary' => '删除模板。',
- 'description' => '删除指定的模板。删除后,该模板将无法再用于创建新的沙箱。',
- 'path' => '/2025-09-10/templates/{templateName}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteFlowVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/{#flowId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": \\"\\"\\n}","type":"json"}]',
+ ],
+ 'DeleteIMBot' => [
+ 'path' => '/2025-09-10/agents/im-bots/{imBotId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
],
'parameters' => [
[
- 'name' => 'templateName',
+ 'name' => 'imBotId',
'in' => 'path',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '模板名称',
- 'description' => '模板名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-template',
- ],
- 'examples' => [],
+ 'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 模板删除成功',
- 'schema' => [
- 'title' => '返回删除结构体的结果',
- 'description' => '返回删除模板的结果',
- '$ref' => '#/components/schemas/DeleteTemplateResult',
- ],
- 'examples' => [],
+ 'schema' => ['$ref' => '#/components/schemas/DeleteIMBotNoContent', 'description' => ''],
],
500 => [
- 'schema' => [
- '$ref' => '#/components/schemas/ErrorResult',
- ],
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'summary' => '删除 IM Bot',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"templateId\\": \\"\\",\\n \\"templateName\\": \\"\\",\\n \\"templateVersion\\": \\"\\",\\n \\"cpu\\": 0,\\n \\"memory\\": 0,\\n \\"templateArn\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"statusReason\\": \\"\\",\\n \\"executionRoleArn\\": \\"\\",\\n \\"templateType\\": \\"\\",\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"\\"\\n ],\\n \\"port\\": 0\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"credentialConfiguration\\": {\\n \\"credentialName\\": \\"\\"\\n },\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"sandboxIdleTimeoutInSeconds\\": \\"\\",\\n \\"sandboxTTLInSeconds\\": \\"\\",\\n \\"resourceName\\": \\"\\",\\n \\"mcpOptions\\": {\\n \\"transport\\": \\"streamable-http\\",\\n \\"enabledTools\\": [\\n \\"\\"\\n ]\\n },\\n \\"mcpState\\": {\\n \\"status\\": \\"\\",\\n \\"statusReason\\": \\"\\",\\n \\"accessEndpoint\\": \\"\\"\\n },\\n \\"diskSize\\": 0,\\n \\"description\\": \\"\\",\\n \\"allowAnonymousManage\\": true,\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"enableAgent\\": true,\\n \\"environmentVariables\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"templateConfiguration\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"ossConfiguration\\": [\\n {\\n \\"bucketName\\": \\"\\",\\n \\"prefix\\": \\"\\",\\n \\"mountPoint\\": \\"\\",\\n \\"permission\\": \\"\\",\\n \\"region\\": \\"ch-hangzhou\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '删除模板',
- ],
- 'StopTemplateMCP' => [
- 'summary' => '停止 TemplateMCP 服务。',
- 'path' => '/2025-09-10/templates/{templateName}/mcp/stop',
- 'methods' => [
- 'patch',
- ],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteIMBot',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'DeleteKnowledgeBase' => [
+ 'path' => '/2025-09-10/agents/knowledgebases/{knowledgeBaseName}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
+ 'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
- 'tenantRelevance' => 'tenant',
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
],
'parameters' => [
[
- 'name' => 'templateName',
+ 'name' => 'knowledgeBaseName',
'in' => 'path',
- 'schema' => [
- 'title' => '模板名称'."\n",
- 'description' => '模板名称'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'demo-template',
- ],
+ 'schema' => ['description' => '知识库名称。', 'type' => 'string', 'required' => true, 'example' => 'my-knowledgebase-name'],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'description' => '沙箱模板详情',
- '$ref' => '#/components/schemas/TemplateResult',
- ],
+ 'schema' => ['description' => '删除知识库返回结果。', '$ref' => '#/components/schemas/KnowledgeBaseResult'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'IdempotentParameterMismatch', 'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.', 'description' => ''],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"templateId\\": \\"\\",\\n \\"templateName\\": \\"\\",\\n \\"templateVersion\\": \\"\\",\\n \\"cpu\\": 0,\\n \\"memory\\": 0,\\n \\"templateArn\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"statusReason\\": \\"\\",\\n \\"executionRoleArn\\": \\"\\",\\n \\"templateType\\": \\"\\",\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"\\"\\n ],\\n \\"port\\": 0\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"credentialConfiguration\\": {\\n \\"credentialName\\": \\"\\"\\n },\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"sandboxIdleTimeoutInSeconds\\": \\"\\",\\n \\"sandboxTTLInSeconds\\": \\"\\",\\n \\"resourceName\\": \\"\\",\\n \\"mcpOptions\\": {\\n \\"transport\\": \\"streamable-http\\",\\n \\"enabledTools\\": [\\n \\"\\"\\n ]\\n },\\n \\"mcpState\\": {\\n \\"status\\": \\"\\",\\n \\"statusReason\\": \\"\\",\\n \\"accessEndpoint\\": \\"\\"\\n },\\n \\"diskSize\\": 0,\\n \\"description\\": \\"\\",\\n \\"allowAnonymousManage\\": true,\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"enableAgent\\": true,\\n \\"environmentVariables\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"templateConfiguration\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"ossConfiguration\\": [\\n {\\n \\"bucketName\\": \\"\\",\\n \\"prefix\\": \\"\\",\\n \\"mountPoint\\": \\"\\",\\n \\"permission\\": \\"\\",\\n \\"region\\": \\"ch-hangzhou\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '停止 TemplateMCP 服务',
- 'description' => '停止MCP服务后,会删除对应的MCP资源,MCP地址不可访问',
- ],
- 'ActivateTemplateMCP' => [
- 'summary' => '启用 沙箱 MCP 服务,用于客户端通过MCP协议进行访问沙箱。',
- 'path' => '/2025-09-10/templates/{templateName}/mcp/activate',
- 'methods' => [
- 'patch',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '删除知识库',
+ 'summary' => '删除知识库。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteKnowledgeBase',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Knowledgebase', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/knowledgebases/{#knowledgeBaseName}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"knowledgeBaseId\\": \\"\\",\\n \\"knowledgeBaseName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"provider\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"providerSettings\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"retrieveSettings\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"workspaceId\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'DeleteMemoryCollection' => [
+ 'summary' => '删除记忆存储',
+ 'path' => '/2025-09-10/agents/memory-collections/{memoryCollectionName}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
+ 'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
- 'tenantRelevance' => 'tenant',
+ 'abilityTreeNodes' => ['FEATUREfcUDVD99'],
],
'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '请求Body。',
- 'type' => 'object',
- 'properties' => [
- 'enabledTools' => [
- 'title' => '启用的工具列表'."\n",
- 'description' => '启用的工具列表'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'enabledTools',
- 'type' => 'string',
- 'required' => false,
- 'example' => '["health","run_code","list_contexts","create_context","get_context","delete_context","read_file","write_file","file_system_list","file_system_stat","file_system_download","file_system_mkdir","file_system_move","file_system_remove","file_system_upload","process_exec_cmd","process_tty","process_list","process_stat","process_kill"]',
- ],
- 'required' => false,
- ],
- 'transport' => [
- 'title' => '传输协议',
- 'description' => '传输协议',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'streamable-http',
- 'enum' => [
- 'sse',
- 'streamable-http',
- ],
- ],
+ 'name' => 'memoryCollectionName',
+ 'in' => 'path',
+ 'schema' => ['description' => '记忆存储名称', 'type' => 'string', 'required' => false, 'example' => 'my-memory-1'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['description' => '记忆存储详情', '$ref' => '#/components/schemas/MemoryCollectionResult'],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '删除记忆存储',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteMemoryCollection',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
],
- 'required' => false,
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"memoryCollectionName\\": \\"\\",\\n \\"memoryCollectionId\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"llmConfig\\": {\\n \\"config\\": {\\n \\"model\\": \\"\\"\\n },\\n \\"modelServiceName\\": \\"\\"\\n },\\n \\"embedderConfig\\": {\\n \\"config\\": {\\n \\"model\\": \\"\\"\\n },\\n \\"modelServiceName\\": \\"\\"\\n },\\n \\"vectorStoreConfig\\": {\\n \\"provider\\": \\"\\",\\n \\"config\\": {\\n \\"endpoint\\": \\"\\",\\n \\"instanceName\\": \\"\\",\\n \\"vectorDimension\\": 0,\\n \\"collectionName\\": \\"\\"\\n },\\n \\"mysqlConfig\\": {\\n \\"host\\": \\"\\",\\n \\"dbName\\": \\"\\",\\n \\"collectionName\\": \\"\\",\\n \\"user\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"vectorDimension\\": 0,\\n \\"port\\": 0\\n }\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"executionRoleArn\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"enableConversationHistory\\": true,\\n \\"enableConversationState\\": true,\\n \\"workspaceId\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'DeleteModelProxy' => [
+ 'summary' => '删除模型',
+ 'path' => '/2025-09-10/agents/model-proxies/{modelProxyName}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
+ ],
+ 'parameters' => [
[
- 'name' => 'templateName',
+ 'name' => 'modelProxyName',
'in' => 'path',
- 'schema' => [
- 'title' => '模板名称',
- 'description' => '模板名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'demo-template',
- ],
+ 'schema' => ['title' => 'A short description of struct', 'description' => 'A short description of struct', 'type' => 'string', 'required' => true, 'example' => 'modelProxyName'],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'description' => '沙箱模板详情',
- '$ref' => '#/components/schemas/TemplateResult',
- ],
+ 'schema' => ['description' => 'DeleteModelProxyResult', '$ref' => '#/components/schemas/DeleteModelProxyResult'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '删除模型治理',
+ 'description' => '获取当前用户的所有模板列表,支持按模板类型过滤,支持分页查询。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"templateId\\": \\"\\",\\n \\"templateName\\": \\"\\",\\n \\"templateVersion\\": \\"\\",\\n \\"cpu\\": 0,\\n \\"memory\\": 0,\\n \\"templateArn\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"statusReason\\": \\"\\",\\n \\"executionRoleArn\\": \\"\\",\\n \\"templateType\\": \\"\\",\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"\\"\\n ],\\n \\"port\\": 0\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"credentialConfiguration\\": {\\n \\"credentialName\\": \\"\\"\\n },\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"sandboxIdleTimeoutInSeconds\\": \\"\\",\\n \\"sandboxTTLInSeconds\\": \\"\\",\\n \\"resourceName\\": \\"\\",\\n \\"mcpOptions\\": {\\n \\"transport\\": \\"streamable-http\\",\\n \\"enabledTools\\": [\\n \\"\\"\\n ]\\n },\\n \\"mcpState\\": {\\n \\"status\\": \\"\\",\\n \\"statusReason\\": \\"\\",\\n \\"accessEndpoint\\": \\"\\"\\n },\\n \\"diskSize\\": 0,\\n \\"description\\": \\"\\",\\n \\"allowAnonymousManage\\": true,\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"enableAgent\\": true,\\n \\"environmentVariables\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"templateConfiguration\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"ossConfiguration\\": [\\n {\\n \\"bucketName\\": \\"\\",\\n \\"prefix\\": \\"\\",\\n \\"mountPoint\\": \\"\\",\\n \\"permission\\": \\"\\",\\n \\"region\\": \\"ch-hangzhou\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '启用 TemplateMCP 服务',
- 'description' => '启动后,会自动部署沙箱模板对应的MCP服务函数,MCP服务保证mcp-session-id和SandboxID的唯一映射。MCP client执行工具调用时,MCP服务会自动创建Sandbox',
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"modelProxyId\\": \\"\\",\\n \\"modelProxyName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"modelType\\": \\"\\",\\n \\"proxyMode\\": \\"\\",\\n \\"proxyConfig\\": {\\n \\"policies\\": {\\n \\"requestTimeout\\": 0,\\n \\"numRetries\\": 0,\\n \\"cache\\": true,\\n \\"concurrencyLimit\\": 0,\\n \\"fallbacks\\": [\\n {\\n \\"modelServiceName\\": \\"\\",\\n \\"modelName\\": \\"\\"\\n }\\n ],\\n \\"tokenRateLimiter\\": {\\n \\"tps\\": 0,\\n \\"tpm\\": 0,\\n \\"tph\\": 0,\\n \\"tpd\\": 0\\n },\\n \\"aiGuardrailConfig\\": {\\n \\"checkRequest\\": true,\\n \\"checkResponse\\": true,\\n \\"level\\": \\"\\",\\n \\"maxTextLength\\": 0,\\n \\"blockOnContentModeration\\": true,\\n \\"blockOnSensitiveData\\": true,\\n \\"blockOnPromptAttack\\": true,\\n \\"blockOnMaliciousUrl\\": true,\\n \\"blockOnModelHallucination\\": true\\n }\\n },\\n \\"endpoints\\": [\\n {\\n \\"modelServiceName\\": \\"\\",\\n \\"weight\\": 0,\\n \\"baseUrl\\": \\"\\",\\n \\"modelNames\\": [\\n \\"\\"\\n ]\\n }\\n ]\\n },\\n \\"functionName\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"serviceRegionId\\": \\"\\",\\n \\"endpoint\\": \\"\\",\\n \\"litellmVersion\\": \\"\\",\\n \\"cpu\\": 0,\\n \\"memory\\": 0,\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"statusReason\\": \\"\\",\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"executionRoleArn\\": \\"\\",\\n \\"workspaceId\\": \\"\\"\\n }\\n}","type":"json"}]',
],
- 'CreateSandbox' => [
- 'summary' => '创建 Sandbox。',
- 'description' => '根据模板创建一个新的沙箱实例。沙箱是运行时的执行环境,可以执行代码或运行浏览器。',
- 'path' => '/2025-09-10/sandboxes',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
- 'tags' => [],
+ 'DeleteModelService' => [
+ 'path' => '/2025-09-10/agents/model-services/{modelServiceName}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'delete',
'riskType' => 'none',
- 'chargeType' => 'paid',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
- 'tenantRelevance' => 'publicInformation',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
],
'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'title' => '创建沙箱请求参数',
- 'description' => '创建沙箱请求参数',
- 'required' => true,
- '$ref' => '#/components/schemas/CreateSandboxInput',
- ],
+ 'name' => 'modelServiceName',
+ 'in' => 'path',
+ 'schema' => ['title' => 'A short description of struct', 'description' => 'A short description of struct', 'type' => 'string', 'required' => true, 'example' => 'modelServiceName'],
],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 返回创建的沙箱信息,包括沙箱ID、状态等详细信息',
- 'schema' => [
- 'title' => '返回创建结构体的结果',
- 'description' => '返回创建结构体的结果',
- '$ref' => '#/components/schemas/SandboxResult',
- ],
- 'examples' => [],
+ 'schema' => ['description' => 'DeleteModelServiceResult', '$ref' => '#/components/schemas/DeleteModelServiceResult'],
],
- 500 => [
- 'schema' => [
- '$ref' => '#/components/schemas/ErrorResult',
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '删除模型',
+ 'summary' => '删除模型。',
+ 'description' => '获取当前用户的所有模板列表,支持按模板类型过滤,支持分页查询。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteModelService',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"sandboxId\\": \\"\\",\\n \\"templateId\\": \\"\\",\\n \\"templateName\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"sandboxIdleTimeoutSeconds\\": 0,\\n \\"endedAt\\": \\"\\",\\n \\"sandboxArn\\": \\"\\",\\n \\"sandboxIdleTTLInSeconds\\": 0,\\n \\"metadata\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n}","type":"json"}]',
- 'title' => '创建 Sandbox',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"modelServiceName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"modelType\\": \\"\\",\\n \\"provider\\": \\"\\",\\n \\"providerSettings\\": {\\n \\"baseUrl\\": \\"\\",\\n \\"apiKey\\": \\"\\",\\n \\"modelNames\\": [\\n \\"\\"\\n ]\\n },\\n \\"status\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"statusReason\\": \\"\\",\\n \\"modelServiceId\\": \\"\\",\\n \\"modelInfoConfigs\\": [\\n {\\n \\"modelName\\": \\"\\",\\n \\"modelFeatures\\": {\\n \\"vision\\": true,\\n \\"agentThought\\": true,\\n \\"toolCall\\": true,\\n \\"multiToolCall\\": true,\\n \\"streamToolCall\\": true\\n },\\n \\"modelProperties\\": {\\n \\"contextSize\\": 0\\n },\\n \\"modelParameterRules\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"type\\": \\"\\",\\n \\"default\\": \\"\\",\\n \\"min\\": 0,\\n \\"max\\": 0,\\n \\"required\\": true\\n }\\n ]\\n }\\n ],\\n \\"workspaceId\\": \\"\\"\\n }\\n}","type":"json"}]',
],
- 'GetSandbox' => [
- 'summary' => '获取 Sandbox。',
- 'description' => '根据沙箱ID获取指定沙箱的详细信息,包括状态、配置等。',
+ 'DeleteSandbox' => [
+ 'summary' => '删除Sandbox实例。',
'path' => '/2025-09-10/sandboxes/{sandboxId}',
- 'methods' => [
- 'get',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
- 'schemes' => [
- 'https',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
],
+ 'parameters' => [
+ [
+ 'name' => 'sandboxId',
+ 'in' => 'path',
+ 'schema' => ['title' => '沙箱 ID', 'description' => '沙箱 ID', 'type' => 'string', 'required' => true, 'example' => 'sb-1234567'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['title' => '沙箱删除结果', 'description' => '沙箱删除结果', '$ref' => '#/components/schemas/DeleteSandboxResult'],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '删除 Sandbox',
+ 'description' => '根据模板创建一个新的沙箱实例。沙箱是运行时的执行环境,可以执行代码或运行浏览器。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteSandbox',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"sandboxId\\": \\"01KAWBP6JQD0J3Z34BP4WMX1KG\\",\\n \\"templateId\\": \\"8d409d30-cac1-445a-95d5-476c47780336.schema\\",\\n \\"templateName\\": \\"my-template\\",\\n \\"status\\": \\"READY\\",\\n \\"createdAt\\": \\"2025-11-26T10:54:17.770719+08:00\\",\\n \\"lastUpdatedAt\\": \\"2025-11-26T10:54:17.770719+08:00\\",\\n \\"sandboxIdleTimeoutSeconds\\": 1800,\\n \\"endedAt\\": \\"2025-11-26T10:54:17.770719+08:00\\",\\n \\"sandboxArn\\": \\"acs:ram::1760720386195983:role/aliyunfcdefaultrole\\",\\n \\"sandboxIdleTTLInSeconds\\": 0,\\n \\"metadata\\": {}\\n }\\n}","type":"json"}]',
+ ],
+ 'DeleteTemplate' => [
+ 'path' => '/2025-09-10/templates/{templateName}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
],
'parameters' => [
[
- 'name' => 'sandboxId',
+ 'name' => 'templateName',
'in' => 'path',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '沙箱ID',
- 'description' => '沙箱ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'sb-1234567890abcdef',
- ],
+ 'schema' => ['title' => '模板名称', 'description' => '模板名称', 'type' => 'string', 'required' => true, 'example' => 'my-template'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 返回指定沙箱的完整信息,包括状态、配置等',
- 'schema' => [
- 'title' => '返回获取结构体的结果',
- 'description' => '返回获取结构体的结果',
- '$ref' => '#/components/schemas/SandboxResult',
- ],
+ 'schema' => ['title' => '返回删除结构体的结果', 'description' => '返回删除模板的结果', '$ref' => '#/components/schemas/DeleteTemplateResult'],
'examples' => [],
],
500 => [
- 'schema' => [
- '$ref' => '#/components/schemas/ErrorResult',
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '删除模板',
+ 'summary' => '删除模板。',
+ 'description' => '删除指定的模板。删除后,该模板将无法再用于创建新的沙箱。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"sandboxId\\": \\"\\",\\n \\"templateId\\": \\"\\",\\n \\"templateName\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"sandboxIdleTimeoutSeconds\\": 0,\\n \\"endedAt\\": \\"\\",\\n \\"sandboxArn\\": \\"\\",\\n \\"sandboxIdleTTLInSeconds\\": 0,\\n \\"metadata\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n}","type":"json"}]',
- 'title' => '获取 Sandbox',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"templateId\\": \\"996ffd5e-003f-4700-9f24-9e2a1c19019b.schema\\",\\n \\"templateName\\": \\"browser-1767874121726\\",\\n \\"templateVersion\\": \\"预留\\",\\n \\"cpu\\": 4,\\n \\"memory\\": 4096,\\n \\"templateArn\\": \\"acs:agentrun:cn-hangzhou:12345678:templates/efb6de2f-1814-42a2-b7f3-474a0e0b3a48\\",\\n \\"createdAt\\": \\"2026-01-15T17:12:59.375168+08:00\\",\\n \\"lastUpdatedAt\\": \\"2026-01-15T17:12:59.375168+08:00\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"SDK Error\\",\\n \\"executionRoleArn\\": \\"acs:agentrun:cn-hangzhou:12345678:templates/efb6de2f-1814-42a2-b7f3-474a0e0b3a48\\",\\n \\"templateType\\": \\"Browser\\",\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"/usr/local/bin/entrypoint.sh\\"\\n ],\\n \\"registryConfig\\": {\\n \\"authConfig\\": {\\n \\"userName\\": \\"admin\\",\\n \\"password\\": \\"abc***\\"\\n },\\n \\"certConfig\\": {\\n \\"insecure\\": false,\\n \\"rootCaCertBase64\\": \\"cm9vdF9jYV9jZXJ0X2Jhc2U2NA==\\"\\n },\\n \\"networkConfig\\": {\\n \\"vpcId\\": \\"vpc-xxxxxxxxxxxxx\\",\\n \\"vSwitchId\\": \\"vsw-xxxxxxxxxxxxx\\",\\n \\"securityGroupId\\": \\"sg-xxxxxxxxxxxxx\\"\\n }\\n },\\n \\"port\\": 5000\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"credentialConfiguration\\": {\\n \\"credentialName\\": \\"deepagent-key\\"\\n },\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"sandboxIdleTimeoutInSeconds\\": \\"1800\\",\\n \\"sandboxTTLInSeconds\\": \\"已弃用\\",\\n \\"resourceName\\": \\"agentrun-f2570dd4-c8a2-452c-8bd5-4ef74b0a69b5\\",\\n \\"mcpOptions\\": {\\n \\"transport\\": \\"streamable-http\\",\\n \\"enabledTools\\": [\\n \\"execute_code\\"\\n ]\\n },\\n \\"mcpState\\": {\\n \\"status\\": \\"CREATING\\",\\n \\"statusReason\\": \\"SDK Error\\",\\n \\"accessEndpoint\\": \\"/mcp\\"\\n },\\n \\"diskSize\\": 10240,\\n \\"description\\": \\"template描述\\",\\n \\"allowAnonymousManage\\": true,\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"enableAgent\\": true,\\n \\"workspaceId\\": \\"\\",\\n \\"scalingStatus\\": {\\n \\"minInstances\\": 1,\\n \\"targetInstances\\": 2,\\n \\"currentInstances\\": 2,\\n \\"scheduledPolicies\\": [\\n {\\n \\"name\\": \\"scale-up-morning\\",\\n \\"startTime\\": \\"2024-01-01T08:00:00\\",\\n \\"endTime\\": \\"2024-01-01T08:00:00\\",\\n \\"scheduleExpression\\": \\"cron(0 8 * * ? *)\\",\\n \\"timeZone\\": \\"Asia/Shanghai\\",\\n \\"target\\": 20\\n }\\n ],\\n \\"currentError\\": \\"error\\"\\n },\\n \\"environmentVariables\\": {\\n \\"key\\": \\"{\'FCTEST_IDE_ENV\': \'IDE\'}\\"\\n },\\n \\"templateConfiguration\\": {\\n \\"key\\": \\"{\\\\\\"example\\\\\\":\\\\\\"test\\\\\\"}\\"\\n },\\n \\"ossConfiguration\\": [\\n {\\n \\"bucketName\\": \\"a-test-oss\\",\\n \\"prefix\\": \\"/\\",\\n \\"mountPoint\\": \\"/mnt/oss1\\",\\n \\"permission\\": \\"READ_WRITE\\",\\n \\"region\\": \\"ch-hangzhou\\",\\n \\"endpoint\\": \\"\\"\\n }\\n ],\\n \\"enablePreStop\\": true,\\n \\"preStopTimeoutInSeconds\\": 0\\n }\\n}","type":"json"}]',
],
- 'ListSandboxes' => [
- 'summary' => '列出 Sandbox。',
- 'description' => '获取当前用户的所有沙箱列表,支持按模板名称过滤,支持分页查询。',
- 'path' => '/2025-09-10/sandboxes',
- 'methods' => [
- 'get',
+ 'DeleteTool' => [
+ 'summary' => 'Delete a tool',
+ 'description' => '删除指定的工具。删除操作不可逆,请谨慎操作。删除工具后,所有引用该工具的 Agent 将无法继续使用该工具。',
+ 'path' => '/2025-09-10/agents/tools/{toolName}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
+ 'tags' => [],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
- 'schemes' => [
- 'https',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY', 'FEATUREfcVF016G'],
+ 'tenantRelevance' => 'publicInformation',
],
+ 'parameters' => [
+ [
+ 'name' => 'toolName',
+ 'in' => 'path',
+ 'schema' => ['title' => '工具名称', 'description' => '工具名称', 'type' => 'string', 'required' => false, 'example' => 'my-mcp-tool'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'description' => '删除成功,返回操作结果',
+ 'headers' => [],
+ 'schema' => ['description' => '工具返回结果', '$ref' => '#/components/schemas/ToolResult'],
+ 'examples' => [],
+ ],
+ ],
+ 'title' => '删除工具',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteTool',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Tool', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/tools/{#toolName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"toolId\\": \\"tool-abc123\\",\\n \\"toolName\\": \\"my-mcp-tool\\",\\n \\"workspaceId\\": \\"workspace-xyz789\\",\\n \\"description\\": \\"这是一个用于处理文档的 MCP 工具\\",\\n \\"toolType\\": \\"MCP\\",\\n \\"createMethod\\": \\"MCP_REMOTE\\",\\n \\"protocolSpec\\": \\"\\",\\n \\"mcpConfig\\": {\\n \\"sessionAffinity\\": \\"MCP_STREAMABLE\\",\\n \\"sessionAffinityConfig\\": \\"\\",\\n \\"proxyEnabled\\": true,\\n \\"mcpProxyConfiguration\\": {\\n \\"hooks\\": [\\n {\\n \\"url\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"apiVersion\\": \\"\\",\\n \\"enabled\\": true,\\n \\"timeout\\": 0,\\n \\"event\\": \\"\\",\\n \\"headers\\": {\\n \\"key\\": \\"\\"\\n }\\n }\\n ]\\n },\\n \\"boundConfiguration\\": {\\n \\"boundTools\\": [\\n {\\n \\"toolName\\": \\"my-tool\\",\\n \\"method\\": \\"POST\\",\\n \\"path\\": \\"/api/v1/tools\\",\\n \\"apis\\": [\\n {\\n \\"method\\": \\"\\",\\n \\"path\\": \\"\\"\\n }\\n ]\\n }\\n ]\\n }\\n },\\n \\"status\\": \\"Running\\",\\n \\"statusReason\\": \\"\\",\\n \\"executionRoleArn\\": \\"acs:ram::123456789:role/AliyunFCDefaultRole\\",\\n \\"artifactType\\": \\"Code\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"codeConfiguration\\": {\\n \\"zipFile\\": \\"UEsDBAoAAAAAANF\\",\\n \\"ossBucketName\\": \\"my-agent-code-bucket\\",\\n \\"ossObjectName\\": \\"agent-code-v1.0.zip\\",\\n \\"checksum\\": \\"1234567890123456789\\",\\n \\"language\\": \\"python3.12\\",\\n \\"command\\": [\\n \\"\\"\\n ]\\n },\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"/usr/local/bin/entrypoint.sh\\"\\n ],\\n \\"registryConfig\\": {\\n \\"authConfig\\": {\\n \\"userName\\": \\"admin\\",\\n \\"password\\": \\"abc***\\"\\n },\\n \\"certConfig\\": {\\n \\"insecure\\": false,\\n \\"rootCaCertBase64\\": \\"cm9vdF9jYV9jZXJ0X2Jhc2U2NA==\\"\\n },\\n \\"networkConfig\\": {\\n \\"vpcId\\": \\"vpc-xxxxxxxxxxxxx\\",\\n \\"vSwitchId\\": \\"vsw-xxxxxxxxxxxxx\\",\\n \\"securityGroupId\\": \\"sg-xxxxxxxxxxxxx\\"\\n }\\n },\\n \\"port\\": 5000\\n },\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n },\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"cpu\\": 0.5,\\n \\"memory\\": 512,\\n \\"port\\": 8080,\\n \\"createdAt\\": \\"2025-09-10T10:00:00Z\\",\\n \\"updatedAt\\": \\"2025-09-10T12:00:00Z\\",\\n \\"credentialName\\": \\"my-credential\\",\\n \\"timeout\\": 300,\\n \\"environmentVariables\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"agentIdentityEnabled\\": true,\\n \\"agentIdentityConfig\\": {\\n \\"authorizationEnabled\\": true,\\n \\"credentialProviderType\\": \\"\\",\\n \\"credentialProviderArn\\": \\"\\"\\n }\\n }\\n}","type":"json"}]',
+ ],
+ 'DeleteWorkspace' => [
+ 'path' => '/2025-09-10/workspaces/{workspaceId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'workspaceId',
+ 'in' => 'path',
+ 'schema' => ['description' => '工作空间ID', 'type' => 'string', 'required' => false, 'example' => 'ws-1234567890abcdef'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['description' => '结果', '$ref' => '#/components/schemas/WorkspaceResult'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '删除工作空间',
+ 'summary' => '删除工作空间',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'produces' => [
- 'application/json',
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteWorkspace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Workspace', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"workspaceId\\": \\"\\",\\n \\"workspaceArn\\": \\"\\",\\n \\"name\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"isDefault\\": true,\\n \\"resourceGroupId\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"updatedAt\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'GetAccessToken' => [
+ 'path' => '/2025-09-10/agents/accessToken',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'tags' => [],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'list',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY', 'FEATUREfcVF016G'],
],
'parameters' => [
[
- 'name' => 'templateName',
+ 'name' => 'resourceName',
'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '模板名称',
- 'description' => '模板名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'templateName',
- ],
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => '智能体运行时的资源名称', 'type' => 'string', 'required' => false, 'example' => 'COUPON_OPERATION_CALLBACK'],
'examples' => [],
],
[
- 'name' => 'templateType',
+ 'name' => 'resourceType',
'in' => 'query',
'schema' => [
- 'title' => '模板类型',
- 'description' => '模板类型',
+ 'description' => '资源类型',
'type' => 'string',
'required' => false,
- 'example' => 'TASK',
+ 'example' => 'SceneTestingTask',
+ 'enum' => ['runtime', 'litellm', 'tool', 'template', 'sandbox'],
],
],
[
- 'name' => 'maxResults',
+ 'name' => 'resourceId',
'in' => 'query',
- 'allowEmptyValue' => false,
+ 'schema' => ['description' => '资源ID。', 'type' => 'string', 'required' => false, 'example' => 'mod-kw1750tjqs94n9k37o5hjk'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'title' => '最大返回数量',
- 'description' => '页码',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1000',
+ 'type' => 'object',
+ 'properties' => [
+ 'code' => ['description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
+ 'data' => [
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'accessToken' => ['description' => '个人访问令牌。 '."\n"
+ .'使用阿里云AK+SK或使用STS临时授权方式不需要传该字段'."\n"
+ ."\n", 'type' => 'string', 'example' => 'accessToken'],
+ ],
+ ],
+ ],
+ 'description' => '',
],
- 'examples' => [],
],
+ ],
+ 'title' => '获取accessToken',
+ 'summary' => '获取accessToken。',
+ 'description' => '根据会话ID获取指定内存会话的详细信息,包括会话中的事件记录、时间戳等。用于查看和管理对话历史。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
[
- 'name' => 'nextToken',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '分页Token',
- 'description' => '分页游标。 说明 该字段不为空,表示有更多数据。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dnLkmeaJc9vHgbzREh2l0J4dD+2BRJj42DLT6GrZysw=',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetAccessToken',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"accessToken\\": \\"accessToken\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'GetAgentRuntime' => [
+ 'path' => '/2025-09-10/agents/runtimes/{agentRuntimeId}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'tags' => [],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'agentRuntimeId',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '智能体运行时ID', 'description' => '智能体运行时ID', 'type' => 'string', 'required' => true, 'example' => '12345678-1234-1234-1234-123456789abc'],
'examples' => [],
],
[
- 'name' => 'status',
+ 'name' => 'agentRuntimeVersion',
'in' => 'query',
- 'schema' => [
- 'title' => '状态',
- 'description' => '状态',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'CREATING',
- ],
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '智能体运行时版本', 'description' => '智能体运行时版本', 'type' => 'string', 'required' => false, 'example' => 'v1.0.0'],
+ 'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 返回沙箱列表,包含分页信息和沙箱详情',
- 'schema' => [
- 'title' => '返回列表结构体的结果',
- 'description' => '返回列表结构体的结果',
- '$ref' => '#/components/schemas/ListSandboxesResult',
- ],
+ 'schema' => ['title' => '返回获取结构体的结果', 'description' => '返回获取结构体的结果', '$ref' => '#/components/schemas/AgentRuntimeResult'],
'examples' => [],
],
- 500 => [
- 'schema' => [
- '$ref' => '#/components/schemas/ErrorResult',
+ ],
+ 'title' => '获取智能体运行时',
+ 'summary' => '获取智能体运行时',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetAgentRuntime',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Agent', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/{#runtimeName}'],
+ ],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"nextToken\\": \\"\\",\\n \\"items\\": [\\n {\\n \\"sandboxId\\": \\"\\",\\n \\"templateId\\": \\"\\",\\n \\"templateName\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"sandboxIdleTimeoutSeconds\\": 0,\\n \\"endedAt\\": \\"\\",\\n \\"sandboxArn\\": \\"\\",\\n \\"sandboxIdleTTLInSeconds\\": 0,\\n \\"metadata\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '列出 Sandbox',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"agentRuntimeId\\": \\"ar-1234567890abcdef\\",\\n \\"agentRuntimeName\\": \\"my-agent-runtime\\",\\n \\"agentRuntimeArn\\": \\"acs:agentrun:cn-hangzhou:1760720386195983:runtimes/7a1b6d39-9f8f-4ce2-b9c9-6db1b0b9e169\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Runtime is ready for use\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"description\\": \\"AI agent runtime for customer service automation\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/AgentRunExecutionRole\\",\\n \\"credentialName\\": \\"my-credential\\",\\n \\"externalAgentEndpointUrl\\": \\"https://external-agent.example.com/api\\",\\n \\"agentRuntimeVersion\\": \\"1\\",\\n \\"artifactType\\": \\"Code\\",\\n \\"codeConfiguration\\": {\\n \\"zipFile\\": \\"UEsDBAoAAAAAANF\\",\\n \\"ossBucketName\\": \\"my-agent-code-bucket\\",\\n \\"ossObjectName\\": \\"agent-code-v1.0.zip\\",\\n \\"checksum\\": \\"1234567890123456789\\",\\n \\"language\\": \\"python3.12\\",\\n \\"command\\": [\\n \\"\\"\\n ]\\n },\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"/usr/local/bin/entrypoint.sh\\"\\n ],\\n \\"registryConfig\\": {\\n \\"authConfig\\": {\\n \\"userName\\": \\"admin\\",\\n \\"password\\": \\"abc***\\"\\n },\\n \\"certConfig\\": {\\n \\"insecure\\": false,\\n \\"rootCaCertBase64\\": \\"cm9vdF9jYV9jZXJ0X2Jhc2U2NA==\\"\\n },\\n \\"networkConfig\\": {\\n \\"vpcId\\": \\"vpc-xxxxxxxxxxxxx\\",\\n \\"vSwitchId\\": \\"vsw-xxxxxxxxxxxxx\\",\\n \\"securityGroupId\\": \\"sg-xxxxxxxxxxxxx\\"\\n }\\n },\\n \\"port\\": 5000\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"protocolConfiguration\\": {\\n \\"type\\": \\"HTTP\\",\\n \\"protocolSettings\\": [\\n {\\n \\"type\\": \\"\\",\\n \\"name\\": \\"\\",\\n \\"config\\": \\"\\",\\n \\"path\\": \\"\\",\\n \\"pathPrefix\\": \\"\\",\\n \\"headers\\": \\"\\",\\n \\"method\\": \\"\\",\\n \\"inputBodyJsonSchema\\": \\"\\",\\n \\"outputBodyJsonSchema\\": \\"\\",\\n \\"requestContentType\\": \\"\\",\\n \\"responseContentType\\": \\"\\",\\n \\"A2AAgentCard\\": \\"\\",\\n \\"a2aAgentCard\\": \\"\\",\\n \\"a2aAgentCardUrl\\": \\"\\"\\n }\\n ]\\n },\\n \\"cpu\\": 2,\\n \\"memory\\": 2048,\\n \\"diskSize\\": 0,\\n \\"port\\": 8080,\\n \\"sessionConcurrencyLimitPerInstance\\": 100,\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"healthCheckConfiguration\\": {\\n \\"httpGetUrl\\": \\"/ready\\",\\n \\"initialDelaySeconds\\": 30,\\n \\"periodSeconds\\": 30,\\n \\"timeoutSeconds\\": 3,\\n \\"failureThreshold\\": 3,\\n \\"successThreshold\\": 1\\n },\\n \\"sessionIdleTimeoutSeconds\\": 3600,\\n \\"enableSessionIsolation\\": false,\\n \\"disableOndemand\\": false,\\n \\"disableSessionAffinity\\": false,\\n \\"sessionAffinityType\\": \\"GENERATED_COOKIE\\",\\n \\"headerFieldName\\": \\"x-agentrun-session-id\\",\\n \\"resourceGroupId\\": \\"\\",\\n \\"workspaceId\\": \\"ws-1234567890abcdef\\",\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n },\\n \\"environmentVariables\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"systemTags\\": [\\n \\"\\"\\n ],\\n \\"agentIdentityEnabled\\": \\"\\",\\n \\"agentIdentityConfig\\": {\\n \\"identityProviderName\\": \\"\\",\\n \\"workloadIdentityName\\": \\"\\"\\n },\\n \\"edition\\": \\"\\"\\n }\\n}","type":"json"}]',
],
- 'StopSandbox' => [
- 'summary' => '停止 Sandbox。',
- 'description' => '停止指定的沙箱实例。停止后,沙箱将进入TERMINATED状态。',
- 'path' => '/2025-09-10/sandboxes/{sandboxId}/stop',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'GetAgentRuntimeEndpoint' => [
+ 'path' => '/2025-09-10/agents/runtimes/{agentRuntimeId}/endpoints/{agentRuntimeEndpointId}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'delete',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcVF016G',
- ],
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
],
'parameters' => [
[
- 'name' => 'sandboxId',
+ 'name' => 'agentRuntimeId',
'in' => 'path',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '沙箱ID',
- 'description' => '沙箱ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'sb-1234567890abcdef',
- ],
+ 'schema' => ['title' => '智能体运行时ID', 'description' => '智能体运行时ID', 'type' => 'string', 'required' => true, 'example' => '12345678-1234-1234-1234-123456789abc'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'agentRuntimeEndpointId',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '智能体运行时端点ID', 'description' => '智能体运行时端点ID', 'type' => 'string', 'required' => true, 'example' => '87654321-4321-4321-4321-210987654321'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 沙箱停止成功',
- 'schema' => [
- 'description' => '返回删除结构体的结果',
- '$ref' => '#/components/schemas/StopSandboxResult',
- ],
+ 'schema' => ['title' => '返回获取结构体的结果', 'description' => '返回获取结构体的结果', '$ref' => '#/components/schemas/AgentRuntimeEndpointResult'],
'examples' => [],
],
500 => [
- 'schema' => [
- '$ref' => '#/components/schemas/ErrorResult',
- ],
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"sandboxId\\": \\"\\",\\n \\"templateId\\": \\"\\",\\n \\"templateName\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"sandboxIdleTimeoutSeconds\\": 0,\\n \\"endedAt\\": \\"\\",\\n \\"sandboxArn\\": \\"\\",\\n \\"sandboxIdleTTLInSeconds\\": 0,\\n \\"metadata\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n}","type":"json"}]',
- 'title' => '停止 Sandbox',
- ],
- 'DeleteSandbox' => [
- 'summary' => '删除Sandbox实例。',
- 'path' => '/2025-09-10/sandboxes/{sandboxId}',
- 'methods' => [
- 'delete',
+ 'title' => '获取智能体运行时访问端点',
+ 'summary' => '获取智能体运行时访问端点',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetAgentRuntimeEndpoint',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Agent', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/{#runtimeName}/runtime-endpoints/{#endpointName}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"agentRuntimeId\\": \\"ar-1234567890abcdef\\",\\n \\"agentRuntimeEndpointId\\": \\"are-1234567890abcdef\\",\\n \\"agentRuntimeEndpointArn\\": \\"acs:agentrun:cn-hangzhou:1760720386195983:runtime-endpoints/e56d483c-db80-4116-9ec4-25f16f5facfd\\",\\n \\"agentRuntimeEndpointName\\": \\"production-endpoint\\",\\n \\"description\\": \\"Production endpoint for customer service agent\\",\\n \\"status\\": \\"ACTIVE\\",\\n \\"statusReason\\": \\"Endpoint is active and ready\\",\\n \\"targetVersion\\": \\"LATEST\\",\\n \\"routingConfiguration\\": {\\n \\"versionWeights\\": [\\n {\\n \\"version\\": \\"\\",\\n \\"weight\\": 0\\n }\\n ]\\n },\\n \\"endpointPublicUrl\\": \\"https://ar-1234567890abcdef.cn-hangzhou.agentrun.aliyuncs.com\\",\\n \\"disablePublicNetworkAccess\\": true,\\n \\"scalingStatus\\": {\\n \\"minInstances\\": 1,\\n \\"targetInstances\\": 2,\\n \\"currentInstances\\": 2,\\n \\"scheduledPolicies\\": [\\n {\\n \\"name\\": \\"scale-up-morning\\",\\n \\"startTime\\": \\"2024-01-01T08:00:00\\",\\n \\"endTime\\": \\"2024-01-01T08:00:00\\",\\n \\"scheduleExpression\\": \\"cron(0 8 * * ? *)\\",\\n \\"timeZone\\": \\"Asia/Shanghai\\",\\n \\"target\\": 20\\n }\\n ],\\n \\"currentError\\": \\"error\\"\\n }\\n }\\n}","type":"json"}]',
+ ],
+ 'GetBrowser' => [
+ 'path' => '/2025-09-10/agents/browsers/{browserId}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
- 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
- 'name' => 'sandboxId',
+ 'name' => 'browserId',
'in' => 'path',
- 'schema' => [
- 'title' => '沙箱 ID',
- 'description' => '沙箱 ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'sb-1234567',
- ],
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '浏览器ID', 'description' => '浏览器ID', 'type' => 'string', 'required' => true, 'example' => '12345678-1234-1234-1234-123456789abc'],
+ 'examples' => [],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'title' => '沙箱删除结果',
- 'description' => '沙箱删除结果',
- '$ref' => '#/components/schemas/DeleteSandboxResult',
- ],
+ 'schema' => ['title' => '返回获取结构体的结果', 'description' => '返回获取结构体的结果', '$ref' => '#/components/schemas/BrowserResult'],
+ 'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"sandboxId\\": \\"\\",\\n \\"templateId\\": \\"\\",\\n \\"templateName\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"sandboxIdleTimeoutSeconds\\": 0,\\n \\"endedAt\\": \\"\\",\\n \\"sandboxArn\\": \\"\\",\\n \\"sandboxIdleTTLInSeconds\\": 0,\\n \\"metadata\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n}","type":"json"}]',
- 'title' => '删除 Sandbox',
- 'description' => '根据模板创建一个新的沙箱实例。沙箱是运行时的执行环境,可以执行代码或运行浏览器。',
- ],
- 'CreateModelService' => [
- 'summary' => '创建模型。',
- 'path' => '/2025-09-10/agents/model-services',
- 'methods' => [
- 'post',
+ 'title' => '获取浏览器沙箱',
+ 'summary' => '获取浏览器沙箱',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetBrowser',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"browserId\\": \\"browser-1234567890abcdef\\",\\n \\"browserName\\": \\"my-browser\\",\\n \\"description\\": \\"Web automation browser for testing\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Browser is ready for use\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/BrowserExecutionRole\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"recording\\": {\\n \\"enabled\\": true,\\n \\"ossLocation\\": {\\n \\"bucket\\": \\"\\",\\n \\"prefix\\": \\"\\"\\n }\\n },\\n \\"memory\\": 2048,\\n \\"credentialId\\": \\"cred-1234567890abcdef\\",\\n \\"cpu\\": 2,\\n \\"tenantId\\": \\"tenant-1234567890abcdef\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'GetCodeInterpreter' => [
+ 'path' => '/2025-09-10/agents/code-interpreters/{codeInterpreterId}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
- 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
- 'tenantRelevance' => 'publicInformation',
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
],
'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '创建代码解释器所需的输入参数',
- 'required' => false,
- '$ref' => '#/components/schemas/CreateModelServiceInput',
- ],
+ 'name' => 'codeInterpreterId',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '代码解释器ID', 'description' => '代码解释器ID', 'type' => 'string', 'required' => true, 'example' => '12345678-1234-1234-1234-123456789abc'],
+ 'examples' => [],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'description' => 'ModelServiceResult',
- '$ref' => '#/components/schemas/ModelServiceResult',
- ],
+ 'schema' => ['title' => '返回获取结构体的结果', 'description' => '返回获取结构体的结果', '$ref' => '#/components/schemas/CodeInterpreterResult'],
+ 'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"modelServiceName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"modelType\\": \\"\\",\\n \\"provider\\": \\"\\",\\n \\"providerSettings\\": {\\n \\"baseUrl\\": \\"\\",\\n \\"apiKey\\": \\"\\",\\n \\"modelNames\\": [\\n \\"\\"\\n ]\\n },\\n \\"status\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"statusReason\\": \\"\\",\\n \\"modelInfoConfigs\\": [\\n {\\n \\"modelName\\": \\"\\",\\n \\"modelFeatures\\": {\\n \\"vision\\": true,\\n \\"agentThought\\": true,\\n \\"toolCall\\": true,\\n \\"multiToolCall\\": true,\\n \\"streamToolCall\\": true\\n },\\n \\"modelProperties\\": {\\n \\"contextSize\\": 0\\n },\\n \\"modelParameterRules\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"type\\": \\"\\",\\n \\"default\\": \\"\\",\\n \\"min\\": 0,\\n \\"max\\": 0,\\n \\"required\\": true\\n }\\n ]\\n }\\n ],\\n \\"modelServiceId\\": \\"\\"\\n }\\n}","type":"json"}]',
- 'title' => '创建模型',
- 'description' => '获取当前用户的所有模板列表,支持按模板类型过滤,支持分页查询。',
- ],
- 'UpdateModelService' => [
- 'summary' => '更新模型。',
- 'path' => '/2025-09-10/agents/model-services/{modelServiceName}',
- 'methods' => [
- 'put',
+ 'title' => '获取代码解释器',
+ 'summary' => '获取代码解释器',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetCodeInterpreter',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"codeInterpreterId\\": \\"ci-1234567890abcdef\\",\\n \\"codeInterpreterName\\": \\"my-code-interpreter\\",\\n \\"description\\": \\"Python code interpreter for data analysis\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/CodeInterpreterExecutionRole\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Code interpreter is ready for use\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"memory\\": 2048,\\n \\"cpu\\": 2,\\n \\"tenantId\\": \\"tenant-1234567890abcdef\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'GetCredential' => [
+ 'path' => '/2025-09-10/agents/credentials/{credentialName}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
- 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY', 'FEATUREfcVF016G'],
],
'parameters' => [
[
- 'name' => 'modelServiceName',
+ 'name' => 'credentialName',
'in' => 'path',
- 'schema' => [
- 'description' => 'modelServiceName',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'modelServiceName',
- ],
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'credentialName', 'type' => 'string', 'required' => false, 'example' => 'credentialName'],
+ 'examples' => [],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ 'schema' => ['description' => 'CredentialResult', '$ref' => '#/components/schemas/CredentialResult'],
+ 'examples' => [],
],
+ ],
+ 'title' => '获取凭证信息',
+ 'summary' => '获取凭证信息。',
+ 'description' => '根据会话ID获取指定内存会话的详细信息,包括会话中的事件记录、时间戳等。用于查看和管理对话历史。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '请求体',
- 'required' => false,
- '$ref' => '#/components/schemas/UpdateModelServiceInput',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetCredential',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Credential', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/credentials/{#credentialName}'],
+ ],
],
],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"credentialId\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"credentialAuthType\\": \\"\\",\\n \\"credentialSourceType\\": \\"\\",\\n \\"enabled\\": true,\\n \\"credentialSecret\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"updatedAt\\": \\"\\",\\n \\"credentialPublicConfig\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"relatedResources\\": [\\n {\\n \\"resourceId\\": \\"\\",\\n \\"resourceName\\": \\"\\",\\n \\"resourceType\\": \\"\\"\\n }\\n ],\\n \\"workspaceId\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'GetCustomDomain' => [
+ 'path' => '/2025-09-10/agents/custom-domains/{domainName}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'tags' => [],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY', 'FEATUREfcVF016G'],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'domainName',
+ 'in' => 'path',
+ 'schema' => ['description' => '自定义域名', 'type' => 'string', 'required' => false, 'example' => 'mydomain.com'],
+ ],
+ ],
'responses' => [
200 => [
- 'schema' => [
- 'description' => 'ModelServiceResult',
- '$ref' => '#/components/schemas/ModelServiceResult',
- ],
+ 'headers' => [],
+ 'schema' => ['description' => '自定义域名信息', '$ref' => '#/components/schemas/CustomDomainResult'],
+ 'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"modelServiceName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"modelType\\": \\"\\",\\n \\"provider\\": \\"\\",\\n \\"providerSettings\\": {\\n \\"baseUrl\\": \\"\\",\\n \\"apiKey\\": \\"\\",\\n \\"modelNames\\": [\\n \\"\\"\\n ]\\n },\\n \\"status\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"statusReason\\": \\"\\",\\n \\"modelInfoConfigs\\": [\\n {\\n \\"modelName\\": \\"\\",\\n \\"modelFeatures\\": {\\n \\"vision\\": true,\\n \\"agentThought\\": true,\\n \\"toolCall\\": true,\\n \\"multiToolCall\\": true,\\n \\"streamToolCall\\": true\\n },\\n \\"modelProperties\\": {\\n \\"contextSize\\": 0\\n },\\n \\"modelParameterRules\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"type\\": \\"\\",\\n \\"default\\": \\"\\",\\n \\"min\\": 0,\\n \\"max\\": 0,\\n \\"required\\": true\\n }\\n ]\\n }\\n ],\\n \\"modelServiceId\\": \\"\\"\\n }\\n}","type":"json"}]',
- 'title' => '更新模型',
- 'description' => '获取当前用户的所有模板列表,支持按模板类型过滤,支持分页查询。',
- ],
- 'GetModelService' => [
- 'summary' => '获取模型信息。',
- 'path' => '/2025-09-10/agents/model-services/{modelServiceName}',
- 'methods' => [
- 'get',
+ 'title' => '获取自定义域名',
+ 'summary' => '获取自定义域名配置。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetCustomDomain',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"domainName\\": \\"example.com\\",\\n \\"description\\": \\"\\",\\n \\"protocol\\": \\"HTTP\\",\\n \\"routeConfig\\": {\\n \\"routes\\": [\\n {\\n \\"path\\": \\"/login\\",\\n \\"resourceName\\": \\"\\",\\n \\"resourceType\\": \\"runtime\\",\\n \\"agentRuntimeEndpointName\\": \\"\\",\\n \\"compatibleProtocol\\": \\"native\\",\\n \\"flowEndpointName\\": \\"Default\\",\\n \\"methods\\": [\\n \\"\\"\\n ],\\n \\"removeBasePathOnForward\\": true\\n }\\n ]\\n },\\n \\"certConfig\\": {\\n \\"certName\\": \\"my-cert\\",\\n \\"certificate\\": \\"-----BEGIN CERTIFICATE-----\\\\\\\\nxxxxx\\\\\\\\n-----END CERTIFICATE-----\\",\\n \\"privateKey\\": \\"-----BEGIN RSA PRIVATE KEY-----\\\\\\\\nxxxxx\\\\\\\\n-----END RSA PRIVATE KEY-----\\"\\n },\\n \\"tlsConfig\\": {\\n \\"minVersion\\": \\"TLSv1.2\\",\\n \\"cipherSuites\\": [\\n \\"\\"\\n ],\\n \\"maxVersion\\": \\"TLSv1.3\\"\\n },\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"updatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"domainType\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'GetFlow' => [
+ 'summary' => '获取工作流详情',
+ 'description' => '根据工作流ID获取指定工作流的详细信息,包括配置、定义、版本信息等。',
+ 'path' => '/2025-09-10/flows/{flowName}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'flowName',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '工作流ID', 'description' => '工作流ID', 'type' => 'string', 'required' => true, 'example' => 'flow-1234567890abcdef'],
+ 'examples' => [],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'description' => '成功响应 - 返回指定工作流的完整信息,包括配置参数、定义内容等',
+ 'schema' => ['title' => '返回获取结构体的结果', 'description' => '返回获取结构体的结果', '$ref' => '#/components/schemas/FlowResult'],
+ 'examples' => [],
+ ],
+ ],
+ 'title' => '查询流程编排详情',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetFlow',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/{#flowId}'],
+ ],
+ ],
+ ],
],
- 'produces' => [
- 'application/json',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"flowId\\": \\"flow-1234567890abcdef\\",\\n \\"flowArn\\": \\"acs:agentrun:cn-hangzhou:123456789012:workspaces/ws-xxx/flows/flow-xxx\\",\\n \\"flowName\\": \\"my-flow\\",\\n \\"description\\": \\"Customer service automation flow\\",\\n \\"definition\\": \\"{}\\",\\n \\"executionRoleArn\\": \\"acs:ram::123456789012:role/FlowExecutionRole\\",\\n \\"environmentConfiguration\\": {\\n \\"variables\\": [\\n {\\n \\"name\\": \\"MY_KEY\\",\\n \\"value\\": \\"my-value\\",\\n \\"description\\": \\"A configuration key\\"\\n }\\n ]\\n },\\n \\"externalStorageLocation\\": \\"oss://bucket/path\\",\\n \\"resourceGroupId\\": \\"rg-acfmxsn4m4a4b4a\\",\\n \\"tracingConfiguration\\": {\\n \\"enabled\\": true\\n },\\n \\"loggingConfiguration\\": {\\n \\"destinations\\": [\\n {\\n \\"slsLogDestination\\": {\\n \\"project\\": \\"my-sls-project\\",\\n \\"logStore\\": \\"my-logstore\\"\\n }\\n }\\n ]\\n },\\n \\"workspaceId\\": \\"ws-1234567890abcdef\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"disablePublicNetworkAccess\\": true\\n }\\n}","type":"json"}]',
+ ],
+ 'GetFlowDraft' => [
+ 'path' => '/2025-09-10/flows/{flowName}/draft',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'tags' => [],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'read',
- 'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
- 'name' => 'modelServiceName',
+ 'name' => 'flowName',
'in' => 'path',
- 'schema' => [
- 'description' => 'modelServiceName',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'modelServiceName',
- ],
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '工作流ID', 'description' => '工作流ID', 'type' => 'string', 'required' => true, 'example' => 'flow-1234567890abcdef'],
+ 'examples' => [],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'description' => 'ModelServiceResult',
- '$ref' => '#/components/schemas/ModelServiceResult',
- ],
+ 'schema' => ['title' => '返回获取结构体的结果', 'description' => '返回获取结构体的结果', '$ref' => '#/components/schemas/FlowResult'],
+ 'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"modelServiceName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"modelType\\": \\"\\",\\n \\"provider\\": \\"\\",\\n \\"providerSettings\\": {\\n \\"baseUrl\\": \\"\\",\\n \\"apiKey\\": \\"\\",\\n \\"modelNames\\": [\\n \\"\\"\\n ]\\n },\\n \\"status\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"statusReason\\": \\"\\",\\n \\"modelInfoConfigs\\": [\\n {\\n \\"modelName\\": \\"\\",\\n \\"modelFeatures\\": {\\n \\"vision\\": true,\\n \\"agentThought\\": true,\\n \\"toolCall\\": true,\\n \\"multiToolCall\\": true,\\n \\"streamToolCall\\": true\\n },\\n \\"modelProperties\\": {\\n \\"contextSize\\": 0\\n },\\n \\"modelParameterRules\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"type\\": \\"\\",\\n \\"default\\": \\"\\",\\n \\"min\\": 0,\\n \\"max\\": 0,\\n \\"required\\": true\\n }\\n ]\\n }\\n ],\\n \\"modelServiceId\\": \\"\\"\\n }\\n}","type":"json"}]',
- 'title' => '获取模型信息',
- 'description' => '获取当前用户的所有模板列表,支持按模板类型过滤,支持分页查询。',
- ],
- 'DeleteModelService' => [
- 'summary' => '删除模型。',
- 'path' => '/2025-09-10/agents/model-services/{modelServiceName}',
- 'methods' => [
- 'delete',
+ 'title' => '查询流程草稿详情',
+ 'summary' => '获取工作流草稿。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetFlowDraft',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/{#flowId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"flowId\\": \\"flow-1234567890abcdef\\",\\n \\"flowArn\\": \\"acs:agentrun:cn-hangzhou:123456789012:workspaces/ws-xxx/flows/flow-xxx\\",\\n \\"flowName\\": \\"my-flow\\",\\n \\"description\\": \\"Customer service automation flow\\",\\n \\"definition\\": \\"{}\\",\\n \\"executionRoleArn\\": \\"acs:ram::123456789012:role/FlowExecutionRole\\",\\n \\"environmentConfiguration\\": {\\n \\"variables\\": [\\n {\\n \\"name\\": \\"MY_KEY\\",\\n \\"value\\": \\"my-value\\",\\n \\"description\\": \\"A configuration key\\"\\n }\\n ]\\n },\\n \\"externalStorageLocation\\": \\"oss://bucket/path\\",\\n \\"resourceGroupId\\": \\"rg-acfmxsn4m4a4b4a\\",\\n \\"tracingConfiguration\\": {\\n \\"enabled\\": true\\n },\\n \\"loggingConfiguration\\": {\\n \\"destinations\\": [\\n {\\n \\"slsLogDestination\\": {\\n \\"project\\": \\"my-sls-project\\",\\n \\"logStore\\": \\"my-logstore\\"\\n }\\n }\\n ]\\n },\\n \\"workspaceId\\": \\"ws-1234567890abcdef\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"disablePublicNetworkAccess\\": true\\n }\\n}","type":"json"}]',
+ ],
+ 'GetFlowEndpoint' => [
+ 'path' => '/2025-09-10/flows/{flowName}/endpoints/{flowEndpointName}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
- 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
- 'name' => 'modelServiceName',
+ 'name' => 'flowName',
'in' => 'path',
- 'schema' => [
- 'title' => 'A short description of struct',
- 'description' => 'A short description of struct',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'modelServiceName',
- ],
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '工作流ID', 'description' => '工作流ID', 'type' => 'string', 'required' => true, 'example' => 'flow-1234567890abcdef'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'flowEndpointName',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '工作流端点ID', 'description' => '工作流端点ID', 'type' => 'string', 'required' => true, 'example' => 'fe-1234567890abcdef'],
+ 'examples' => [],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'description' => 'DeleteModelServiceResult',
- '$ref' => '#/components/schemas/DeleteModelServiceResult',
- ],
+ 'schema' => ['title' => '返回获取结构体的结果', 'description' => '返回获取结构体的结果', '$ref' => '#/components/schemas/FlowEndpointResult'],
+ 'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'title' => '查询流程调用端点详情',
+ 'summary' => '获取工作流端点详情。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"modelServiceName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"modelType\\": \\"\\",\\n \\"provider\\": \\"\\",\\n \\"providerSettings\\": {\\n \\"baseUrl\\": \\"\\",\\n \\"apiKey\\": \\"\\",\\n \\"modelNames\\": [\\n \\"\\"\\n ]\\n },\\n \\"status\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"statusReason\\": \\"\\",\\n \\"modelInfoConfigs\\": [\\n {\\n \\"modelName\\": \\"\\",\\n \\"modelFeatures\\": {\\n \\"vision\\": true,\\n \\"agentThought\\": true,\\n \\"toolCall\\": true,\\n \\"multiToolCall\\": true,\\n \\"streamToolCall\\": true\\n },\\n \\"modelProperties\\": {\\n \\"contextSize\\": 0\\n },\\n \\"modelParameterRules\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"type\\": \\"\\",\\n \\"default\\": \\"\\",\\n \\"min\\": 0,\\n \\"max\\": 0,\\n \\"required\\": true\\n }\\n ]\\n }\\n ],\\n \\"modelServiceId\\": \\"\\"\\n }\\n}","type":"json"}]',
- 'title' => '删除模型',
- 'description' => '获取当前用户的所有模板列表,支持按模板类型过滤,支持分页查询。',
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"flowId\\": \\"flow-1234567890abcdef\\",\\n \\"flowEndpointId\\": \\"fe-1234567890abcdef\\",\\n \\"flowEndpointArn\\": \\"acs:agentrun:cn-hangzhou:123456789012:workspaces/ws-xxx/flows/flow-xxx/endpoints/fe-xxx\\",\\n \\"flowEndpointName\\": \\"my-flow-endpoint\\",\\n \\"description\\": \\"Production endpoint for flow\\",\\n \\"targetVersion\\": \\"1\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"routingConfiguration\\": [\\n {\\n \\"version\\": \\"1\\",\\n \\"weight\\": 100\\n }\\n ],\\n \\"disablePublicNetworkAccess\\": true\\n }\\n}","type":"json"}]',
],
- 'ListModelServices' => [
- 'summary' => '列出全部模型。',
- 'path' => '/2025-09-10/agents/model-services',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'GetFlowVersion' => [
+ 'path' => '/2025-09-10/flows/{flowName}/versions/{flowVersion}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
- 'deprecated' => false,
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'list',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
- 'name' => 'modelType',
- 'in' => 'query',
- 'schema' => [
- 'description' => '模型类型'."\n"
- ."\n"
- .'- system 系统内置模型'."\n"
- .'- deployment 自定义部署模型',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'system',
- ],
+ 'name' => 'flowName',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '工作流名称', 'description' => '工作流名称', 'type' => 'string', 'required' => true, 'example' => 'my-flow'],
+ 'examples' => [],
],
[
- 'name' => 'provider',
- 'in' => 'query',
- 'schema' => [
- 'description' => '云厂商,目前只支持Aliyun。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Aliyun',
- ],
+ 'name' => 'flowVersion',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '版本号', 'description' => '版本号', 'type' => 'string', 'required' => true, 'example' => '1'],
+ 'examples' => [],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['title' => '返回工作流版本详情结构体的结果', 'description' => '返回工作流版本详情结构体的结果', '$ref' => '#/components/schemas/FlowVersionResult'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
],
+ ],
+ 'title' => '获取流程版本信息',
+ 'summary' => '获取工作流版本详情。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
[
- 'name' => 'providerType',
- 'in' => 'query',
- 'schema' => [
- 'description' => '供应商类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'providerType',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetFlowVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/{#flowId}'],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"flowId\\": \\"flow-1234567890abcdef\\",\\n \\"flowVersion\\": \\"1\\",\\n \\"description\\": \\"Version 1.0 - Initial release\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"flowName\\": \\"\\",\\n \\"definition\\": \\"Type: StateMachine\\\\\\\\nName: my-flow\\\\\\\\n...\\",\\n \\"environmentConfiguration\\": {\\n \\"variables\\": [\\n {\\n \\"name\\": \\"MY_KEY\\",\\n \\"value\\": \\"my-value\\",\\n \\"description\\": \\"A configuration key\\"\\n }\\n ]\\n },\\n \\"externalStorageLocation\\": \\"oss://bucket/path\\",\\n \\"tracingConfiguration\\": {\\n \\"enabled\\": true\\n },\\n \\"loggingConfiguration\\": {\\n \\"destinations\\": [\\n {\\n \\"slsLogDestination\\": {\\n \\"project\\": \\"my-sls-project\\",\\n \\"logStore\\": \\"my-logstore\\"\\n }\\n }\\n ]\\n }\\n }\\n}","type":"json"}]',
+ ],
+ 'GetIMBot' => [
+ 'path' => '/2025-09-10/agents/im-bots/{imBotId}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'tags' => [],
+ 'security' => [
[
- 'name' => 'pageNumber',
- 'in' => 'query',
- 'schema' => [
- 'description' => '页码',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'AK' => [],
],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ ],
+ 'parameters' => [
[
- 'name' => 'pageSize',
- 'in' => 'query',
- 'schema' => [
- 'description' => '页面大小',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'name' => 'imBotId',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => 'imBotId', 'description' => 'Bot 主键 UUID', 'type' => 'string', 'required' => true],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'description' => 'ListModelServicesResult',
- '$ref' => '#/components/schemas/ListModelServicesResult',
- ],
+ 'schema' => ['$ref' => '#/components/schemas/IMBotResult', 'description' => ''],
+ ],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0,\\n \\"total\\": 0,\\n \\"items\\": [\\n {\\n \\"modelServiceName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"modelType\\": \\"\\",\\n \\"provider\\": \\"\\",\\n \\"providerSettings\\": {\\n \\"baseUrl\\": \\"\\",\\n \\"apiKey\\": \\"\\",\\n \\"modelNames\\": [\\n \\"\\"\\n ]\\n },\\n \\"status\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"statusReason\\": \\"\\",\\n \\"modelInfoConfigs\\": [\\n {\\n \\"modelName\\": \\"\\",\\n \\"modelFeatures\\": {\\n \\"vision\\": true,\\n \\"agentThought\\": true,\\n \\"toolCall\\": true,\\n \\"multiToolCall\\": true,\\n \\"streamToolCall\\": true\\n },\\n \\"modelProperties\\": {\\n \\"contextSize\\": 0\\n },\\n \\"modelParameterRules\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"type\\": \\"\\",\\n \\"default\\": \\"\\",\\n \\"min\\": 0,\\n \\"max\\": 0,\\n \\"required\\": true\\n }\\n ]\\n }\\n ],\\n \\"modelServiceId\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '列出全部模型',
- 'description' => '获取当前用户的所有模板列表,支持按模板类型过滤,支持分页查询。',
- ],
- 'CreateModelProxy' => [
- 'summary' => '创建模型治理',
- 'path' => '/2025-09-10/agents/model-proxies',
- 'methods' => [
- 'post',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'summary' => '获取 IM Bot',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetIMBot',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'IMBot', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/{#runtimeName}/im-bots/{#botName}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"id\\": \\"\\",\\n \\"tenantId\\": \\"\\",\\n \\"imChannelServerResourceName\\": \\"\\",\\n \\"botBizId\\": \\"\\",\\n \\"botName\\": \\"\\",\\n \\"agentRuntimeId\\": \\"\\",\\n \\"botBizType\\": \\"\\",\\n \\"botMode\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"lastMessageTime\\": \\"\\",\\n \\"currentInstances\\": 0,\\n \\"description\\": \\"\\",\\n \\"metadata\\": {\\n \\"agentRuntimeId\\": \\"\\",\\n \\"agentRuntimeEndpointId\\": \\"\\",\\n \\"agentRuntimeEndpointUrl\\": \\"\\",\\n \\"protocolType\\": \\"\\",\\n \\"role\\": \\"\\",\\n \\"customFunctionMeta\\": \\"\\"\\n },\\n \\"createdAt\\": \\"\\",\\n \\"updatedAt\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'GetKnowledgeBase' => [
+ 'path' => '/2025-09-10/agents/knowledgebases/{knowledgeBaseName}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'readAndWrite',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '创建智能体运行时所需的输入参数',
- 'required' => false,
- '$ref' => '#/components/schemas/CreateModelProxyInput',
- ],
+ 'name' => 'knowledgeBaseName',
+ 'in' => 'path',
+ 'schema' => ['description' => '知识库名称。', 'type' => 'string', 'required' => true, 'example' => 'my-knowledgebase-name'],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'description' => 'ModelProxyResult',
- '$ref' => '#/components/schemas/ModelProxyResult',
- ],
+ 'schema' => ['description' => '获取知识库结果。', '$ref' => '#/components/schemas/KnowledgeBaseResult'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'IdempotentParameterMismatch', 'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.', 'description' => ''],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"modelProxyId\\": \\"\\",\\n \\"modelProxyName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"modelType\\": \\"\\",\\n \\"proxyMode\\": \\"\\",\\n \\"proxyConfig\\": {\\n \\"policies\\": {\\n \\"requestTimeout\\": 0,\\n \\"numRetries\\": 0,\\n \\"cache\\": true,\\n \\"concurrencyLimit\\": 0,\\n \\"fallbacks\\": [\\n {\\n \\"modelServiceName\\": \\"\\",\\n \\"modelName\\": \\"\\"\\n }\\n ],\\n \\"tokenRateLimiter\\": {\\n \\"tps\\": 0,\\n \\"tpm\\": 0,\\n \\"tph\\": 0,\\n \\"tpd\\": 0\\n },\\n \\"aiGuardrailConfig\\": {\\n \\"checkRequest\\": true,\\n \\"checkResponse\\": true,\\n \\"level\\": \\"\\",\\n \\"maxTextLength\\": 0,\\n \\"blockOnContentModeration\\": true,\\n \\"blockOnSensitiveData\\": true,\\n \\"blockOnPromptAttack\\": true,\\n \\"blockOnMaliciousUrl\\": true,\\n \\"blockOnModelHallucination\\": true\\n }\\n },\\n \\"endpoints\\": [\\n {\\n \\"modelServiceName\\": \\"\\",\\n \\"weight\\": 0,\\n \\"baseUrl\\": \\"\\",\\n \\"modelNames\\": [\\n \\"\\"\\n ]\\n }\\n ]\\n },\\n \\"functionName\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"serviceRegionId\\": \\"\\",\\n \\"endpoint\\": \\"\\",\\n \\"litellmVersion\\": \\"\\",\\n \\"cpu\\": 0,\\n \\"memory\\": 0,\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"statusReason\\": \\"\\",\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"executionRoleArn\\": \\"\\"\\n }\\n}","type":"json"}]',
- 'title' => '创建模型治理',
- 'description' => '获取当前用户的所有模板列表,支持按模板类型过滤,支持分页查询。',
- ],
- 'UpdateModelProxy' => [
- 'summary' => '更新模型治理。',
- 'path' => '/2025-09-10/agents/model-proxies/{modelProxyName}',
- 'methods' => [
- 'put',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '获取知识库',
+ 'summary' => '获取知识库。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetKnowledgeBase',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Knowledgebase', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/knowledgebases/{#knowledgeBaseName}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"knowledgeBaseId\\": \\"\\",\\n \\"knowledgeBaseName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"provider\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"providerSettings\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"retrieveSettings\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"workspaceId\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'GetMemoryCollection' => [
+ 'path' => '/2025-09-10/agents/memory-collections/{memoryCollectionName}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'readAndWrite',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcUDVD99'],
],
'parameters' => [
[
- 'name' => 'modelProxyName',
+ 'name' => 'memoryCollectionName',
'in' => 'path',
- 'schema' => [
- 'description' => 'modelProxyName',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'modelProxyName',
- ],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '更新智能体运行时输入',
- 'required' => false,
- '$ref' => '#/components/schemas/UpdateModelProxyInput',
- ],
+ 'schema' => ['description' => '记忆存储名称', 'type' => 'string', 'required' => false, 'example' => 'my-memory-1'],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'description' => 'ModelProxyResult',
- '$ref' => '#/components/schemas/ModelProxyResult',
- ],
+ 'schema' => ['description' => '记忆存储详情', '$ref' => '#/components/schemas/MemoryCollectionResult'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '获取记忆存储',
+ 'summary' => '查询记忆存储详情',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"modelProxyId\\": \\"\\",\\n \\"modelProxyName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"modelType\\": \\"\\",\\n \\"proxyMode\\": \\"\\",\\n \\"proxyConfig\\": {\\n \\"policies\\": {\\n \\"requestTimeout\\": 0,\\n \\"numRetries\\": 0,\\n \\"cache\\": true,\\n \\"concurrencyLimit\\": 0,\\n \\"fallbacks\\": [\\n {\\n \\"modelServiceName\\": \\"\\",\\n \\"modelName\\": \\"\\"\\n }\\n ],\\n \\"tokenRateLimiter\\": {\\n \\"tps\\": 0,\\n \\"tpm\\": 0,\\n \\"tph\\": 0,\\n \\"tpd\\": 0\\n },\\n \\"aiGuardrailConfig\\": {\\n \\"checkRequest\\": true,\\n \\"checkResponse\\": true,\\n \\"level\\": \\"\\",\\n \\"maxTextLength\\": 0,\\n \\"blockOnContentModeration\\": true,\\n \\"blockOnSensitiveData\\": true,\\n \\"blockOnPromptAttack\\": true,\\n \\"blockOnMaliciousUrl\\": true,\\n \\"blockOnModelHallucination\\": true\\n }\\n },\\n \\"endpoints\\": [\\n {\\n \\"modelServiceName\\": \\"\\",\\n \\"weight\\": 0,\\n \\"baseUrl\\": \\"\\",\\n \\"modelNames\\": [\\n \\"\\"\\n ]\\n }\\n ]\\n },\\n \\"functionName\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"serviceRegionId\\": \\"\\",\\n \\"endpoint\\": \\"\\",\\n \\"litellmVersion\\": \\"\\",\\n \\"cpu\\": 0,\\n \\"memory\\": 0,\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"statusReason\\": \\"\\",\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"executionRoleArn\\": \\"\\"\\n }\\n}","type":"json"}]',
- 'title' => '更新模型治理',
- 'description' => '获取当前用户的所有模板列表,支持按模板类型过滤,支持分页查询。',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetMemoryCollection',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"memoryCollectionName\\": \\"\\",\\n \\"memoryCollectionId\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"llmConfig\\": {\\n \\"config\\": {\\n \\"model\\": \\"\\"\\n },\\n \\"modelServiceName\\": \\"\\"\\n },\\n \\"embedderConfig\\": {\\n \\"config\\": {\\n \\"model\\": \\"\\"\\n },\\n \\"modelServiceName\\": \\"\\"\\n },\\n \\"vectorStoreConfig\\": {\\n \\"provider\\": \\"\\",\\n \\"config\\": {\\n \\"endpoint\\": \\"\\",\\n \\"instanceName\\": \\"\\",\\n \\"vectorDimension\\": 0,\\n \\"collectionName\\": \\"\\"\\n },\\n \\"mysqlConfig\\": {\\n \\"host\\": \\"\\",\\n \\"dbName\\": \\"\\",\\n \\"collectionName\\": \\"\\",\\n \\"user\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"vectorDimension\\": 0,\\n \\"port\\": 0\\n }\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"executionRoleArn\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"enableConversationHistory\\": true,\\n \\"enableConversationState\\": true,\\n \\"workspaceId\\": \\"\\"\\n }\\n}","type":"json"}]',
],
'GetModelProxy' => [
- 'summary' => '获取模型治理信息。',
'path' => '/2025-09-10/agents/model-proxies/{modelProxyName}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
],
'parameters' => [
[
'name' => 'modelProxyName',
'in' => 'path',
- 'schema' => [
- 'description' => 'modelProxyName',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'modelProxyName',
- ],
+ 'schema' => ['description' => 'modelProxyName', 'type' => 'string', 'required' => true, 'example' => 'modelProxyName'],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'description' => 'ModelProxyResult',
- '$ref' => '#/components/schemas/ModelProxyResult',
- ],
+ 'schema' => ['description' => 'ModelProxyResult', '$ref' => '#/components/schemas/ModelProxyResult'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"modelProxyId\\": \\"\\",\\n \\"modelProxyName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"modelType\\": \\"\\",\\n \\"proxyMode\\": \\"\\",\\n \\"proxyConfig\\": {\\n \\"policies\\": {\\n \\"requestTimeout\\": 0,\\n \\"numRetries\\": 0,\\n \\"cache\\": true,\\n \\"concurrencyLimit\\": 0,\\n \\"fallbacks\\": [\\n {\\n \\"modelServiceName\\": \\"\\",\\n \\"modelName\\": \\"\\"\\n }\\n ],\\n \\"tokenRateLimiter\\": {\\n \\"tps\\": 0,\\n \\"tpm\\": 0,\\n \\"tph\\": 0,\\n \\"tpd\\": 0\\n },\\n \\"aiGuardrailConfig\\": {\\n \\"checkRequest\\": true,\\n \\"checkResponse\\": true,\\n \\"level\\": \\"\\",\\n \\"maxTextLength\\": 0,\\n \\"blockOnContentModeration\\": true,\\n \\"blockOnSensitiveData\\": true,\\n \\"blockOnPromptAttack\\": true,\\n \\"blockOnMaliciousUrl\\": true,\\n \\"blockOnModelHallucination\\": true\\n }\\n },\\n \\"endpoints\\": [\\n {\\n \\"modelServiceName\\": \\"\\",\\n \\"weight\\": 0,\\n \\"baseUrl\\": \\"\\",\\n \\"modelNames\\": [\\n \\"\\"\\n ]\\n }\\n ]\\n },\\n \\"functionName\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"serviceRegionId\\": \\"\\",\\n \\"endpoint\\": \\"\\",\\n \\"litellmVersion\\": \\"\\",\\n \\"cpu\\": 0,\\n \\"memory\\": 0,\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"statusReason\\": \\"\\",\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"executionRoleArn\\": \\"\\"\\n }\\n}","type":"json"}]',
+ 'staticInfo' => ['returnType' => 'synchronous'],
'title' => '获取模型治理信息',
+ 'summary' => '获取模型治理信息。',
'description' => '获取当前用户的所有模板列表,支持按模板类型过滤,支持分页查询。',
- ],
- 'DeleteModelProxy' => [
- 'summary' => '删除模型',
- 'path' => '/2025-09-10/agents/model-proxies/{modelProxyName}',
- 'methods' => [
- 'delete',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetModelProxy',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"modelProxyId\\": \\"\\",\\n \\"modelProxyName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"modelType\\": \\"\\",\\n \\"proxyMode\\": \\"\\",\\n \\"proxyConfig\\": {\\n \\"policies\\": {\\n \\"requestTimeout\\": 0,\\n \\"numRetries\\": 0,\\n \\"cache\\": true,\\n \\"concurrencyLimit\\": 0,\\n \\"fallbacks\\": [\\n {\\n \\"modelServiceName\\": \\"\\",\\n \\"modelName\\": \\"\\"\\n }\\n ],\\n \\"tokenRateLimiter\\": {\\n \\"tps\\": 0,\\n \\"tpm\\": 0,\\n \\"tph\\": 0,\\n \\"tpd\\": 0\\n },\\n \\"aiGuardrailConfig\\": {\\n \\"checkRequest\\": true,\\n \\"checkResponse\\": true,\\n \\"level\\": \\"\\",\\n \\"maxTextLength\\": 0,\\n \\"blockOnContentModeration\\": true,\\n \\"blockOnSensitiveData\\": true,\\n \\"blockOnPromptAttack\\": true,\\n \\"blockOnMaliciousUrl\\": true,\\n \\"blockOnModelHallucination\\": true\\n }\\n },\\n \\"endpoints\\": [\\n {\\n \\"modelServiceName\\": \\"\\",\\n \\"weight\\": 0,\\n \\"baseUrl\\": \\"\\",\\n \\"modelNames\\": [\\n \\"\\"\\n ]\\n }\\n ]\\n },\\n \\"functionName\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"serviceRegionId\\": \\"\\",\\n \\"endpoint\\": \\"\\",\\n \\"litellmVersion\\": \\"\\",\\n \\"cpu\\": 0,\\n \\"memory\\": 0,\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"statusReason\\": \\"\\",\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"executionRoleArn\\": \\"\\",\\n \\"workspaceId\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'GetModelService' => [
+ 'path' => '/2025-09-10/agents/model-services/{modelServiceName}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'readAndWrite',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
],
'parameters' => [
[
- 'name' => 'modelProxyName',
+ 'name' => 'modelServiceName',
'in' => 'path',
- 'schema' => [
- 'title' => 'A short description of struct',
- 'description' => 'A short description of struct',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'modelProxyName',
- ],
+ 'schema' => ['description' => 'modelServiceName', 'type' => 'string', 'required' => true, 'example' => 'modelServiceName'],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'description' => 'DeleteModelProxyResult',
- '$ref' => '#/components/schemas/DeleteModelProxyResult',
- ],
+ 'schema' => ['description' => 'ModelServiceResult', '$ref' => '#/components/schemas/ModelServiceResult'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"modelProxyId\\": \\"\\",\\n \\"modelProxyName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"modelType\\": \\"\\",\\n \\"proxyMode\\": \\"\\",\\n \\"proxyConfig\\": {\\n \\"policies\\": {\\n \\"requestTimeout\\": 0,\\n \\"numRetries\\": 0,\\n \\"cache\\": true,\\n \\"concurrencyLimit\\": 0,\\n \\"fallbacks\\": [\\n {\\n \\"modelServiceName\\": \\"\\",\\n \\"modelName\\": \\"\\"\\n }\\n ],\\n \\"tokenRateLimiter\\": {\\n \\"tps\\": 0,\\n \\"tpm\\": 0,\\n \\"tph\\": 0,\\n \\"tpd\\": 0\\n },\\n \\"aiGuardrailConfig\\": {\\n \\"checkRequest\\": true,\\n \\"checkResponse\\": true,\\n \\"level\\": \\"\\",\\n \\"maxTextLength\\": 0,\\n \\"blockOnContentModeration\\": true,\\n \\"blockOnSensitiveData\\": true,\\n \\"blockOnPromptAttack\\": true,\\n \\"blockOnMaliciousUrl\\": true,\\n \\"blockOnModelHallucination\\": true\\n }\\n },\\n \\"endpoints\\": [\\n {\\n \\"modelServiceName\\": \\"\\",\\n \\"weight\\": 0,\\n \\"baseUrl\\": \\"\\",\\n \\"modelNames\\": [\\n \\"\\"\\n ]\\n }\\n ]\\n },\\n \\"functionName\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"serviceRegionId\\": \\"\\",\\n \\"endpoint\\": \\"\\",\\n \\"litellmVersion\\": \\"\\",\\n \\"cpu\\": 0,\\n \\"memory\\": 0,\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"statusReason\\": \\"\\",\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"executionRoleArn\\": \\"\\"\\n }\\n}","type":"json"}]',
- 'title' => '删除模型治理',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '获取模型信息',
+ 'summary' => '获取模型信息。',
'description' => '获取当前用户的所有模板列表,支持按模板类型过滤,支持分页查询。',
- ],
- 'ListModelProxies' => [
- 'summary' => '列出全部模型治理。',
- 'path' => '/2025-09-10/agents/model-proxies',
- 'methods' => [
- 'get',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetModelService',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'ModelService', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/model-services/{#modelServiceName}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"modelServiceName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"modelType\\": \\"\\",\\n \\"provider\\": \\"\\",\\n \\"providerSettings\\": {\\n \\"baseUrl\\": \\"\\",\\n \\"apiKey\\": \\"\\",\\n \\"modelNames\\": [\\n \\"\\"\\n ]\\n },\\n \\"status\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"statusReason\\": \\"\\",\\n \\"modelServiceId\\": \\"\\",\\n \\"modelInfoConfigs\\": [\\n {\\n \\"modelName\\": \\"\\",\\n \\"modelFeatures\\": {\\n \\"vision\\": true,\\n \\"agentThought\\": true,\\n \\"toolCall\\": true,\\n \\"multiToolCall\\": true,\\n \\"streamToolCall\\": true\\n },\\n \\"modelProperties\\": {\\n \\"contextSize\\": 0\\n },\\n \\"modelParameterRules\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"type\\": \\"\\",\\n \\"default\\": \\"\\",\\n \\"min\\": 0,\\n \\"max\\": 0,\\n \\"required\\": true\\n }\\n ]\\n }\\n ],\\n \\"workspaceId\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'GetSandbox' => [
+ 'path' => '/2025-09-10/sandboxes/{sandboxId}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
- 'deprecated' => false,
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'list',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
],
'parameters' => [
[
- 'name' => 'proxyMode',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'proxyMode',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'proxyMode',
- ],
+ 'name' => 'sandboxId',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '沙箱ID', 'description' => '沙箱ID', 'type' => 'string', 'required' => true, 'example' => 'sb-1234567890abcdef'],
+ 'examples' => [],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['title' => '返回获取结构体的结果', 'description' => '返回获取结构体的结果', '$ref' => '#/components/schemas/SandboxResult'],
+ 'examples' => [],
],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
+ ],
+ 'title' => '获取 Sandbox',
+ 'summary' => '获取 Sandbox。',
+ 'description' => '根据沙箱ID获取指定沙箱的详细信息,包括状态、配置等。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
[
- 'name' => 'status',
- 'in' => 'query',
- 'schema' => [
- 'description' => '按状态过滤',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'CREATING',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetSandbox',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"sandboxId\\": \\"01KAWBP6JQD0J3Z34BP4WMX1KG\\",\\n \\"templateId\\": \\"8d409d30-cac1-445a-95d5-476c47780336.schema\\",\\n \\"templateName\\": \\"my-template\\",\\n \\"status\\": \\"READY\\",\\n \\"createdAt\\": \\"2025-11-26T10:54:17.770719+08:00\\",\\n \\"lastUpdatedAt\\": \\"2025-11-26T10:54:17.770719+08:00\\",\\n \\"sandboxIdleTimeoutSeconds\\": 1800,\\n \\"endedAt\\": \\"2025-11-26T10:54:17.770719+08:00\\",\\n \\"sandboxArn\\": \\"acs:ram::1760720386195983:role/aliyunfcdefaultrole\\",\\n \\"sandboxIdleTTLInSeconds\\": 0,\\n \\"metadata\\": {}\\n }\\n}","type":"json"}]',
+ ],
+ 'GetTemplate' => [
+ 'path' => '/2025-09-10/templates/{templateName}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'tags' => [],
+ 'security' => [
[
- 'name' => 'pageNumber',
- 'in' => 'query',
- 'schema' => [
- 'description' => '页码',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'AK' => [],
],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
+ ],
+ 'parameters' => [
[
- 'name' => 'pageSize',
- 'in' => 'query',
- 'schema' => [
- 'description' => '分页大小,默认pageSize = 20',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'name' => 'templateName',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '模板名称', 'description' => '模板名称', 'type' => 'string', 'required' => true, 'example' => 'my-template'],
+ 'examples' => [],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'description' => 'ListModelProxiesResult',
- '$ref' => '#/components/schemas/ListModelProxiesResult',
- ],
+ 'schema' => ['title' => '返回获取结构体的结果', 'description' => '返回获取模板结果', '$ref' => '#/components/schemas/TemplateResult'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0,\\n \\"total\\": 0,\\n \\"items\\": [\\n {\\n \\"modelProxyId\\": \\"\\",\\n \\"modelProxyName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"modelType\\": \\"\\",\\n \\"proxyMode\\": \\"\\",\\n \\"proxyConfig\\": {\\n \\"policies\\": {\\n \\"requestTimeout\\": 0,\\n \\"numRetries\\": 0,\\n \\"cache\\": true,\\n \\"concurrencyLimit\\": 0,\\n \\"fallbacks\\": [\\n {\\n \\"modelServiceName\\": \\"\\",\\n \\"modelName\\": \\"\\"\\n }\\n ],\\n \\"tokenRateLimiter\\": {\\n \\"tps\\": 0,\\n \\"tpm\\": 0,\\n \\"tph\\": 0,\\n \\"tpd\\": 0\\n },\\n \\"aiGuardrailConfig\\": {\\n \\"checkRequest\\": true,\\n \\"checkResponse\\": true,\\n \\"level\\": \\"\\",\\n \\"maxTextLength\\": 0,\\n \\"blockOnContentModeration\\": true,\\n \\"blockOnSensitiveData\\": true,\\n \\"blockOnPromptAttack\\": true,\\n \\"blockOnMaliciousUrl\\": true,\\n \\"blockOnModelHallucination\\": true\\n }\\n },\\n \\"endpoints\\": [\\n {\\n \\"modelServiceName\\": \\"\\",\\n \\"weight\\": 0,\\n \\"baseUrl\\": \\"\\",\\n \\"modelNames\\": [\\n \\"\\"\\n ]\\n }\\n ]\\n },\\n \\"functionName\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"serviceRegionId\\": \\"\\",\\n \\"endpoint\\": \\"\\",\\n \\"litellmVersion\\": \\"\\",\\n \\"cpu\\": 0,\\n \\"memory\\": 0,\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"statusReason\\": \\"\\",\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"executionRoleArn\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '列出全部模型治理',
- 'description' => '获取当前用户的所有沙箱列表,支持按模板名称过滤,支持分页查询。',
- ],
- 'GetMemoryCollection' => [
- 'summary' => '查询记忆存储详情',
- 'path' => '/2025-09-10/agents/memory-collections/{memoryCollectionName}',
- 'methods' => [
- 'get',
+ 'title' => '获取模板',
+ 'summary' => '获取模板。',
+ 'description' => '根据模板名称获取指定模板的详细信息,包括配置、状态等。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"templateId\\": \\"996ffd5e-003f-4700-9f24-9e2a1c19019b.schema\\",\\n \\"templateName\\": \\"browser-1767874121726\\",\\n \\"templateVersion\\": \\"预留\\",\\n \\"cpu\\": 4,\\n \\"memory\\": 4096,\\n \\"templateArn\\": \\"acs:agentrun:cn-hangzhou:12345678:templates/efb6de2f-1814-42a2-b7f3-474a0e0b3a48\\",\\n \\"createdAt\\": \\"2026-01-15T17:12:59.375168+08:00\\",\\n \\"lastUpdatedAt\\": \\"2026-01-15T17:12:59.375168+08:00\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"SDK Error\\",\\n \\"executionRoleArn\\": \\"acs:agentrun:cn-hangzhou:12345678:templates/efb6de2f-1814-42a2-b7f3-474a0e0b3a48\\",\\n \\"templateType\\": \\"Browser\\",\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"/usr/local/bin/entrypoint.sh\\"\\n ],\\n \\"registryConfig\\": {\\n \\"authConfig\\": {\\n \\"userName\\": \\"admin\\",\\n \\"password\\": \\"abc***\\"\\n },\\n \\"certConfig\\": {\\n \\"insecure\\": false,\\n \\"rootCaCertBase64\\": \\"cm9vdF9jYV9jZXJ0X2Jhc2U2NA==\\"\\n },\\n \\"networkConfig\\": {\\n \\"vpcId\\": \\"vpc-xxxxxxxxxxxxx\\",\\n \\"vSwitchId\\": \\"vsw-xxxxxxxxxxxxx\\",\\n \\"securityGroupId\\": \\"sg-xxxxxxxxxxxxx\\"\\n }\\n },\\n \\"port\\": 5000\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"credentialConfiguration\\": {\\n \\"credentialName\\": \\"deepagent-key\\"\\n },\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"sandboxIdleTimeoutInSeconds\\": \\"1800\\",\\n \\"sandboxTTLInSeconds\\": \\"已弃用\\",\\n \\"resourceName\\": \\"agentrun-f2570dd4-c8a2-452c-8bd5-4ef74b0a69b5\\",\\n \\"mcpOptions\\": {\\n \\"transport\\": \\"streamable-http\\",\\n \\"enabledTools\\": [\\n \\"execute_code\\"\\n ]\\n },\\n \\"mcpState\\": {\\n \\"status\\": \\"CREATING\\",\\n \\"statusReason\\": \\"SDK Error\\",\\n \\"accessEndpoint\\": \\"/mcp\\"\\n },\\n \\"diskSize\\": 10240,\\n \\"description\\": \\"template描述\\",\\n \\"allowAnonymousManage\\": true,\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"enableAgent\\": true,\\n \\"workspaceId\\": \\"\\",\\n \\"scalingStatus\\": {\\n \\"minInstances\\": 1,\\n \\"targetInstances\\": 2,\\n \\"currentInstances\\": 2,\\n \\"scheduledPolicies\\": [\\n {\\n \\"name\\": \\"scale-up-morning\\",\\n \\"startTime\\": \\"2024-01-01T08:00:00\\",\\n \\"endTime\\": \\"2024-01-01T08:00:00\\",\\n \\"scheduleExpression\\": \\"cron(0 8 * * ? *)\\",\\n \\"timeZone\\": \\"Asia/Shanghai\\",\\n \\"target\\": 20\\n }\\n ],\\n \\"currentError\\": \\"error\\"\\n },\\n \\"environmentVariables\\": {\\n \\"key\\": \\"{\'FCTEST_IDE_ENV\': \'IDE\'}\\"\\n },\\n \\"templateConfiguration\\": {\\n \\"key\\": \\"{\\\\\\"example\\\\\\":\\\\\\"test\\\\\\"}\\"\\n },\\n \\"ossConfiguration\\": [\\n {\\n \\"bucketName\\": \\"a-test-oss\\",\\n \\"prefix\\": \\"/\\",\\n \\"mountPoint\\": \\"/mnt/oss1\\",\\n \\"permission\\": \\"READ_WRITE\\",\\n \\"region\\": \\"ch-hangzhou\\",\\n \\"endpoint\\": \\"\\"\\n }\\n ],\\n \\"enablePreStop\\": true,\\n \\"preStopTimeoutInSeconds\\": 0\\n }\\n}","type":"json"}]',
+ ],
+ 'GetTool' => [
+ 'path' => '/2025-09-10/agents/tools/{toolName}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
- 'deprecated' => false,
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcUDVD99',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY', 'FEATUREfcVF016G'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'memoryCollectionName',
+ 'name' => 'toolName',
'in' => 'path',
- 'schema' => [
- 'description' => '记忆存储名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-memory-1',
- ],
+ 'schema' => ['title' => '工具名称', 'description' => '工具名称', 'type' => 'string', 'required' => false, 'example' => 'my-mcp-tool'],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'description' => '记忆存储详情',
- '$ref' => '#/components/schemas/MemoryCollectionResult',
- ],
+ 'headers' => [],
+ 'schema' => ['description' => '工具返回结果', '$ref' => '#/components/schemas/ToolResult'],
+ 'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'title' => '获取工具',
+ 'summary' => 'Get a tool',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"memoryCollectionName\\": \\"\\",\\n \\"memoryCollectionId\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"llmConfig\\": {\\n \\"config\\": {\\n \\"model\\": \\"\\"\\n },\\n \\"modelServiceName\\": \\"\\"\\n },\\n \\"embedderConfig\\": {\\n \\"config\\": {\\n \\"model\\": \\"\\"\\n },\\n \\"modelServiceName\\": \\"\\"\\n },\\n \\"vectorStoreConfig\\": {\\n \\"provider\\": \\"\\",\\n \\"config\\": {\\n \\"endpoint\\": \\"\\",\\n \\"instanceName\\": \\"\\",\\n \\"vectorDimension\\": 0,\\n \\"collectionName\\": \\"\\"\\n },\\n \\"mysqlConfig\\": {\\n \\"host\\": \\"\\",\\n \\"dbName\\": \\"\\",\\n \\"collectionName\\": \\"\\",\\n \\"user\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"vectorDimension\\": 0,\\n \\"port\\": 0\\n }\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"executionRoleArn\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"enableConversationHistory\\": true,\\n \\"enableConversationState\\": true\\n }\\n}","type":"json"}]',
- 'title' => '获取记忆存储',
- ],
- 'UpdateMemoryCollection' => [
- 'summary' => '修改记忆存储信息',
- 'path' => '/2025-09-10/agents/memory-collections/{memoryCollectionName}',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetTool',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Tool', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/tools/{#toolName}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"toolId\\": \\"tool-abc123\\",\\n \\"toolName\\": \\"my-mcp-tool\\",\\n \\"workspaceId\\": \\"workspace-xyz789\\",\\n \\"description\\": \\"这是一个用于处理文档的 MCP 工具\\",\\n \\"toolType\\": \\"MCP\\",\\n \\"createMethod\\": \\"MCP_REMOTE\\",\\n \\"protocolSpec\\": \\"\\",\\n \\"mcpConfig\\": {\\n \\"sessionAffinity\\": \\"MCP_STREAMABLE\\",\\n \\"sessionAffinityConfig\\": \\"\\",\\n \\"proxyEnabled\\": true,\\n \\"mcpProxyConfiguration\\": {\\n \\"hooks\\": [\\n {\\n \\"url\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"apiVersion\\": \\"\\",\\n \\"enabled\\": true,\\n \\"timeout\\": 0,\\n \\"event\\": \\"\\",\\n \\"headers\\": {\\n \\"key\\": \\"\\"\\n }\\n }\\n ]\\n },\\n \\"boundConfiguration\\": {\\n \\"boundTools\\": [\\n {\\n \\"toolName\\": \\"my-tool\\",\\n \\"method\\": \\"POST\\",\\n \\"path\\": \\"/api/v1/tools\\",\\n \\"apis\\": [\\n {\\n \\"method\\": \\"\\",\\n \\"path\\": \\"\\"\\n }\\n ]\\n }\\n ]\\n }\\n },\\n \\"status\\": \\"Running\\",\\n \\"statusReason\\": \\"\\",\\n \\"executionRoleArn\\": \\"acs:ram::123456789:role/AliyunFCDefaultRole\\",\\n \\"artifactType\\": \\"Code\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"codeConfiguration\\": {\\n \\"zipFile\\": \\"UEsDBAoAAAAAANF\\",\\n \\"ossBucketName\\": \\"my-agent-code-bucket\\",\\n \\"ossObjectName\\": \\"agent-code-v1.0.zip\\",\\n \\"checksum\\": \\"1234567890123456789\\",\\n \\"language\\": \\"python3.12\\",\\n \\"command\\": [\\n \\"\\"\\n ]\\n },\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"/usr/local/bin/entrypoint.sh\\"\\n ],\\n \\"registryConfig\\": {\\n \\"authConfig\\": {\\n \\"userName\\": \\"admin\\",\\n \\"password\\": \\"abc***\\"\\n },\\n \\"certConfig\\": {\\n \\"insecure\\": false,\\n \\"rootCaCertBase64\\": \\"cm9vdF9jYV9jZXJ0X2Jhc2U2NA==\\"\\n },\\n \\"networkConfig\\": {\\n \\"vpcId\\": \\"vpc-xxxxxxxxxxxxx\\",\\n \\"vSwitchId\\": \\"vsw-xxxxxxxxxxxxx\\",\\n \\"securityGroupId\\": \\"sg-xxxxxxxxxxxxx\\"\\n }\\n },\\n \\"port\\": 5000\\n },\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n },\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"cpu\\": 0.5,\\n \\"memory\\": 512,\\n \\"port\\": 8080,\\n \\"createdAt\\": \\"2025-09-10T10:00:00Z\\",\\n \\"updatedAt\\": \\"2025-09-10T12:00:00Z\\",\\n \\"credentialName\\": \\"my-credential\\",\\n \\"timeout\\": 300,\\n \\"environmentVariables\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"agentIdentityEnabled\\": true,\\n \\"agentIdentityConfig\\": {\\n \\"authorizationEnabled\\": true,\\n \\"credentialProviderType\\": \\"\\",\\n \\"credentialProviderArn\\": \\"\\"\\n }\\n }\\n}","type":"json"}]',
+ ],
+ 'GetWorkspace' => [
+ 'path' => '/2025-09-10/workspaces/{workspaceId}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
- 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcUDVD99',
- ],
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
],
'parameters' => [
[
- 'name' => 'memoryCollectionName',
+ 'name' => 'workspaceId',
'in' => 'path',
- 'schema' => [
- 'description' => '记忆存储名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-memory-1',
- ],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '更新记忆存储所需的输入参数',
- 'required' => false,
- '$ref' => '#/components/schemas/UpdateMemoryCollectionInput',
- ],
+ 'schema' => ['description' => '工作空间ID', 'type' => 'string', 'required' => false, 'example' => 'ws-1234567890abcdef'],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'description' => '记忆存储',
- '$ref' => '#/components/schemas/MemoryCollectionResult',
- ],
+ 'schema' => ['description' => '返回结果', '$ref' => '#/components/schemas/WorkspaceResult'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"memoryCollectionName\\": \\"\\",\\n \\"memoryCollectionId\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"llmConfig\\": {\\n \\"config\\": {\\n \\"model\\": \\"\\"\\n },\\n \\"modelServiceName\\": \\"\\"\\n },\\n \\"embedderConfig\\": {\\n \\"config\\": {\\n \\"model\\": \\"\\"\\n },\\n \\"modelServiceName\\": \\"\\"\\n },\\n \\"vectorStoreConfig\\": {\\n \\"provider\\": \\"\\",\\n \\"config\\": {\\n \\"endpoint\\": \\"\\",\\n \\"instanceName\\": \\"\\",\\n \\"vectorDimension\\": 0,\\n \\"collectionName\\": \\"\\"\\n },\\n \\"mysqlConfig\\": {\\n \\"host\\": \\"\\",\\n \\"dbName\\": \\"\\",\\n \\"collectionName\\": \\"\\",\\n \\"user\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"vectorDimension\\": 0,\\n \\"port\\": 0\\n }\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"executionRoleArn\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"enableConversationHistory\\": true,\\n \\"enableConversationState\\": true\\n }\\n}","type":"json"}]',
- 'title' => '更新记忆存储',
- ],
- 'DeleteMemoryCollection' => [
- 'summary' => '删除记忆存储',
- 'path' => '/2025-09-10/agents/memory-collections/{memoryCollectionName}',
- 'methods' => [
- 'delete',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '获取工作空间详情',
+ 'summary' => '查看工作空间',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetWorkspace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Workspace', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"workspaceId\\": \\"\\",\\n \\"workspaceArn\\": \\"\\",\\n \\"name\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"isDefault\\": true,\\n \\"resourceGroupId\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"updatedAt\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'GetWorkspaceDiscoveryEndpoints' => [
+ 'path' => '/2025-09-10/workspaces/{workspaceId}/discovery/endpoints',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcUDVD99',
- ],
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
- 'name' => 'memoryCollectionName',
+ 'name' => 'workspaceId',
'in' => 'path',
- 'schema' => [
- 'description' => '记忆存储名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-memory-1',
- ],
+ 'schema' => ['description' => '工作空间ID', 'type' => 'string', 'required' => false, 'example' => 'ws-1234567890abcdef'],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'description' => '记忆存储详情',
- '$ref' => '#/components/schemas/MemoryCollectionResult',
- ],
+ 'schema' => ['description' => '发现端点配置结果', '$ref' => '#/components/schemas/GetDiscoveryEndpointsResult'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"memoryCollectionName\\": \\"\\",\\n \\"memoryCollectionId\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"llmConfig\\": {\\n \\"config\\": {\\n \\"model\\": \\"\\"\\n },\\n \\"modelServiceName\\": \\"\\"\\n },\\n \\"embedderConfig\\": {\\n \\"config\\": {\\n \\"model\\": \\"\\"\\n },\\n \\"modelServiceName\\": \\"\\"\\n },\\n \\"vectorStoreConfig\\": {\\n \\"provider\\": \\"\\",\\n \\"config\\": {\\n \\"endpoint\\": \\"\\",\\n \\"instanceName\\": \\"\\",\\n \\"vectorDimension\\": 0,\\n \\"collectionName\\": \\"\\"\\n },\\n \\"mysqlConfig\\": {\\n \\"host\\": \\"\\",\\n \\"dbName\\": \\"\\",\\n \\"collectionName\\": \\"\\",\\n \\"user\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"vectorDimension\\": 0,\\n \\"port\\": 0\\n }\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"executionRoleArn\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"enableConversationHistory\\": true,\\n \\"enableConversationState\\": true\\n }\\n}","type":"json"}]',
- 'title' => '删除记忆存储',
- ],
- 'CreateMemoryCollection' => [
- 'summary' => '添加记忆存储',
- 'path' => '/2025-09-10/agents/memory-collections',
- 'methods' => [
- 'post',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '获取工作空间发现端点配置',
+ 'summary' => '获取工作空间下的发现端点',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetWorkspaceDiscoveryEndpoints',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Workspace', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"credentialName\\": \\"\\",\\n \\"discoveryEndpoints\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"agentEndpointConfigs\\": [\\n {\\n \\"agentName\\": \\"\\",\\n \\"endpointName\\": \\"\\",\\n \\"endpointUrl\\": \\"\\",\\n \\"customDomainUrl\\": \\"\\"\\n }\\n ],\\n \\"credentialName\\": \\"\\",\\n \\"returnAgentCredentialContent\\": true\\n }\\n ]\\n }\\n}","type":"json"}]',
+ ],
+ 'ListAgentRuntimeEndpoints' => [
+ 'path' => '/2025-09-10/agents/runtimes/{agentRuntimeId}/endpoints',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
- 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcUDVD99',
- ],
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
],
'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '记忆存储配置信息',
- 'required' => false,
- '$ref' => '#/components/schemas/CreateMemoryCollectionInput',
- ],
+ 'name' => 'agentRuntimeId',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '智能体运行时ID', 'description' => '智能体运行时ID', 'type' => 'string', 'required' => true, 'example' => '12345678-1234-1234-1234-123456789abc'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'endpointName',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '按端点名称过滤', 'description' => '按端点名称过滤', 'type' => 'string', 'required' => false, 'example' => 'my-endpoint'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '页面大小', 'description' => '页面大小', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'searchMode',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '查询模式', 'description' => '查询模式', 'type' => 'string', 'required' => false, 'example' => 'fuzzy'],
+ 'examples' => [],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'description' => '记忆存储配置信息',
- '$ref' => '#/components/schemas/MemoryCollectionResult',
- ],
+ 'schema' => ['title' => '返回列表结构体的结果', 'description' => '返回列表结构体的结果', '$ref' => '#/components/schemas/ListAgentRuntimeEndpointsResult'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'title' => '获取智能体运行时访问端点列表',
+ 'summary' => '获取智能体运行时访问端点列表',
+ 'changeSet' => [
+ ['createdAt' => '2025-11-19T05:11:43.000Z', 'description' => '请求参数发生变更'],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"memoryCollectionName\\": \\"\\",\\n \\"memoryCollectionId\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"llmConfig\\": {\\n \\"config\\": {\\n \\"model\\": \\"\\"\\n },\\n \\"modelServiceName\\": \\"\\"\\n },\\n \\"embedderConfig\\": {\\n \\"config\\": {\\n \\"model\\": \\"\\"\\n },\\n \\"modelServiceName\\": \\"\\"\\n },\\n \\"vectorStoreConfig\\": {\\n \\"provider\\": \\"\\",\\n \\"config\\": {\\n \\"endpoint\\": \\"\\",\\n \\"instanceName\\": \\"\\",\\n \\"vectorDimension\\": 0,\\n \\"collectionName\\": \\"\\"\\n },\\n \\"mysqlConfig\\": {\\n \\"host\\": \\"\\",\\n \\"dbName\\": \\"\\",\\n \\"collectionName\\": \\"\\",\\n \\"user\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"vectorDimension\\": 0,\\n \\"port\\": 0\\n }\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"executionRoleArn\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"enableConversationHistory\\": true,\\n \\"enableConversationState\\": true\\n }\\n}","type":"json"}]',
- 'title' => '创建记忆存储',
- ],
- 'ListMemoryCollections' => [
- 'summary' => '查询记忆存储列表',
- 'path' => '/2025-09-10/agents/memory-collections',
- 'methods' => [
- 'get',
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListAgentRuntimeEndpoints',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"items\\": [\\n {\\n \\"agentRuntimeId\\": \\"ar-1234567890abcdef\\",\\n \\"agentRuntimeEndpointId\\": \\"are-1234567890abcdef\\",\\n \\"agentRuntimeEndpointArn\\": \\"acs:agentrun:cn-hangzhou:1760720386195983:runtime-endpoints/e56d483c-db80-4116-9ec4-25f16f5facfd\\",\\n \\"agentRuntimeEndpointName\\": \\"production-endpoint\\",\\n \\"description\\": \\"Production endpoint for customer service agent\\",\\n \\"status\\": \\"ACTIVE\\",\\n \\"statusReason\\": \\"Endpoint is active and ready\\",\\n \\"targetVersion\\": \\"LATEST\\",\\n \\"routingConfiguration\\": {\\n \\"versionWeights\\": [\\n {\\n \\"version\\": \\"\\",\\n \\"weight\\": 0\\n }\\n ]\\n },\\n \\"endpointPublicUrl\\": \\"https://ar-1234567890abcdef.cn-hangzhou.agentrun.aliyuncs.com\\",\\n \\"disablePublicNetworkAccess\\": true,\\n \\"scalingStatus\\": {\\n \\"minInstances\\": 1,\\n \\"targetInstances\\": 2,\\n \\"currentInstances\\": 2,\\n \\"scheduledPolicies\\": [\\n {\\n \\"name\\": \\"scale-up-morning\\",\\n \\"startTime\\": \\"2024-01-01T08:00:00\\",\\n \\"endTime\\": \\"2024-01-01T08:00:00\\",\\n \\"scheduleExpression\\": \\"cron(0 8 * * ? *)\\",\\n \\"timeZone\\": \\"Asia/Shanghai\\",\\n \\"target\\": 20\\n }\\n ],\\n \\"currentError\\": \\"error\\"\\n }\\n }\\n ],\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0,\\n \\"total\\": 0\\n }\\n}","type":"json"}]',
+ ],
+ 'ListAgentRuntimeVersions' => [
+ 'path' => '/2025-09-10/agents/runtimes/{agentRuntimeId}/versions',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
- 'deprecated' => false,
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcUDVD99',
- ],
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
],
'parameters' => [
[
+ 'name' => 'agentRuntimeId',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '智能体运行时ID', 'description' => '智能体运行时ID', 'type' => 'string', 'required' => true, 'example' => '12345678-1234-1234-1234-123456789abc'],
+ 'examples' => [],
+ ],
+ [
'name' => 'pageNumber',
'in' => 'query',
- 'schema' => [
- 'description' => '页码,默认 pageNumber=1',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ 'examples' => [],
],
[
'name' => 'pageSize',
'in' => 'query',
- 'schema' => [
- 'description' => '分页大小,默认pageSize = 20',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '20',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '页面大小', 'description' => '页面大小', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
+ 'examples' => [],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['title' => '返回列表结构体的结果', 'description' => '返回列表结构体的结果', '$ref' => '#/components/schemas/ListAgentRuntimeVersionsResult'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
+ ],
+ 'title' => '获取智能体运行时版本',
+ 'summary' => '获取智能体运行时版本',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListAgentRuntimeVersions',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"items\\": [\\n {\\n \\"agentRuntimeArn\\": \\"acs:agentrun:cn-hangzhou:1760720386195983:runtimes/7a1b6d39-9f8f-4ce2-b9c9-6db1b0b9e169\\",\\n \\"agentRuntimeId\\": \\"ar-1234567890abcdef\\",\\n \\"agentRuntimeName\\": \\"my-agent-runtime\\",\\n \\"agentRuntimeVersion\\": \\"LATEST\\",\\n \\"description\\": \\"Initial release with basic functionality\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T10:30:00Z\\"\\n }\\n ],\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0,\\n \\"total\\": 0\\n }\\n}","type":"json"}]',
+ ],
+ 'ListAgentRuntimes' => [
+ 'path' => '/2025-09-10/agents/runtimes',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'tags' => [],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'agentRuntimeName',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '按智能体运行时名称过滤', 'description' => '按智能体运行时名称过滤', 'type' => 'string', 'required' => false, 'example' => 'my-runtime'],
+ 'examples' => [],
+ ],
[
'name' => 'status',
'in' => 'query',
- 'schema' => [
- 'description' => '状态',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'READY',
- ],
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '按状态过滤', 'description' => '按状态过滤', 'type' => 'string', 'required' => false, 'example' => 'READY,CREATING'],
+ 'examples' => [],
],
[
- 'name' => 'type',
+ 'name' => 'systemTags',
'in' => 'query',
- 'schema' => [
- 'description' => '类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'mem0',
- ],
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => '根据系统标签进行过滤,多个标签用逗号分隔,支持精确匹配', 'type' => 'string', 'required' => false, 'example' => 'acs:ecs:tag1,acs:ecs:tag2'],
+ 'examples' => [],
],
[
- 'name' => 'memoryCollectionName',
+ 'name' => 'pageNumber',
'in' => 'query',
- 'schema' => [
- 'description' => '记忆存储名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-memory-1',
- ],
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '页面大小', 'description' => '页面大小', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'searchMode',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '查询模式', 'description' => '查询模式', 'type' => 'string', 'required' => false, 'example' => 'fuzzy'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'resourceGroupId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'deprecated' => true, 'required' => false, 'description' => ''],
+ ],
+ [
+ 'name' => 'workspaceId',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '工作空间ID', 'description' => '工作空间ID', 'type' => 'string', 'required' => false, 'example' => 'ws-1234567890abcdef'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'discoveryResourceGroupId',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '服务发现资源组ID', 'description' => '服务发现资源组ID', 'type' => 'string', 'deprecated' => true, 'required' => false, 'example' => 'rg-123456'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'workspaceIds',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false, 'description' => ''],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'description' => '记忆存储列表',
- '$ref' => '#/components/schemas/ListMemoryCollectionsResult',
- ],
+ 'schema' => ['title' => '返回列表结构体的结果', 'description' => '返回列表结构体的结果', '$ref' => '#/components/schemas/ListAgentRuntimesResult'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'title' => '获取智能体运行时列表',
+ 'summary' => '获取智能体运行时列表',
+ 'changeSet' => [
+ ['createdAt' => '2026-03-04T03:51:09.000Z', 'description' => '请求参数发生变更'],
+ ['createdAt' => '2026-02-11T03:31:24.000Z', 'description' => '请求参数发生变更'],
+ ['createdAt' => '2026-01-26T02:31:30.000Z', 'description' => '请求参数发生变更'],
+ ['createdAt' => '2026-01-22T02:26:27.000Z', 'description' => '请求参数发生变更'],
+ ['createdAt' => '2025-11-24T05:30:54.000Z', 'description' => '请求参数发生变更'],
+ ['createdAt' => '2025-11-19T05:11:43.000Z', 'description' => '请求参数发生变更'],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0,\\n \\"total\\": 0,\\n \\"items\\": [\\n {\\n \\"memoryCollectionName\\": \\"\\",\\n \\"memoryCollectionId\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"llmConfig\\": {\\n \\"config\\": {\\n \\"model\\": \\"\\"\\n },\\n \\"modelServiceName\\": \\"\\"\\n },\\n \\"embedderConfig\\": {\\n \\"config\\": {\\n \\"model\\": \\"\\"\\n },\\n \\"modelServiceName\\": \\"\\"\\n },\\n \\"vectorStoreConfig\\": {\\n \\"provider\\": \\"\\",\\n \\"config\\": {\\n \\"endpoint\\": \\"\\",\\n \\"instanceName\\": \\"\\",\\n \\"vectorDimension\\": 0,\\n \\"collectionName\\": \\"\\"\\n },\\n \\"mysqlConfig\\": {\\n \\"host\\": \\"\\",\\n \\"dbName\\": \\"\\",\\n \\"collectionName\\": \\"\\",\\n \\"user\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"vectorDimension\\": 0,\\n \\"port\\": 0\\n }\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"executionRoleArn\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"enableConversationHistory\\": true,\\n \\"enableConversationState\\": true\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '列出记忆存储',
- ],
- 'GetCredential' => [
- 'summary' => '获取凭证信息。',
- 'path' => '/2025-09-10/agents/credentials/{credentialName}',
- 'methods' => [
- 'get',
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListAgentRuntimes',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Agent', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0,\\n \\"total\\": 0,\\n \\"items\\": [\\n {\\n \\"agentRuntimeId\\": \\"ar-1234567890abcdef\\",\\n \\"agentRuntimeName\\": \\"my-agent-runtime\\",\\n \\"agentRuntimeArn\\": \\"acs:agentrun:cn-hangzhou:1760720386195983:runtimes/7a1b6d39-9f8f-4ce2-b9c9-6db1b0b9e169\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Runtime is ready for use\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"description\\": \\"AI agent runtime for customer service automation\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/AgentRunExecutionRole\\",\\n \\"credentialName\\": \\"my-credential\\",\\n \\"externalAgentEndpointUrl\\": \\"https://external-agent.example.com/api\\",\\n \\"agentRuntimeVersion\\": \\"1\\",\\n \\"artifactType\\": \\"Code\\",\\n \\"codeConfiguration\\": {\\n \\"zipFile\\": \\"UEsDBAoAAAAAANF\\",\\n \\"ossBucketName\\": \\"my-agent-code-bucket\\",\\n \\"ossObjectName\\": \\"agent-code-v1.0.zip\\",\\n \\"checksum\\": \\"1234567890123456789\\",\\n \\"language\\": \\"python3.12\\",\\n \\"command\\": [\\n \\"\\"\\n ]\\n },\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"/usr/local/bin/entrypoint.sh\\"\\n ],\\n \\"registryConfig\\": {\\n \\"authConfig\\": {\\n \\"userName\\": \\"admin\\",\\n \\"password\\": \\"abc***\\"\\n },\\n \\"certConfig\\": {\\n \\"insecure\\": false,\\n \\"rootCaCertBase64\\": \\"cm9vdF9jYV9jZXJ0X2Jhc2U2NA==\\"\\n },\\n \\"networkConfig\\": {\\n \\"vpcId\\": \\"vpc-xxxxxxxxxxxxx\\",\\n \\"vSwitchId\\": \\"vsw-xxxxxxxxxxxxx\\",\\n \\"securityGroupId\\": \\"sg-xxxxxxxxxxxxx\\"\\n }\\n },\\n \\"port\\": 5000\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"protocolConfiguration\\": {\\n \\"type\\": \\"HTTP\\",\\n \\"protocolSettings\\": [\\n {\\n \\"type\\": \\"\\",\\n \\"name\\": \\"\\",\\n \\"config\\": \\"\\",\\n \\"path\\": \\"\\",\\n \\"pathPrefix\\": \\"\\",\\n \\"headers\\": \\"\\",\\n \\"method\\": \\"\\",\\n \\"inputBodyJsonSchema\\": \\"\\",\\n \\"outputBodyJsonSchema\\": \\"\\",\\n \\"requestContentType\\": \\"\\",\\n \\"responseContentType\\": \\"\\",\\n \\"A2AAgentCard\\": \\"\\",\\n \\"a2aAgentCard\\": \\"\\",\\n \\"a2aAgentCardUrl\\": \\"\\"\\n }\\n ]\\n },\\n \\"cpu\\": 2,\\n \\"memory\\": 2048,\\n \\"diskSize\\": 0,\\n \\"port\\": 8080,\\n \\"sessionConcurrencyLimitPerInstance\\": 100,\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"healthCheckConfiguration\\": {\\n \\"httpGetUrl\\": \\"/ready\\",\\n \\"initialDelaySeconds\\": 30,\\n \\"periodSeconds\\": 30,\\n \\"timeoutSeconds\\": 3,\\n \\"failureThreshold\\": 3,\\n \\"successThreshold\\": 1\\n },\\n \\"sessionIdleTimeoutSeconds\\": 3600,\\n \\"enableSessionIsolation\\": false,\\n \\"disableOndemand\\": false,\\n \\"disableSessionAffinity\\": false,\\n \\"sessionAffinityType\\": \\"GENERATED_COOKIE\\",\\n \\"headerFieldName\\": \\"x-agentrun-session-id\\",\\n \\"resourceGroupId\\": \\"\\",\\n \\"workspaceId\\": \\"ws-1234567890abcdef\\",\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n },\\n \\"environmentVariables\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"systemTags\\": [\\n \\"\\"\\n ],\\n \\"agentIdentityEnabled\\": \\"\\",\\n \\"agentIdentityConfig\\": {\\n \\"identityProviderName\\": \\"\\",\\n \\"workloadIdentityName\\": \\"\\"\\n },\\n \\"edition\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
+ ],
+ 'ListBrowsers' => [
+ 'path' => '/2025-09-10/agents/browsers',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- 'FEATUREfcVF016G',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
- 'name' => 'credentialName',
- 'in' => 'path',
+ 'name' => 'browserName',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '按浏览器名称过滤', 'description' => '按浏览器名称过滤', 'type' => 'string', 'required' => false, 'example' => 'browser'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '页面大小', 'description' => '页面大小', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'status',
+ 'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'description' => 'credentialName',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'credentialName',
- ],
+ 'schema' => ['title' => '按状态过滤', 'description' => '按状态过滤', 'type' => 'string', 'required' => false, 'example' => 'CREATING'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => 'Successful response',
- 'headers' => [],
- 'schema' => [
- 'description' => 'CredentialResult',
- '$ref' => '#/components/schemas/CredentialResult',
- ],
+ 'schema' => ['title' => '返回列表结构体的结果', 'description' => '返回列表结构体的结果', '$ref' => '#/components/schemas/ListBrowsersResult'],
'examples' => [],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"credentialId\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"credentialAuthType\\": \\"\\",\\n \\"credentialSourceType\\": \\"\\",\\n \\"enabled\\": true,\\n \\"credentialSecret\\": \\"\\",\\n \\"credentialPublicConfig\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"createdAt\\": \\"\\",\\n \\"updatedAt\\": \\"\\",\\n \\"relatedResources\\": [\\n {\\n \\"resourceId\\": \\"\\",\\n \\"resourceName\\": \\"\\",\\n \\"resourceType\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '获取凭证信息',
- 'description' => '根据会话ID获取指定内存会话的详细信息,包括会话中的事件记录、时间戳等。用于查看和管理对话历史。',
- ],
- 'UpdateCredential' => [
- 'summary' => '更新凭证。',
- 'path' => '/2025-09-10/agents/credentials/{credentialName}',
- 'methods' => [
- 'put',
+ 'title' => '获取浏览器沙箱列表',
+ 'summary' => '获取浏览器沙箱列表',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListBrowsers',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0,\\n \\"total\\": 0,\\n \\"items\\": [\\n {\\n \\"browserId\\": \\"browser-1234567890abcdef\\",\\n \\"browserName\\": \\"my-browser\\",\\n \\"description\\": \\"Web automation browser for testing\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Browser is ready for use\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/BrowserExecutionRole\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"recording\\": {\\n \\"enabled\\": true,\\n \\"ossLocation\\": {\\n \\"bucket\\": \\"\\",\\n \\"prefix\\": \\"\\"\\n }\\n },\\n \\"memory\\": 2048,\\n \\"credentialId\\": \\"cred-1234567890abcdef\\",\\n \\"cpu\\": 2,\\n \\"tenantId\\": \\"tenant-1234567890abcdef\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
+ ],
+ 'ListCodeInterpreters' => [
+ 'path' => '/2025-09-10/agents/code-interpreters',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'update',
+ 'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- 'FEATUREfcVF016G',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
],
'parameters' => [
[
- 'name' => 'credentialName',
- 'in' => 'path',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'description' => 'credentialName',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'credentialName',
- ],
+ 'name' => 'codeInterpreterName',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '按代码解释器名称过滤', 'description' => '按代码解释器名称过滤', 'type' => 'string', 'required' => false, 'example' => 'code'],
'examples' => [],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'schema' => [
- 'description' => '更新智能体运行时输入',
- 'required' => false,
- '$ref' => '#/components/schemas/UpdateCredentialInput',
- ],
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'default' => '1'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '页面大小', 'description' => '页面大小', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'default' => '20'],
+ 'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => 'Successful response',
- 'headers' => [],
- 'schema' => [
- 'description' => 'CredentialResult',
- '$ref' => '#/components/schemas/CredentialResult',
- ],
+ 'schema' => ['title' => '返回列表结构体的结果', 'description' => '返回列表结构体的结果', '$ref' => '#/components/schemas/ListCodeInterpretersResult'],
'examples' => [],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"credentialId\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"credentialAuthType\\": \\"\\",\\n \\"credentialSourceType\\": \\"\\",\\n \\"enabled\\": true,\\n \\"credentialSecret\\": \\"\\",\\n \\"credentialPublicConfig\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"createdAt\\": \\"\\",\\n \\"updatedAt\\": \\"\\",\\n \\"relatedResources\\": [\\n {\\n \\"resourceId\\": \\"\\",\\n \\"resourceName\\": \\"\\",\\n \\"resourceType\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '更新凭证',
- 'description' => '获取当前用户的所有模板列表,支持按模板类型过滤,支持分页查询。',
+ 'title' => '获取代码解释器列表',
+ 'summary' => '获取代码解释器列表',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListCodeInterpreters',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0,\\n \\"total\\": 0,\\n \\"items\\": [\\n {\\n \\"codeInterpreterId\\": \\"ci-1234567890abcdef\\",\\n \\"codeInterpreterName\\": \\"my-code-interpreter\\",\\n \\"description\\": \\"Python code interpreter for data analysis\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/CodeInterpreterExecutionRole\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Code interpreter is ready for use\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"memory\\": 2048,\\n \\"cpu\\": 2,\\n \\"tenantId\\": \\"tenant-1234567890abcdef\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'ListCredentials' => [
'summary' => '列出全部凭证。',
'path' => '/2025-09-10/agents/credentials',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- 'FEATUREfcVF016G',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY', 'FEATUREfcVF016G'],
'tenantRelevance' => 'tenant',
],
'parameters' => [
@@ -10134,755 +9008,714 @@
'name' => 'pageSize',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'description' => '页面大小',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '0',
- ],
+ 'schema' => ['description' => '页面大小', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'],
'examples' => [],
],
[
'name' => 'pageNumber',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'description' => '页码',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
'examples' => [],
],
[
'name' => 'credentialAuthType',
'in' => 'query',
'schema' => [
- 'description' => 'credentialAuthType',
+ 'description' => '凭证类型',
'type' => 'string',
'required' => false,
'example' => 'credentialAuthType',
- 'enum' => [
- 'jwt',
- 'api_key',
- 'basic',
- 'ak_sk',
- 'custom_header',
- ],
+ 'enum' => ['jwt', 'api_key', 'basic', 'ak_sk', 'custom_header'],
],
],
[
'name' => 'credentialSourceType',
'in' => 'query',
'schema' => [
- 'description' => 'credentialSourceType',
+ 'description' => '凭证来源类型',
'type' => 'string',
'required' => false,
'example' => 'credentialSourceType',
- 'enum' => [
- 'internal',
- 'external',
- 'external_llm',
- 'external_tool',
- ],
+ 'enum' => ['internal', 'external', 'external_llm', 'external_tool'],
],
],
[
'name' => 'credentialName',
'in' => 'query',
- 'schema' => [
- 'description' => 'credentialName',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'credentialName',
- ],
+ 'schema' => ['description' => '凭证名称', 'type' => 'string', 'required' => false, 'example' => 'credentialName'],
],
[
'name' => 'provider',
'in' => 'query',
- 'schema' => [
- 'description' => '云厂商,目前只支持Aliyun。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Aliyun',
- ],
+ 'schema' => ['description' => '第三方凭证提供商', 'type' => 'string', 'required' => false, 'example' => 'Aliyun'],
],
[
'name' => 'enabled',
'in' => 'query',
- 'schema' => [
- 'description' => '是否启用录制',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'False',
- ],
+ 'schema' => ['description' => '是否启用', 'type' => 'boolean', 'required' => false, 'example' => 'False'],
+ ],
+ [
+ 'name' => 'workspaceId',
+ 'in' => 'query',
+ 'schema' => ['description' => '工作空间唯一标识', 'type' => 'string', 'required' => false, 'example' => 'ws-1'],
+ ],
+ [
+ 'name' => 'workspaceIds',
+ 'in' => 'query',
+ 'schema' => ['description' => '多个工作空间标识', 'type' => 'string', 'required' => false, 'example' => 'ws-1,ws-2'],
],
],
'responses' => [
200 => [
'description' => 'Successful response',
'headers' => [],
- 'schema' => [
- 'description' => 'ListCredentialsResult',
- '$ref' => '#/components/schemas/ListCredentialsResult',
- ],
+ 'schema' => ['description' => 'ListCredentialsResult', '$ref' => '#/components/schemas/ListCredentialsResult'],
'examples' => [],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"total\\": \\"\\",\\n \\"pageSize\\": \\"\\",\\n \\"pageNumber\\": \\"\\",\\n \\"items\\": [\\n {\\n \\"credentialId\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"credentialAuthType\\": \\"\\",\\n \\"credentialSourceType\\": \\"\\",\\n \\"enabled\\": true,\\n \\"createdAt\\": \\"\\",\\n \\"updatedAt\\": \\"\\",\\n \\"relatedResourceCount\\": 0\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => '列出全部凭证',
'description' => '获取当前用户的所有沙箱列表,支持按模板名称过滤,支持分页查询。',
- ],
- 'CreateCredential' => [
- 'summary' => '创建新凭证。',
- 'path' => '/2025-09-10/agents/credentials',
- 'methods' => [
- 'post',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListCredentials',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Credential', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/credentials/*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"total\\": \\"\\",\\n \\"pageSize\\": \\"\\",\\n \\"pageNumber\\": \\"\\",\\n \\"items\\": [\\n {\\n \\"credentialId\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"credentialAuthType\\": \\"\\",\\n \\"credentialSourceType\\": \\"\\",\\n \\"enabled\\": true,\\n \\"createdAt\\": \\"\\",\\n \\"updatedAt\\": \\"\\",\\n \\"relatedResourceCount\\": 0,\\n \\"description\\": \\"\\",\\n \\"workspaceId\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
+ ],
+ 'ListCustomDomains' => [
+ 'path' => '/2025-09-10/agents/custom-domains',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- 'FEATUREfcVF016G',
- ],
- 'tenantRelevance' => 'publicInformation',
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY', 'FEATUREfcVF016G'],
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => '页面大小', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'domainName',
+ 'in' => 'query',
+ 'schema' => ['description' => '自定义域名', 'type' => 'string', 'required' => false, 'example' => 'mydomain.com'],
+ ],
+ [
+ 'name' => 'resourceName',
+ 'in' => 'query',
+ 'schema' => ['description' => '关联自定义域名的资源名称', 'type' => 'string', 'required' => false, 'example' => 'agent-1'],
+ ],
+ [
+ 'name' => 'resourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '关联自定义域名的资源类型',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => ['runtime' => 'runtime'],
+ 'example' => 'runtime',
+ 'enum' => ['runtime', 'litellm', 'template', 'tool', 'flow'],
+ ],
+ ],
+ [
+ 'name' => 'domainType',
+ 'in' => 'query',
'schema' => [
- 'description' => '创建智能体运行时所需的输入参数',
+ 'title' => '域名类型筛选参数,枚举值为STANDARD, SANDBOX',
+ 'description' => '域名类型筛选参数,枚举值为STANDARD, SANDBOX',
+ 'type' => 'string',
'required' => false,
- '$ref' => '#/components/schemas/CreateCredentialInput',
+ 'enum' => ['STANDARD', 'SANDBOX'],
],
],
],
'responses' => [
200 => [
- 'description' => 'Successful response',
'headers' => [],
- 'schema' => [
- 'description' => 'CredentialResult',
- '$ref' => '#/components/schemas/CredentialResult',
- ],
+ 'schema' => ['description' => '自定义域名信息', '$ref' => '#/components/schemas/ListCustomDomainsResult'],
'examples' => [],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"credentialId\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"credentialAuthType\\": \\"\\",\\n \\"credentialSourceType\\": \\"\\",\\n \\"enabled\\": true,\\n \\"credentialSecret\\": \\"\\",\\n \\"credentialPublicConfig\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"createdAt\\": \\"\\",\\n \\"updatedAt\\": \\"\\",\\n \\"relatedResources\\": [\\n {\\n \\"resourceId\\": \\"\\",\\n \\"resourceName\\": \\"\\",\\n \\"resourceType\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '创建新凭证',
- 'description' => '获取当前用户的所有模板列表,支持按模板类型过滤,支持分页查询。',
- ],
- 'DeleteCredential' => [
- 'summary' => '删除指定凭证。',
- 'path' => '/2025-09-10/agents/credentials/{credentialName}',
- 'methods' => [
- 'delete',
+ 'title' => '列出自定义域名',
+ 'summary' => '获取自定义域名信息列表。',
+ 'changeSet' => [
+ ['createdAt' => '2026-03-04T08:03:02.000Z', 'description' => '请求参数发生变更'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListCustomDomains',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"pageSize\\": 0,\\n \\"pageNumber\\": 0,\\n \\"total\\": 0,\\n \\"items\\": [\\n {\\n \\"domainName\\": \\"example.com\\",\\n \\"description\\": \\"\\",\\n \\"protocol\\": \\"HTTP\\",\\n \\"routeConfig\\": {\\n \\"routes\\": [\\n {\\n \\"path\\": \\"/login\\",\\n \\"resourceName\\": \\"\\",\\n \\"resourceType\\": \\"runtime\\",\\n \\"agentRuntimeEndpointName\\": \\"\\",\\n \\"compatibleProtocol\\": \\"native\\",\\n \\"flowEndpointName\\": \\"Default\\",\\n \\"methods\\": [\\n \\"\\"\\n ],\\n \\"removeBasePathOnForward\\": true\\n }\\n ]\\n },\\n \\"certConfig\\": {\\n \\"certName\\": \\"my-cert\\",\\n \\"certificate\\": \\"-----BEGIN CERTIFICATE-----\\\\\\\\nxxxxx\\\\\\\\n-----END CERTIFICATE-----\\",\\n \\"privateKey\\": \\"-----BEGIN RSA PRIVATE KEY-----\\\\\\\\nxxxxx\\\\\\\\n-----END RSA PRIVATE KEY-----\\"\\n },\\n \\"tlsConfig\\": {\\n \\"minVersion\\": \\"TLSv1.2\\",\\n \\"cipherSuites\\": [\\n \\"\\"\\n ],\\n \\"maxVersion\\": \\"TLSv1.3\\"\\n },\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"updatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"domainType\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
+ ],
+ 'ListFlowEndpoints' => [
+ 'path' => '/2025-09-10/flows/{flowId}/endpoints',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'delete',
+ 'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- 'FEATUREfcVF016G',
- ],
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'credentialName',
+ 'name' => 'flowId',
'in' => 'path',
'allowEmptyValue' => true,
- 'schema' => [
- 'description' => 'credentialName',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'credentialName',
- ],
+ 'schema' => ['title' => '工作流ID', 'description' => '工作流ID', 'type' => 'string', 'required' => true, 'example' => 'flow-1234567890abcdef'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '页面大小', 'description' => '页面大小', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => 'Successful response',
- 'headers' => [],
- 'schema' => [
- 'description' => 'CredentialResult',
- '$ref' => '#/components/schemas/CredentialResult',
- ],
+ 'schema' => ['title' => '返回端点列表结构体的结果', 'description' => '返回端点列表结构体的结果', '$ref' => '#/components/schemas/ListFlowEndpointsResult'],
'examples' => [],
],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"credentialId\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"credentialAuthType\\": \\"\\",\\n \\"credentialSourceType\\": \\"\\",\\n \\"enabled\\": true,\\n \\"credentialSecret\\": \\"\\",\\n \\"credentialPublicConfig\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"createdAt\\": \\"\\",\\n \\"updatedAt\\": \\"\\",\\n \\"relatedResources\\": [\\n {\\n \\"resourceId\\": \\"\\",\\n \\"resourceName\\": \\"\\",\\n \\"resourceType\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '删除指定凭证',
- 'description' => '获取当前用户的所有模板列表,支持按模板类型过滤,支持分页查询。',
- ],
- 'GetAccessToken' => [
- 'summary' => '获取accessToken。',
- 'path' => '/2025-09-10/agents/accessToken',
- 'methods' => [
- 'get',
+ 'title' => '获取流程编排调用端点列表',
+ 'summary' => '列出工作流端点。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListFlowEndpoints',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0,\\n \\"total\\": 0,\\n \\"items\\": [\\n {\\n \\"flowId\\": \\"flow-1234567890abcdef\\",\\n \\"flowEndpointId\\": \\"fe-1234567890abcdef\\",\\n \\"flowEndpointArn\\": \\"acs:agentrun:cn-hangzhou:123456789012:workspaces/ws-xxx/flows/flow-xxx/endpoints/fe-xxx\\",\\n \\"flowEndpointName\\": \\"my-flow-endpoint\\",\\n \\"description\\": \\"Production endpoint for flow\\",\\n \\"targetVersion\\": \\"1\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"routingConfiguration\\": [\\n {\\n \\"version\\": \\"1\\",\\n \\"weight\\": 100\\n }\\n ],\\n \\"disablePublicNetworkAccess\\": true\\n }\\n ]\\n }\\n}","type":"json"}]',
+ ],
+ 'ListFlowVersions' => [
+ 'path' => '/2025-09-10/flows/{flowName}/versions',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- 'FEATUREfcVF016G',
- ],
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'resourceName',
- 'in' => 'query',
+ 'name' => 'flowName',
+ 'in' => 'path',
'allowEmptyValue' => true,
- 'schema' => [
- 'description' => '智能体运行时的资源名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'COUPON_OPERATION_CALLBACK',
- ],
+ 'schema' => ['title' => '工作流ID', 'description' => '工作流ID', 'type' => 'string', 'required' => true, 'example' => 'flow-1234567890abcdef'],
'examples' => [],
],
[
- 'name' => 'resourceType',
+ 'name' => 'pageNumber',
'in' => 'query',
- 'schema' => [
- 'description' => '资源类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'SceneTestingTask',
- 'enum' => [
- 'runtime',
- 'litellm',
- 'tool',
- 'template',
- 'sandbox',
- ],
- ],
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ 'examples' => [],
],
[
- 'name' => 'resourceId',
+ 'name' => 'pageSize',
'in' => 'query',
- 'schema' => [
- 'description' => '资源ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'mod-kw1750tjqs94n9k37o5hjk',
- ],
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '页面大小', 'description' => '页面大小', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
+ 'examples' => [],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'type' => 'object',
- 'properties' => [
- 'code' => [
- 'description' => 'SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'requestId' => [
- 'description' => '唯一的请求标识符,用于问题追踪',
- 'type' => 'string',
- 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E',
- ],
- 'data' => [
- 'description' => '返回结果',
- 'type' => 'object',
- 'properties' => [
- 'accessToken' => [
- 'description' => '个人访问令牌。 '."\n"
- .'使用阿里云AK+SK或使用STS临时授权方式不需要传该字段'."\n"
- ."\n",
- 'type' => 'string',
- 'example' => 'accessToken',
- ],
- ],
- ],
+ 'schema' => ['title' => '返回版本列表结构体的结果', 'description' => '返回版本列表结构体的结果', '$ref' => '#/components/schemas/ListFlowVersionsResult'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
+ ],
+ 'title' => '获取流程版本列表',
+ 'summary' => '列出工作流版本。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListFlowVersions',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/{#flowId}'],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"accessToken\\": \\"accessToken\\"\\n }\\n}","type":"json"}]',
- 'title' => '获取accessToken',
- 'description' => '根据会话ID获取指定内存会话的详细信息,包括会话中的事件记录、时间戳等。用于查看和管理对话历史。',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0,\\n \\"total\\": 0,\\n \\"items\\": [\\n {\\n \\"flowId\\": \\"flow-1234567890abcdef\\",\\n \\"flowVersion\\": \\"1\\",\\n \\"description\\": \\"Version 1.0 - Initial release\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"flowName\\": \\"\\",\\n \\"definition\\": \\"Type: StateMachine\\\\\\\\nName: my-flow\\\\\\\\n...\\",\\n \\"environmentConfiguration\\": {\\n \\"variables\\": [\\n {\\n \\"name\\": \\"MY_KEY\\",\\n \\"value\\": \\"my-value\\",\\n \\"description\\": \\"A configuration key\\"\\n }\\n ]\\n },\\n \\"externalStorageLocation\\": \\"oss://bucket/path\\",\\n \\"tracingConfiguration\\": {\\n \\"enabled\\": true\\n },\\n \\"loggingConfiguration\\": {\\n \\"destinations\\": [\\n {\\n \\"slsLogDestination\\": {\\n \\"project\\": \\"my-sls-project\\",\\n \\"logStore\\": \\"my-logstore\\"\\n }\\n }\\n ]\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
],
- 'CreateKnowledgeBase' => [
- 'summary' => '创建知识库。',
- 'path' => '/2025-09-10/agents/knowledgebases',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'ListFlows' => [
+ 'path' => '/2025-09-10/flows',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
- 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'schema' => [
- 'description' => '创建知识库数据结构。',
- 'required' => false,
- '$ref' => '#/components/schemas/CreateKnowledgeBaseInput',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'description' => '创建知识库返回结果。',
- '$ref' => '#/components/schemas/KnowledgeBaseResult',
- ],
+ 'name' => 'flowName',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '按工作流名称过滤', 'description' => '按工作流名称过滤', 'type' => 'string', 'required' => false, 'example' => 'my-flow'],
+ 'examples' => [],
],
- ],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"knowledgeBaseId\\": \\"\\",\\n \\"knowledgeBaseName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"provider\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"providerSettings\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"retrieveSettings\\": {\\n \\"key\\": \\"\\"\\n }\\n }\\n}","type":"json"}]',
- 'title' => '创建知识库',
- ],
- 'UpdateKnowledgeBase' => [
- 'summary' => '更新知识库。',
- 'path' => '/2025-09-10/agents/knowledgebases/{knowledgeBaseName}',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'https',
- ],
- 'security' => [
[
- 'AK' => [],
+ 'name' => 'workspaceId',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '工作空间ID', 'description' => '工作空间ID', 'type' => 'string', 'required' => false, 'example' => 'ws-1234567890abcdef'],
+ 'examples' => [],
],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'readAndWrite',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'update',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
+ [
+ 'name' => 'workspaceIds',
+ 'in' => 'query',
+ 'schema' => ['description' => '工作空间ID列表', 'type' => 'string', 'required' => false, 'example' => 'ws-1234567890abcdef,ws-1234567890bcdefg'],
],
- 'tenantRelevance' => 'publicInformation',
- ],
- 'parameters' => [
[
- 'name' => 'knowledgeBaseName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '知识库名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-knowledgebase-name',
- ],
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ 'examples' => [],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '更新知识库请求体。',
- 'required' => false,
- '$ref' => '#/components/schemas/UpdateKnowledgeBaseInput',
- ],
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '页面大小', 'description' => '页面大小', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
+ 'examples' => [],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'description' => '更新后的知识库返回结果。',
- '$ref' => '#/components/schemas/KnowledgeBaseResult',
- ],
+ 'schema' => ['title' => '返回列表结构体的结果', 'description' => '返回列表结构体的结果', '$ref' => '#/components/schemas/ListFlowsResult'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
],
],
- 'errorCodes' => [
- 400 => [
- [
- 'errorCode' => 'IdempotentParameterMismatch',
- 'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.',
+ 'title' => '获取流程编排列表',
+ 'summary' => '列出工作流',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListFlows',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/*'],
+ ],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"knowledgeBaseId\\": \\"\\",\\n \\"knowledgeBaseName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"provider\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"providerSettings\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"retrieveSettings\\": {\\n \\"key\\": \\"\\"\\n }\\n }\\n}","type":"json"}]',
- 'title' => '更新知识库',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0,\\n \\"total\\": 0,\\n \\"items\\": [\\n {\\n \\"flowId\\": \\"flow-1234567890abcdef\\",\\n \\"flowArn\\": \\"acs:agentrun:cn-hangzhou:123456789012:workspaces/ws-xxx/flows/flow-xxx\\",\\n \\"flowName\\": \\"my-flow\\",\\n \\"description\\": \\"Customer service automation flow\\",\\n \\"definition\\": \\"{}\\",\\n \\"executionRoleArn\\": \\"acs:ram::123456789012:role/FlowExecutionRole\\",\\n \\"environmentConfiguration\\": {\\n \\"variables\\": [\\n {\\n \\"name\\": \\"MY_KEY\\",\\n \\"value\\": \\"my-value\\",\\n \\"description\\": \\"A configuration key\\"\\n }\\n ]\\n },\\n \\"externalStorageLocation\\": \\"oss://bucket/path\\",\\n \\"resourceGroupId\\": \\"rg-acfmxsn4m4a4b4a\\",\\n \\"tracingConfiguration\\": {\\n \\"enabled\\": true\\n },\\n \\"loggingConfiguration\\": {\\n \\"destinations\\": [\\n {\\n \\"slsLogDestination\\": {\\n \\"project\\": \\"my-sls-project\\",\\n \\"logStore\\": \\"my-logstore\\"\\n }\\n }\\n ]\\n },\\n \\"workspaceId\\": \\"ws-1234567890abcdef\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"disablePublicNetworkAccess\\": true\\n }\\n ]\\n }\\n}","type":"json"}]',
],
- 'DeleteKnowledgeBase' => [
- 'summary' => '删除知识库。',
- 'path' => '/2025-09-10/agents/knowledgebases/{knowledgeBaseName}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'ListIMBots' => [
+ 'summary' => '分页列举 IM Bots',
+ 'description' => 'GET /2025-09-10/agents/im-bots;200 OK;data 含 items、pageNumber、pageSize、total;pageNumber 默认 1、pageSize 默认 20、上限 100;可按 botName(子串忽略大小写)、agentRuntimeId、botBizType、status 筛选',
+ 'path' => '/2025-09-10/agents/im-bots',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
- 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
+ 'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'knowledgeBaseName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '知识库名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-knowledgebase-name',
- ],
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'schema' => ['description' => '默认 1;传入时须 ≥ 1', 'type' => 'integer', 'format' => 'int32', 'required' => false],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => '默认 20;传入时须 1–100', 'type' => 'integer', 'format' => 'int32', 'required' => false],
+ ],
+ [
+ 'name' => 'botName',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false, 'description' => ''],
+ ],
+ [
+ 'name' => 'agentRuntimeId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false, 'description' => ''],
+ ],
+ [
+ 'name' => 'botBizType',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'status',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false, 'description' => ''],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'description' => '删除知识库返回结果。',
- '$ref' => '#/components/schemas/KnowledgeBaseResult',
- ],
+ 'description' => '成功响应 data 为分页对象',
+ 'schema' => ['$ref' => '#/components/schemas/ListIMBotsResult', 'description' => ''],
+ ],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
],
],
- 'errorCodes' => [
- 400 => [
- [
- 'errorCode' => 'IdempotentParameterMismatch',
- 'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListIMBots',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"knowledgeBaseId\\": \\"\\",\\n \\"knowledgeBaseName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"provider\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"providerSettings\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"retrieveSettings\\": {\\n \\"key\\": \\"\\"\\n }\\n }\\n}","type":"json"}]',
- 'title' => '删除知识库',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"items\\": [\\n {\\n \\"id\\": \\"\\",\\n \\"tenantId\\": \\"\\",\\n \\"imChannelServerResourceName\\": \\"\\",\\n \\"botBizId\\": \\"\\",\\n \\"botName\\": \\"\\",\\n \\"agentRuntimeId\\": \\"\\",\\n \\"botBizType\\": \\"\\",\\n \\"botMode\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"lastMessageTime\\": \\"\\",\\n \\"currentInstances\\": 0,\\n \\"description\\": \\"\\",\\n \\"metadata\\": {\\n \\"agentRuntimeId\\": \\"\\",\\n \\"agentRuntimeEndpointId\\": \\"\\",\\n \\"agentRuntimeEndpointUrl\\": \\"\\",\\n \\"protocolType\\": \\"\\",\\n \\"role\\": \\"\\",\\n \\"customFunctionMeta\\": \\"\\"\\n },\\n \\"createdAt\\": \\"\\",\\n \\"updatedAt\\": \\"\\"\\n }\\n ],\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0,\\n \\"total\\": 0\\n }\\n}","type":"json"}]',
],
- 'GetKnowledgeBase' => [
- 'summary' => '获取知识库。',
- 'path' => '/2025-09-10/agents/knowledgebases/{knowledgeBaseName}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'ListKnowledgeBases' => [
+ 'summary' => '列出知识库。',
+ 'path' => '/2025-09-10/agents/knowledgebases',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
- 'tenantRelevance' => 'publicInformation',
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
],
'parameters' => [
[
- 'name' => 'knowledgeBaseName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '知识库名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-knowledgebase-name',
- ],
+ 'name' => 'provider',
+ 'in' => 'query',
+ 'schema' => ['description' => '知识库供应商。', 'type' => 'string', 'required' => false, 'example' => 'bailian', 'title' => '知识库供应商'],
+ ],
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'schema' => ['description' => '分页页码,从1开始,不填默认1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => '页数'],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => '分页大小,默认pageSize = 20', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'title' => '页面大小'],
+ ],
+ [
+ 'name' => 'workspaceId',
+ 'in' => 'query',
+ 'schema' => ['title' => '工作空间ID', 'type' => 'string', 'example' => '1e546db8-bd93-5a52-9be1-5a1351cdac95'],
+ ],
+ [
+ 'name' => 'workspaceIds',
+ 'in' => 'query',
+ 'schema' => ['title' => '多个工作空间Id', 'type' => 'string', 'example' => '1e546db8-bd93-5a52-9be1-5a1351cdac95,1e546db8-bd93-5a52-9be1-5a1351caass4'],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'description' => '获取知识库结果。',
- '$ref' => '#/components/schemas/KnowledgeBaseResult',
- ],
+ 'schema' => ['description' => '知识库列表结果。', '$ref' => '#/components/schemas/ListKnowledgeBasesResult', 'title' => '列出知识库返回结构体'],
],
],
- 'errorCodes' => [
- 400 => [
- [
- 'errorCode' => 'IdempotentParameterMismatch',
- 'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '列出知识库',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListKnowledgeBases',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Knowledgebase', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/knowledgebases/*'],
+ ],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"knowledgeBaseId\\": \\"\\",\\n \\"knowledgeBaseName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"provider\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"providerSettings\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"retrieveSettings\\": {\\n \\"key\\": \\"\\"\\n }\\n }\\n}","type":"json"}]',
- 'title' => '获取知识库',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0,\\n \\"total\\": 0,\\n \\"items\\": [\\n {\\n \\"knowledgeBaseId\\": \\"\\",\\n \\"knowledgeBaseName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"provider\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"providerSettings\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"retrieveSettings\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"workspaceId\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
- 'ListKnowledgeBases' => [
- 'summary' => '列出知识库。',
- 'path' => '/2025-09-10/agents/knowledgebases',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'ListMemoryCollections' => [
+ 'path' => '/2025-09-10/agents/memory-collections',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcUDVD99'],
],
'parameters' => [
[
- 'name' => 'provider',
+ 'name' => 'pageNumber',
'in' => 'query',
- 'schema' => [
- 'description' => '知识库供应商。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'bailian',
- ],
+ 'schema' => ['description' => '页码,默认 pageNumber=1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
- 'name' => 'pageNumber',
+ 'name' => 'pageSize',
'in' => 'query',
- 'schema' => [
- 'description' => '分页页码,从1开始,不填默认1。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '分页大小,默认pageSize = 20', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'],
],
[
- 'name' => 'pageSize',
+ 'name' => 'status',
'in' => 'query',
- 'schema' => [
- 'description' => '分页大小,默认pageSize = 20',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '20',
- ],
+ 'schema' => ['description' => '状态', 'type' => 'string', 'required' => false, 'example' => 'READY'],
+ ],
+ [
+ 'name' => 'type',
+ 'in' => 'query',
+ 'schema' => ['description' => '类型', 'type' => 'string', 'required' => false, 'example' => 'mem0'],
+ ],
+ [
+ 'name' => 'memoryCollectionName',
+ 'in' => 'query',
+ 'schema' => ['description' => '记忆存储名称', 'type' => 'string', 'required' => false, 'example' => 'my-memory-1'],
+ ],
+ [
+ 'name' => 'workspaceId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false, 'description' => ''],
+ ],
+ [
+ 'name' => 'workspaceIds',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false, 'description' => ''],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'description' => '知识库列表结果。',
- '$ref' => '#/components/schemas/ListKnowledgeBasesResult',
- ],
+ 'schema' => ['description' => '记忆存储列表', '$ref' => '#/components/schemas/ListMemoryCollectionsResult'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '列出记忆存储',
+ 'summary' => '查询记忆存储列表',
+ 'changeSet' => [
+ ['createdAt' => '2026-03-11T12:12:47.000Z', 'description' => '请求参数发生变更'],
+ ['createdAt' => '2026-03-04T03:29:50.000Z', 'description' => '请求参数发生变更'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0,\\n \\"total\\": 0,\\n \\"items\\": [\\n {\\n \\"knowledgeBaseId\\": \\"\\",\\n \\"knowledgeBaseName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"provider\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"providerSettings\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"retrieveSettings\\": {\\n \\"key\\": \\"\\"\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '列出知识库',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListMemoryCollections',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0,\\n \\"total\\": 0,\\n \\"items\\": [\\n {\\n \\"memoryCollectionName\\": \\"\\",\\n \\"memoryCollectionId\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"llmConfig\\": {\\n \\"config\\": {\\n \\"model\\": \\"\\"\\n },\\n \\"modelServiceName\\": \\"\\"\\n },\\n \\"embedderConfig\\": {\\n \\"config\\": {\\n \\"model\\": \\"\\"\\n },\\n \\"modelServiceName\\": \\"\\"\\n },\\n \\"vectorStoreConfig\\": {\\n \\"provider\\": \\"\\",\\n \\"config\\": {\\n \\"endpoint\\": \\"\\",\\n \\"instanceName\\": \\"\\",\\n \\"vectorDimension\\": 0,\\n \\"collectionName\\": \\"\\"\\n },\\n \\"mysqlConfig\\": {\\n \\"host\\": \\"\\",\\n \\"dbName\\": \\"\\",\\n \\"collectionName\\": \\"\\",\\n \\"user\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"vectorDimension\\": 0,\\n \\"port\\": 0\\n }\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"executionRoleArn\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"enableConversationHistory\\": true,\\n \\"enableConversationState\\": true,\\n \\"workspaceId\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'ListModelProviders' => [
'summary' => '列出全部模型供应商。',
'path' => '/2025-09-10/agents/model-providers',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'modelType',
'in' => 'query',
- 'schema' => [
- 'description' => '模型类型'."\n"
- ."\n"
- .'- system 系统内置模型'."\n"
- .'- deployment 自定义部署模型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'pop',
- ],
+ 'schema' => ['description' => '模型类型'."\n"
+ ."\n"
+ .'- system 系统内置模型'."\n"
+ .'- deployment 自定义部署模型', 'type' => 'string', 'required' => false, 'example' => 'pop'],
],
[
'name' => 'provider',
'in' => 'query',
- 'schema' => [
- 'description' => '云厂商,目前只支持Aliyun。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Aliyun',
- ],
+ 'schema' => ['description' => '云厂商,目前只支持Aliyun。', 'type' => 'string', 'required' => false, 'example' => 'Aliyun'],
],
[
'name' => 'modelName',
'in' => 'query',
- 'schema' => [
- 'description' => '模型名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'aa',
- ],
+ 'schema' => ['description' => '模型名称', 'type' => 'string', 'required' => false, 'example' => 'aa'],
],
[
'name' => 'pageNumber',
'in' => 'query',
- 'schema' => [
- 'description' => '页码',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '页码', 'type' => 'string', 'required' => false, 'example' => '1'],
],
[
'name' => 'pageSize',
'in' => 'query',
- 'schema' => [
- 'description' => '页面大小',
- 'type' => 'string',
- 'required' => false,
- 'example' => '10',
- ],
+ 'schema' => ['description' => '页面大小', 'type' => 'string', 'required' => false, 'example' => '10'],
],
],
'responses' => [
@@ -10890,16 +9723,8 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'code' => [
- 'description' => '响应码。',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'requestId' => [
- 'description' => '唯一的请求标识符,用于问题追踪',
- 'type' => 'string',
- 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E',
- ],
+ 'code' => ['description' => '响应码。', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'requestId' => ['description' => '唯一的请求标识符,用于问题追踪', 'type' => 'string', 'example' => 'F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E'],
'data' => [
'description' => '智能体运行时版本列表输出',
'type' => 'object',
@@ -10911,990 +9736,3384 @@
'description' => '浏览器列表',
'type' => 'object',
'properties' => [
- 'providerName' => [
- 'description' => '提供者名称',
- 'type' => 'string',
- 'example' => 'providerName',
- ],
- 'modelType' => [
- 'description' => '模型类别'."\n"
- .'- a. 文本向量化:text_embedding'."\n"
- .'- b. 文本稀疏向量化:text_sparse_embedding'."\n"
- .'- c. 图片向量化:image_embedding'."\n"
- .'- d. 图片内容解析:image_analyze',
- 'type' => 'string',
- 'example' => 'native',
- ],
- 'baseUrl' => [
- 'description' => 'baseUrl',
- 'type' => 'string',
- 'example' => 'baseUrl',
- ],
+ 'providerName' => ['description' => '提供者名称', 'type' => 'string', 'example' => 'providerName'],
+ 'modelType' => ['description' => '模型类别'."\n"
+ .'- a. 文本向量化:text_embedding'."\n"
+ .'- b. 文本稀疏向量化:text_sparse_embedding'."\n"
+ .'- c. 图片向量化:image_embedding'."\n"
+ .'- d. 图片内容解析:image_analyze', 'type' => 'string', 'example' => 'native'],
+ 'baseUrl' => ['description' => 'baseUrl', 'type' => 'string', 'example' => 'baseUrl'],
'models' => [
'description' => '算法工程ID',
'type' => 'array',
- 'items' => [
- 'description' => '模型名称',
- 'type' => 'string',
- 'example' => 'name',
- ],
- ],
- 'modelInfoConfig' => [
- 'description' => 'modelInfoConfig',
- '$ref' => '#/components/schemas/ModelInfoConfig',
+ 'items' => ['description' => '模型名称', 'type' => 'string', 'example' => 'name'],
],
+ 'modelInfoConfig' => ['description' => 'modelInfoConfig', '$ref' => '#/components/schemas/ModelInfoConfig'],
],
],
],
- 'total' => [
- 'description' => '总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '211',
- ],
- 'pageSize' => [
- 'description' => '页面大小',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- ],
- 'pageNumber' => [
- 'description' => '页码',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
+ 'total' => ['description' => '总数', 'type' => 'integer', 'format' => 'int64', 'example' => '211'],
+ 'pageSize' => ['description' => '页面大小', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ 'pageNumber' => ['description' => '页码', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
],
],
],
+ 'description' => '',
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '列出全部模型供应商',
+ 'description' => '获取当前用户的所有沙箱列表,支持按模板名称过滤,支持分页查询。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListModelProviders',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"items\\": [\\n {\\n \\"providerName\\": \\"providerName\\",\\n \\"modelType\\": \\"native\\",\\n \\"baseUrl\\": \\"baseUrl\\",\\n \\"models\\": [\\n \\"name\\"\\n ],\\n \\"modelInfoConfig\\": {\\n \\"modelName\\": \\"\\",\\n \\"modelFeatures\\": {\\n \\"vision\\": true,\\n \\"agentThought\\": true,\\n \\"toolCall\\": true,\\n \\"multiToolCall\\": true,\\n \\"streamToolCall\\": true\\n },\\n \\"modelProperties\\": {\\n \\"contextSize\\": 0\\n },\\n \\"modelParameterRules\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"type\\": \\"\\",\\n \\"default\\": \\"\\",\\n \\"min\\": 0,\\n \\"max\\": 0,\\n \\"required\\": true\\n }\\n ]\\n }\\n }\\n ],\\n \\"total\\": 211,\\n \\"pageSize\\": 10,\\n \\"pageNumber\\": 1\\n }\\n}","type":"json"}]',
- 'title' => '列出全部模型供应商',
+ ],
+ 'ListModelProxies' => [
+ 'path' => '/2025-09-10/agents/model-proxies',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'proxyMode',
+ 'in' => 'query',
+ 'schema' => ['description' => 'proxyMode', 'type' => 'string', 'required' => false, 'example' => 'proxyMode'],
+ ],
+ [
+ 'name' => 'status',
+ 'in' => 'query',
+ 'schema' => ['description' => '按状态过滤', 'type' => 'string', 'required' => false, 'example' => 'CREATING'],
+ ],
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'schema' => ['description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => '分页大小,默认pageSize = 20', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
+ ],
+ [
+ 'name' => 'workspaceId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false, 'description' => ''],
+ ],
+ [
+ 'name' => 'workspaceIds',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false, 'description' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['description' => 'ListModelProxiesResult', '$ref' => '#/components/schemas/ListModelProxiesResult'],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '列出全部模型治理',
+ 'summary' => '列出全部模型治理。',
'description' => '获取当前用户的所有沙箱列表,支持按模板名称过滤,支持分页查询。',
+ 'changeSet' => [
+ ['createdAt' => '2026-03-11T12:12:47.000Z', 'description' => '请求参数发生变更'],
+ ['createdAt' => '2026-03-09T12:38:42.000Z', 'description' => '请求参数发生变更'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListModelProxies',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0,\\n \\"total\\": 0,\\n \\"items\\": [\\n {\\n \\"modelProxyId\\": \\"\\",\\n \\"modelProxyName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"modelType\\": \\"\\",\\n \\"proxyMode\\": \\"\\",\\n \\"proxyConfig\\": {\\n \\"policies\\": {\\n \\"requestTimeout\\": 0,\\n \\"numRetries\\": 0,\\n \\"cache\\": true,\\n \\"concurrencyLimit\\": 0,\\n \\"fallbacks\\": [\\n {\\n \\"modelServiceName\\": \\"\\",\\n \\"modelName\\": \\"\\"\\n }\\n ],\\n \\"tokenRateLimiter\\": {\\n \\"tps\\": 0,\\n \\"tpm\\": 0,\\n \\"tph\\": 0,\\n \\"tpd\\": 0\\n },\\n \\"aiGuardrailConfig\\": {\\n \\"checkRequest\\": true,\\n \\"checkResponse\\": true,\\n \\"level\\": \\"\\",\\n \\"maxTextLength\\": 0,\\n \\"blockOnContentModeration\\": true,\\n \\"blockOnSensitiveData\\": true,\\n \\"blockOnPromptAttack\\": true,\\n \\"blockOnMaliciousUrl\\": true,\\n \\"blockOnModelHallucination\\": true\\n }\\n },\\n \\"endpoints\\": [\\n {\\n \\"modelServiceName\\": \\"\\",\\n \\"weight\\": 0,\\n \\"baseUrl\\": \\"\\",\\n \\"modelNames\\": [\\n \\"\\"\\n ]\\n }\\n ]\\n },\\n \\"functionName\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"serviceRegionId\\": \\"\\",\\n \\"endpoint\\": \\"\\",\\n \\"litellmVersion\\": \\"\\",\\n \\"cpu\\": 0,\\n \\"memory\\": 0,\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"statusReason\\": \\"\\",\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"executionRoleArn\\": \\"\\",\\n \\"workspaceId\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
- 'DeleteCustomDomain' => [
- 'summary' => '删除自定义域名。',
- 'path' => '/2025-09-10/agents/custom-domains/{domainName}',
- 'methods' => [
- 'delete',
+ 'ListModelServices' => [
+ 'summary' => '列出全部模型。',
+ 'path' => '/2025-09-10/agents/model-services',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'modelType',
+ 'in' => 'query',
+ 'schema' => ['description' => '模型类型'."\n"
+ ."\n"
+ .'- system 系统内置模型'."\n"
+ .'- deployment 自定义部署模型', 'type' => 'string', 'required' => true, 'example' => 'system'],
+ ],
+ [
+ 'name' => 'provider',
+ 'in' => 'query',
+ 'schema' => ['description' => '云厂商,目前只支持Aliyun。', 'type' => 'string', 'required' => false, 'example' => 'Aliyun'],
+ ],
+ [
+ 'name' => 'providerType',
+ 'in' => 'query',
+ 'schema' => ['description' => '供应商类型', 'type' => 'string', 'required' => false, 'example' => 'providerType'],
+ ],
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'schema' => ['description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => '页面大小', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
+ ],
+ [
+ 'name' => 'workspaceId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false, 'description' => ''],
+ ],
+ [
+ 'name' => 'workspaceIds',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false, 'description' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['description' => 'ListModelServicesResult', '$ref' => '#/components/schemas/ListModelServicesResult'],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '列出全部模型',
+ 'description' => '获取当前用户的所有模板列表,支持按模板类型过滤,支持分页查询。',
+ 'changeSet' => [
+ ['createdAt' => '2026-03-11T12:12:47.000Z', 'description' => '请求参数发生变更'],
+ ['createdAt' => '2026-03-09T12:38:42.000Z', 'description' => '请求参数发生变更'],
],
- 'schemes' => [
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListModelServices',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'ModelService', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/model-services/*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0,\\n \\"total\\": 0,\\n \\"items\\": [\\n {\\n \\"modelServiceName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"modelType\\": \\"\\",\\n \\"provider\\": \\"\\",\\n \\"providerSettings\\": {\\n \\"baseUrl\\": \\"\\",\\n \\"apiKey\\": \\"\\",\\n \\"modelNames\\": [\\n \\"\\"\\n ]\\n },\\n \\"status\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"statusReason\\": \\"\\",\\n \\"modelServiceId\\": \\"\\",\\n \\"modelInfoConfigs\\": [\\n {\\n \\"modelName\\": \\"\\",\\n \\"modelFeatures\\": {\\n \\"vision\\": true,\\n \\"agentThought\\": true,\\n \\"toolCall\\": true,\\n \\"multiToolCall\\": true,\\n \\"streamToolCall\\": true\\n },\\n \\"modelProperties\\": {\\n \\"contextSize\\": 0\\n },\\n \\"modelParameterRules\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"type\\": \\"\\",\\n \\"default\\": \\"\\",\\n \\"min\\": 0,\\n \\"max\\": 0,\\n \\"required\\": true\\n }\\n ]\\n }\\n ],\\n \\"workspaceId\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
+ ],
+ 'ListSandboxes' => [
+ 'path' => '/2025-09-10/sandboxes',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'templateName',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '模板名称', 'description' => '模板名称', 'type' => 'string', 'required' => false, 'example' => 'templateName'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'templateType',
+ 'in' => 'query',
+ 'schema' => ['title' => '模板类型', 'description' => '模板类型', 'type' => 'string', 'required' => false, 'example' => 'TASK'],
+ ],
+ [
+ 'name' => 'maxResults',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '最大返回数量', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1000'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '分页Token', 'description' => '分页游标。 说明 该字段不为空,表示有更多数据。', 'type' => 'string', 'required' => false, 'example' => 'dnLkmeaJc9vHgbzREh2l0J4dD+2BRJj42DLT6GrZysw='],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'status',
+ 'in' => 'query',
+ 'schema' => ['title' => '状态', 'description' => '状态', 'type' => 'string', 'required' => false, 'example' => 'CREATING'],
+ ],
+ [
+ 'name' => 'sandboxId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'example' => '01KMB33KCB3YRYE9C2AJCW5DQK'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['title' => '返回列表结构体的结果', 'description' => '返回列表结构体的结果', '$ref' => '#/components/schemas/ListSandboxesResult'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
+ ],
+ 'title' => '列出 Sandbox',
+ 'summary' => '列出 Sandbox。',
+ 'description' => '获取当前用户的所有沙箱列表,支持按模板名称过滤,支持分页查询。',
+ 'changeSet' => [
+ ['createdAt' => '2025-11-22T17:45:25.000Z', 'description' => '请求参数发生变更'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'produces' => [
- 'application/json',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListSandboxes',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"55D4BE40-2811-5CFB-8482-E0E98D575B1E\\",\\n \\"data\\": {\\n \\"nextToken\\": \\"\\",\\n \\"items\\": [\\n {\\n \\"sandboxId\\": \\"01KAWBP6JQD0J3Z34BP4WMX1KG\\",\\n \\"templateId\\": \\"8d409d30-cac1-445a-95d5-476c47780336.schema\\",\\n \\"templateName\\": \\"my-template\\",\\n \\"status\\": \\"READY\\",\\n \\"createdAt\\": \\"2025-11-26T10:54:17.770719+08:00\\",\\n \\"lastUpdatedAt\\": \\"2025-11-26T10:54:17.770719+08:00\\",\\n \\"sandboxIdleTimeoutSeconds\\": 1800,\\n \\"endedAt\\": \\"2025-11-26T10:54:17.770719+08:00\\",\\n \\"sandboxArn\\": \\"acs:ram::1760720386195983:role/aliyunfcdefaultrole\\",\\n \\"sandboxIdleTTLInSeconds\\": 0,\\n \\"metadata\\": {}\\n }\\n ]\\n }\\n}","type":"json"}]',
+ ],
+ 'ListTemplates' => [
+ 'path' => '/2025-09-10/templates',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'tags' => [],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'delete',
+ 'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- 'FEATUREfcVF016G',
- ],
- 'tenantRelevance' => 'tenant',
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
],
'parameters' => [
[
- 'name' => 'domainName',
- 'in' => 'path',
+ 'name' => 'templateType',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
'schema' => [
- 'description' => '自定义域名',
+ 'title' => '模板类型',
+ 'description' => '模板类型',
'type' => 'string',
'required' => false,
- 'example' => 'mydomain.com',
+ 'example' => 'Browser',
+ 'enum' => ['Browser', 'CodeInterpreter', 'AllInOne', 'CustomImage', 'ComputerUse'],
],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '页面大小', 'description' => '页面大小', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'status',
+ 'in' => 'query',
+ 'schema' => ['title' => '状态', 'description' => '状态', 'type' => 'string', 'required' => false, 'example' => 'READY'],
+ ],
+ [
+ 'name' => 'templateName',
+ 'in' => 'query',
+ 'schema' => ['title' => '模板名称', 'description' => '模板名称', 'type' => 'string', 'required' => false, 'example' => 'temp-abc'],
+ ],
+ [
+ 'name' => 'workspaceId',
+ 'in' => 'query',
+ 'schema' => ['description' => '工作空间 Id', 'type' => 'string', 'required' => false, 'example' => 'aaa'],
+ ],
+ [
+ 'name' => 'workspaceIds',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
200 => [
- 'description' => 'Successful response',
- 'headers' => [],
- 'schema' => [
- 'description' => '自定义域名信息',
- '$ref' => '#/components/schemas/CustomDomainResult',
- ],
+ 'schema' => ['description' => '返回列表结构体的结果', '$ref' => '#/components/schemas/ListTemplatesResult'],
'examples' => [],
],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"domainName\\": \\"example.com\\",\\n \\"description\\": \\"\\",\\n \\"protocol\\": \\"HTTP\\",\\n \\"routeConfig\\": {\\n \\"routes\\": [\\n {\\n \\"path\\": \\"/login\\",\\n \\"resourceName\\": \\"\\",\\n \\"resourceType\\": \\"runtime\\",\\n \\"agentRuntimeEndpointName\\": \\"\\",\\n \\"methods\\": [\\n \\"\\"\\n ]\\n }\\n ]\\n },\\n \\"certConfig\\": {\\n \\"certName\\": \\"my-cert\\",\\n \\"certificate\\": \\"-----BEGIN CERTIFICATE-----\\\\\\\\nxxxxx\\\\\\\\n-----END CERTIFICATE-----\\",\\n \\"privateKey\\": \\"-----BEGIN RSA PRIVATE KEY-----\\\\\\\\nxxxxx\\\\\\\\n-----END RSA PRIVATE KEY-----\\"\\n },\\n \\"tlsConfig\\": {\\n \\"minVersion\\": \\"TLSv1.2\\",\\n \\"cipherSuites\\": [\\n \\"\\"\\n ],\\n \\"maxVersion\\": \\"TLSv1.3\\"\\n },\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"updatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"domainType\\": \\"\\"\\n }\\n}","type":"json"}]',
- 'title' => '删除自定义域名',
- ],
- 'ListCustomDomains' => [
- 'summary' => '获取自定义域名信息列表。',
- 'path' => '/2025-09-10/agents/custom-domains',
- 'methods' => [
- 'get',
+ 'title' => '列出模板',
+ 'summary' => '列出模板。',
+ 'description' => '获取当前用户的所有模板列表,支持按模板类型过滤,支持分页查询。',
+ 'changeSet' => [
+ ['createdAt' => '2026-03-20T07:59:22.000Z', 'description' => '请求参数发生变更'],
+ ['createdAt' => '2026-02-26T07:55:54.000Z', 'description' => '请求参数发生变更'],
+ ['createdAt' => '2026-01-14T11:17:42.000Z', 'description' => '请求参数发生变更'],
+ ['createdAt' => '2025-12-09T11:37:57.000Z', 'description' => '请求参数发生变更'],
+ ['createdAt' => '2025-11-22T17:45:25.000Z', 'description' => '请求参数发生变更、响应参数发生变更'],
],
- 'schemes' => [
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [],
],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListTemplates',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"C0595DB0-D1EE-55C3-8DDD-790872C7EC2F\\",\\n \\"data\\": {\\n \\"pageNumber\\": 1,\\n \\"pageSize\\": 10,\\n \\"total\\": 10,\\n \\"items\\": [\\n {\\n \\"templateId\\": \\"996ffd5e-003f-4700-9f24-9e2a1c19019b.schema\\",\\n \\"templateName\\": \\"browser-1767874121726\\",\\n \\"templateVersion\\": \\"预留\\",\\n \\"cpu\\": 4,\\n \\"memory\\": 4096,\\n \\"templateArn\\": \\"acs:agentrun:cn-hangzhou:12345678:templates/efb6de2f-1814-42a2-b7f3-474a0e0b3a48\\",\\n \\"createdAt\\": \\"2026-01-15T17:12:59.375168+08:00\\",\\n \\"lastUpdatedAt\\": \\"2026-01-15T17:12:59.375168+08:00\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"SDK Error\\",\\n \\"executionRoleArn\\": \\"acs:agentrun:cn-hangzhou:12345678:templates/efb6de2f-1814-42a2-b7f3-474a0e0b3a48\\",\\n \\"templateType\\": \\"Browser\\",\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"/usr/local/bin/entrypoint.sh\\"\\n ],\\n \\"registryConfig\\": {\\n \\"authConfig\\": {\\n \\"userName\\": \\"admin\\",\\n \\"password\\": \\"abc***\\"\\n },\\n \\"certConfig\\": {\\n \\"insecure\\": false,\\n \\"rootCaCertBase64\\": \\"cm9vdF9jYV9jZXJ0X2Jhc2U2NA==\\"\\n },\\n \\"networkConfig\\": {\\n \\"vpcId\\": \\"vpc-xxxxxxxxxxxxx\\",\\n \\"vSwitchId\\": \\"vsw-xxxxxxxxxxxxx\\",\\n \\"securityGroupId\\": \\"sg-xxxxxxxxxxxxx\\"\\n }\\n },\\n \\"port\\": 5000\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"credentialConfiguration\\": {\\n \\"credentialName\\": \\"deepagent-key\\"\\n },\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"sandboxIdleTimeoutInSeconds\\": \\"1800\\",\\n \\"sandboxTTLInSeconds\\": \\"已弃用\\",\\n \\"resourceName\\": \\"agentrun-f2570dd4-c8a2-452c-8bd5-4ef74b0a69b5\\",\\n \\"mcpOptions\\": {\\n \\"transport\\": \\"streamable-http\\",\\n \\"enabledTools\\": [\\n \\"execute_code\\"\\n ]\\n },\\n \\"mcpState\\": {\\n \\"status\\": \\"CREATING\\",\\n \\"statusReason\\": \\"SDK Error\\",\\n \\"accessEndpoint\\": \\"/mcp\\"\\n },\\n \\"diskSize\\": 10240,\\n \\"description\\": \\"template描述\\",\\n \\"allowAnonymousManage\\": true,\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"enableAgent\\": true,\\n \\"workspaceId\\": \\"\\",\\n \\"scalingStatus\\": {\\n \\"minInstances\\": 1,\\n \\"targetInstances\\": 2,\\n \\"currentInstances\\": 2,\\n \\"scheduledPolicies\\": [\\n {\\n \\"name\\": \\"scale-up-morning\\",\\n \\"startTime\\": \\"2024-01-01T08:00:00\\",\\n \\"endTime\\": \\"2024-01-01T08:00:00\\",\\n \\"scheduleExpression\\": \\"cron(0 8 * * ? *)\\",\\n \\"timeZone\\": \\"Asia/Shanghai\\",\\n \\"target\\": 20\\n }\\n ],\\n \\"currentError\\": \\"error\\"\\n },\\n \\"environmentVariables\\": {\\n \\"key\\": \\"{\'FCTEST_IDE_ENV\': \'IDE\'}\\"\\n },\\n \\"templateConfiguration\\": {\\n \\"key\\": \\"{\\\\\\"example\\\\\\":\\\\\\"test\\\\\\"}\\"\\n },\\n \\"ossConfiguration\\": [\\n {\\n \\"bucketName\\": \\"a-test-oss\\",\\n \\"prefix\\": \\"/\\",\\n \\"mountPoint\\": \\"/mnt/oss1\\",\\n \\"permission\\": \\"READ_WRITE\\",\\n \\"region\\": \\"ch-hangzhou\\",\\n \\"endpoint\\": \\"\\"\\n }\\n ],\\n \\"enablePreStop\\": true,\\n \\"preStopTimeoutInSeconds\\": 0\\n }\\n ]\\n }\\n}","type":"json"}]',
+ ],
+ 'ListTools' => [
+ 'path' => '/2025-09-10/agents/tools',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- 'FEATUREfcVF016G',
- ],
- 'tenantRelevance' => 'tenant',
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY', 'FEATUREfcVF016G'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'pageSize',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'description' => '页面大小',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '20',
- ],
- 'examples' => [],
+ 'schema' => ['title' => '每页大小', 'description' => '每页大小', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
],
[
'name' => 'pageNumber',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'description' => '页码',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
- 'examples' => [],
+ 'schema' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
- 'name' => 'domainName',
+ 'name' => 'toolType',
'in' => 'query',
'schema' => [
- 'description' => '自定义域名',
+ 'title' => '工具类型',
+ 'description' => '工具类型',
'type' => 'string',
'required' => false,
- 'example' => 'mydomain.com',
+ 'enumValueTitles' => ['MCP' => 'MCP 工具 - 基于 Model Context Protocol 的工具', 'FUNCTIONCALL' => '函数调用工具 - 通过函数调用方式实现的工具', 'SKILL' => '技能工具 - 预定义的技能类型工具'],
+ 'example' => 'MCP',
+ 'enum' => ['MCP', 'FUNCTIONCALL', 'SKILL'],
],
],
[
- 'name' => 'resourceName',
+ 'name' => 'toolName',
'in' => 'query',
- 'schema' => [
- 'description' => '关联自定义域名的资源名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'agent-1',
- ],
+ 'schema' => ['title' => '工具名称,支持模糊搜索', 'description' => '工具名称,支持模糊搜索', 'type' => 'string', 'required' => false, 'example' => 'tool-1'],
],
[
- 'name' => 'resourceType',
+ 'name' => 'workspaceId',
'in' => 'query',
- 'schema' => [
- 'description' => '关联自定义域名的资源类型',
- 'type' => 'string',
- 'required' => false,
- 'enumValueTitles' => [
- 'runtime' => 'runtime',
- ],
- 'example' => 'runtime',
- 'enum' => [
- 'runtime',
- 'litellm',
- 'template',
- 'tool',
- ],
- ],
+ 'schema' => ['title' => '工作空间ID', 'description' => '工作空间ID', 'type' => 'string', 'required' => false, 'example' => 'workspace-xyz789'],
+ ],
+ [
+ 'name' => 'workspaceIds',
+ 'in' => 'query',
+ 'schema' => ['title' => '工作空间列表,逗号分隔', 'description' => '工作空间列表,逗号分隔', 'type' => 'string', 'required' => false, 'example' => 'ws1,ws2'],
],
],
'responses' => [
200 => [
- 'description' => 'Successful response',
'headers' => [],
- 'schema' => [
- 'description' => '自定义域名信息',
- '$ref' => '#/components/schemas/ListCustomDomainsResult',
- ],
+ 'schema' => ['description' => '工具列表返回结果', '$ref' => '#/components/schemas/ListToolsResult'],
'examples' => [],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"pageSize\\": 0,\\n \\"pageNumber\\": 0,\\n \\"total\\": 0,\\n \\"items\\": [\\n {\\n \\"domainName\\": \\"example.com\\",\\n \\"description\\": \\"\\",\\n \\"protocol\\": \\"HTTP\\",\\n \\"routeConfig\\": {\\n \\"routes\\": [\\n {\\n \\"path\\": \\"/login\\",\\n \\"resourceName\\": \\"\\",\\n \\"resourceType\\": \\"runtime\\",\\n \\"agentRuntimeEndpointName\\": \\"\\",\\n \\"methods\\": [\\n \\"\\"\\n ]\\n }\\n ]\\n },\\n \\"certConfig\\": {\\n \\"certName\\": \\"my-cert\\",\\n \\"certificate\\": \\"-----BEGIN CERTIFICATE-----\\\\\\\\nxxxxx\\\\\\\\n-----END CERTIFICATE-----\\",\\n \\"privateKey\\": \\"-----BEGIN RSA PRIVATE KEY-----\\\\\\\\nxxxxx\\\\\\\\n-----END RSA PRIVATE KEY-----\\"\\n },\\n \\"tlsConfig\\": {\\n \\"minVersion\\": \\"TLSv1.2\\",\\n \\"cipherSuites\\": [\\n \\"\\"\\n ],\\n \\"maxVersion\\": \\"TLSv1.3\\"\\n },\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"updatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"domainType\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '列出自定义域名',
+ 'title' => '列出工具',
+ 'summary' => 'List tools',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListTools',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"pageSize\\": 10,\\n \\"pageNumber\\": 1,\\n \\"total\\": 100,\\n \\"items\\": [\\n {\\n \\"toolId\\": \\"tool-abc123\\",\\n \\"toolName\\": \\"my-mcp-tool\\",\\n \\"workspaceId\\": \\"workspace-xyz789\\",\\n \\"description\\": \\"这是一个用于处理文档的 MCP 工具\\",\\n \\"toolType\\": \\"MCP\\",\\n \\"createMethod\\": \\"MCP_REMOTE\\",\\n \\"protocolSpec\\": \\"\\",\\n \\"mcpConfig\\": {\\n \\"sessionAffinity\\": \\"MCP_STREAMABLE\\",\\n \\"sessionAffinityConfig\\": \\"\\",\\n \\"proxyEnabled\\": true,\\n \\"mcpProxyConfiguration\\": {\\n \\"hooks\\": [\\n {\\n \\"url\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"apiVersion\\": \\"\\",\\n \\"enabled\\": true,\\n \\"timeout\\": 0,\\n \\"event\\": \\"\\",\\n \\"headers\\": {\\n \\"key\\": \\"\\"\\n }\\n }\\n ]\\n },\\n \\"boundConfiguration\\": {\\n \\"boundTools\\": [\\n {\\n \\"toolName\\": \\"my-tool\\",\\n \\"method\\": \\"POST\\",\\n \\"path\\": \\"/api/v1/tools\\",\\n \\"apis\\": [\\n {\\n \\"method\\": \\"\\",\\n \\"path\\": \\"\\"\\n }\\n ]\\n }\\n ]\\n }\\n },\\n \\"status\\": \\"Running\\",\\n \\"statusReason\\": \\"\\",\\n \\"executionRoleArn\\": \\"acs:ram::123456789:role/AliyunFCDefaultRole\\",\\n \\"artifactType\\": \\"Code\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"codeConfiguration\\": {\\n \\"zipFile\\": \\"UEsDBAoAAAAAANF\\",\\n \\"ossBucketName\\": \\"my-agent-code-bucket\\",\\n \\"ossObjectName\\": \\"agent-code-v1.0.zip\\",\\n \\"checksum\\": \\"1234567890123456789\\",\\n \\"language\\": \\"python3.12\\",\\n \\"command\\": [\\n \\"\\"\\n ]\\n },\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"/usr/local/bin/entrypoint.sh\\"\\n ],\\n \\"registryConfig\\": {\\n \\"authConfig\\": {\\n \\"userName\\": \\"admin\\",\\n \\"password\\": \\"abc***\\"\\n },\\n \\"certConfig\\": {\\n \\"insecure\\": false,\\n \\"rootCaCertBase64\\": \\"cm9vdF9jYV9jZXJ0X2Jhc2U2NA==\\"\\n },\\n \\"networkConfig\\": {\\n \\"vpcId\\": \\"vpc-xxxxxxxxxxxxx\\",\\n \\"vSwitchId\\": \\"vsw-xxxxxxxxxxxxx\\",\\n \\"securityGroupId\\": \\"sg-xxxxxxxxxxxxx\\"\\n }\\n },\\n \\"port\\": 5000\\n },\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n },\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"cpu\\": 0.5,\\n \\"memory\\": 512,\\n \\"port\\": 8080,\\n \\"createdAt\\": \\"2025-09-10T10:00:00Z\\",\\n \\"updatedAt\\": \\"2025-09-10T12:00:00Z\\",\\n \\"credentialName\\": \\"my-credential\\",\\n \\"timeout\\": 300,\\n \\"environmentVariables\\": {\\n \\"key\\": \\"\\"\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
],
- 'CreateCustomDomain' => [
- 'summary' => '创建自定义域名',
- 'path' => '/2025-09-10/agents/custom-domains',
- 'methods' => [
- 'post',
+ 'ListWorkspaces' => [
+ 'path' => '/2025-09-10/workspaces',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'tags' => [],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
- 'schemes' => [
- 'https',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => '页面大小', 'type' => 'string', 'required' => false, 'example' => '10'],
+ ],
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'schema' => ['description' => '页码,默认 pageNumber = 1', 'type' => 'string', 'required' => false, 'example' => '1'],
+ ],
+ [
+ 'name' => 'name',
+ 'in' => 'query',
+ 'schema' => ['description' => '名称', 'type' => 'string', 'required' => false, 'example' => 'intl_synonym_module'],
+ ],
+ [
+ 'name' => 'resourceGroupId',
+ 'in' => 'query',
+ 'schema' => ['description' => '资源组id', 'type' => 'string', 'required' => false, 'example' => 'rg-aek25sodlatnioq'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['description' => '返回结果', '$ref' => '#/components/schemas/ListWorkspacesResult'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '获取工作空间列表',
+ 'summary' => '获取工作空间列表',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListWorkspaces',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"workspaces\\": [\\n {\\n \\"workspaceId\\": \\"\\",\\n \\"workspaceArn\\": \\"\\",\\n \\"name\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"isDefault\\": true,\\n \\"resourceGroupId\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"updatedAt\\": \\"\\"\\n }\\n ],\\n \\"total\\": 0,\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0\\n }\\n}","type":"json"}]',
+ ],
+ 'PauseSandbox' => [
+ 'summary' => '暂停该沙箱,保留内存和文件系统快照,沙箱进入PAUSED状态,以便在后续恢复',
+ 'description' => '该接口为沙箱暂停接口,在调用者,系统将对沙箱进行快照处理,将内存和磁盘状态打快照并持久化存储,用户可在后续时间恢复。'."\n"
+ .'请注意,目前沙箱快照仅能保存 30 天,30 天之后,恢复将不可用。',
+ 'path' => '/2025-09-10/sandboxes/{sandboxId}/pause',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcFLXSBS'],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'sandboxId',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '沙箱ID', 'description' => '沙箱ID', 'type' => 'string', 'required' => true, 'example' => 'sb-1234567890abcdef'],
+ 'examples' => [],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'description' => '成功响应 - 沙箱停止成功',
+ 'schema' => ['description' => '沙箱返回结果', '$ref' => '#/components/schemas/SandboxResult'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '暂停沙箱',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:PauseSandbox',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'produces' => [
- 'application/json',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"sandboxId\\": \\"01KAWBP6JQD0J3Z34BP4WMX1KG\\",\\n \\"templateId\\": \\"8d409d30-cac1-445a-95d5-476c47780336.schema\\",\\n \\"templateName\\": \\"my-template\\",\\n \\"status\\": \\"READY\\",\\n \\"createdAt\\": \\"2025-11-26T10:54:17.770719+08:00\\",\\n \\"lastUpdatedAt\\": \\"2025-11-26T10:54:17.770719+08:00\\",\\n \\"sandboxIdleTimeoutSeconds\\": 1800,\\n \\"endedAt\\": \\"2025-11-26T10:54:17.770719+08:00\\",\\n \\"sandboxArn\\": \\"acs:ram::1760720386195983:role/aliyunfcdefaultrole\\",\\n \\"sandboxIdleTTLInSeconds\\": 0,\\n \\"metadata\\": {}\\n }\\n}","type":"json"}]',
+ ],
+ 'PublishFlowVersion' => [
+ 'path' => '/2025-09-10/flows/{flowName}/versions',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'tags' => [],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- 'FEATUREfcVF016G',
- ],
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
+ 'name' => 'flowName',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '工作流ID', 'description' => '工作流ID', 'type' => 'string', 'required' => true, 'example' => 'flow-1234567890abcdef'],
+ 'examples' => [],
+ ],
+ [
'name' => 'body',
'in' => 'body',
- 'schema' => [
- 'description' => '创建自定义域名请求参数',
- 'required' => false,
- '$ref' => '#/components/schemas/CreateCustomDomainInput',
- ],
+ 'style' => 'json',
+ 'schema' => ['title' => '发布工作流版本输入参数', 'description' => '发布工作流版本输入参数', 'required' => false, '$ref' => '#/components/schemas/PublishFlowVersionInput'],
],
],
'responses' => [
200 => [
- 'description' => 'Successful response',
- 'headers' => [],
- 'schema' => [
- 'description' => '自定义域名的结果格式',
- '$ref' => '#/components/schemas/CustomDomainResult',
+ 'schema' => ['title' => '返回发布版本结构体的结果', 'description' => '返回发布版本结构体的结果', '$ref' => '#/components/schemas/FlowVersionResult'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
+ ],
+ 'title' => '发布流程版本',
+ 'summary' => '发布工作流版本。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:PublishFlowVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/{#flowId}'],
+ ],
],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"flowId\\": \\"flow-1234567890abcdef\\",\\n \\"flowVersion\\": \\"1\\",\\n \\"description\\": \\"Version 1.0 - Initial release\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"flowName\\": \\"\\",\\n \\"definition\\": \\"Type: StateMachine\\\\\\\\nName: my-flow\\\\\\\\n...\\",\\n \\"environmentConfiguration\\": {\\n \\"variables\\": [\\n {\\n \\"name\\": \\"MY_KEY\\",\\n \\"value\\": \\"my-value\\",\\n \\"description\\": \\"A configuration key\\"\\n }\\n ]\\n },\\n \\"externalStorageLocation\\": \\"oss://bucket/path\\",\\n \\"tracingConfiguration\\": {\\n \\"enabled\\": true\\n },\\n \\"loggingConfiguration\\": {\\n \\"destinations\\": [\\n {\\n \\"slsLogDestination\\": {\\n \\"project\\": \\"my-sls-project\\",\\n \\"logStore\\": \\"my-logstore\\"\\n }\\n }\\n ]\\n }\\n }\\n}","type":"json"}]',
+ ],
+ 'PublishRuntimeVersion' => [
+ 'path' => '/2025-09-10/agents/runtimes/{agentRuntimeId}/versions',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'tags' => [],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'agentRuntimeId',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '智能体运行时ID', 'description' => '智能体运行时ID', 'type' => 'string', 'required' => true, 'example' => '12345678-1234-1234-1234-123456789abc'],
'examples' => [],
],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['description' => '发布版本的请求体信息', 'required' => false, '$ref' => '#/components/schemas/PublishRuntimeVersionInput'],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"domainName\\": \\"example.com\\",\\n \\"description\\": \\"\\",\\n \\"protocol\\": \\"HTTP\\",\\n \\"routeConfig\\": {\\n \\"routes\\": [\\n {\\n \\"path\\": \\"/login\\",\\n \\"resourceName\\": \\"\\",\\n \\"resourceType\\": \\"runtime\\",\\n \\"agentRuntimeEndpointName\\": \\"\\",\\n \\"methods\\": [\\n \\"\\"\\n ]\\n }\\n ]\\n },\\n \\"certConfig\\": {\\n \\"certName\\": \\"my-cert\\",\\n \\"certificate\\": \\"-----BEGIN CERTIFICATE-----\\\\\\\\nxxxxx\\\\\\\\n-----END CERTIFICATE-----\\",\\n \\"privateKey\\": \\"-----BEGIN RSA PRIVATE KEY-----\\\\\\\\nxxxxx\\\\\\\\n-----END RSA PRIVATE KEY-----\\"\\n },\\n \\"tlsConfig\\": {\\n \\"minVersion\\": \\"TLSv1.2\\",\\n \\"cipherSuites\\": [\\n \\"\\"\\n ],\\n \\"maxVersion\\": \\"TLSv1.3\\"\\n },\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"updatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"domainType\\": \\"\\"\\n }\\n}","type":"json"}]',
- 'title' => '创建自定义域名',
+ 'responses' => [
+ 200 => [
+ 'schema' => ['title' => '返回创建结构体的结果', 'description' => '返回创建结构体的结果', '$ref' => '#/components/schemas/AgentRuntimeVersionResult'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
+ ],
+ 'title' => '发布智能体运行时新版本',
+ 'summary' => '发布智能体运行时新版本',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'agentrun:PublishRuntimeVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Agent', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/{#runtimeName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"agentRuntimeArn\\": \\"acs:agentrun:cn-hangzhou:1760720386195983:runtimes/7a1b6d39-9f8f-4ce2-b9c9-6db1b0b9e169\\",\\n \\"agentRuntimeId\\": \\"ar-1234567890abcdef\\",\\n \\"agentRuntimeName\\": \\"my-agent-runtime\\",\\n \\"agentRuntimeVersion\\": \\"LATEST\\",\\n \\"description\\": \\"Initial release with basic functionality\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T10:30:00Z\\"\\n }\\n}","type":"json"}]',
],
- 'GetCustomDomain' => [
- 'summary' => '获取自定义域名配置。',
- 'path' => '/2025-09-10/agents/custom-domains/{domainName}',
- 'methods' => [
- 'get',
+ 'ResumeSandbox' => [
+ 'path' => '/2025-09-10/sandboxes/{sandboxId}/resume',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATUREfcFLXSBS'],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'sandboxId',
+ 'in' => 'path',
+ 'schema' => ['title' => '沙箱实例id', 'description' => '沙箱实例id', 'type' => 'string', 'required' => true, 'example' => 'sb-1234567890abcdef'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['description' => '沙箱返回结果', '$ref' => '#/components/schemas/SandboxResult'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '恢复沙箱',
+ 'summary' => '恢复暂停状态的沙箱,可以将PAUSED状态的沙箱恢复至运行态(READY)状态',
+ 'description' => '本接口可将暂停状态的沙箱恢复至就绪运行态,允许用户调用后恢复至暂停时的状态。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:ResumeSandbox',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"sandboxId\\": \\"01KAWBP6JQD0J3Z34BP4WMX1KG\\",\\n \\"templateId\\": \\"8d409d30-cac1-445a-95d5-476c47780336.schema\\",\\n \\"templateName\\": \\"my-template\\",\\n \\"status\\": \\"READY\\",\\n \\"createdAt\\": \\"2025-11-26T10:54:17.770719+08:00\\",\\n \\"lastUpdatedAt\\": \\"2025-11-26T10:54:17.770719+08:00\\",\\n \\"sandboxIdleTimeoutSeconds\\": 1800,\\n \\"endedAt\\": \\"2025-11-26T10:54:17.770719+08:00\\",\\n \\"sandboxArn\\": \\"acs:ram::1760720386195983:role/aliyunfcdefaultrole\\",\\n \\"sandboxIdleTTLInSeconds\\": 0,\\n \\"metadata\\": {}\\n }\\n}","type":"json"}]',
+ ],
+ 'StopSandbox' => [
+ 'path' => '/2025-09-10/sandboxes/{sandboxId}/stop',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcVF016G'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'sandboxId',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '沙箱ID', 'description' => '沙箱ID', 'type' => 'string', 'required' => true, 'example' => 'sb-1234567890abcdef'],
+ 'examples' => [],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['description' => '返回删除结构体的结果', '$ref' => '#/components/schemas/StopSandboxResult'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '停止 Sandbox',
+ 'summary' => '停止 Sandbox。',
+ 'description' => '停止指定的沙箱实例。停止后,沙箱将进入TERMINATED状态。',
+ 'changeSet' => [
+ ['createdAt' => '2025-11-22T17:45:25.000Z', 'description' => '响应参数发生变更'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:StopSandbox',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'produces' => [
- 'application/json',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"sandboxId\\": \\"01KAWBP6JQD0J3Z34BP4WMX1KG\\",\\n \\"templateId\\": \\"8d409d30-cac1-445a-95d5-476c47780336.schema\\",\\n \\"templateName\\": \\"my-template\\",\\n \\"status\\": \\"READY\\",\\n \\"createdAt\\": \\"2025-11-26T10:54:17.770719+08:00\\",\\n \\"lastUpdatedAt\\": \\"2025-11-26T10:54:17.770719+08:00\\",\\n \\"sandboxIdleTimeoutSeconds\\": 1800,\\n \\"endedAt\\": \\"2025-11-26T10:54:17.770719+08:00\\",\\n \\"sandboxArn\\": \\"acs:ram::1760720386195983:role/aliyunfcdefaultrole\\",\\n \\"sandboxIdleTTLInSeconds\\": 0,\\n \\"metadata\\": {}\\n }\\n}","type":"json"}]',
+ ],
+ 'StopTemplateMCP' => [
+ 'path' => '/2025-09-10/templates/{templateName}/mcp/stop',
+ 'methods' => ['patch'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
'operationType' => 'readAndWrite',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- 'FEATUREfcVF016G',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
- 'name' => 'domainName',
+ 'name' => 'templateName',
'in' => 'path',
- 'schema' => [
- 'description' => '自定义域名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'mydomain.com',
+ 'schema' => ['title' => '模板名称'."\n", 'description' => '模板名称'."\n", 'type' => 'string', 'required' => false, 'example' => 'demo-template'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['description' => '沙箱模板详情', '$ref' => '#/components/schemas/TemplateResult'],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '停止 TemplateMCP 服务',
+ 'summary' => '停止 TemplateMCP 服务。',
+ 'description' => '停止MCP服务后,会删除对应的MCP资源,MCP地址不可访问',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"templateId\\": \\"996ffd5e-003f-4700-9f24-9e2a1c19019b.schema\\",\\n \\"templateName\\": \\"browser-1767874121726\\",\\n \\"templateVersion\\": \\"预留\\",\\n \\"cpu\\": 4,\\n \\"memory\\": 4096,\\n \\"templateArn\\": \\"acs:agentrun:cn-hangzhou:12345678:templates/efb6de2f-1814-42a2-b7f3-474a0e0b3a48\\",\\n \\"createdAt\\": \\"2026-01-15T17:12:59.375168+08:00\\",\\n \\"lastUpdatedAt\\": \\"2026-01-15T17:12:59.375168+08:00\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"SDK Error\\",\\n \\"executionRoleArn\\": \\"acs:agentrun:cn-hangzhou:12345678:templates/efb6de2f-1814-42a2-b7f3-474a0e0b3a48\\",\\n \\"templateType\\": \\"Browser\\",\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"/usr/local/bin/entrypoint.sh\\"\\n ],\\n \\"registryConfig\\": {\\n \\"authConfig\\": {\\n \\"userName\\": \\"admin\\",\\n \\"password\\": \\"abc***\\"\\n },\\n \\"certConfig\\": {\\n \\"insecure\\": false,\\n \\"rootCaCertBase64\\": \\"cm9vdF9jYV9jZXJ0X2Jhc2U2NA==\\"\\n },\\n \\"networkConfig\\": {\\n \\"vpcId\\": \\"vpc-xxxxxxxxxxxxx\\",\\n \\"vSwitchId\\": \\"vsw-xxxxxxxxxxxxx\\",\\n \\"securityGroupId\\": \\"sg-xxxxxxxxxxxxx\\"\\n }\\n },\\n \\"port\\": 5000\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"credentialConfiguration\\": {\\n \\"credentialName\\": \\"deepagent-key\\"\\n },\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"sandboxIdleTimeoutInSeconds\\": \\"1800\\",\\n \\"sandboxTTLInSeconds\\": \\"已弃用\\",\\n \\"resourceName\\": \\"agentrun-f2570dd4-c8a2-452c-8bd5-4ef74b0a69b5\\",\\n \\"mcpOptions\\": {\\n \\"transport\\": \\"streamable-http\\",\\n \\"enabledTools\\": [\\n \\"execute_code\\"\\n ]\\n },\\n \\"mcpState\\": {\\n \\"status\\": \\"CREATING\\",\\n \\"statusReason\\": \\"SDK Error\\",\\n \\"accessEndpoint\\": \\"/mcp\\"\\n },\\n \\"diskSize\\": 10240,\\n \\"description\\": \\"template描述\\",\\n \\"allowAnonymousManage\\": true,\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"enableAgent\\": true,\\n \\"workspaceId\\": \\"\\",\\n \\"scalingStatus\\": {\\n \\"minInstances\\": 1,\\n \\"targetInstances\\": 2,\\n \\"currentInstances\\": 2,\\n \\"scheduledPolicies\\": [\\n {\\n \\"name\\": \\"scale-up-morning\\",\\n \\"startTime\\": \\"2024-01-01T08:00:00\\",\\n \\"endTime\\": \\"2024-01-01T08:00:00\\",\\n \\"scheduleExpression\\": \\"cron(0 8 * * ? *)\\",\\n \\"timeZone\\": \\"Asia/Shanghai\\",\\n \\"target\\": 20\\n }\\n ],\\n \\"currentError\\": \\"error\\"\\n },\\n \\"environmentVariables\\": {\\n \\"key\\": \\"{\'FCTEST_IDE_ENV\': \'IDE\'}\\"\\n },\\n \\"templateConfiguration\\": {\\n \\"key\\": \\"{\\\\\\"example\\\\\\":\\\\\\"test\\\\\\"}\\"\\n },\\n \\"ossConfiguration\\": [\\n {\\n \\"bucketName\\": \\"a-test-oss\\",\\n \\"prefix\\": \\"/\\",\\n \\"mountPoint\\": \\"/mnt/oss1\\",\\n \\"permission\\": \\"READ_WRITE\\",\\n \\"region\\": \\"ch-hangzhou\\",\\n \\"endpoint\\": \\"\\"\\n }\\n ],\\n \\"enablePreStop\\": true,\\n \\"preStopTimeoutInSeconds\\": 0\\n }\\n}","type":"json"}]',
+ ],
+ 'UpdateAgentRuntime' => [
+ 'summary' => '更新智能体运行时',
+ 'description' => '更新指定智能体运行时的配置信息,包括资源分配、网络配置、环境变量等。更新操作会触发运行时重启。',
+ 'path' => '/2025-09-10/agents/runtimes/{agentRuntimeId}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
+ 'tags' => [],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'agentRuntimeId',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '智能体运行时ID', 'description' => '代理运行时ID', 'type' => 'string', 'required' => true, 'example' => '12345678-1234-1234-1234-123456789abc'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['title' => '更新智能体运行时输入参数', 'description' => '更新代理运行时输入参数', 'required' => true, '$ref' => '#/components/schemas/UpdateAgentRuntimeInput'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'description' => '成功响应 - 返回更新后的智能体运行时信息,包括新的配置参数和运行状态',
+ 'schema' => ['title' => '返回更新结构体的结果', 'description' => '返回更新结构体的结果', '$ref' => '#/components/schemas/AgentRuntimeResult'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
+ ],
+ 'title' => '更新智能体运行时',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateAgentRuntime',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Agent', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/{#runtimeName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"agentRuntimeId\\": \\"ar-1234567890abcdef\\",\\n \\"agentRuntimeName\\": \\"my-agent-runtime\\",\\n \\"agentRuntimeArn\\": \\"acs:agentrun:cn-hangzhou:1760720386195983:runtimes/7a1b6d39-9f8f-4ce2-b9c9-6db1b0b9e169\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Runtime is ready for use\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"description\\": \\"AI agent runtime for customer service automation\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/AgentRunExecutionRole\\",\\n \\"credentialName\\": \\"my-credential\\",\\n \\"externalAgentEndpointUrl\\": \\"https://external-agent.example.com/api\\",\\n \\"agentRuntimeVersion\\": \\"1\\",\\n \\"artifactType\\": \\"Code\\",\\n \\"codeConfiguration\\": {\\n \\"zipFile\\": \\"UEsDBAoAAAAAANF\\",\\n \\"ossBucketName\\": \\"my-agent-code-bucket\\",\\n \\"ossObjectName\\": \\"agent-code-v1.0.zip\\",\\n \\"checksum\\": \\"1234567890123456789\\",\\n \\"language\\": \\"python3.12\\",\\n \\"command\\": [\\n \\"\\"\\n ]\\n },\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"/usr/local/bin/entrypoint.sh\\"\\n ],\\n \\"registryConfig\\": {\\n \\"authConfig\\": {\\n \\"userName\\": \\"admin\\",\\n \\"password\\": \\"abc***\\"\\n },\\n \\"certConfig\\": {\\n \\"insecure\\": false,\\n \\"rootCaCertBase64\\": \\"cm9vdF9jYV9jZXJ0X2Jhc2U2NA==\\"\\n },\\n \\"networkConfig\\": {\\n \\"vpcId\\": \\"vpc-xxxxxxxxxxxxx\\",\\n \\"vSwitchId\\": \\"vsw-xxxxxxxxxxxxx\\",\\n \\"securityGroupId\\": \\"sg-xxxxxxxxxxxxx\\"\\n }\\n },\\n \\"port\\": 5000\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"protocolConfiguration\\": {\\n \\"type\\": \\"HTTP\\",\\n \\"protocolSettings\\": [\\n {\\n \\"type\\": \\"\\",\\n \\"name\\": \\"\\",\\n \\"config\\": \\"\\",\\n \\"path\\": \\"\\",\\n \\"pathPrefix\\": \\"\\",\\n \\"headers\\": \\"\\",\\n \\"method\\": \\"\\",\\n \\"inputBodyJsonSchema\\": \\"\\",\\n \\"outputBodyJsonSchema\\": \\"\\",\\n \\"requestContentType\\": \\"\\",\\n \\"responseContentType\\": \\"\\",\\n \\"A2AAgentCard\\": \\"\\",\\n \\"a2aAgentCard\\": \\"\\",\\n \\"a2aAgentCardUrl\\": \\"\\"\\n }\\n ]\\n },\\n \\"cpu\\": 2,\\n \\"memory\\": 2048,\\n \\"diskSize\\": 0,\\n \\"port\\": 8080,\\n \\"sessionConcurrencyLimitPerInstance\\": 100,\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"healthCheckConfiguration\\": {\\n \\"httpGetUrl\\": \\"/ready\\",\\n \\"initialDelaySeconds\\": 30,\\n \\"periodSeconds\\": 30,\\n \\"timeoutSeconds\\": 3,\\n \\"failureThreshold\\": 3,\\n \\"successThreshold\\": 1\\n },\\n \\"sessionIdleTimeoutSeconds\\": 3600,\\n \\"enableSessionIsolation\\": false,\\n \\"disableOndemand\\": false,\\n \\"disableSessionAffinity\\": false,\\n \\"sessionAffinityType\\": \\"GENERATED_COOKIE\\",\\n \\"headerFieldName\\": \\"x-agentrun-session-id\\",\\n \\"resourceGroupId\\": \\"\\",\\n \\"workspaceId\\": \\"ws-1234567890abcdef\\",\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n },\\n \\"environmentVariables\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"systemTags\\": [\\n \\"\\"\\n ],\\n \\"agentIdentityEnabled\\": \\"\\",\\n \\"agentIdentityConfig\\": {\\n \\"identityProviderName\\": \\"\\",\\n \\"workloadIdentityName\\": \\"\\"\\n },\\n \\"edition\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'UpdateAgentRuntimeEndpoint' => [
+ 'path' => '/2025-09-10/agents/runtimes/{agentRuntimeId}/endpoints/{agentRuntimeEndpointId}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
+ 'tags' => [],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'agentRuntimeId',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '智能体运行时ID', 'description' => '智能体运行时ID', 'type' => 'string', 'required' => true, 'example' => '12345678-1234-1234-1234-123456789abc'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'agentRuntimeEndpointId',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '智能体运行时端点ID', 'description' => '智能体运行时端点ID', 'type' => 'string', 'required' => true, 'example' => '87654321-4321-4321-4321-210987654321'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['title' => '更新智能体运行时端点输入', 'description' => '更新智能体运行时端点输入', 'required' => true, '$ref' => '#/components/schemas/UpdateAgentRuntimeEndpointInput'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['title' => '返回更新结构体的结果', 'description' => '返回更新结构体的结果', '$ref' => '#/components/schemas/AgentRuntimeEndpointResult'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
+ ],
+ 'title' => '更新智能体运行时访问端点',
+ 'summary' => '更新智能体运行时访问端点',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateAgentRuntimeEndpoint',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Endpoint', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/{#runtimeName}/runtime-endpoints/{#endpointName}'],
+ ],
],
],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"agentRuntimeId\\": \\"ar-1234567890abcdef\\",\\n \\"agentRuntimeEndpointId\\": \\"are-1234567890abcdef\\",\\n \\"agentRuntimeEndpointArn\\": \\"acs:agentrun:cn-hangzhou:1760720386195983:runtime-endpoints/e56d483c-db80-4116-9ec4-25f16f5facfd\\",\\n \\"agentRuntimeEndpointName\\": \\"production-endpoint\\",\\n \\"description\\": \\"Production endpoint for customer service agent\\",\\n \\"status\\": \\"ACTIVE\\",\\n \\"statusReason\\": \\"Endpoint is active and ready\\",\\n \\"targetVersion\\": \\"LATEST\\",\\n \\"routingConfiguration\\": {\\n \\"versionWeights\\": [\\n {\\n \\"version\\": \\"\\",\\n \\"weight\\": 0\\n }\\n ]\\n },\\n \\"endpointPublicUrl\\": \\"https://ar-1234567890abcdef.cn-hangzhou.agentrun.aliyuncs.com\\",\\n \\"disablePublicNetworkAccess\\": true,\\n \\"scalingStatus\\": {\\n \\"minInstances\\": 1,\\n \\"targetInstances\\": 2,\\n \\"currentInstances\\": 2,\\n \\"scheduledPolicies\\": [\\n {\\n \\"name\\": \\"scale-up-morning\\",\\n \\"startTime\\": \\"2024-01-01T08:00:00\\",\\n \\"endTime\\": \\"2024-01-01T08:00:00\\",\\n \\"scheduleExpression\\": \\"cron(0 8 * * ? *)\\",\\n \\"timeZone\\": \\"Asia/Shanghai\\",\\n \\"target\\": 20\\n }\\n ],\\n \\"currentError\\": \\"error\\"\\n }\\n }\\n}","type":"json"}]',
+ ],
+ 'UpdateCredential' => [
+ 'summary' => '更新凭证。',
+ 'path' => '/2025-09-10/agents/credentials/{credentialName}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
+ 'tags' => [],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY', 'FEATUREfcVF016G'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'credentialName',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'credentialName', 'type' => 'string', 'required' => false, 'example' => 'credentialName'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'schema' => ['description' => '更新智能体运行时输入', 'required' => false, '$ref' => '#/components/schemas/UpdateCredentialInput'],
+ ],
+ ],
'responses' => [
200 => [
'description' => 'Successful response',
'headers' => [],
- 'schema' => [
- 'description' => '自定义域名信息',
- '$ref' => '#/components/schemas/CustomDomainResult',
- ],
+ 'schema' => ['description' => 'CredentialResult', '$ref' => '#/components/schemas/CredentialResult'],
'examples' => [],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"domainName\\": \\"example.com\\",\\n \\"description\\": \\"\\",\\n \\"protocol\\": \\"HTTP\\",\\n \\"routeConfig\\": {\\n \\"routes\\": [\\n {\\n \\"path\\": \\"/login\\",\\n \\"resourceName\\": \\"\\",\\n \\"resourceType\\": \\"runtime\\",\\n \\"agentRuntimeEndpointName\\": \\"\\",\\n \\"methods\\": [\\n \\"\\"\\n ]\\n }\\n ]\\n },\\n \\"certConfig\\": {\\n \\"certName\\": \\"my-cert\\",\\n \\"certificate\\": \\"-----BEGIN CERTIFICATE-----\\\\\\\\nxxxxx\\\\\\\\n-----END CERTIFICATE-----\\",\\n \\"privateKey\\": \\"-----BEGIN RSA PRIVATE KEY-----\\\\\\\\nxxxxx\\\\\\\\n-----END RSA PRIVATE KEY-----\\"\\n },\\n \\"tlsConfig\\": {\\n \\"minVersion\\": \\"TLSv1.2\\",\\n \\"cipherSuites\\": [\\n \\"\\"\\n ],\\n \\"maxVersion\\": \\"TLSv1.3\\"\\n },\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"updatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"domainType\\": \\"\\"\\n }\\n}","type":"json"}]',
- 'title' => '获取自定义域名',
+ 'title' => '更新凭证',
+ 'description' => '获取当前用户的所有模板列表,支持按模板类型过滤,支持分页查询。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateCredential',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Credential', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/credentials/{#credentialName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"credentialId\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"credentialAuthType\\": \\"\\",\\n \\"credentialSourceType\\": \\"\\",\\n \\"enabled\\": true,\\n \\"credentialSecret\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"updatedAt\\": \\"\\",\\n \\"credentialPublicConfig\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"relatedResources\\": [\\n {\\n \\"resourceId\\": \\"\\",\\n \\"resourceName\\": \\"\\",\\n \\"resourceType\\": \\"\\"\\n }\\n ],\\n \\"workspaceId\\": \\"\\"\\n }\\n}","type":"json"}]',
],
'UpdateCustomDomain' => [
'summary' => '更新自定义域名。',
'path' => '/2025-09-10/agents/custom-domains/{domainName}',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- 'FEATUREfcVF016G',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY', 'FEATUREfcVF016G'],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'domainName',
'in' => 'path',
- 'schema' => [
- 'description' => '自定义域名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'foo.bar.com',
- ],
+ 'schema' => ['description' => '自定义域名', 'type' => 'string', 'required' => false, 'example' => 'foo.bar.com'],
],
[
'name' => 'body',
'in' => 'body',
- 'schema' => [
- 'description' => '自定义域名信息',
- 'required' => false,
- '$ref' => '#/components/schemas/UpdateCustomDomainInput',
- ],
+ 'schema' => ['description' => '自定义域名信息', 'required' => false, '$ref' => '#/components/schemas/UpdateCustomDomainInput'],
],
],
'responses' => [
200 => [
'description' => 'Successful response',
'headers' => [],
- 'schema' => [
- 'description' => '自定义域名信息',
- '$ref' => '#/components/schemas/CustomDomainResult',
- ],
+ 'schema' => ['description' => '自定义域名信息', '$ref' => '#/components/schemas/CustomDomainResult'],
'examples' => [],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"domainName\\": \\"example.com\\",\\n \\"description\\": \\"\\",\\n \\"protocol\\": \\"HTTP\\",\\n \\"routeConfig\\": {\\n \\"routes\\": [\\n {\\n \\"path\\": \\"/login\\",\\n \\"resourceName\\": \\"\\",\\n \\"resourceType\\": \\"runtime\\",\\n \\"agentRuntimeEndpointName\\": \\"\\",\\n \\"methods\\": [\\n \\"\\"\\n ]\\n }\\n ]\\n },\\n \\"certConfig\\": {\\n \\"certName\\": \\"my-cert\\",\\n \\"certificate\\": \\"-----BEGIN CERTIFICATE-----\\\\\\\\nxxxxx\\\\\\\\n-----END CERTIFICATE-----\\",\\n \\"privateKey\\": \\"-----BEGIN RSA PRIVATE KEY-----\\\\\\\\nxxxxx\\\\\\\\n-----END RSA PRIVATE KEY-----\\"\\n },\\n \\"tlsConfig\\": {\\n \\"minVersion\\": \\"TLSv1.2\\",\\n \\"cipherSuites\\": [\\n \\"\\"\\n ],\\n \\"maxVersion\\": \\"TLSv1.3\\"\\n },\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"updatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"domainType\\": \\"\\"\\n }\\n}","type":"json"}]',
'title' => '更新自定义域名',
- ],
- 'CreateBrowser' => [
- 'summary' => '创建浏览器沙箱',
- 'description' => '创建一个新的浏览器实例,用于执行网页自动化任务。浏览器实例提供网页浏览、元素操作、截图录制等功能。',
- 'path' => '/2025-09-10/agents/browsers',
- 'methods' => [
- 'post',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateCustomDomain',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"domainName\\": \\"example.com\\",\\n \\"description\\": \\"\\",\\n \\"protocol\\": \\"HTTP\\",\\n \\"routeConfig\\": {\\n \\"routes\\": [\\n {\\n \\"path\\": \\"/login\\",\\n \\"resourceName\\": \\"\\",\\n \\"resourceType\\": \\"runtime\\",\\n \\"agentRuntimeEndpointName\\": \\"\\",\\n \\"compatibleProtocol\\": \\"native\\",\\n \\"flowEndpointName\\": \\"Default\\",\\n \\"methods\\": [\\n \\"\\"\\n ],\\n \\"removeBasePathOnForward\\": true\\n }\\n ]\\n },\\n \\"certConfig\\": {\\n \\"certName\\": \\"my-cert\\",\\n \\"certificate\\": \\"-----BEGIN CERTIFICATE-----\\\\\\\\nxxxxx\\\\\\\\n-----END CERTIFICATE-----\\",\\n \\"privateKey\\": \\"-----BEGIN RSA PRIVATE KEY-----\\\\\\\\nxxxxx\\\\\\\\n-----END RSA PRIVATE KEY-----\\"\\n },\\n \\"tlsConfig\\": {\\n \\"minVersion\\": \\"TLSv1.2\\",\\n \\"cipherSuites\\": [\\n \\"\\"\\n ],\\n \\"maxVersion\\": \\"TLSv1.3\\"\\n },\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"updatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"domainType\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'UpdateFlow' => [
+ 'path' => '/2025-09-10/flows/{flowName}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcVF016G',
- ],
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
+ 'name' => 'flowName',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '工作流ID', 'description' => '工作流ID', 'type' => 'string', 'required' => true, 'example' => 'flow-1234567890abcdef'],
+ 'examples' => [],
+ ],
+ [
'name' => 'body',
'in' => 'body',
'style' => 'json',
- 'schema' => [
- 'description' => '创建参数请求体',
- 'required' => true,
- '$ref' => '#/components/schemas/CreateBrowserInput',
- ],
+ 'schema' => ['title' => '更新工作流输入参数', 'description' => '更新工作流输入参数', 'required' => true, '$ref' => '#/components/schemas/UpdateFlowInput'],
],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 返回创建的浏览器实例信息,包括浏览器ID、状态、配置等详细信息',
- 'schema' => [
- 'title' => '返回创建结构体的结果',
- 'description' => '返回创建结构体的结果',
- '$ref' => '#/components/schemas/BrowserResult',
- ],
+ 'schema' => ['title' => '返回更新结构体的结果', 'description' => '返回更新结构体的结果', '$ref' => '#/components/schemas/FlowResult'],
'examples' => [],
],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"browserId\\": \\"browser-1234567890abcdef\\",\\n \\"browserName\\": \\"my-browser\\",\\n \\"description\\": \\"Web automation browser for testing\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Browser is ready for use\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/BrowserExecutionRole\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"recording\\": {\\n \\"enabled\\": true,\\n \\"ossLocation\\": {\\n \\"bucket\\": \\"\\",\\n \\"prefix\\": \\"\\"\\n }\\n },\\n \\"memory\\": 2048,\\n \\"resourceName\\": \\"my-browser-resource\\",\\n \\"credentialId\\": \\"cred-1234567890abcdef\\",\\n \\"cpu\\": 2,\\n \\"tags\\": [\\n \\"\\"\\n ],\\n \\"tenantId\\": \\"tenant-1234567890abcdef\\"\\n }\\n}","type":"json"}]',
- 'title' => '创建浏览器沙箱',
- ],
- 'ListBrowsers' => [
- 'summary' => '获取浏览器沙箱列表',
- 'description' => '获取当前用户的所有浏览器实例列表,支持按名称、状态等条件过滤,支持分页查询。',
- 'path' => '/2025-09-10/agents/browsers',
- 'methods' => [
- 'get',
+ 'title' => '更新流程编排',
+ 'summary' => '更新工作流。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateFlow',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/{#flowId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"flowId\\": \\"flow-1234567890abcdef\\",\\n \\"flowArn\\": \\"acs:agentrun:cn-hangzhou:123456789012:workspaces/ws-xxx/flows/flow-xxx\\",\\n \\"flowName\\": \\"my-flow\\",\\n \\"description\\": \\"Customer service automation flow\\",\\n \\"definition\\": \\"{}\\",\\n \\"executionRoleArn\\": \\"acs:ram::123456789012:role/FlowExecutionRole\\",\\n \\"environmentConfiguration\\": {\\n \\"variables\\": [\\n {\\n \\"name\\": \\"MY_KEY\\",\\n \\"value\\": \\"my-value\\",\\n \\"description\\": \\"A configuration key\\"\\n }\\n ]\\n },\\n \\"externalStorageLocation\\": \\"oss://bucket/path\\",\\n \\"resourceGroupId\\": \\"rg-acfmxsn4m4a4b4a\\",\\n \\"tracingConfiguration\\": {\\n \\"enabled\\": true\\n },\\n \\"loggingConfiguration\\": {\\n \\"destinations\\": [\\n {\\n \\"slsLogDestination\\": {\\n \\"project\\": \\"my-sls-project\\",\\n \\"logStore\\": \\"my-logstore\\"\\n }\\n }\\n ]\\n },\\n \\"workspaceId\\": \\"ws-1234567890abcdef\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"disablePublicNetworkAccess\\": true\\n }\\n}","type":"json"}]',
+ ],
+ 'UpdateFlowDraft' => [
+ 'path' => '/2025-09-10/flows/{flowName}/draft',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'list',
+ 'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
- 'name' => 'browserName',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '按浏览器名称过滤',
- 'description' => '按浏览器名称过滤',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'browser',
- ],
+ 'name' => 'flowName',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '工作流ID', 'description' => '工作流ID', 'type' => 'string', 'required' => true, 'example' => 'flow-1234567890abcdef'],
'examples' => [],
],
[
- 'name' => 'pageSize',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '页面大小',
- 'description' => '页面大小',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['title' => '更新工作流草稿输入参数', 'description' => '更新工作流草稿输入参数', 'required' => true, '$ref' => '#/components/schemas/UpdateFlowDraftInput'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['title' => '返回更新结构体的结果', 'description' => '返回更新结构体的结果', '$ref' => '#/components/schemas/FlowResult'],
'examples' => [],
],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
+ ],
+ 'title' => '更新流程编排草稿',
+ 'summary' => '更新工作流草稿。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
[
- 'name' => 'pageNumber',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '页码',
- 'description' => '页码',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateFlowDraft',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/{#flowId}'],
+ ],
],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"flowId\\": \\"flow-1234567890abcdef\\",\\n \\"flowArn\\": \\"acs:agentrun:cn-hangzhou:123456789012:workspaces/ws-xxx/flows/flow-xxx\\",\\n \\"flowName\\": \\"my-flow\\",\\n \\"description\\": \\"Customer service automation flow\\",\\n \\"definition\\": \\"{}\\",\\n \\"executionRoleArn\\": \\"acs:ram::123456789012:role/FlowExecutionRole\\",\\n \\"environmentConfiguration\\": {\\n \\"variables\\": [\\n {\\n \\"name\\": \\"MY_KEY\\",\\n \\"value\\": \\"my-value\\",\\n \\"description\\": \\"A configuration key\\"\\n }\\n ]\\n },\\n \\"externalStorageLocation\\": \\"oss://bucket/path\\",\\n \\"resourceGroupId\\": \\"rg-acfmxsn4m4a4b4a\\",\\n \\"tracingConfiguration\\": {\\n \\"enabled\\": true\\n },\\n \\"loggingConfiguration\\": {\\n \\"destinations\\": [\\n {\\n \\"slsLogDestination\\": {\\n \\"project\\": \\"my-sls-project\\",\\n \\"logStore\\": \\"my-logstore\\"\\n }\\n }\\n ]\\n },\\n \\"workspaceId\\": \\"ws-1234567890abcdef\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"disablePublicNetworkAccess\\": true\\n }\\n}","type":"json"}]',
+ ],
+ 'UpdateFlowEndpoint' => [
+ 'path' => '/2025-09-10/flows/{flowName}/endpoints/{flowEndpointName}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
+ 'tags' => [],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'flowName',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '工作流ID', 'description' => '工作流ID', 'type' => 'string', 'required' => true, 'example' => 'flow-1234567890abcdef'],
'examples' => [],
],
[
- 'name' => 'status',
- 'in' => 'query',
+ 'name' => 'flowEndpointName',
+ 'in' => 'path',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '按状态过滤',
- 'description' => '按状态过滤',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'CREATING',
- ],
+ 'schema' => ['title' => '工作流端点ID', 'description' => '工作流端点ID', 'type' => 'string', 'required' => true, 'example' => 'fe-1234567890abcdef'],
'examples' => [],
],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['title' => '更新工作流端点输入参数', 'description' => '更新工作流端点输入参数', 'required' => true, '$ref' => '#/components/schemas/UpdateFlowEndpointInput'],
+ ],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 返回浏览器实例列表,包含分页信息和实例详情',
- 'schema' => [
- 'title' => '返回列表结构体的结果',
- 'description' => '返回列表结构体的结果',
- '$ref' => '#/components/schemas/ListBrowsersResult',
- ],
+ 'schema' => ['title' => '返回更新结构体的结果', 'description' => '返回更新结构体的结果', '$ref' => '#/components/schemas/FlowEndpointResult'],
'examples' => [],
],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0,\\n \\"total\\": 0,\\n \\"items\\": [\\n {\\n \\"browserId\\": \\"browser-1234567890abcdef\\",\\n \\"browserName\\": \\"my-browser\\",\\n \\"description\\": \\"Web automation browser for testing\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Browser is ready for use\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/BrowserExecutionRole\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"recording\\": {\\n \\"enabled\\": true,\\n \\"ossLocation\\": {\\n \\"bucket\\": \\"\\",\\n \\"prefix\\": \\"\\"\\n }\\n },\\n \\"memory\\": 2048,\\n \\"resourceName\\": \\"my-browser-resource\\",\\n \\"credentialId\\": \\"cred-1234567890abcdef\\",\\n \\"cpu\\": 2,\\n \\"tags\\": [\\n \\"\\"\\n ],\\n \\"tenantId\\": \\"tenant-1234567890abcdef\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '获取浏览器沙箱列表',
- ],
- 'GetBrowser' => [
- 'summary' => '获取浏览器沙箱',
- 'description' => '根据浏览器ID获取指定浏览器实例的详细信息,包括配置、状态、资源使用情况等。',
- 'path' => '/2025-09-10/agents/browsers/{browserId}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
+ 'title' => '更新变成编排调用端点',
+ 'summary' => '更新工作流端点',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"flowId\\": \\"flow-1234567890abcdef\\",\\n \\"flowEndpointId\\": \\"fe-1234567890abcdef\\",\\n \\"flowEndpointArn\\": \\"acs:agentrun:cn-hangzhou:123456789012:workspaces/ws-xxx/flows/flow-xxx/endpoints/fe-xxx\\",\\n \\"flowEndpointName\\": \\"my-flow-endpoint\\",\\n \\"description\\": \\"Production endpoint for flow\\",\\n \\"targetVersion\\": \\"1\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"routingConfiguration\\": [\\n {\\n \\"version\\": \\"1\\",\\n \\"weight\\": 100\\n }\\n ],\\n \\"disablePublicNetworkAccess\\": true\\n }\\n}","type":"json"}]',
+ ],
+ 'UpdateIMBot' => [
+ 'path' => '/2025-09-10/agents/im-bots/{imBotId}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
- 'tenantRelevance' => 'tenant',
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
],
'parameters' => [
[
- 'name' => 'browserId',
+ 'name' => 'imBotId',
'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '浏览器ID',
- 'description' => '浏览器ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => '12345678-1234-1234-1234-123456789abc',
- ],
- 'examples' => [],
+ 'allowEmptyValue' => true,
+ 'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['required' => true, '$ref' => '#/components/schemas/UpdateIMBotInput', 'description' => ''],
],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 返回指定浏览器实例的完整信息,包括配置参数、运行状态、资源分配等',
- 'schema' => [
- 'title' => '返回获取结构体的结果',
- 'description' => '返回获取结构体的结果',
- '$ref' => '#/components/schemas/BrowserResult',
- ],
- 'examples' => [],
+ 'schema' => ['$ref' => '#/components/schemas/IMBotResult', 'description' => ''],
+ ],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"browserId\\": \\"browser-1234567890abcdef\\",\\n \\"browserName\\": \\"my-browser\\",\\n \\"description\\": \\"Web automation browser for testing\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Browser is ready for use\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/BrowserExecutionRole\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"recording\\": {\\n \\"enabled\\": true,\\n \\"ossLocation\\": {\\n \\"bucket\\": \\"\\",\\n \\"prefix\\": \\"\\"\\n }\\n },\\n \\"memory\\": 2048,\\n \\"resourceName\\": \\"my-browser-resource\\",\\n \\"credentialId\\": \\"cred-1234567890abcdef\\",\\n \\"cpu\\": 2,\\n \\"tags\\": [\\n \\"\\"\\n ],\\n \\"tenantId\\": \\"tenant-1234567890abcdef\\"\\n }\\n}","type":"json"}]',
- 'title' => '获取浏览器沙箱',
- ],
- 'DeleteBrowser' => [
- 'summary' => '删除浏览器沙箱',
- 'description' => '删除指定的浏览器实例,包括其所有相关资源和数据。删除操作不可逆,请谨慎操作。',
- 'path' => '/2025-09-10/agents/browsers/{browserId}',
- 'methods' => [
- 'delete',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'summary' => '更新 IM Bot',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateIMBot',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'IMBot', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/{#runtimeName}/im-bots/{#botName}'],
+ ],
+ ],
+ ],
],
- 'tags' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"id\\": \\"\\",\\n \\"tenantId\\": \\"\\",\\n \\"imChannelServerResourceName\\": \\"\\",\\n \\"botBizId\\": \\"\\",\\n \\"botName\\": \\"\\",\\n \\"agentRuntimeId\\": \\"\\",\\n \\"botBizType\\": \\"\\",\\n \\"botMode\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"lastMessageTime\\": \\"\\",\\n \\"currentInstances\\": 0,\\n \\"description\\": \\"\\",\\n \\"metadata\\": {\\n \\"agentRuntimeId\\": \\"\\",\\n \\"agentRuntimeEndpointId\\": \\"\\",\\n \\"agentRuntimeEndpointUrl\\": \\"\\",\\n \\"protocolType\\": \\"\\",\\n \\"role\\": \\"\\",\\n \\"customFunctionMeta\\": \\"\\"\\n },\\n \\"createdAt\\": \\"\\",\\n \\"updatedAt\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'UpdateKnowledgeBase' => [
+ 'path' => '/2025-09-10/agents/knowledgebases/{knowledgeBaseName}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
+ 'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcVF016G',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'browserId',
+ 'name' => 'knowledgeBaseName',
'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '浏览器ID',
- 'description' => '浏览器ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => '12345678-1234-1234-1234-123456789abc',
- ],
- 'examples' => [],
+ 'schema' => ['description' => '知识库名称。', 'type' => 'string', 'required' => true, 'example' => 'my-knowledgebase-name'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['description' => '更新知识库请求体。', 'required' => false, '$ref' => '#/components/schemas/UpdateKnowledgeBaseInput'],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'title' => '返回删除结构体的结果',
- 'description' => '返回删除结构体的结果',
- '$ref' => '#/components/schemas/DeleteBrowserResult',
+ 'schema' => ['description' => '更新后的知识库返回结果。', '$ref' => '#/components/schemas/KnowledgeBaseResult'],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'IdempotentParameterMismatch', 'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.', 'description' => ''],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '更新知识库',
+ 'summary' => '更新知识库。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateKnowledgeBase',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Knowledgebase', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/knowledgebases/{#knowledgeBaseName}'],
+ ],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"code\\": \\"SUCCESS\\",\\n \\"data\\": {\\n \\"browserId\\": \\"browser-1234567890abcdef\\",\\n \\"browserName\\": \\"my-browser\\",\\n \\"description\\": \\"Web automation browser for testing\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Browser is ready for use\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/BrowserExecutionRole\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"recording\\": {\\n \\"enabled\\": true,\\n \\"ossLocation\\": {\\n \\"bucket\\": \\"\\",\\n \\"prefix\\": \\"\\"\\n }\\n },\\n \\"memory\\": 2048,\\n \\"resourceName\\": \\"my-browser-resource\\",\\n \\"credentialId\\": \\"cred-1234567890abcdef\\",\\n \\"cpu\\": 2,\\n \\"tags\\": [\\n \\"\\"\\n ],\\n \\"tenantId\\": \\"tenant-1234567890abcdef\\"\\n }\\n}","type":"json"}]',
- 'title' => '删除浏览器沙箱',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"knowledgeBaseId\\": \\"\\",\\n \\"knowledgeBaseName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"provider\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"providerSettings\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"retrieveSettings\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"workspaceId\\": \\"\\"\\n }\\n}","type":"json"}]',
],
- 'CreateCodeInterpreter' => [
- 'summary' => '创建代码解释器',
- 'description' => '创建一个新的代码解释器实例,用于执行代码解释和运行任务。代码解释器提供Python代码执行、数据处理、机器学习等功能。',
- 'path' => '/2025-09-10/agents/code-interpreters',
- 'methods' => [
- 'post',
+ 'UpdateMemoryCollection' => [
+ 'path' => '/2025-09-10/agents/memory-collections/{memoryCollectionName}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
- 'schemes' => [
- 'https',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcUDVD99'],
],
- 'tags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'memoryCollectionName',
+ 'in' => 'path',
+ 'schema' => ['description' => '记忆存储名称', 'type' => 'string', 'required' => false, 'example' => 'my-memory-1'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['description' => '更新记忆存储所需的输入参数', 'required' => false, '$ref' => '#/components/schemas/UpdateMemoryCollectionInput'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['description' => '记忆存储', '$ref' => '#/components/schemas/MemoryCollectionResult'],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '更新记忆存储',
+ 'summary' => '修改记忆存储信息',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateMemoryCollection',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"memoryCollectionName\\": \\"\\",\\n \\"memoryCollectionId\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"llmConfig\\": {\\n \\"config\\": {\\n \\"model\\": \\"\\"\\n },\\n \\"modelServiceName\\": \\"\\"\\n },\\n \\"embedderConfig\\": {\\n \\"config\\": {\\n \\"model\\": \\"\\"\\n },\\n \\"modelServiceName\\": \\"\\"\\n },\\n \\"vectorStoreConfig\\": {\\n \\"provider\\": \\"\\",\\n \\"config\\": {\\n \\"endpoint\\": \\"\\",\\n \\"instanceName\\": \\"\\",\\n \\"vectorDimension\\": 0,\\n \\"collectionName\\": \\"\\"\\n },\\n \\"mysqlConfig\\": {\\n \\"host\\": \\"\\",\\n \\"dbName\\": \\"\\",\\n \\"collectionName\\": \\"\\",\\n \\"user\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"vectorDimension\\": 0,\\n \\"port\\": 0\\n }\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"executionRoleArn\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"enableConversationHistory\\": true,\\n \\"enableConversationState\\": true,\\n \\"workspaceId\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'UpdateModelProxy' => [
+ 'path' => '/2025-09-10/agents/model-proxies/{modelProxyName}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
],
- 'produces' => [
- 'application/json',
+ 'parameters' => [
+ [
+ 'name' => 'modelProxyName',
+ 'in' => 'path',
+ 'schema' => ['description' => 'modelProxyName', 'type' => 'string', 'required' => true, 'example' => 'modelProxyName'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['description' => '更新智能体运行时输入', 'required' => false, '$ref' => '#/components/schemas/UpdateModelProxyInput'],
+ ],
],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['description' => 'ModelProxyResult', '$ref' => '#/components/schemas/ModelProxyResult'],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '更新模型治理',
+ 'summary' => '更新模型治理。',
+ 'description' => '获取当前用户的所有模板列表,支持按模板类型过滤,支持分页查询。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"modelProxyId\\": \\"\\",\\n \\"modelProxyName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"modelType\\": \\"\\",\\n \\"proxyMode\\": \\"\\",\\n \\"proxyConfig\\": {\\n \\"policies\\": {\\n \\"requestTimeout\\": 0,\\n \\"numRetries\\": 0,\\n \\"cache\\": true,\\n \\"concurrencyLimit\\": 0,\\n \\"fallbacks\\": [\\n {\\n \\"modelServiceName\\": \\"\\",\\n \\"modelName\\": \\"\\"\\n }\\n ],\\n \\"tokenRateLimiter\\": {\\n \\"tps\\": 0,\\n \\"tpm\\": 0,\\n \\"tph\\": 0,\\n \\"tpd\\": 0\\n },\\n \\"aiGuardrailConfig\\": {\\n \\"checkRequest\\": true,\\n \\"checkResponse\\": true,\\n \\"level\\": \\"\\",\\n \\"maxTextLength\\": 0,\\n \\"blockOnContentModeration\\": true,\\n \\"blockOnSensitiveData\\": true,\\n \\"blockOnPromptAttack\\": true,\\n \\"blockOnMaliciousUrl\\": true,\\n \\"blockOnModelHallucination\\": true\\n }\\n },\\n \\"endpoints\\": [\\n {\\n \\"modelServiceName\\": \\"\\",\\n \\"weight\\": 0,\\n \\"baseUrl\\": \\"\\",\\n \\"modelNames\\": [\\n \\"\\"\\n ]\\n }\\n ]\\n },\\n \\"functionName\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"serviceRegionId\\": \\"\\",\\n \\"endpoint\\": \\"\\",\\n \\"litellmVersion\\": \\"\\",\\n \\"cpu\\": 0,\\n \\"memory\\": 0,\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"statusReason\\": \\"\\",\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"executionRoleArn\\": \\"\\",\\n \\"workspaceId\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'UpdateModelService' => [
+ 'summary' => '更新模型。',
+ 'path' => '/2025-09-10/agents/model-services/{modelServiceName}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- 'FEATUREfcVF016G',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
],
'parameters' => [
[
+ 'name' => 'modelServiceName',
+ 'in' => 'path',
+ 'schema' => ['description' => 'modelServiceName', 'type' => 'string', 'required' => true, 'example' => 'modelServiceName'],
+ ],
+ [
'name' => 'body',
'in' => 'body',
'style' => 'json',
- 'schema' => [
- 'description' => '创建请求参数',
- 'required' => true,
- '$ref' => '#/components/schemas/CreateCodeInterpreterInput',
- ],
+ 'schema' => ['description' => '请求体', 'required' => false, '$ref' => '#/components/schemas/UpdateModelServiceInput'],
],
],
'responses' => [
200 => [
- 'description' => '代码解释器创建已接受,正在异步处理中 - 返回202状态码表示请求已接受,正在后台创建代码解释器实例',
- 'schema' => [
- 'title' => '返回创建结构体的结果',
- 'description' => '返回创建结构体的结果',
- '$ref' => '#/components/schemas/CodeInterpreterResult',
- ],
- 'examples' => [],
+ 'schema' => ['description' => 'ModelServiceResult', '$ref' => '#/components/schemas/ModelServiceResult'],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"codeInterpreterId\\": \\"ci-1234567890abcdef\\",\\n \\"codeInterpreterName\\": \\"my-code-interpreter\\",\\n \\"description\\": \\"Python code interpreter for data analysis\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/CodeInterpreterExecutionRole\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Code interpreter is ready for use\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"memory\\": 2048,\\n \\"credentialId\\": \\"cred-1234567890abcdef\\",\\n \\"cpu\\": 2,\\n \\"tenantId\\": \\"tenant-1234567890abcdef\\",\\n \\"tags\\": [\\n \\"\\"\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '创建代码解释器',
- ],
- 'ListCodeInterpreters' => [
- 'summary' => '获取代码解释器列表',
- 'description' => '获取当前用户的所有代码解释器实例列表,支持按名称等条件过滤,支持分页查询。',
- 'path' => '/2025-09-10/agents/code-interpreters',
- 'methods' => [
- 'get',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '更新模型',
+ 'description' => '获取当前用户的所有模板列表,支持按模板类型过滤,支持分页查询。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateModelService',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"modelServiceName\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"modelType\\": \\"\\",\\n \\"provider\\": \\"\\",\\n \\"providerSettings\\": {\\n \\"baseUrl\\": \\"\\",\\n \\"apiKey\\": \\"\\",\\n \\"modelNames\\": [\\n \\"\\"\\n ]\\n },\\n \\"status\\": \\"\\",\\n \\"credentialName\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"lastUpdatedAt\\": \\"\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"statusReason\\": \\"\\",\\n \\"modelServiceId\\": \\"\\",\\n \\"modelInfoConfigs\\": [\\n {\\n \\"modelName\\": \\"\\",\\n \\"modelFeatures\\": {\\n \\"vision\\": true,\\n \\"agentThought\\": true,\\n \\"toolCall\\": true,\\n \\"multiToolCall\\": true,\\n \\"streamToolCall\\": true\\n },\\n \\"modelProperties\\": {\\n \\"contextSize\\": 0\\n },\\n \\"modelParameterRules\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"type\\": \\"\\",\\n \\"default\\": \\"\\",\\n \\"min\\": 0,\\n \\"max\\": 0,\\n \\"required\\": true\\n }\\n ]\\n }\\n ],\\n \\"workspaceId\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'UpdateTemplate' => [
+ 'path' => '/2025-09-10/templates/{templateName}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'list',
+ 'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY'],
],
'parameters' => [
[
- 'name' => 'codeInterpreterName',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '按代码解释器名称过滤',
- 'description' => '按代码解释器名称过滤',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'code',
- ],
+ 'name' => 'templateName',
+ 'in' => 'path',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '模板名称', 'description' => '模板名称', 'type' => 'string', 'required' => true, 'example' => 'my-template'],
'examples' => [],
],
[
- 'name' => 'pageNumber',
+ 'name' => 'clientToken',
'in' => 'query',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '页码',
- 'description' => '页码',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- 'default' => '1',
- ],
+ 'schema' => ['title' => '客户端令牌', 'description' => '客户端令牌', 'type' => 'string', 'required' => false, 'example' => 'clientToken'],
'examples' => [],
],
[
- 'name' => 'pageSize',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '页面大小',
- 'description' => '页面大小',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- 'default' => '20',
- ],
- 'examples' => [],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['title' => '更新模板请求参数', 'description' => '更新模板请求参数', 'required' => true, '$ref' => '#/components/schemas/UpdateTemplateInput'],
],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 返回代码解释器实例列表,包含分页信息和实例详情',
- 'schema' => [
- 'title' => '返回列表结构体的结果',
- 'description' => '返回列表结构体的结果',
- '$ref' => '#/components/schemas/ListCodeInterpretersResult',
- ],
+ 'schema' => ['title' => '返回更新结构体的结果', 'description' => '返回更新模板的结果', '$ref' => '#/components/schemas/TemplateResult'],
'examples' => [],
],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0,\\n \\"total\\": 0,\\n \\"items\\": [\\n {\\n \\"codeInterpreterId\\": \\"ci-1234567890abcdef\\",\\n \\"codeInterpreterName\\": \\"my-code-interpreter\\",\\n \\"description\\": \\"Python code interpreter for data analysis\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/CodeInterpreterExecutionRole\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Code interpreter is ready for use\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"memory\\": 2048,\\n \\"credentialId\\": \\"cred-1234567890abcdef\\",\\n \\"cpu\\": 2,\\n \\"tenantId\\": \\"tenant-1234567890abcdef\\",\\n \\"tags\\": [\\n \\"\\"\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '获取代码解释器列表',
- ],
- 'GetCodeInterpreter' => [
- 'summary' => '获取代码解释器',
- 'description' => '根据代码解释器ID获取指定代码解释器实例的详细信息,包括配置、状态、资源使用情况等。',
- 'path' => '/2025-09-10/agents/code-interpreters/{codeInterpreterId}',
- 'methods' => [
- 'get',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '更新模板',
+ 'summary' => '更新模板。',
+ 'description' => '更新指定模板的配置信息,包括资源配置、网络配置、环境变量等。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"templateId\\": \\"996ffd5e-003f-4700-9f24-9e2a1c19019b.schema\\",\\n \\"templateName\\": \\"browser-1767874121726\\",\\n \\"templateVersion\\": \\"预留\\",\\n \\"cpu\\": 4,\\n \\"memory\\": 4096,\\n \\"templateArn\\": \\"acs:agentrun:cn-hangzhou:12345678:templates/efb6de2f-1814-42a2-b7f3-474a0e0b3a48\\",\\n \\"createdAt\\": \\"2026-01-15T17:12:59.375168+08:00\\",\\n \\"lastUpdatedAt\\": \\"2026-01-15T17:12:59.375168+08:00\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"SDK Error\\",\\n \\"executionRoleArn\\": \\"acs:agentrun:cn-hangzhou:12345678:templates/efb6de2f-1814-42a2-b7f3-474a0e0b3a48\\",\\n \\"templateType\\": \\"Browser\\",\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"/usr/local/bin/entrypoint.sh\\"\\n ],\\n \\"registryConfig\\": {\\n \\"authConfig\\": {\\n \\"userName\\": \\"admin\\",\\n \\"password\\": \\"abc***\\"\\n },\\n \\"certConfig\\": {\\n \\"insecure\\": false,\\n \\"rootCaCertBase64\\": \\"cm9vdF9jYV9jZXJ0X2Jhc2U2NA==\\"\\n },\\n \\"networkConfig\\": {\\n \\"vpcId\\": \\"vpc-xxxxxxxxxxxxx\\",\\n \\"vSwitchId\\": \\"vsw-xxxxxxxxxxxxx\\",\\n \\"securityGroupId\\": \\"sg-xxxxxxxxxxxxx\\"\\n }\\n },\\n \\"port\\": 5000\\n },\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"credentialConfiguration\\": {\\n \\"credentialName\\": \\"deepagent-key\\"\\n },\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"sandboxIdleTimeoutInSeconds\\": \\"1800\\",\\n \\"sandboxTTLInSeconds\\": \\"已弃用\\",\\n \\"resourceName\\": \\"agentrun-f2570dd4-c8a2-452c-8bd5-4ef74b0a69b5\\",\\n \\"mcpOptions\\": {\\n \\"transport\\": \\"streamable-http\\",\\n \\"enabledTools\\": [\\n \\"execute_code\\"\\n ]\\n },\\n \\"mcpState\\": {\\n \\"status\\": \\"CREATING\\",\\n \\"statusReason\\": \\"SDK Error\\",\\n \\"accessEndpoint\\": \\"/mcp\\"\\n },\\n \\"diskSize\\": 10240,\\n \\"description\\": \\"template描述\\",\\n \\"allowAnonymousManage\\": true,\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"enableAgent\\": true,\\n \\"workspaceId\\": \\"\\",\\n \\"scalingStatus\\": {\\n \\"minInstances\\": 1,\\n \\"targetInstances\\": 2,\\n \\"currentInstances\\": 2,\\n \\"scheduledPolicies\\": [\\n {\\n \\"name\\": \\"scale-up-morning\\",\\n \\"startTime\\": \\"2024-01-01T08:00:00\\",\\n \\"endTime\\": \\"2024-01-01T08:00:00\\",\\n \\"scheduleExpression\\": \\"cron(0 8 * * ? *)\\",\\n \\"timeZone\\": \\"Asia/Shanghai\\",\\n \\"target\\": 20\\n }\\n ],\\n \\"currentError\\": \\"error\\"\\n },\\n \\"environmentVariables\\": {\\n \\"key\\": \\"{\'FCTEST_IDE_ENV\': \'IDE\'}\\"\\n },\\n \\"templateConfiguration\\": {\\n \\"key\\": \\"{\\\\\\"example\\\\\\":\\\\\\"test\\\\\\"}\\"\\n },\\n \\"ossConfiguration\\": [\\n {\\n \\"bucketName\\": \\"a-test-oss\\",\\n \\"prefix\\": \\"/\\",\\n \\"mountPoint\\": \\"/mnt/oss1\\",\\n \\"permission\\": \\"READ_WRITE\\",\\n \\"region\\": \\"ch-hangzhou\\",\\n \\"endpoint\\": \\"\\"\\n }\\n ],\\n \\"enablePreStop\\": true,\\n \\"preStopTimeoutInSeconds\\": 0\\n }\\n}","type":"json"}]',
+ ],
+ 'UpdateTool' => [
+ 'path' => '/2025-09-10/agents/tools/{toolName}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcGRJPWY', 'FEATUREfcVF016G'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'codeInterpreterId',
+ 'name' => 'toolName',
'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '代码解释器ID',
- 'description' => '代码解释器ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => '12345678-1234-1234-1234-123456789abc',
- ],
- 'examples' => [],
+ 'schema' => ['title' => '工具名称', 'description' => '工具名称', 'type' => 'string', 'required' => false, 'example' => 'my-mcp-tool'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'schema' => ['title' => '请求体', 'description' => '请求体', 'required' => false, '$ref' => '#/components/schemas/UpdateToolInputV2'],
],
],
'responses' => [
200 => [
- 'description' => '成功响应 - 返回指定代码解释器实例的完整信息,包括配置参数、运行状态、资源分配等',
- 'schema' => [
- 'title' => '返回获取结构体的结果',
- 'description' => '返回获取结构体的结果',
- '$ref' => '#/components/schemas/CodeInterpreterResult',
- ],
+ 'headers' => [],
+ 'schema' => ['description' => '工具返回结果', '$ref' => '#/components/schemas/ToolResult'],
'examples' => [],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"codeInterpreterId\\": \\"ci-1234567890abcdef\\",\\n \\"codeInterpreterName\\": \\"my-code-interpreter\\",\\n \\"description\\": \\"Python code interpreter for data analysis\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/CodeInterpreterExecutionRole\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Code interpreter is ready for use\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"memory\\": 2048,\\n \\"credentialId\\": \\"cred-1234567890abcdef\\",\\n \\"cpu\\": 2,\\n \\"tenantId\\": \\"tenant-1234567890abcdef\\",\\n \\"tags\\": [\\n \\"\\"\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '获取代码解释器',
- ],
- 'DeleteCodeInterpreter' => [
- 'summary' => '删除代码解释器',
- 'description' => '删除指定的代码解释器实例,包括其所有相关资源和数据。删除操作不可逆,请谨慎操作。',
- 'path' => '/2025-09-10/agents/code-interpreters/{codeInterpreterId}',
- 'methods' => [
- 'delete',
+ 'title' => '更新工具',
+ 'summary' => 'Update a tool.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateTool',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Tool', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/tools/{#toolName}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"toolId\\": \\"tool-abc123\\",\\n \\"toolName\\": \\"my-mcp-tool\\",\\n \\"workspaceId\\": \\"workspace-xyz789\\",\\n \\"description\\": \\"这是一个用于处理文档的 MCP 工具\\",\\n \\"toolType\\": \\"MCP\\",\\n \\"createMethod\\": \\"MCP_REMOTE\\",\\n \\"protocolSpec\\": \\"\\",\\n \\"mcpConfig\\": {\\n \\"sessionAffinity\\": \\"MCP_STREAMABLE\\",\\n \\"sessionAffinityConfig\\": \\"\\",\\n \\"proxyEnabled\\": true,\\n \\"mcpProxyConfiguration\\": {\\n \\"hooks\\": [\\n {\\n \\"url\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"apiVersion\\": \\"\\",\\n \\"enabled\\": true,\\n \\"timeout\\": 0,\\n \\"event\\": \\"\\",\\n \\"headers\\": {\\n \\"key\\": \\"\\"\\n }\\n }\\n ]\\n },\\n \\"boundConfiguration\\": {\\n \\"boundTools\\": [\\n {\\n \\"toolName\\": \\"my-tool\\",\\n \\"method\\": \\"POST\\",\\n \\"path\\": \\"/api/v1/tools\\",\\n \\"apis\\": [\\n {\\n \\"method\\": \\"\\",\\n \\"path\\": \\"\\"\\n }\\n ]\\n }\\n ]\\n }\\n },\\n \\"status\\": \\"Running\\",\\n \\"statusReason\\": \\"\\",\\n \\"executionRoleArn\\": \\"acs:ram::123456789:role/AliyunFCDefaultRole\\",\\n \\"artifactType\\": \\"Code\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"vsw-sg-1234567890abcdef0\\"\\n ]\\n },\\n \\"codeConfiguration\\": {\\n \\"zipFile\\": \\"UEsDBAoAAAAAANF\\",\\n \\"ossBucketName\\": \\"my-agent-code-bucket\\",\\n \\"ossObjectName\\": \\"agent-code-v1.0.zip\\",\\n \\"checksum\\": \\"1234567890123456789\\",\\n \\"language\\": \\"python3.12\\",\\n \\"command\\": [\\n \\"\\"\\n ]\\n },\\n \\"containerConfiguration\\": {\\n \\"image\\": \\"registry.cn-hangzhou.aliyuncs.com/my-namespace/agent-runtime:latest\\",\\n \\"imageRegistryType\\": \\"ACR\\",\\n \\"acrInstanceId\\": \\"cri-xxxxx\\",\\n \\"command\\": [\\n \\"/usr/local/bin/entrypoint.sh\\"\\n ],\\n \\"registryConfig\\": {\\n \\"authConfig\\": {\\n \\"userName\\": \\"admin\\",\\n \\"password\\": \\"abc***\\"\\n },\\n \\"certConfig\\": {\\n \\"insecure\\": false,\\n \\"rootCaCertBase64\\": \\"cm9vdF9jYV9jZXJ0X2Jhc2U2NA==\\"\\n },\\n \\"networkConfig\\": {\\n \\"vpcId\\": \\"vpc-xxxxxxxxxxxxx\\",\\n \\"vSwitchId\\": \\"vsw-xxxxxxxxxxxxx\\",\\n \\"securityGroupId\\": \\"sg-xxxxxxxxxxxxx\\"\\n }\\n },\\n \\"port\\": 5000\\n },\\n \\"logConfiguration\\": {\\n \\"project\\": \\"agent-runtime-logs\\",\\n \\"logstore\\": \\"agent-runtime-logs\\"\\n },\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n },\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"cpu\\": 0.5,\\n \\"memory\\": 512,\\n \\"port\\": 8080,\\n \\"createdAt\\": \\"2025-09-10T10:00:00Z\\",\\n \\"updatedAt\\": \\"2025-09-10T12:00:00Z\\",\\n \\"credentialName\\": \\"my-credential\\",\\n \\"timeout\\": 300,\\n \\"environmentVariables\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"agentIdentityEnabled\\": true,\\n \\"agentIdentityConfig\\": {\\n \\"authorizationEnabled\\": true,\\n \\"credentialProviderType\\": \\"\\",\\n \\"credentialProviderArn\\": \\"\\"\\n }\\n }\\n}","type":"json"}]',
+ ],
+ 'UpdateWorkspace' => [
+ 'path' => '/2025-09-10/workspaces/{workspaceId}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['description' => '更新工作空间所需的输入参数', 'required' => false, '$ref' => '#/components/schemas/UpdateWorkspaceInput'],
+ ],
+ [
+ 'name' => 'workspaceId',
+ 'in' => 'path',
+ 'schema' => ['description' => '工作空间ID', 'type' => 'string', 'required' => false, 'example' => 'ws-1234567890abcdef'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['description' => '返回结果', '$ref' => '#/components/schemas/WorkspaceResult'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'schema' => ['$ref' => '#/components/schemas/ErrorResult', 'description' => ''],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '更新工作空间',
+ 'summary' => '更新工作空间',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateWorkspace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Workspace', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}'],
+ ],
+ ],
+ ],
],
- 'produces' => [
- 'application/json',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"workspaceId\\": \\"\\",\\n \\"workspaceArn\\": \\"\\",\\n \\"name\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"isDefault\\": true,\\n \\"resourceGroupId\\": \\"\\",\\n \\"createdAt\\": \\"\\",\\n \\"updatedAt\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'UpdateWorkspaceDiscoveryEndpoints' => [
+ 'path' => '/2025-09-10/workspaces/{workspaceId}/discovery/endpoints',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
+ 'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcGRJPWY',
- ],
+ 'abilityTreeNodes' => ['FEATUREfc739PD5'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
- 'name' => 'codeInterpreterId',
+ 'name' => 'body',
+ 'in' => 'body',
+ 'schema' => ['description' => '更新发现端点配置', 'required' => false, '$ref' => '#/components/schemas/UpdateDiscoveryEndpointsInput'],
+ ],
+ [
+ 'name' => 'workspaceId',
'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '代码解释器ID',
- 'description' => '代码解释器ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => '12345678-1234-1234-1234-123456789abc',
- ],
- 'examples' => [],
+ 'schema' => ['description' => '工作空间ID', 'type' => 'string', 'required' => false, 'example' => 'ws-1234567890abcdef'],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'title' => '返回删除结构体的结果',
- 'description' => '返回删除结构体的结果',
- '$ref' => '#/components/schemas/DeleteCodeInterpreterResult',
+ 'schema' => ['description' => '返回结果', '$ref' => '#/components/schemas/GetDiscoveryEndpointsResult'],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '更新工作空间的发现端点',
+ 'summary' => '获取工作空间下的发现端点',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateWorkspaceDiscoveryEndpoints',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Workspace', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}'],
+ ],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"SUCCESS\\",\\n \\"requestId\\": \\"F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E\\",\\n \\"data\\": {\\n \\"codeInterpreterId\\": \\"ci-1234567890abcdef\\",\\n \\"codeInterpreterName\\": \\"my-code-interpreter\\",\\n \\"description\\": \\"Python code interpreter for data analysis\\",\\n \\"executionRoleArn\\": \\"acs:ram::1760720386195983:role/CodeInterpreterExecutionRole\\",\\n \\"createdAt\\": \\"2025-01-10T10:30:00Z\\",\\n \\"lastUpdatedAt\\": \\"2025-01-10T11:45:00Z\\",\\n \\"status\\": \\"READY\\",\\n \\"statusReason\\": \\"Code interpreter is ready for use\\",\\n \\"networkConfiguration\\": {\\n \\"networkMode\\": \\"PRIVATE\\",\\n \\"vpcId\\": \\"vpc-1234567890abcdef0\\",\\n \\"securityGroupId\\": \\"sg-1234567890abcdef0\\",\\n \\"vswitchIds\\": [\\n \\"\\"\\n ]\\n },\\n \\"memory\\": 2048,\\n \\"credentialId\\": \\"cred-1234567890abcdef\\",\\n \\"cpu\\": 2,\\n \\"tenantId\\": \\"tenant-1234567890abcdef\\",\\n \\"tags\\": [\\n \\"\\"\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '删除代码解释器',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"data\\": {\\n \\"credentialName\\": \\"\\",\\n \\"discoveryEndpoints\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"agentEndpointConfigs\\": [\\n {\\n \\"agentName\\": \\"\\",\\n \\"endpointName\\": \\"\\",\\n \\"endpointUrl\\": \\"\\",\\n \\"customDomainUrl\\": \\"\\"\\n }\\n ],\\n \\"credentialName\\": \\"\\",\\n \\"returnAgentCredentialContent\\": true\\n }\\n ]\\n }\\n}","type":"json"}]',
],
],
'endpoints' => [
+ ['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'agentrun.cn-shenzhen.aliyuncs.com', 'endpoint' => 'agentrun.cn-shenzhen.aliyuncs.com', 'vpc' => 'agentrun-vpc.cn-shenzhen.aliyuncs.com'],
+ ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'agentrun.cn-beijing.aliyuncs.com', 'endpoint' => 'agentrun.cn-beijing.aliyuncs.com', 'vpc' => 'agentrun-vpc.cn-beijing.aliyuncs.com'],
+ ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'agentrun.cn-shanghai.aliyuncs.com', 'endpoint' => 'agentrun.cn-shanghai.aliyuncs.com', 'vpc' => 'agentrun-vpc.cn-shanghai.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'agentrun.ap-southeast-1.aliyuncs.com', 'endpoint' => 'agentrun.ap-southeast-1.aliyuncs.com', 'vpc' => 'agentrun-vpc.ap-southeast-1.aliyuncs.com'],
+ ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'agentrun.cn-hangzhou.aliyuncs.com', 'endpoint' => 'agentrun.cn-hangzhou.aliyuncs.com', 'vpc' => 'agentrun-vpc.cn-hangzhou.aliyuncs.com'],
+ ],
+ 'errorCodes' => [],
+ 'changeSet' => [
[
- 'regionId' => 'cn-hangzhou',
- 'endpoint' => 'agentrun.cn-hangzhou.aliyuncs.com',
+ 'apis' => [
+ ['description' => '请求参数发生变更', 'api' => 'ListTemplates'],
+ ],
+ 'createdAt' => '2026-03-20T07:59:48.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'cn-beijing',
- 'endpoint' => 'agentrun.cn-beijing.aliyuncs.com',
+ 'apis' => [
+ ['description' => '请求参数发生变更', 'api' => 'ListMemoryCollections'],
+ ['description' => '请求参数发生变更', 'api' => 'ListModelProxies'],
+ ['description' => '请求参数发生变更', 'api' => 'ListModelServices'],
+ ],
+ 'createdAt' => '2026-03-11T12:13:07.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'cn-shanghai',
- 'endpoint' => 'agentrun.cn-shanghai.aliyuncs.com',
+ 'apis' => [
+ ['description' => '请求参数发生变更', 'api' => 'ListModelProxies'],
+ ['description' => '请求参数发生变更', 'api' => 'ListModelServices'],
+ ],
+ 'createdAt' => '2026-03-09T12:39:06.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'cn-shenzhen',
- 'endpoint' => 'agentrun.cn-shenzhen.aliyuncs.com',
+ 'apis' => [
+ ['description' => '请求参数发生变更', 'api' => 'ListCustomDomains'],
+ ],
+ 'createdAt' => '2026-03-04T08:03:27.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'ap-southeast-1',
- 'endpoint' => 'agentrun.ap-southeast-1.aliyuncs.com',
+ 'apis' => [
+ ['description' => '请求参数发生变更', 'api' => 'ListAgentRuntimes'],
+ ],
+ 'createdAt' => '2026-03-04T03:51:20.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => '请求参数发生变更', 'api' => 'ListMemoryCollections'],
+ ],
+ 'createdAt' => '2026-03-04T03:30:15.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => '请求参数发生变更', 'api' => 'ListTemplates'],
+ ],
+ 'createdAt' => '2026-02-26T07:56:20.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => '请求参数发生变更', 'api' => 'ListAgentRuntimes'],
+ ],
+ 'createdAt' => '2026-02-11T03:31:49.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => '请求参数发生变更', 'api' => 'ListAgentRuntimes'],
+ ],
+ 'createdAt' => '2026-01-26T02:31:53.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => '请求参数发生变更', 'api' => 'ListAgentRuntimes'],
+ ],
+ 'createdAt' => '2026-01-22T02:26:51.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => '请求参数发生变更', 'api' => 'ListTemplates'],
+ ],
+ 'createdAt' => '2026-01-14T11:18:06.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => '请求参数发生变更', 'api' => 'ListTemplates'],
+ ],
+ 'createdAt' => '2025-12-09T11:38:21.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => '请求参数发生变更', 'api' => 'ListAgentRuntimes'],
+ ],
+ 'createdAt' => '2025-11-24T05:31:11.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => '请求参数发生变更', 'api' => 'ListSandboxes'],
+ ['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'ListTemplates'],
+ ['description' => '响应参数发生变更', 'api' => 'StopSandbox'],
+ ],
+ 'createdAt' => '2025-11-22T17:45:47.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => '请求参数发生变更', 'api' => 'ListAgentRuntimeEndpoints'],
+ ['description' => '请求参数发生变更', 'api' => 'ListAgentRuntimes'],
+ ],
+ 'createdAt' => '2025-11-19T05:12:04.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => '请求参数发生变更', 'api' => 'CreateMemory'],
+ ['description' => '响应参数发生变更', 'api' => 'GetMemory'],
+ ['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'ListMemory'],
+ ['description' => '请求参数发生变更', 'api' => 'UpdateMemory'],
+ ],
+ 'createdAt' => '2025-10-30T09:59:32.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'CreateMemory'],
+ ['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'GetMemory'],
+ ['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'UpdateMemory'],
+ ],
+ 'createdAt' => '2025-10-21T05:34:58.000Z',
+ 'description' => '',
+ ],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '-1', 'countWindow' => 1, 'regionId' => '*'],
+ ['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateAgentRuntime'],
+ ['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateAgentRuntimeEndpoint'],
+ ['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateModelProxy'],
+ ['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateCredential'],
+ ['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateTemplate'],
+ ['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateModelService'],
+ ],
+ ],
+ 'ram' => [
+ 'productCode' => 'AgentRun',
+ 'productName' => '函数计算',
+ 'ramCodes' => ['agentrun'],
+ 'ramLevel' => '资源级',
+ 'ramConditions' => [],
+ 'ramActions' => [
+ [
+ 'apiName' => 'UpdateKnowledgeBase',
+ 'description' => '更新知识库',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateKnowledgeBase',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Knowledgebase', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/knowledgebases/{#knowledgeBaseName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateCustomDomain',
+ 'description' => '更新自定义域名',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateCustomDomain',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateCodeInterpreter',
+ 'description' => '创建代码解释器',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateCodeInterpreter',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateCustomDomain',
+ 'description' => '创建自定义域名',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateCustomDomain',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateTemplate',
+ 'description' => '更新模板',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetCustomDomain',
+ 'description' => '获取自定义域名',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetCustomDomain',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListCustomDomains',
+ 'description' => '列出自定义域名',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListCustomDomains',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateTool',
+ 'description' => '更新工具',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateTool',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Tool', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/tools/{#toolName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetAccessToken',
+ 'description' => '获取accessToken',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetAccessToken',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetFlowEndpoint',
+ 'description' => '查询流程调用端点详情',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetFlowEndpoint',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListBrowsers',
+ 'description' => '获取浏览器沙箱列表',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListBrowsers',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'PauseSandbox',
+ 'description' => '暂停沙箱',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:PauseSandbox',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateAgentRuntimeEndpoint',
+ 'description' => '创建智能体运行时的访问端点',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateAgentRuntimeEndpoint',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteFlowVersion',
+ 'description' => '删除流程版本',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteFlowVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/{#flowId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListFlowEndpoints',
+ 'description' => '获取流程编排调用端点列表',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListFlowEndpoints',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateModelService',
+ 'description' => '更新模型',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateModelService',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateCredential',
+ 'description' => '创建新凭证',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateCredential',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListFlows',
+ 'description' => '获取流程编排列表',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListFlows',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetBrowser',
+ 'description' => '获取浏览器沙箱',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetBrowser',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListTemplates',
+ 'description' => '列出模板',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListTemplates',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListAgentRuntimeEndpoints',
+ 'description' => '获取智能体运行时访问端点列表',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListAgentRuntimeEndpoints',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListIMBots',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListIMBots',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateAgentRuntimeEndpoint',
+ 'description' => '更新智能体运行时访问端点',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateAgentRuntimeEndpoint',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Endpoint', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/{#runtimeName}/runtime-endpoints/{#endpointName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ActivateTemplateMCP',
+ 'description' => '启用 TemplateMCP 服务',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:ActivateTemplateMCP',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateAgentRuntime',
+ 'description' => '创建智能体运行时',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateAgentRuntime',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Agent', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetAgentRuntimeEndpoint',
+ 'description' => '获取智能体运行时访问端点',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetAgentRuntimeEndpoint',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Agent', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/{#runtimeName}/runtime-endpoints/{#endpointName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteCustomDomain',
+ 'description' => '删除自定义域名',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteCustomDomain',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateWorkspaceDiscoveryEndpoints',
+ 'description' => '更新工作空间的发现端点',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateWorkspaceDiscoveryEndpoints',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Workspace', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListKnowledgeBases',
+ 'description' => '列出知识库',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListKnowledgeBases',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Knowledgebase', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/knowledgebases/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteCredential',
+ 'description' => '删除指定凭证',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteCredential',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Credential', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/credentials/{#credentialName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteIMBot',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteIMBot',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateWorkspace',
+ 'description' => '更新工作空间',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateWorkspace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Workspace', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetCodeInterpreter',
+ 'description' => '获取代码解释器',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetCodeInterpreter',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListMemoryCollections',
+ 'description' => '列出记忆存储',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListMemoryCollections',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ConvertFlowDSL',
+ 'description' => '流程DSL转换',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:ConvertFlowDSL',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetFlowDraft',
+ 'description' => '查询流程草稿详情',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetFlowDraft',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/{#flowId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetWorkspace',
+ 'description' => '获取工作空间详情',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetWorkspace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Workspace', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListModelServices',
+ 'description' => '列出全部模型',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListModelServices',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'ModelService', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/model-services/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetKnowledgeBase',
+ 'description' => '获取知识库',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetKnowledgeBase',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Knowledgebase', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/knowledgebases/{#knowledgeBaseName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteModelService',
+ 'description' => '删除模型',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteModelService',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateModelProxy',
+ 'description' => '创建模型治理',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateModelProxy',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteBrowser',
+ 'description' => '删除浏览器沙箱',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteBrowser',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteTool',
+ 'description' => '删除工具',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteTool',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Tool', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/tools/{#toolName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetModelProxy',
+ 'description' => '获取模型治理信息',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetModelProxy',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'StopTemplateMCP',
+ 'description' => '停止 TemplateMCP 服务',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:StopTemplateMCP',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateFlow',
+ 'description' => '创建流程编排',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateFlow',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetFlowVersion',
+ 'description' => '获取流程版本信息',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetFlowVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/{#flowId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateCredential',
+ 'description' => '更新凭证',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateCredential',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Credential', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/credentials/{#credentialName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetIMBot',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetIMBot',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'IMBot', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/{#runtimeName}/im-bots/{#botName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteModelProxy',
+ 'description' => '删除模型治理',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteModelProxy',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateTemplate',
+ 'description' => '创建模板',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateWorkspace',
+ 'description' => '创建工作空间',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateWorkspace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteAgentRuntimeEndpoint',
+ 'description' => '删除智能体访问端点',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteAgentRuntimeEndpoint',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Endpoint', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/{#runtimeName}/runtime-endpoints/{#endpointName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetAgentRuntime',
+ 'description' => '获取智能体运行时',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetAgentRuntime',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Agent', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/{#runtimeName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateFlowEndpoint',
+ 'description' => '创建流程调用端点',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateFlowEndpoint',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteKnowledgeBase',
+ 'description' => '删除知识库',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteKnowledgeBase',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Knowledgebase', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/knowledgebases/{#knowledgeBaseName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'PublishFlowVersion',
+ 'description' => '发布流程版本',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:PublishFlowVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/{#flowId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetMemoryCollection',
+ 'description' => '获取记忆存储',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetMemoryCollection',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetSandbox',
+ 'description' => '获取 Sandbox',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetSandbox',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetCredential',
+ 'description' => '获取凭证信息',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetCredential',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Credential', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/credentials/{#credentialName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetTool',
+ 'description' => '获取工具',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetTool',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Tool', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/tools/{#toolName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteAgentRuntime',
+ 'description' => '删除智能体运行时',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteAgentRuntime',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Agent', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/{#runtimeName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteMemoryCollection',
+ 'description' => '删除记忆存储',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteMemoryCollection',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateTool',
+ 'description' => '创建工具',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateTool',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Tool', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/tools/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetModelService',
+ 'description' => '获取模型信息',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetModelService',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'ModelService', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/model-services/{#modelServiceName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateMemoryCollection',
+ 'description' => '创建记忆存储',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateMemoryCollection',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateModelService',
+ 'description' => '创建模型',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateModelService',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteSandbox',
+ 'description' => '删除 Sandbox',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteSandbox',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListCredentials',
+ 'description' => '列出全部凭证',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListCredentials',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Credential', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/credentials/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListModelProxies',
+ 'description' => '列出全部模型治理',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListModelProxies',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateAgentRuntime',
+ 'description' => '更新智能体运行时',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateAgentRuntime',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Agent', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/{#runtimeName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteWorkspace',
+ 'description' => '删除工作空间',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteWorkspace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Workspace', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListTools',
+ 'description' => '列出工具',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListTools',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteFlow',
+ 'description' => '删除流程编排',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteFlow',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/{#flowId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListAgentRuntimeVersions',
+ 'description' => '获取智能体运行时版本',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListAgentRuntimeVersions',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListAgentRuntimes',
+ 'description' => '获取智能体运行时列表',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListAgentRuntimes',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Agent', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateSandbox',
+ 'description' => '创建 Sandbox',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateSandbox',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ResumeSandbox',
+ 'description' => '恢复沙箱',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:ResumeSandbox',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'StopSandbox',
+ 'description' => '停止 Sandbox',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:StopSandbox',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListCodeInterpreters',
+ 'description' => '获取代码解释器列表',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListCodeInterpreters',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteTemplate',
+ 'description' => '删除模板',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateFlowDraft',
+ 'description' => '更新流程编排草稿',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateFlowDraft',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/{#flowId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListSandboxes',
+ 'description' => '列出 Sandbox',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListSandboxes',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListWorkspaces',
+ 'description' => '获取工作空间列表',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListWorkspaces',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateKnowledgeBase',
+ 'description' => '创建知识库',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateKnowledgeBase',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Knowledgebase', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/knowledgebases/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteCodeInterpreter',
+ 'description' => '删除代码解释器',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentrun:DeleteCodeInterpreter',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateIMBot',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateIMBot',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'IMBot', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/{#runtimeName}/im-bots/{#botName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetWorkspaceDiscoveryEndpoints',
+ 'description' => '获取工作空间发现端点配置',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetWorkspaceDiscoveryEndpoints',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Workspace', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListFlowVersions',
+ 'description' => '获取流程版本列表',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListFlowVersions',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/{#flowId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateFlow',
+ 'description' => '更新流程编排',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateFlow',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/{#flowId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateIMBot',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateIMBot',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListModelProviders',
+ 'description' => '列出全部模型供应商',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentrun:ListModelProviders',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetFlow',
+ 'description' => '查询流程编排详情',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetFlow',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/{#flowId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateMemoryCollection',
+ 'description' => '更新记忆存储',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentrun:UpdateMemoryCollection',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'PublishRuntimeVersion',
+ 'description' => '发布智能体运行时新版本',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'agentrun:PublishRuntimeVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => 'Agent', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/{#runtimeName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetTemplate',
+ 'description' => '获取模板',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentrun:GetTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateBrowser',
+ 'description' => '创建浏览器沙箱',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentrun:CreateBrowser',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentRun', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'resourceTypes' => [
+ ['validationType' => 'always', 'resourceType' => 'Knowledgebase', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/knowledgebases/{#knowledgeBaseName}'],
+ ['validationType' => 'always', 'resourceType' => 'SandboxTemplate', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/template/{#templateName}'],
+ ['validationType' => 'always', 'resourceType' => 'Tool', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/tools/{#toolName}'],
+ ['validationType' => 'always', 'resourceType' => 'Credential', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/{#resourceType}/{#resourceName}'],
+ ['validationType' => 'always', 'resourceType' => 'FlowEndpoint', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/{#flowId}/endpoints/{#flowEndpointId}'],
+ ['validationType' => 'always', 'resourceType' => 'Endpoint', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/{#runtimeName}/runtime-endpoints/{#endpointName}'],
+ ['validationType' => 'always', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/{#flowId}'],
+ ['validationType' => 'always', 'resourceType' => 'FlowEndpoint', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/{#flowId}/endpoints/*'],
+ ['validationType' => 'always', 'resourceType' => 'ModelService', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:modelservice/*'],
+ ['validationType' => 'always', 'resourceType' => 'Credential', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/credentials/{#credentialName}'],
+ ['validationType' => 'always', 'resourceType' => 'Flow', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/flows/*'],
+ ['validationType' => 'always', 'resourceType' => 'IMBot', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/{#runtimeName}/im-bots/{#botName}'],
+ ['validationType' => 'always', 'resourceType' => 'SandboxTemplate', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/template/*'],
+ ['validationType' => 'always', 'resourceType' => 'Agent', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/*'],
+ ['validationType' => 'always', 'resourceType' => 'Agent', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/{#runtimeName}/runtime-endpoints/{#endpointName}'],
+ ['validationType' => 'always', 'resourceType' => 'Workspace', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}'],
+ ['validationType' => 'always', 'resourceType' => 'Knowledgebase', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/knowledgebases/*'],
+ ['validationType' => 'always', 'resourceType' => 'MemoryCollection', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:memorycollection/*'],
+ ['validationType' => 'always', 'resourceType' => 'ModelService', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/model-services/*'],
+ ['validationType' => 'always', 'resourceType' => 'ModelProxy', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:modelproxy/*'],
+ ['validationType' => 'always', 'resourceType' => 'Workspace', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/*'],
+ ['validationType' => 'always', 'resourceType' => 'Agent', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/runtimes/{#runtimeName}'],
+ ['validationType' => 'always', 'resourceType' => 'Tool', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/tools/*'],
+ ['validationType' => 'always', 'resourceType' => 'ModelService', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/model-services/{#modelServiceName}'],
+ ['validationType' => 'always', 'resourceType' => 'Credential', 'arn' => 'acs:agentrun:{#regionId}:{#accountId}:workspaces/{#workspaceName}/credentials/*'],
],
],
];