summaryrefslogtreecommitdiff
path: root/data/en_us/agentloop
diff options
context:
space:
mode:
Diffstat (limited to 'data/en_us/agentloop')
-rw-r--r--data/en_us/agentloop/2026-05-20/api-docs.php6111
1 files changed, 6111 insertions, 0 deletions
diff --git a/data/en_us/agentloop/2026-05-20/api-docs.php b/data/en_us/agentloop/2026-05-20/api-docs.php
new file mode 100644
index 0000000..4d94474
--- /dev/null
+++ b/data/en_us/agentloop/2026-05-20/api-docs.php
@@ -0,0 +1,6111 @@
+<?php return [
+ 'version' => '1.0',
+ 'info' => ['style' => 'ROA', 'product' => 'AgentLoop', 'version' => '2026-05-20'],
+ 'directories' => [
+ 'AddDatasetData', 'CancelPipelineRun', 'CreateAgentSpace', 'CreateContextStore', 'CreateContextStoreAPIKey', 'CreateDataset', 'CreateEvaluationTask', 'CreateEvaluator', 'CreateEvaluatorSkill', 'DeleteAgentSpace', 'DeleteContextStore', 'DeleteContextStoreAPIKey', 'DeleteDataset', 'DeleteEvaluationRun', 'DeleteEvaluationTask', 'DeleteEvaluator', 'DeleteEvaluatorSkill', 'DeletePipeline', 'DescribeRegions', 'ExecuteQuery',
+ 'GetAgentSpace', 'GetContextStore', 'GetContextStoreAPIKey', 'GetDataset', 'GetEvaluationRun', 'GetEvaluationTask', 'GetEvaluator', 'GetEvaluatorSkill', 'GetPipeline', 'GetPipelineRun', 'GetPipelineStats', 'ListAgentSpaces', 'ListContextStoreAPIKeys', 'ListContextStores', 'ListDatasets', 'ListEvaluationRuns', 'ListEvaluationTasks', 'ListEvaluatorSkills', 'ListEvaluators', 'ListPipelineRuns',
+ 'ListPipelines', 'PausePipeline', 'ResumePipeline', 'RunPipeline', 'SearchContext', 'TerminatePipeline', 'UpdateAgentSpace', 'UpdateContextStore', 'UpdateDataset', 'UpdateEvaluationRun', 'UpdateEvaluationTask', 'UpdateEvaluator', 'UpdateEvaluatorSkill', 'UpdatePipeline',
+ ],
+ 'components' => [
+ 'schemas' => [
+ 'BackfillStrategy' => [
+ 'description' => 'The backfill evaluation policy for historical data, which specifies the time range and trigger method for a backfill run.',
+ 'type' => 'object',
+ 'properties' => [
+ 'enabled' => [
+ 'description' => 'Specifies whether the backfill policy is enabled. If this parameter is not specified or is set to true, the policy is enabled. If this parameter is set to false, the policy is disabled but the configuration is retained.',
+ 'enumValueTitles' => ['true' => 'true', 'false' => 'false'],
+ 'type' => 'boolean',
+ 'title' => '',
+ 'example' => 'true',
+ ],
+ 'startTime' => ['description' => 'The start of the backfill time range, in UNIX millisecond timestamp. Provide a complete time range when you need to manually start a backfill.', 'type' => 'integer', 'title' => '', 'example' => '1782816000000', 'format' => 'int64'],
+ 'endTime' => ['description' => 'The end of the backfill time range, in UNIX millisecond timestamp. Provide a complete time range when you need to manually start a backfill.', 'type' => 'integer', 'title' => '', 'example' => '1782902400000', 'format' => 'int64'],
+ ],
+ 'example' => '{"enabled":true,"startTime":1782816000000,"endTime":1782902400000,"immediate":false}',
+ 'title' => '',
+ ],
+ 'ConnectorProperties' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'protocol' => ['title' => '协议类型:openai / openai-compatible / anthropic(model_service必填)', 'type' => 'string'],
+ 'modelList' => ['title' => '支持的模型列表,逗号分隔格式(model_service必填)', 'type' => 'string'],
+ 'channelType' => ['title' => '通道类型:custom / apig(model_service可选,默认custom)', 'type' => 'string'],
+ 'vpcId' => ['title' => 'VPC ID(agent_app可选)', 'type' => 'string'],
+ 'securityGroupId' => ['title' => '安全组ID(agent_app可选)', 'type' => 'string'],
+ 'vSwitchId' => ['title' => '交换机ID(agent_app可选)', 'type' => 'string'],
+ 'responseBodyPath' => ['title' => '响应体JSON Path提取路径(agent_app可选)', 'type' => 'string'],
+ 'network' => ['title' => '网络类型:internet / aliyun-vpc', 'type' => 'string'],
+ 'region' => ['title' => '地域(aliyun-vpc时必填)', 'type' => 'string'],
+ 'dryRunRequestBody' => ['title' => 'dryRun=All且type=agent_app时必填,用户提供的示例请求体,用于验证端点连通性(不持久化)', 'type' => 'string'],
+ ],
+ ],
+ 'ContinuousStrategy' => [
+ 'description' => 'The continuous evaluation policy, which is used to continuously evaluate new data within fixed time windows.',
+ 'type' => 'object',
+ 'properties' => [
+ 'enabled' => [
+ 'description' => 'Specifies whether to enable continuous evaluation. If this parameter is not specified or is set to true, continuous evaluation is enabled. If this parameter is set to false, continuous evaluation is disabled but the configuration is retained.',
+ 'enumValueTitles' => ['true' => 'true', 'false' => 'false'],
+ 'type' => 'boolean',
+ 'example' => 'true',
+ 'title' => '',
+ ],
+ 'intervalUnit' => [
+ 'description' => 'The unit of the continuous evaluation window interval. This field is required for the current polling implementation.',
+ 'enumValueTitles' => ['HOUR' => 'HOUR', 'MINUTE' => 'MINUTE', 'DAY' => 'DAY'],
+ 'type' => 'string',
+ 'example' => 'HOUR',
+ 'title' => '',
+ ],
+ 'intervalValue' => ['description' => 'The size of the continuous evaluation window interval. This parameter is used together with intervalUnit. The value must be greater than 0.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'dataDelayMinutes' => ['description' => 'The data arrival delay in minutes. After a window ends, the system waits for this duration before creating a run to allow data to arrive completely. Default value: 0.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''],
+ ],
+ 'example' => '{"enabled":true,"intervalUnit":"HOUR","intervalValue":1,"dataDelayMinutes":5}',
+ 'title' => '',
+ ],
+ 'DataFilter' => [
+ 'description' => 'The data filtering criteria for an evaluation task. Controls data query conditions, one-time input content, sampling ratio, and maximum evaluation count.',
+ 'type' => 'object',
+ 'properties' => [
+ 'query' => ['description' => 'The data query filter condition. This takes effect together with the evaluator-level filters.query. In Trace scenarios, you can specify filter expressions such as service name, environment, or labels.', 'type' => 'string', 'title' => '', 'example' => 'serviceName=\'checkout-service\''],
+ 'maxRecords' => ['description' => 'The maximum number of evaluation records. This takes effect for both backfill and continuous runs. If not specified, the backend does not write a default value.', 'type' => 'integer', 'title' => '', 'example' => '10', 'format' => 'int32'],
+ 'samplingRate' => [
+ 'description' => 'The sampling rate percentage. Valid values: 0 to 100. A value of 0 or not specified indicates no sampling. A value of 100 indicates full data. If the value is less than 100, random sampling is applied first, and then the maxRecords limit is applied.',
+ 'enumValueTitles' => ['0-100' => '0-100'],
+ 'type' => 'integer',
+ 'title' => '',
+ 'example' => '100',
+ 'format' => 'int32',
+ ],
+ 'provided' => ['description' => 'The one-time temporary evaluation input content, primarily used for oneshot tasks. The value is stored as a string. Object or array values are serialized to a JSON string.', 'type' => 'object', 'title' => '', 'example' => '{"input":"用户查询订单状态","output":"已查询到订单状态"}'],
+ ],
+ 'example' => '{"query":"serviceName=\'checkout-service\'","maxRecords":10,"samplingRate":100}',
+ 'title' => '',
+ ],
+ 'Evaluator' => [
+ 'description' => 'The evaluator configuration in an evaluation task. Used to reference a previously created evaluator or to describe an inline evaluator for the task.',
+ 'type' => 'object',
+ 'properties' => [
+ 'evaluatorRef' => ['title' => '', 'description' => 'The reference name of a registered evaluator. When specified, the evaluator definition is loaded by this reference with higher priority. Both built-in evaluators and custom evaluators are supported.', 'type' => 'string', 'example' => 'Builtin.agent_task_completion'],
+ 'name' => ['title' => '', 'description' => 'The evaluator name. Required for inline evaluators when evaluatorRef is not specified. The evaluatorRef or name must be unique within the same task.', 'type' => 'string', 'example' => 'agent_task_completion'],
+ 'type' => [
+ 'title' => '',
+ 'description' => 'The evaluator type. Defaults to LLM if not specified. Inline CODE evaluators are currently not supported. For CODE type evaluators, reference a previously created evaluator by using evaluatorRef.',
+ 'enumValueTitles' => ['AGENT' => 'AGENT', 'CODE' => 'CODE', 'LLM' => 'LLM'],
+ 'type' => 'string',
+ 'example' => 'AGENT',
+ ],
+ 'resultName' => ['title' => '', 'description' => 'The field name for the evaluation result. Required for inline evaluators. When referencing an existing evaluator, the metricName defined in the evaluator definition is used if this parameter is not specified.', 'type' => 'string', 'example' => 'agent_task_completion'],
+ 'resultType' => [
+ 'title' => '',
+ 'description' => 'The evaluation result type. Required for inline evaluators. Defaults to score when referencing an existing evaluator and this parameter is not specified.',
+ 'enumValueTitles' => ['score' => 'score', 'binary' => 'binary', 'text' => 'text'],
+ 'type' => 'string',
+ 'example' => 'score',
+ ],
+ 'config' => ['title' => '', 'description' => 'The evaluator runtime configuration. For inline LLM evaluators, this must include configurations such as prompt. When referencing an existing evaluator, this parameter is typically not required and is only specified when runtime parameters such as version need to be set.', 'type' => 'object', 'example' => '{"version":"1.0.0"}'],
+ 'filters' => ['title' => '', 'description' => 'The evaluator-level data filter conditions. These take effect together with the task-level dataFilter.query.', 'type' => 'object', 'example' => '{"query":"serviceName=\'checkout-service\'"}'],
+ 'variableMapping' => [
+ 'title' => '',
+ 'description' => 'The variable mapping that maps evaluator variables to evaluation data fields. Required for LLM/AGENT inline evaluators. When referencing an existing evaluator, the variable names must exist in the evaluator definition.',
+ 'type' => 'object',
+ 'additionalProperties' => ['description' => 'The value of a single variable mapping, indicating the evaluation data field path from which the evaluator variable reads.', 'type' => 'string', 'example' => 'trace.input', 'title' => ''],
+ 'example' => '{"input":"trace.input","output":"trace.output","agent_trajectory":"trace.agent_trajectory"}',
+ ],
+ ],
+ 'example' => '{"evaluatorRef":"Builtin.agent_task_completion","resultName":"agent_task_completion","resultType":"score","variableMapping":{"input":"trace.input","output":"trace.output","agent_trajectory":"trace.agent_trajectory"}}',
+ 'title' => '',
+ ],
+ 'ExperimentConfig' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'label' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'name' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'modelName' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'modelProvider' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'modelParameters' => ['title' => '', '$ref' => '#/components/schemas/ModelParameters', 'description' => '', 'example' => ''],
+ 'endpointConnectorId' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'promptTemplate' => [
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/PromptTemplateItem', 'description' => '', 'title' => '', 'example' => ''],
+ 'description' => '',
+ 'example' => '',
+ ],
+ 'requestBodyTemplate' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'requestMethod' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'ExperimentPlanData' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'planId' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'planName' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'experimentType' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'description' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'status' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'datasetId' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'querySql' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'experimentCount' => ['title' => '', 'type' => 'integer', 'format' => 'int32', 'description' => '', 'example' => ''],
+ 'createdAt' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'description' => '', 'example' => ''],
+ 'updatedAt' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'description' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'ExperimentRecord' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'recordId' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'recordName' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'experimentPlanId' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'planName' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'status' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'totalTasks' => ['title' => '', 'type' => 'integer', 'format' => 'int32', 'description' => '', 'example' => ''],
+ 'failedTasks' => ['title' => '', 'type' => 'integer', 'format' => 'int32', 'description' => '', 'example' => ''],
+ 'completedTasks' => ['title' => '', 'type' => 'integer', 'format' => 'int32', 'description' => '', 'example' => ''],
+ 'progress' => ['title' => '', 'type' => 'number', 'format' => 'float', 'description' => '', 'example' => ''],
+ 'executedAt' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'description' => '', 'example' => ''],
+ 'completedAt' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'description' => '', 'example' => ''],
+ 'datasetId' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'experimentConfig' => [
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/ExperimentConfig', 'description' => '', 'title' => '', 'example' => ''],
+ 'description' => '',
+ 'example' => '',
+ ],
+ 'dataSourceType' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'modelNames' => [
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'description' => '',
+ 'example' => '',
+ ],
+ 'errorMessage' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'datasetProject' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'evaluators' => [
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/Evaluator', 'description' => '', 'title' => '', 'example' => ''],
+ 'description' => '',
+ 'example' => '',
+ ],
+ 'input' => ['title' => '', 'type' => 'object', 'description' => '', 'example' => ''],
+ 'selectedItemIds' => [
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'description' => '',
+ 'example' => '',
+ ],
+ 'querySql' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'evaluationTaskId' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'IndexJsonKey' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'type' => ['type' => 'string'],
+ 'chn' => ['type' => 'boolean'],
+ ],
+ ],
+ 'IndexKey' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'chn' => ['type' => 'boolean'],
+ 'type' => ['type' => 'string'],
+ 'embedding' => ['type' => 'string'],
+ 'jsonKeys' => [
+ 'type' => 'object',
+ 'additionalProperties' => ['$ref' => '#/components/schemas/IndexJsonKey'],
+ ],
+ ],
+ ],
+ 'ModelParameters' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'temperature' => ['title' => '', 'type' => 'number', 'format' => 'float', 'description' => '', 'example' => ''],
+ 'maxTokens' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'description' => '', 'example' => ''],
+ 'topP' => ['title' => '', 'type' => 'number', 'format' => 'float', 'description' => '', 'example' => ''],
+ 'topK' => ['title' => '', 'type' => 'integer', 'format' => 'int32', 'description' => '', 'example' => ''],
+ 'frequencyPenalty' => ['title' => '', 'type' => 'number', 'format' => 'float', 'description' => '', 'example' => ''],
+ 'presencePenalty' => ['title' => '', 'type' => 'number', 'format' => 'float', 'description' => '', 'example' => ''],
+ 'stopSequences' => [
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'description' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'OfflineExperimentConfig' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'label' => ['title' => '实验标签', 'type' => 'string'],
+ 'name' => ['title' => '实验名称', 'type' => 'string'],
+ 'desc' => ['title' => '实验描述', 'type' => 'string'],
+ ],
+ ],
+ 'PromptTemplateItem' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'role' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'content' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'RunStrategies' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'backfill' => ['$ref' => '#/components/schemas/BackfillStrategy', 'description' => '', 'title' => '', 'example' => ''],
+ 'continuous' => ['$ref' => '#/components/schemas/ContinuousStrategy', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'apis' => [
+ 'AddDatasetData' => [
+ 'path' => '/agentspace/{agentSpace}/dataset/{datasetName}/rows',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The name of the agent space.', 'type' => 'string', 'required' => false, 'example' => 'sop-agent', 'title' => ''],
+ ],
+ [
+ 'name' => 'datasetName',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The name of the dataset.', 'type' => 'string', 'required' => false, 'example' => 'product_faq_dataset', 'title' => ''],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body. The dataArray parameter is required.',
+ 'type' => 'object',
+ 'properties' => [
+ 'dataArray' => [
+ 'description' => 'The array of data rows to append. The array cannot be empty. The server reads the data in streaming mode. The maximum request body size is 100 MB by default. All rows in a single request are committed in an all-or-nothing transaction.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'A single data row object. The key is id or a field name defined in the dataset schema. Field names are case-insensitive. An error is returned if an unknown field is specified.',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => ['description' => 'The value of a schema field. If this parameter is not specified or is set to null, a null value is written. For text fields, pass a string. For long fields, pass an integer or an integer string. For double fields, pass a finite number or a number string. For json fields, pass any valid JSON value.', 'type' => 'any', 'example' => '"hello" / 123 / 0.98 / {"a":1}', 'title' => ''],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'required' => false,
+ 'example' => '{"dataArray":[{"content":"hello"}]}',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'clientToken',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The idempotency token. This is a unique string generated by the client to ensure the idempotence of the create operation.', 'type' => 'string', 'required' => false, 'example' => 'a1b2c3d4-1234-5678-90ab-cdef12345678', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'D0173835-9E0F-508F-8BFA-9F556E59C302'],
+ 'affectedRows' => ['description' => 'The number of log rows scanned or processed.', 'type' => 'integer', 'format' => 'int32', 'example' => '100', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Append data to a dataset',
+ 'summary' => 'Appends structured data rows to a specified dataset without requiring the client to construct SQL statements.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'agentloop:AddDatasetData',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Dataset', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpace}/dataset/{#DatasetName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D0173835-9E0F-508F-8BFA-9F556E59C302\\",\\n \\"affectedRows\\": 100\\n}","type":"json"}]',
+ ],
+ 'CancelPipelineRun' => [
+ 'summary' => 'Cancels a pipeline run.',
+ 'path' => '/agentspace/{agentSpace}/pipeline/{pipelineName}/runs/{runId}/cancel',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the AgentSpace.', 'type' => 'string', 'example' => 'my-agent-space'],
+ ],
+ [
+ 'name' => 'pipelineName',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the pipeline.', 'type' => 'string', 'example' => 'my-pipeline'],
+ ],
+ [
+ 'name' => 'runId',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The ID of the run to cancel. Only runs in the Pending state can be canceled.', 'type' => 'string', 'example' => 'run-20260101-0001'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID, which is used to locate and troubleshoot issues.', 'type' => 'string', 'example' => '9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M'],
+ 'runId' => ['title' => '', 'description' => 'The ID of the canceled run.', 'type' => 'string', 'example' => 'run-20260101-0001'],
+ 'status' => ['title' => '', 'description' => 'The status of the run after cancellation. The value is fixed to Cancelled.', 'type' => 'string', 'example' => 'Cancelled'],
+ 'finishTime' => ['title' => '', 'description' => 'The time when the cancellation was completed, in ISO 8601 UTC format.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-01-01T00:00:05.000Z'],
+ ],
+ 'description' => 'The response data.',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'agentloop:CancelPipelineRun',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M\\",\\n \\"runId\\": \\"run-20260101-0001\\",\\n \\"status\\": \\"Cancelled\\",\\n \\"finishTime\\": \\"2026-01-01T00:00:05.000Z\\"\\n}","type":"json"}]',
+ 'title' => '',
+ ],
+ 'CreateAgentSpace' => [
+ 'path' => '/agentspace',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.',
+ 'type' => 'object',
+ 'properties' => [
+ 'agentSpace' => ['description' => 'The AgentSpace name.', 'type' => 'string', 'required' => true, 'maxLength' => 64, 'minLength' => 2, 'example' => 'test-agent-space', 'title' => ''],
+ 'description' => ['description' => 'The description.', 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''],
+ 'cmsWorkspace' => ['description' => 'The CMS workspace.', 'type' => 'string', 'required' => false, 'example' => 'test-cms-workspace', 'title' => ''],
+ 'trajectoryStoreEnabled' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ [
+ 'name' => 'clientToken',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The idempotency token. A unique string generated by the client to ensure that the create operation is idempotent.', 'type' => 'string', 'example' => 'a1b2c3d4-1234-5678-90ab-cdef12345678', 'required' => false],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'The response data.',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'AA689779-61AB-5077-BD91-9F7EA1205D68'],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Create an agentSpace',
+ 'summary' => 'Creates an AgentSpace.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentloop:CreateAgentSpace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'AgentSpace', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"AA689779-61AB-5077-BD91-9F7EA1205D68\\"\\n}","type":"json"}]',
+ ],
+ 'CreateContextStore' => [
+ 'summary' => 'Creates a context store.',
+ 'path' => '/agentspace/{agentSpace}/contextstore',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The AgentSpace name. The name must be 2 to 64 characters in length.', 'type' => 'string', 'required' => true, 'example' => 'my-agent-space', 'maxLength' => 64, 'minLength' => 2],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'The request body.',
+ 'type' => 'object',
+ 'properties' => [
+ 'contextStoreName' => ['title' => '', 'description' => 'The context store name, which must be globally unique within the AgentSpace. The name must be 2 to 64 characters in length.', 'type' => 'string', 'required' => true, 'example' => 'my-context-store'],
+ 'contextType' => ['title' => '', 'description' => 'The context store type. Valid values: experience and memory.', 'type' => 'string', 'required' => true, 'example' => 'experience'],
+ 'description' => ['title' => '', 'description' => 'The description of the context store, which helps users understand its purpose.', 'type' => 'string', 'example' => '我的上下文库', 'required' => false],
+ 'config' => [
+ 'title' => '',
+ 'description' => 'The context store configuration, including the datasource config and metadata field mapping.',
+ 'type' => 'object',
+ 'properties' => [
+ 'source' => [
+ 'title' => '',
+ 'description' => 'The datasource config, which serves only as the root identifier for the data source. This is an optional block.',
+ 'type' => 'object',
+ 'properties' => [
+ 'agentSpace' => ['title' => '', 'description' => 'The AgentSpace where the trace data source resides. If not specified, the AgentSpace in the current path is used by default. Cross-AgentSpace access is not supported in the current version. If specified, the value must match the AgentSpace in the path. Otherwise, a 400 parameter error is returned. This value cannot be changed after creation.', 'type' => 'string', 'example' => 'my-agent-space', 'required' => false],
+ 'startTime' => ['title' => '', 'description' => 'The start time for data backfill, in ISO 8601 UTC format. If not specified, the current time is used.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-01-01T00:00:00Z', 'required' => false],
+ ],
+ 'required' => false,
+ 'example' => '',
+ ],
+ 'serviceNames' => [
+ 'title' => '',
+ 'description' => 'The list of service names. This parameter is required and cannot be empty. It works with source.agentSpace to locate the trace data source. The trajectory extraction service uses the AgentSpace to look up the bound CMS workspace and project/logstore, and then filters by service name. This value cannot be changed after creation. No modification entry is available in the current version.',
+ 'type' => 'array',
+ 'items' => ['title' => '', 'description' => 'The service name.', 'type' => 'string', 'example' => 'order-service', 'required' => false],
+ 'required' => true,
+ 'example' => '["order-service","payment-service"]',
+ ],
+ 'metadataField' => [
+ 'title' => '',
+ 'description' => 'The metadata field mapping. The key is the business field and the value is the storage field.',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'example' => '{"userId":"user_id","sessionId":"session_id"}',
+ ],
+ 'miningInterval' => [
+ 'title' => '',
+ 'description' => 'The experience mining interval, which specifies how often experience mining is performed. Valid values: 1h, 6h, 12h, and 1d. Default value: 1d. This value cannot be changed after creation.',
+ 'type' => 'string',
+ 'example' => '1d',
+ 'default' => '1d',
+ 'enum' => ['1h', '6h', '12h', '1d'],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ 'example' => '',
+ ],
+ ],
+ 'required' => false,
+ 'example' => '',
+ ],
+ ],
+ [
+ 'name' => 'clientToken',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The idempotency token, which is a unique string generated by the client to ensure the idempotence of the create operation.', 'type' => 'string', 'example' => 'a1b2c3d4-1234-5678-90ab-cdef12345678', 'required' => false],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'The response data.',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID, which is used to locate and troubleshoot issues.', 'type' => 'string', 'example' => '9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M'],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentloop:CreateContextStore',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'ContextStore', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/contextstore/{#ContextStoreName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M\\"\\n}","type":"json"}]',
+ 'title' => '',
+ ],
+ 'CreateContextStoreAPIKey' => [
+ 'summary' => 'Creates an API key.',
+ 'path' => '/agentspace/{agentSpace}/contextstore/{contextStoreName}/apikey',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the AgentSpace.', 'type' => 'string', 'required' => true, 'example' => 'my-agent-space'],
+ ],
+ [
+ 'name' => 'contextStoreName',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the context store.', 'type' => 'string', 'required' => true, 'example' => 'my-context-store'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'The request body.',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['title' => '', 'description' => 'The display name of the API key, used to identify its purpose.', 'type' => 'string', 'required' => true, 'example' => 'my-api-key'],
+ ],
+ 'required' => false,
+ 'example' => '',
+ ],
+ ],
+ [
+ 'name' => 'clientToken',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The idempotency token. A unique string generated by the client to ensure the idempotence of the create operation.', 'type' => 'string', 'example' => 'a1b2c3d4-1234-5678-90ab-cdef12345678', 'required' => false],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'The response data.',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M'],
+ 'apiKey' => ['title' => '', 'description' => 'The complete API key value.', 'type' => 'string', 'example' => 'sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'],
+ 'name' => ['title' => '', 'description' => 'The name of the API key.', 'type' => 'string', 'example' => 'my-api-key'],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentloop:CreateContextStoreAPIKey',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'ContextStoreAPIKey', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/contextstore/{#ContextStoreName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M\\",\\n \\"apiKey\\": \\"sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\\",\\n \\"name\\": \\"my-api-key\\"\\n}","type":"json"}]',
+ 'title' => '',
+ ],
+ 'CreateDataset' => [
+ 'path' => '/agentspace/{agentSpace}/dataset',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The name of the agent space.', 'type' => 'string', 'required' => true, 'maxLength' => 64, 'minLength' => 2, 'example' => 'testxx', 'title' => ''],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.',
+ 'type' => 'object',
+ 'properties' => [
+ 'datasetName' => ['description' => 'The name of the dataset.', 'type' => 'string', 'required' => true, 'maxLength' => 64, 'minLength' => 2, 'example' => 'product_faq_dataset', 'title' => ''],
+ 'description' => ['description' => 'The description of the dataset.', 'type' => 'string', 'required' => false, 'example' => 'Product FAQ dataset for semantic search', 'title' => ''],
+ 'schema' => [
+ 'description' => 'The schema of the dataset.',
+ 'type' => 'object',
+ 'required' => true,
+ 'additionalProperties' => ['description' => 'The schema of the dataset.', '$ref' => '#/components/schemas/IndexKey', 'title' => '', 'example' => ''],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "datasetName": "product_faq_dataset",'."\n"
+ .' "description": "Product FAQ dataset for semantic search",'."\n"
+ .' "schema": {'."\n"
+ .' "title": {'."\n"
+ .' "type": "string",'."\n"
+ .' "chn": false,'."\n"
+ .' "embedding": "false"'."\n"
+ .' },'."\n"
+ .' "content": {'."\n"
+ .' "type": "string",'."\n"
+ .' "chn": false,'."\n"
+ .' "embedding": "true"'."\n"
+ .' },'."\n"
+ .' "metadata": {'."\n"
+ .' "type": "json",'."\n"
+ .' "chn": false,'."\n"
+ .' "embedding": "false",'."\n"
+ .' "jsonKeys": {'."\n"
+ .' "author": {'."\n"
+ .' "type": "string",'."\n"
+ .' "chn": false'."\n"
+ .' },'."\n"
+ .' "source": {'."\n"
+ .' "type": "string",'."\n"
+ .' "chn": false'."\n"
+ .' },'."\n"
+ .' "publishDate": {'."\n"
+ .' "type": "string",'."\n"
+ .' "chn": false'."\n"
+ .' }'."\n"
+ .' }'."\n"
+ .' }'."\n"
+ .' }'."\n"
+ .'}',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'clientToken',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The idempotency token. A unique string generated by the client to ensure that the create operation is idempotent.', 'type' => 'string', 'example' => 'a1b2c3d4-1234-5678-90ab-cdef12345678', 'required' => false],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'EB27D183-8F6C-5C5A-A6A3-E0508AF54F78'],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Create a dataset',
+ 'summary' => 'Creates a dataset.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentloop:CreateDataset',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Dataset', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/dataset/{#DatasetName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"EB27D183-8F6C-5C5A-A6A3-E0508AF54F78\\"\\n}","type":"json"}]',
+ ],
+ 'CreateEvaluationTask' => [
+ 'path' => '/api/v1/evaluation-task/{agentSpace}',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.',
+ 'type' => 'object',
+ 'properties' => [
+ 'taskName' => ['description' => 'The task name. The name must be unique among non-deleted tasks within the same user and AgentSpace. The name can be up to 256 characters in length.', 'type' => 'string', 'required' => false, 'example' => 'trace_task_completion_eval', 'title' => ''],
+ 'taskMode' => [
+ 'description' => 'The evaluation task mode. Set this parameter to `batch` to create a persistent evaluation task.',
+ 'enumValueTitles' => ['batch' => 'batch'],
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'batch',
+ 'title' => '',
+ ],
+ 'dataType' => [
+ 'description' => 'The data source type of the evaluation object. Set this parameter to `trace` for trace-based evaluation.',
+ 'enumValueTitles' => ['trace' => 'trace', 'log' => 'log', 'atif' => 'atif', 'dataset' => 'dataset'],
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'trace',
+ 'title' => '',
+ ],
+ 'dataFilter' => ['description' => 'The filter conditions for evaluation data. This parameter supports a JSON object or a JSON string. Common fields include `query`, `provided`, `maxRecords`, and `samplingRate`.', 'type' => 'string', 'required' => false, 'example' => '{"query":"serviceName=\'checkout-service\'","maxRecords":10,"samplingRate":100}', 'title' => ''],
+ 'evaluators' => [
+ 'description' => 'The list of evaluator configurations. This parameter cannot be empty. Within the same task, `evaluatorRef` takes precedence as the unique identifier. Otherwise, `name` is used.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The configuration object of a single evaluator.', '$ref' => '#/components/schemas/Evaluator', 'required' => false, 'title' => '', 'example' => ''],
+ 'required' => false,
+ 'example' => '[{"evaluatorRef":"Builtin.agent_task_completion","resultName":"agent_task_completion","resultType":"score","variableMapping":{"input":"trace.input","output":"trace.output","agent_trajectory":"trace.agent_trajectory"}}]',
+ 'title' => '',
+ ],
+ 'channel' => [
+ 'description' => 'The task source. If this parameter is not specified, the backend uses `default`.',
+ 'enumValueTitles' => ['default' => 'default'],
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ 'title' => '',
+ ],
+ 'config' => [
+ 'description' => 'The data source and execution configuration. When `dataType` is set to `trace`, the backend automatically populates the SLS Project and sets `storeName` to `logstore-tracing`. For trace-level evaluation, set `dataScope` to `trace`.',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => ['description' => 'The value of a single configuration item. The key name is determined by the specific field convention.', 'type' => 'string', 'example' => 'trace', 'title' => ''],
+ 'example' => '{"dataScope":"trace"}',
+ 'title' => '',
+ ],
+ 'tags' => [
+ 'description' => 'The key-value pairs of task tags. You do not need to specify this parameter by default. Specify this parameter only when you want to associate or filter tasks by business tags.',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => ['description' => 'The value of a single task tag. The key name is customized based on business dimensions.', 'type' => 'string', 'example' => 'prod', 'title' => ''],
+ 'example' => '{"env":"prod","serviceId":"checkout-service","planId":"plan-20260703"}',
+ 'title' => '',
+ ],
+ 'runStrategies' => ['description' => 'The task execution strategy. This parameter supports a JSON object or a JSON string. Set this parameter to `backfill` for historical data backfill or `continuous` for continuous evaluation of new data.', '$ref' => '#/components/schemas/RunStrategies', 'required' => false, 'title' => '', 'example' => ''],
+ 'description' => ['description' => 'The description of the evaluation task.', 'type' => 'string', 'required' => false, 'example' => '评估线上 Agent 链路任务完成度', 'title' => ''],
+ ],
+ 'required' => false,
+ 'example' => '{"taskName":"trace_task_completion_eval","taskMode":"batch","dataType":"trace","evaluators":[{"evaluatorRef":"Builtin.agent_task_completion","resultName":"agent_task_completion","resultType":"score","variableMapping":{"input":"trace.input","output":"trace.output","agent_trajectory":"trace.agent_trajectory"}}],"config":{"dataScope":"trace"}}',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The AgentSpace name.', 'type' => 'string', 'required' => false, 'example' => 'prod-agentspace', 'title' => ''],
+ ],
+ [
+ 'name' => 'clientToken',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The idempotency token. This query parameter is declared in CloudSpec, but the backend does not currently perform idempotency comparison.', 'type' => 'string', 'example' => 'a1b2c3d4-1234-5678-90ab-cdef12345678', 'required' => false],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '3FE4CD1E-FF41-56BE-B590-7A021D9C1524'],
+ 'taskId' => ['description' => 'The evaluation task ID.', 'type' => 'string', 'example' => 'eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25', 'title' => ''],
+ 'status' => [
+ 'description' => 'The evaluation task status. After creation, the status is typically `Pending`. After asynchronous orchestration, the status may change to `Running` or `Scheduling`.',
+ 'enumValueTitles' => ['Failed' => 'Failed', 'Running' => 'Running', 'Completed' => 'Completed', 'Scheduling' => 'Scheduling', 'Deleted' => 'Deleted', 'Terminated' => 'Terminated', 'Pending' => 'Pending'],
+ 'type' => 'string',
+ 'example' => 'Pending',
+ 'title' => '',
+ ],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Create an evaluation task',
+ 'summary' => 'Creates an evaluation task.',
+ 'description' => 'Calls the CreateEvaluationTask operation to create an evaluation task in a specified AgentSpace. The server verifies AgentSpace permissions, initializes evaluation result storage, checks the uniqueness of the task name, and asynchronously creates and executes an EvaluationRun based on `taskMode` and `runStrategies`.'."\n"
+ ."\n"
+ .'This operation is applicable to running built-in or custom evaluators on Trace, Dataset, or SLS Log data. It supports two execution strategies: historical backfill and continuous evaluation.',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3FE4CD1E-FF41-56BE-B590-7A021D9C1524\\",\\n \\"taskId\\": \\"eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25\\",\\n \\"status\\": \\"Pending\\"\\n}","type":"json"}]',
+ ],
+ 'CreateEvaluator' => [
+ 'path' => '/api/v1/evaluators/{agentSpace}',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The AgentSpace name.', 'type' => 'string', 'required' => true, 'example' => 'prod-agentspace', 'title' => ''],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['description' => 'The evaluator name. The name cannot start with a system-reserved prefix and can be up to 128 characters in length.', 'type' => 'string', 'required' => true, 'example' => 'trace_task_completion', 'title' => ''],
+ 'displayName' => ['description' => 'The display name. The name can be up to 128 characters in length.', 'type' => 'string', 'required' => false, 'example' => '链路任务完成度', 'title' => ''],
+ 'type' => [
+ 'description' => 'The evaluator type. Valid values:'."\n"
+ ."\n"
+ .'- LLM: an inner join large language model evaluation evaluator.'."\n"
+ .'- AGENT: a StarOps digital human evaluator.'."\n"
+ .'- CODE: a code evaluator.',
+ 'enumValueTitles' => ['AGENT' => 'AGENT', 'CODE' => 'CODE', 'LLM' => 'LLM'],
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'AGENT',
+ 'title' => '',
+ ],
+ 'description' => ['description' => 'The evaluator description. The description can be up to 256 characters in length.', 'type' => 'string', 'required' => false, 'example' => '判断 Agent 是否完成用户任务', 'title' => ''],
+ 'metricName' => ['description' => 'The evaluation metric name.', 'type' => 'string', 'required' => true, 'example' => 'agent_task_completion', 'title' => ''],
+ 'version' => ['description' => 'The initial version number.', 'type' => 'string', 'required' => true, 'example' => '1.0.0', 'title' => ''],
+ 'versionDescription' => ['description' => 'The version description.', 'type' => 'string', 'required' => false, 'example' => '初始版本', 'title' => ''],
+ 'config' => ['description' => 'The evaluator configuration. For LLM/AGENT evaluators, this typically contains prompt, variables, and outputSchema. For CODE evaluators, this typically contains codeType, faasConfig, variables, and parameters.', 'type' => 'object', 'required' => false, 'example' => '{"prompt":"请评估任务完成度","variables":[{"name":"input"}]}', 'title' => ''],
+ 'annotations' => [
+ 'description' => 'The list of annotation tags.',
+ 'type' => 'array',
+ 'items' => ['description' => 'A single annotation tag.', 'type' => 'string', 'required' => false, 'example' => '__en', 'title' => ''],
+ 'required' => false,
+ 'example' => '["__en"]',
+ 'title' => '',
+ ],
+ 'properties' => ['description' => 'The evaluator properties.', 'type' => 'object', 'required' => false, 'example' => '{"agentEvaluatorMode":"raw_prompt"}', 'title' => ''],
+ ],
+ 'required' => false,
+ 'example' => '{"name":"trace_task_completion","displayName":"链路任务完成度","type":"AGENT","metricName":"agent_task_completion","version":"1.0.0"}',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'clientToken',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The idempotency token. A unique string generated by the client to ensure idempotent creation. This query parameter is declared in CloudSpec, but the backend does not currently perform idempotency checks.', 'type' => 'string', 'example' => 'a1b2c3d4-1234-5678-90ab-cdef12345678', 'required' => false],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FE4CD1E-FF41-56BE-B590-7A021D9C1524', 'title' => ''],
+ 'name' => ['description' => 'The evaluator name.', 'type' => 'string', 'example' => 'trace_task_completion', 'title' => ''],
+ 'version' => ['description' => 'The version number that is created.', 'type' => 'string', 'example' => '1.0.0', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Create an evaluator',
+ 'summary' => 'Creates an evaluator.',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3FE4CD1E-FF41-56BE-B590-7A021D9C1524\\",\\n \\"name\\": \\"trace_task_completion\\",\\n \\"version\\": \\"1.0.0\\"\\n}","type":"json"}]',
+ ],
+ 'CreateEvaluatorSkill' => [
+ 'summary' => 'Creates an evaluator skill.',
+ 'path' => '/api/v1/evaluator/{name}/skill',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'],
+ 'parameters' => [
+ [
+ 'name' => 'name',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The evaluator name.', 'type' => 'string', 'required' => true, 'example' => 'trace_task_completion', 'title' => ''],
+ ],
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The AgentSpace name.', 'type' => 'string', 'required' => true, 'example' => 'prod-agentspace', 'title' => ''],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.',
+ 'type' => 'object',
+ 'properties' => [
+ 'skillName' => ['description' => 'The skill name.', 'type' => 'string', 'required' => true, 'example' => 'trace_context_loader', 'title' => ''],
+ 'displayName' => ['description' => 'The display name of the skill.', 'type' => 'string', 'required' => false, 'example' => 'Trace 上下文读取', 'title' => ''],
+ 'description' => ['description' => 'The description of the skill.', 'type' => 'string', 'required' => false, 'example' => '读取链路上下文辅助评估', 'title' => ''],
+ 'enable' => [
+ 'description' => 'Specifies whether to enable the skill.',
+ 'enumValueTitles' => ['true' => 'true', 'false' => 'false'],
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ 'title' => '',
+ ],
+ 'files' => [
+ 'description' => 'The list of skill files.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'A single skill file object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['description' => 'The skill file name.', 'type' => 'string', 'required' => true, 'example' => 'SKILL.md', 'title' => ''],
+ 'content' => ['description' => 'The skill file content.', 'type' => 'string', 'required' => true, 'example' => '# Trace Context Loader', 'title' => ''],
+ 'remark' => ['description' => 'The file remarks.', 'type' => 'string', 'required' => false, 'example' => '主技能说明', 'title' => ''],
+ ],
+ 'required' => false,
+ 'example' => '{"name":"SKILL.md"}',
+ 'title' => '',
+ ],
+ 'required' => true,
+ 'example' => '[{"name":"SKILL.md","content":"# Trace Context Loader","remark":"主技能说明"}]',
+ 'title' => '',
+ ],
+ ],
+ 'required' => false,
+ 'example' => '{"skillName":"trace_context_loader","displayName":"Trace 上下文读取","enable":true,"files":[{"name":"SKILL.md","content":"# Trace Context Loader"}]}',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'clientToken',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The idempotency token. This is a unique string generated by the client to ensure idempotence of the create operation. CloudSpec declares this query parameter, but the backend does not currently perform idempotency comparison.', 'type' => 'string', 'example' => 'a1b2c3d4-1234-5678-90ab-cdef12345678', 'required' => false],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FE4CD1E-FF41-56BE-B590-7A021D9C1524', 'title' => ''],
+ 'skillName' => ['description' => 'The name of the created skill.', 'type' => 'string', 'example' => 'trace_context_loader', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Create an evaluator skill',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3FE4CD1E-FF41-56BE-B590-7A021D9C1524\\",\\n \\"skillName\\": \\"trace_context_loader\\"\\n}","type":"json"}]',
+ ],
+ 'DeleteAgentSpace' => [
+ 'summary' => 'Deletes an AgentSpace.',
+ 'path' => '/agentspace/{agentSpace}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The name of the AgentSpace.', 'type' => 'string', 'required' => true, 'maxLength' => 64, 'minLength' => 2, 'example' => 'test-agent-space', 'title' => ''],
+ ],
+ [
+ 'name' => 'deleteMseNamespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to delete the associated MSE namespace.',
+ 'enumValueTitles' => ['true' => 'true', 'false' => 'false'],
+ 'type' => 'boolean',
+ 'default' => 'false',
+ 'required' => false,
+ 'example' => 'false',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'deleteSlsProject',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to delete the associated SLS project.',
+ 'enumValueTitles' => ['true' => 'true'],
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'deleteCmsWorkspace',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to delete the associated Hybrid Cloud Monitoring workspace.',
+ 'enumValueTitles' => ['true' => 'true', 'false' => 'false'],
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'The response data.',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'D0173835-9E0F-508F-8BFA-9F556E59C302'],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Delete an agentSpace',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentloop:DeleteAgentSpace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'AgentSpace', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D0173835-9E0F-508F-8BFA-9F556E59C302\\"\\n}","type":"json"}]',
+ ],
+ 'DeleteContextStore' => [
+ 'summary' => 'Deletes a context store.',
+ 'path' => '/agentspace/{agentSpace}/contextstore/{contextStoreName}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The AgentSpace name, which is 2 to 64 characters in length.', 'type' => 'string', 'required' => true, 'example' => 'my-agent-space', 'maxLength' => 64, 'minLength' => 2],
+ ],
+ [
+ 'name' => 'contextStoreName',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the context store to delete, which is 2 to 64 characters in length.', 'type' => 'string', 'required' => true, 'example' => 'my-context-store', 'maxLength' => 64, 'minLength' => 2],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'The response data.',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID, which is used to locate and troubleshoot issues.', 'type' => 'string', 'example' => '9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M'],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentloop:DeleteContextStore',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'ContextStore', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/contextstore/{#ContextStoreName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M\\"\\n}","type":"json"}]',
+ 'title' => '',
+ ],
+ 'DeleteContextStoreAPIKey' => [
+ 'path' => '/agentspace/{agentSpace}/contextstore/{contextStoreName}/apikey/{name}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the AgentSpace.', 'type' => 'string', 'example' => 'my-agent-space', 'required' => false],
+ ],
+ [
+ 'name' => 'contextStoreName',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the context store.', 'type' => 'string', 'example' => 'my-context-store', 'required' => false],
+ ],
+ [
+ 'name' => 'name',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The display name of the API key to delete.', 'type' => 'string', 'example' => 'my-api-key', 'required' => false],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'The response data.',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID, which is used to locate and troubleshoot issues.', 'type' => 'string', 'example' => '9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M'],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'summary' => 'Deletes an API key.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentloop:DeleteContextStoreAPIKey',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'ContextStoreAPIKey', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/contextstore/{#ContextStoreName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M\\"\\n}","type":"json"}]',
+ 'title' => '',
+ ],
+ 'DeleteDataset' => [
+ 'path' => '/agentspace/{agentSpace}/dataset/{datasetName}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The agent workspace name.', 'type' => 'string', 'required' => true, 'maxLength' => 64, 'minLength' => 2, 'example' => 'sop-agent', 'title' => ''],
+ ],
+ [
+ 'name' => 'datasetName',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The dataset name.', 'type' => 'string', 'required' => true, 'maxLength' => 64, 'minLength' => 2, 'example' => 'product_faq_dataset', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'Id of the request', 'type' => 'string', 'example' => '3FE4CD1E-FF41-56BE-B590-7A021D9C1524'],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Delete a dataset',
+ 'summary' => 'Deletes a dataset.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentloop:DeleteDataset',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Dataset', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/dataset/{#DatasetName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3FE4CD1E-FF41-56BE-B590-7A021D9C1524\\"\\n}","type":"json"}]',
+ ],
+ 'DeleteEvaluationRun' => [
+ 'summary' => 'Deletes an evaluation run.',
+ 'path' => '/api/v1/evaluation-task/{agentSpace}/{taskId}/run/{runId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The AgentSpace name.', 'type' => 'string', 'required' => false, 'example' => 'prod-agentspace', 'title' => ''],
+ ],
+ [
+ 'name' => 'taskId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The evaluation task ID.', 'type' => 'string', 'required' => false, 'example' => 'eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25', 'title' => ''],
+ ],
+ [
+ 'name' => 'runId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The evaluation run ID.', 'type' => 'string', 'required' => false, 'example' => 'eval-run-4fd47f3d7e684e15b1d3d178c6a5b81a', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '3FE4CD1E-FF41-56BE-B590-7A021D9C1524'],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Delete an evaluation run',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3FE4CD1E-FF41-56BE-B590-7A021D9C1524\\"\\n}","type":"json"}]',
+ ],
+ 'DeleteEvaluationTask' => [
+ 'summary' => 'Deletes an evaluation task.',
+ 'path' => '/api/v1/evaluation-task/{agentSpace}/{taskId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The AgentSpace name.', 'type' => 'string', 'required' => false, 'example' => 'prod-agentspace', 'title' => ''],
+ ],
+ [
+ 'name' => 'taskId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The evaluation task ID.', 'type' => 'string', 'required' => false, 'example' => 'eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '3FE4CD1E-FF41-56BE-B590-7A021D9C1524'],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Delete an evaluation task',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3FE4CD1E-FF41-56BE-B590-7A021D9C1524\\"\\n}","type":"json"}]',
+ ],
+ 'DeleteEvaluator' => [
+ 'summary' => 'Deletes an evaluator.',
+ 'path' => '/api/v1/evaluators/{agentSpace}/{name}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The AgentSpace name.', 'type' => 'string', 'required' => true, 'example' => 'prod-agentspace', 'title' => ''],
+ ],
+ [
+ 'name' => 'name',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The evaluator name.', 'type' => 'string', 'required' => true, 'example' => 'trace_task_completion', 'title' => ''],
+ ],
+ [
+ 'name' => 'version',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The version to delete. If this parameter is not specified, the entire evaluator is deleted.', 'type' => 'string', 'required' => false, 'example' => '1.0.0', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FE4CD1E-FF41-56BE-B590-7A021D9C1524', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Delete an evaluator',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3FE4CD1E-FF41-56BE-B590-7A021D9C1524\\"\\n}","type":"json"}]',
+ ],
+ 'DeleteEvaluatorSkill' => [
+ 'summary' => 'Deletes an evaluator skill.',
+ 'path' => '/api/v1/evaluator/{name}/skill/{skillName}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'],
+ 'parameters' => [
+ [
+ 'name' => 'name',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The evaluator name.', 'type' => 'string', 'required' => true, 'example' => 'trace_task_completion', 'title' => ''],
+ ],
+ [
+ 'name' => 'skillName',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The skill name.', 'type' => 'string', 'required' => true, 'example' => 'trace_context_loader', 'title' => ''],
+ ],
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The AgentSpace name.', 'type' => 'string', 'required' => true, 'example' => 'prod-agentspace', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FE4CD1E-FF41-56BE-B590-7A021D9C1524', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Delete an evaluator skill',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3FE4CD1E-FF41-56BE-B590-7A021D9C1524\\"\\n}","type":"json"}]',
+ ],
+ 'DeletePipeline' => [
+ 'summary' => 'Deletes a pipeline.',
+ 'path' => '/agentspace/{agentSpace}/pipeline/{pipelineName}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the AgentSpace where the pipeline to be deleted is located.', 'type' => 'string', 'example' => 'my-agent-space', 'required' => false],
+ ],
+ [
+ 'name' => 'pipelineName',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the pipeline to be deleted.', 'type' => 'string', 'example' => 'my-pipeline', 'required' => false],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'The response data.',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID, which is used to locate and troubleshoot issues.', 'type' => 'string', 'example' => '9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M'],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Delete a pipeline',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentloop:DeletePipeline',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M\\"\\n}","type":"json"}]',
+ ],
+ 'DescribeRegions' => [
+ 'summary' => 'Queries regions.',
+ 'path' => '/regions',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
+ 'parameters' => [
+ [
+ 'name' => 'language',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The language. Valid values:'."\n"
+ .'- zh: Chinese'."\n"
+ .'- en: English', 'type' => 'string', 'required' => true, 'maxLength' => 64, 'minLength' => 2, 'example' => 'zh', 'title' => ''],
+ ],
+ [
+ 'name' => 'maxResults',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The maximum number of entries to return in a single request.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '50', 'title' => ''],
+ ],
+ [
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The pagination token.', 'type' => 'string', 'required' => false, 'example' => 'dXkC1NeQkVKHWkVfOvIVEp4dD+2BRJj42DLT6GrZysw=', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => 'The response data.',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '4FDD8668-516C-5183-9BCF-4CAD8E3CF327', 'title' => ''],
+ 'regions' => [
+ 'description' => 'The region information.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The region information.',
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => ['description' => 'The region ID.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
+ 'internetEndpoint' => ['description' => 'The public endpoint.', 'type' => 'string', 'example' => 'agentloop.cn-hangzhou.aliyuncs.com', 'title' => ''],
+ 'vpcEndpoint' => ['description' => 'The internal endpoint.', 'type' => 'string', 'example' => 'agentloop.cn-hangzhou.aliyuncs.com', 'title' => ''],
+ 'localName' => ['description' => 'The region name.', 'type' => 'string', 'example' => '华东1(杭州)', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'nextToken' => ['description' => 'The pagination token. If no more pages are available, this parameter is empty.', 'type' => 'string', 'example' => 'ydx438PDAW1lYRJZbBn9', 'title' => ''],
+ 'maxResults' => ['description' => 'The maximum number of entries returned per request.', 'type' => 'integer', 'format' => 'int32', 'example' => '100', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Query region information',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"4FDD8668-516C-5183-9BCF-4CAD8E3CF327\\",\\n \\"regions\\": [\\n {\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"internetEndpoint\\": \\"agentloop.cn-hangzhou.aliyuncs.com\\",\\n \\"vpcEndpoint\\": \\"agentloop.cn-hangzhou.aliyuncs.com\\",\\n \\"localName\\": \\"华东1(杭州)\\"\\n }\\n ],\\n \\"nextToken\\": \\"ydx438PDAW1lYRJZbBn9\\",\\n \\"maxResults\\": 100\\n}","type":"json"}]',
+ ],
+ 'ExecuteQuery' => [
+ 'path' => '/agentspace/{agentSpace}/dataset/{datasetName}/query',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The name of the agent space.', 'type' => 'string', 'required' => true, 'maxLength' => 64, 'minLength' => 2, 'example' => 'sop-agent', 'title' => ''],
+ ],
+ [
+ 'name' => 'datasetName',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The name of the dataset.', 'type' => 'string', 'required' => true, 'maxLength' => 64, 'minLength' => 2, 'example' => 'product_faq_dataset', 'title' => ''],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body parameters.',
+ 'type' => 'object',
+ 'properties' => [
+ 'type' => ['description' => 'The statement type. Currently, only SQL is supported.', 'type' => 'string', 'required' => true, 'example' => 'SQL', 'title' => ''],
+ 'query' => ['description' => 'The query entered by the user.', 'type' => 'string', 'required' => true, 'example' => 'select count(*) from product_faq_dataset', 'title' => ''],
+ 'maxOutputLength' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'from' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'to' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'offset' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'length' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'version' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'EB27D183-8F6C-5C5A-A6A3-E0508AF54F78', 'title' => ''],
+ 'meta' => [
+ 'description' => 'The metadata of the returned data.',
+ 'type' => 'object',
+ 'properties' => [
+ 'affectedRows' => ['description' => 'The number of log rows scanned or processed.', 'type' => 'integer', 'format' => 'int32', 'example' => '100', 'title' => ''],
+ 'elapsedMillisecond' => ['description' => 'The time consumed by this execution, in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '15', 'title' => ''],
+ 'progress' => ['title' => '', 'description' => 'Indicates whether the query result is complete.', 'type' => 'string', 'example' => 'Complete'],
+ 'count' => ['title' => '', 'description' => 'The number of log rows returned by this query request.', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'truncation' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'truncated' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''],
+ 'truncatedColumnIndexes' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'array',
+ 'items' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'columns' => [
+ 'description' => 'The result column information.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The result column.', 'type' => 'string', 'example' => 'column1', 'title' => ''],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'columnTypes' => [
+ 'description' => 'The result column types.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The column type.', 'type' => 'string', 'example' => 'double', 'title' => ''],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'rows' => [
+ 'description' => 'The result rows.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The result rows.',
+ 'type' => 'array',
+ 'items' => ['description' => 'A column in the result row.', 'type' => 'any', 'example' => '1.2', 'title' => ''],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Execute a statement',
+ 'summary' => 'Executes a query statement.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentloop:ExecuteQuery',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Dataset', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/dataset/{#DatasetName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"EB27D183-8F6C-5C5A-A6A3-E0508AF54F78\\",\\n \\"meta\\": {\\n \\"affectedRows\\": 100,\\n \\"elapsedMillisecond\\": 15,\\n \\"progress\\": \\"Complete\\",\\n \\"count\\": 1,\\n \\"truncation\\": {\\n \\"truncated\\": false,\\n \\"truncatedColumnIndexes\\": [\\n [\\n 0\\n ]\\n ]\\n }\\n },\\n \\"columns\\": [\\n \\"column1\\"\\n ],\\n \\"columnTypes\\": [\\n \\"double\\"\\n ],\\n \\"rows\\": [\\n [\\n \\"1.2\\"\\n ]\\n ]\\n}","type":"json"}]',
+ ],
+ 'GetAgentSpace' => [
+ 'summary' => 'Queries an AgentSpace.',
+ 'path' => '/agentspace/{agentSpace}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The name of the AgentSpace.', 'type' => 'string', 'required' => true, 'maxLength' => 64, 'minLength' => 2, 'example' => 'test-agent-space', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'The response data.',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D0173835-9E0F-508F-8BFA-9F556E59C302', 'title' => ''],
+ 'agentSpace' => ['description' => 'The name of the AgentSpace.', 'type' => 'string', 'example' => 'test-agent-space', 'title' => ''],
+ 'description' => ['description' => 'The description.', 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'cmsWorkspace' => ['description' => 'The CloudMonitor workspace.', 'type' => 'string', 'example' => 'test-cms-workspace', 'title' => ''],
+ 'mseNamespace' => [
+ 'description' => 'The Microservices Engine (MSE) namespace.',
+ 'type' => 'object',
+ 'properties' => [
+ 'namespaceName' => ['description' => 'The name of the MSE namespace.', 'type' => 'string', 'example' => 'terraform-alicloud-modules', 'title' => ''],
+ 'namespaceId' => ['description' => 'The ID of the MSE namespace.', 'type' => 'string', 'example' => 'emr-dataware', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'slsProject' => ['description' => 'The name of the Simple Log Service project.', 'type' => 'string', 'example' => 'default-cms-1837787111545040-cn-beijing', 'title' => ''],
+ 'regionId' => ['description' => 'The region ID.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
+ 'createTime' => ['description' => 'The time when the AgentSpace was created.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-05-05T12:39:36Z', 'title' => ''],
+ 'updateTime' => ['description' => 'The time when the AgentSpace was last updated.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2025-10-20T02:28:14Z', 'title' => ''],
+ 'cmsWorkspaceBindType' => [
+ 'description' => 'The binding type of the CloudMonitor 2.0 workspace.',
+ 'enumValueTitles' => ['AutoCreated' => 'AutoCreated', 'UserSelected' => 'UserSelected'],
+ 'type' => 'string',
+ 'example' => 'AutoCreated',
+ 'title' => '',
+ ],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Query agentSpace information',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentloop:GetAgentSpace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'AgentSpace', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D0173835-9E0F-508F-8BFA-9F556E59C302\\",\\n \\"agentSpace\\": \\"test-agent-space\\",\\n \\"description\\": \\"test\\",\\n \\"cmsWorkspace\\": \\"test-cms-workspace\\",\\n \\"mseNamespace\\": {\\n \\"namespaceName\\": \\"terraform-alicloud-modules\\",\\n \\"namespaceId\\": \\"emr-dataware\\"\\n },\\n \\"slsProject\\": \\"default-cms-1837787111545040-cn-beijing\\",\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"createTime\\": \\"2026-05-05T12:39:36Z\\",\\n \\"updateTime\\": \\"2025-10-20T02:28:14Z\\",\\n \\"cmsWorkspaceBindType\\": \\"AutoCreated\\"\\n}","type":"json"}]',
+ ],
+ 'GetContextStore' => [
+ 'summary' => 'Queries a context store.',
+ 'path' => '/agentspace/{agentSpace}/contextstore/{contextStoreName}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The AgentSpace name. The name must be 2 to 64 characters in length.', 'type' => 'string', 'required' => true, 'example' => 'my-agent-space', 'maxLength' => 64, 'minLength' => 2],
+ ],
+ [
+ 'name' => 'contextStoreName',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The context store name. The name must be 2 to 64 characters in length.', 'type' => 'string', 'required' => true, 'example' => 'my-context-store', 'maxLength' => 64, 'minLength' => 2],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'The response data.',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID, which is used to locate and troubleshoot issues.', 'type' => 'string', 'example' => '9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M'],
+ 'contextStoreName' => ['title' => '', 'description' => 'The context store name.', 'type' => 'string', 'example' => 'my-context-store'],
+ 'agentSpace' => ['title' => '', 'description' => 'The name of the AgentSpace to which the context store belongs.', 'type' => 'string', 'example' => 'my-agent-space'],
+ 'regionId' => ['title' => '', 'description' => 'The region ID of the context store.', 'type' => 'string', 'example' => 'cn-hangzhou'],
+ 'contextType' => ['title' => '', 'description' => 'The type of the context store, such as experience or memory.', 'type' => 'string', 'example' => 'experience'],
+ 'description' => ['title' => '', 'description' => 'The description of the context store.', 'type' => 'string', 'example' => '我的上下文库'],
+ 'status' => ['title' => '', 'description' => 'The status of the context store. Valid values:'."\n"
+ .'- ACTIVE'."\n"
+ .'- INITIALIZING'."\n"
+ .'- FAILED', 'type' => 'string', 'example' => 'ACTIVE'],
+ 'config' => [
+ 'title' => '',
+ 'description' => 'The configuration of the context store.',
+ 'type' => 'object',
+ 'properties' => [
+ 'source' => [
+ 'title' => '',
+ 'description' => 'The datasource config passed in by the user. This serves only as the root identifier of the data source.',
+ 'type' => 'object',
+ 'properties' => [
+ 'agentSpace' => ['title' => '', 'description' => 'The AgentSpace where the trace data source resides. This is the same as the AgentSpace specified during creation.', 'type' => 'string', 'example' => 'my-agent-space'],
+ 'startTime' => ['title' => '', 'description' => 'The start time for data backfill, in ISO 8601 UTC format.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-01-01T00:00:00Z'],
+ ],
+ 'example' => '',
+ ],
+ 'serviceNames' => [
+ 'title' => '',
+ 'description' => 'The list of service names. This works together with source.agentSpace to locate the trace data source. This value cannot be changed in the current version.',
+ 'type' => 'array',
+ 'items' => ['title' => '', 'description' => 'The service name.', 'type' => 'string', 'example' => 'order-service'],
+ 'example' => '["order-service","payment-service"]',
+ ],
+ 'metadataField' => [
+ 'title' => '',
+ 'description' => 'The metadata field mapping. The key is the business field and the value is the storage field.',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'example' => '{"userId":"user_id","sessionId":"session_id"}',
+ ],
+ 'miningInterval' => [
+ 'title' => '',
+ 'description' => 'The experience mining interval. Valid values: 1h, 6h, 12h, and 1d. Default value: 1d.',
+ 'type' => 'string',
+ 'example' => '1d',
+ 'enum' => ['1h', '6h', '12h', '1d'],
+ ],
+ ],
+ 'example' => '',
+ ],
+ 'createTime' => ['title' => '', 'description' => 'The time when the context store was created, in ISO 8601 UTC format.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-01-01T00:00:00Z'],
+ 'updateTime' => ['title' => '', 'description' => 'The time when the context store was last updated, in ISO 8601 UTC format.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-01-02T00:00:00Z'],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentloop:GetContextStore',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'ContextStore', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/contextstore/{#ContextStoreName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M\\",\\n \\"contextStoreName\\": \\"my-context-store\\",\\n \\"agentSpace\\": \\"my-agent-space\\",\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"contextType\\": \\"experience\\",\\n \\"description\\": \\"我的上下文库\\",\\n \\"status\\": \\"ACTIVE\\",\\n \\"config\\": {\\n \\"source\\": {\\n \\"agentSpace\\": \\"my-agent-space\\",\\n \\"startTime\\": \\"2026-01-01T00:00:00Z\\"\\n },\\n \\"serviceNames\\": [\\n \\"order-service\\"\\n ],\\n \\"metadataField\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"miningInterval\\": \\"1d\\"\\n },\\n \\"createTime\\": \\"2026-01-01T00:00:00Z\\",\\n \\"updateTime\\": \\"2026-01-02T00:00:00Z\\"\\n}","type":"json"}]',
+ 'title' => '',
+ ],
+ 'GetContextStoreAPIKey' => [
+ 'summary' => 'Retrieves an API key.',
+ 'path' => '/agentspace/{agentSpace}/contextstore/{contextStoreName}/apikey/{name}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the AgentSpace.', 'type' => 'string', 'example' => 'my-agent-space', 'required' => false],
+ ],
+ [
+ 'name' => 'contextStoreName',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the context store.', 'type' => 'string', 'example' => 'my-context-store', 'required' => false],
+ ],
+ [
+ 'name' => 'name',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The display name of the API key.', 'type' => 'string', 'example' => 'my-api-key', 'required' => false],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'The response data.',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID, which is used to locate and troubleshoot issues.', 'type' => 'string', 'example' => '9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M'],
+ 'name' => ['title' => '', 'description' => 'The display name of the API key.', 'type' => 'string', 'example' => 'my-api-key'],
+ 'apiKey' => ['title' => '', 'description' => 'The masked prefix of the API key (for example, sk-abcd****). For security purposes, the full plaintext is not returned.', 'type' => 'string', 'example' => 'sk-abcd****'],
+ 'createTime' => ['title' => '', 'description' => 'The creation time of the API key, in ISO 8601 UTC format.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-01-01T00:00:00Z'],
+ 'agentSpace' => ['title' => '', 'description' => 'The name of the AgentSpace to which the API key belongs.', 'type' => 'string', 'example' => 'my-agent-space'],
+ 'contextStoreName' => ['title' => '', 'description' => 'The name of the context store to which the API key belongs.', 'type' => 'string', 'example' => 'my-context-store'],
+ 'regionId' => ['title' => '', 'description' => 'The region ID of the API key.', 'type' => 'string', 'example' => 'cn-hangzhou'],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentloop:GetContextStoreAPIKey',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'ContextStoreAPIKey', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/contextstore/{#ContextStoreName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M\\",\\n \\"name\\": \\"my-api-key\\",\\n \\"apiKey\\": \\"sk-abcd****\\",\\n \\"createTime\\": \\"2026-01-01T00:00:00Z\\",\\n \\"agentSpace\\": \\"my-agent-space\\",\\n \\"contextStoreName\\": \\"my-context-store\\",\\n \\"regionId\\": \\"cn-hangzhou\\"\\n}","type":"json"}]',
+ 'title' => '',
+ ],
+ 'GetDataset' => [
+ 'summary' => 'Queries a dataset.',
+ 'path' => '/agentspace/{agentSpace}/dataset/{datasetName}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The agent space name.', 'type' => 'string', 'required' => true, 'maxLength' => 64, 'minLength' => 2, 'example' => 'sop-agent', 'title' => ''],
+ ],
+ [
+ 'name' => 'datasetName',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The dataset name.', 'type' => 'string', 'required' => true, 'maxLength' => 64, 'minLength' => 2, 'example' => 'product_faq_dataset', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'description' => ['description' => 'The dataset description.', 'type' => 'string', 'example' => 'Product FAQ dataset for semantic search', 'title' => ''],
+ 'createTime' => ['description' => 'The creation time.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-06-15T10:30:00Z', 'title' => ''],
+ 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D17DE39E-6C62-50E3-9EB7-FDE41BB0D43D', 'title' => ''],
+ 'updateTime' => ['description' => 'The update time.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-06-15T11:20:00Z', 'title' => ''],
+ 'agentSpace' => ['description' => 'The agent space name.', 'type' => 'string', 'example' => 'sop-agent', 'title' => ''],
+ 'datasetName' => ['description' => 'The dataset name.', 'type' => 'string', 'example' => 'product_faq_dataset', 'title' => ''],
+ 'regionId' => ['description' => 'The region ID.', 'type' => 'string', 'example' => 'cn-beijing', 'title' => ''],
+ 'schema' => [
+ 'description' => 'The table schema of the dataset.',
+ 'type' => 'object',
+ 'additionalProperties' => ['description' => 'The table schema of the dataset.', '$ref' => '#/components/schemas/IndexKey', 'title' => '', 'example' => ''],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Get a dataset',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentloop:GetDataset',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Dataset', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/dataset/{#DatasetName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"description\\": \\"Product FAQ dataset for semantic search\\",\\n \\"createTime\\": \\"2026-06-15T10:30:00Z\\",\\n \\"requestId\\": \\"D17DE39E-6C62-50E3-9EB7-FDE41BB0D43D\\",\\n \\"updateTime\\": \\"2026-06-15T11:20:00Z\\",\\n \\"agentSpace\\": \\"sop-agent\\",\\n \\"datasetName\\": \\"product_faq_dataset\\",\\n \\"regionId\\": \\"cn-beijing\\",\\n \\"schema\\": {\\n \\"key\\": {\\n \\"chn\\": true,\\n \\"type\\": \\"\\",\\n \\"embedding\\": \\"\\",\\n \\"jsonKeys\\": {\\n \\"key\\": {\\n \\"type\\": \\"\\",\\n \\"chn\\": true\\n }\\n }\\n }\\n }\\n}","type":"json"}]',
+ ],
+ 'GetEvaluationRun' => [
+ 'path' => '/api/v1/evaluation-task/{agentSpace}/{taskId}/run/{runId}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The AgentSpace name.', 'type' => 'string', 'required' => false, 'example' => 'prod-agentspace', 'title' => ''],
+ ],
+ [
+ 'name' => 'taskId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The evaluation task ID.', 'type' => 'string', 'required' => false, 'example' => 'eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25', 'title' => ''],
+ ],
+ [
+ 'name' => 'runId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The evaluation run ID.', 'type' => 'string', 'required' => false, 'example' => 'eval-run-4fd47f3d7e684e15b1d3d178c6a5b81a', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '3FE4CD1E-FF41-56BE-B590-7A021D9C1524'],
+ 'runId' => ['description' => 'The run ID.', 'type' => 'string', 'example' => 'eval-run-4fd47f3d7e684e15b1d3d178c6a5b81a', 'title' => ''],
+ 'runName' => ['description' => 'The run name.', 'type' => 'string', 'example' => 'trace_task_completion_eval-backfill', 'title' => ''],
+ 'taskId' => ['description' => 'The evaluation task ID.', 'type' => 'string', 'example' => 'eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25', 'title' => ''],
+ 'runType' => [
+ 'description' => 'The run type.',
+ 'enumValueTitles' => ['continuous' => 'continuous', 'backfill' => 'backfill', 'continuous_parent' => 'continuous_parent'],
+ 'type' => 'string',
+ 'example' => 'backfill',
+ 'title' => '',
+ ],
+ 'status' => [
+ 'description' => 'The run status.',
+ 'enumValueTitles' => ['Failed' => 'Failed', 'Running' => 'Running', 'Completed' => 'Completed', 'Terminated' => 'Terminated', 'Pending' => 'Pending'],
+ 'type' => 'string',
+ 'example' => 'Running',
+ 'title' => '',
+ ],
+ 'totalCount' => ['description' => 'The total number of evaluation entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '100', 'title' => ''],
+ 'successCount' => ['description' => 'The number of successful entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '96', 'title' => ''],
+ 'failedCount' => ['description' => 'The number of failed entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '4', 'title' => ''],
+ 'evaluatorProgress' => [
+ 'description' => 'The list of progress details by evaluator.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The progress object of a single evaluator.',
+ 'type' => 'object',
+ 'properties' => [
+ 'evaluatorName' => ['description' => 'The evaluator name.', 'type' => 'string', 'example' => 'Builtin.agent_task_completion', 'title' => ''],
+ 'totalCount' => ['description' => 'The total number of entries for this evaluator.', 'type' => 'integer', 'format' => 'int32', 'example' => '100', 'title' => ''],
+ 'successCount' => ['description' => 'The number of successful entries for this evaluator.', 'type' => 'integer', 'format' => 'int32', 'example' => '96', 'title' => ''],
+ 'failedCount' => ['description' => 'The number of failed entries for this evaluator.', 'type' => 'integer', 'format' => 'int32', 'example' => '4', 'title' => ''],
+ ],
+ 'example' => '{"evaluatorName":"Builtin.agent_task_completion"}',
+ 'title' => '',
+ ],
+ 'example' => '[{"evaluatorName":"Builtin.agent_task_completion","totalCount":100,"successCount":96,"failedCount":4}]',
+ 'title' => '',
+ ],
+ 'createdAt' => ['description' => 'The creation time, in seconds-level UNIX timestamp.', 'type' => 'integer', 'format' => 'int64', 'example' => '1782816000', 'title' => ''],
+ 'updatedAt' => ['description' => 'The update time, in seconds-level UNIX timestamp.', 'type' => 'integer', 'format' => 'int64', 'example' => '1782816600', 'title' => ''],
+ 'evaluators' => ['description' => 'The evaluator configuration snapshot at the time the run was created, in JSON string format.', 'type' => 'string', 'example' => '[{"evaluatorRef":"Builtin.agent_task_completion"}]', 'title' => ''],
+ 'dataStartTime' => ['description' => 'The start time of the data window for the run, in seconds-level UNIX timestamp.', 'type' => 'integer', 'format' => 'int64', 'example' => '1782816000', 'title' => ''],
+ 'dataEndTime' => ['description' => 'The end time of the data window for the run, in seconds-level UNIX timestamp.', 'type' => 'integer', 'format' => 'int64', 'example' => '1782902400', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Get evaluation run details',
+ 'summary' => 'Retrieves the details of an evaluation run.',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3FE4CD1E-FF41-56BE-B590-7A021D9C1524\\",\\n \\"runId\\": \\"eval-run-4fd47f3d7e684e15b1d3d178c6a5b81a\\",\\n \\"runName\\": \\"trace_task_completion_eval-backfill\\",\\n \\"taskId\\": \\"eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25\\",\\n \\"runType\\": \\"backfill\\",\\n \\"status\\": \\"Running\\",\\n \\"totalCount\\": 100,\\n \\"successCount\\": 96,\\n \\"failedCount\\": 4,\\n \\"evaluatorProgress\\": [\\n {\\n \\"evaluatorName\\": \\"Builtin.agent_task_completion\\",\\n \\"totalCount\\": 100,\\n \\"successCount\\": 96,\\n \\"failedCount\\": 4\\n }\\n ],\\n \\"createdAt\\": 1782816000,\\n \\"updatedAt\\": 1782816600,\\n \\"evaluators\\": \\"[{\\\\\\"evaluatorRef\\\\\\":\\\\\\"Builtin.agent_task_completion\\\\\\"}]\\",\\n \\"dataStartTime\\": 1782816000,\\n \\"dataEndTime\\": 1782902400\\n}","type":"json"}]',
+ ],
+ 'GetEvaluationTask' => [
+ 'path' => '/api/v1/evaluation-task/{agentSpace}/{taskId}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The AgentSpace name.', 'type' => 'string', 'required' => false, 'example' => 'prod-agentspace', 'title' => ''],
+ ],
+ [
+ 'name' => 'taskId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The evaluation task ID.', 'type' => 'string', 'required' => false, 'example' => 'eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '3FE4CD1E-FF41-56BE-B590-7A021D9C1524'],
+ 'taskId' => ['description' => 'The evaluation task ID.', 'type' => 'string', 'example' => 'eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25', 'title' => ''],
+ 'taskName' => ['description' => 'The task name.', 'type' => 'string', 'example' => 'trace_task_completion_eval', 'title' => ''],
+ 'agentSpace' => ['description' => 'The AgentSpace name.', 'type' => 'string', 'example' => 'prod-agentspace', 'title' => ''],
+ 'taskMode' => [
+ 'description' => 'The evaluation task mode.',
+ 'enumValueTitles' => ['batch' => 'batch'],
+ 'type' => 'string',
+ 'example' => 'batch',
+ 'title' => '',
+ ],
+ 'dataType' => [
+ 'description' => 'The data source type of the evaluation object.',
+ 'enumValueTitles' => ['trace' => 'trace', 'log' => 'log', 'atif' => 'atif', 'dataset' => 'dataset'],
+ 'type' => 'string',
+ 'example' => 'trace',
+ 'title' => '',
+ ],
+ 'evaluators' => [
+ 'description' => 'The list of evaluator configurations.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The configuration object of a single evaluator.', '$ref' => '#/components/schemas/Evaluator', 'example' => '{"evaluatorRef":"Builtin.agent_task_completion"}', 'title' => ''],
+ 'example' => '[{"evaluatorRef":"Builtin.agent_task_completion","resultName":"agent_task_completion","resultType":"score","variableMapping":{"input":"trace.input","output":"trace.output","agent_trajectory":"trace.agent_trajectory"}}]',
+ 'title' => '',
+ ],
+ 'status' => [
+ 'description' => 'The evaluation task status.',
+ 'enumValueTitles' => ['Failed' => 'Failed', 'Running' => 'Running', 'Completed' => 'Completed', 'Scheduling' => 'Scheduling', 'Deleted' => 'Deleted', 'Terminated' => 'Terminated', 'Pending' => 'Pending'],
+ 'type' => 'string',
+ 'example' => 'Running',
+ 'title' => '',
+ ],
+ 'createdAt' => ['description' => 'The creation time, in seconds-level UNIX timestamp.', 'type' => 'integer', 'format' => 'int64', 'example' => '1782816000', 'title' => ''],
+ 'updatedAt' => ['description' => 'The last update time, in seconds-level UNIX timestamp.', 'type' => 'integer', 'format' => 'int64', 'example' => '1782816600', 'title' => ''],
+ 'dataFilter' => ['description' => 'The filter conditions for evaluation data, returned by the backend as a JSON string.', 'type' => 'string', 'example' => '{"query":"serviceName=\'checkout-service\'","maxRecords":10,"samplingRate":100}', 'title' => ''],
+ 'channel' => [
+ 'description' => 'The task source.',
+ 'enumValueTitles' => ['default' => 'default'],
+ 'type' => 'string',
+ 'example' => 'default',
+ 'title' => '',
+ ],
+ 'config' => [
+ 'description' => 'The data source and execution configuration. Tasks with `dataType=trace` typically include `project`, `storeName`, and `dataScope` fields populated by the backend.',
+ 'type' => 'object',
+ 'additionalProperties' => ['description' => 'The value of a single configuration item. The key name is determined by the specific field convention.', 'type' => 'string', 'example' => 'trace', 'title' => ''],
+ 'example' => '{"project":"agentspace-project","storeName":"logstore-tracing","dataScope":"trace"}',
+ 'title' => '',
+ ],
+ 'tags' => [
+ 'description' => 'The key-value pairs of task tags. Empty if not set.',
+ 'type' => 'object',
+ 'additionalProperties' => ['description' => 'The value of a single task tag. The key name is customized by business dimension.', 'type' => 'string', 'example' => 'prod', 'title' => ''],
+ 'example' => '{"serviceId":"checkout-service","env":"prod"}',
+ 'title' => '',
+ ],
+ 'regionId' => ['description' => 'The region to which the task belongs.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
+ 'runStrategyConfig' => ['description' => 'The structured configuration of the run strategy, including the parsed backfill strategy and continuous evaluation strategy.', '$ref' => '#/components/schemas/RunStrategies', 'example' => '{"backfill":{"enabled":true,"startTime":1782816000000,"endTime":1782902400000},"continuous":{"enabled":true,"intervalUnit":"HOUR","intervalValue":1,"dataDelayMinutes":5}}', 'title' => ''],
+ 'description' => ['description' => 'The evaluation task description.', 'type' => 'string', 'example' => '评估线上 Agent 链路任务完成度', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Query evaluation task details',
+ 'summary' => 'Retrieves the details of an evaluation task.',
+ 'responseParamsDescription' => 'In the latest API contract, the query response no longer returns the runStrategies raw JSON string field. Use runStrategyConfig to obtain the structured run strategy instead.',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3FE4CD1E-FF41-56BE-B590-7A021D9C1524\\",\\n \\"taskId\\": \\"eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25\\",\\n \\"taskName\\": \\"trace_task_completion_eval\\",\\n \\"agentSpace\\": \\"prod-agentspace\\",\\n \\"taskMode\\": \\"batch\\",\\n \\"dataType\\": \\"trace\\",\\n \\"evaluators\\": [\\n {\\n \\"evaluatorRef\\": \\"Builtin.agent_task_completion\\",\\n \\"name\\": \\"agent_task_completion\\",\\n \\"type\\": \\"AGENT\\",\\n \\"resultName\\": \\"agent_task_completion\\",\\n \\"resultType\\": \\"score\\",\\n \\"config\\": {\\n \\"version\\": \\"1.0.0\\"\\n },\\n \\"filters\\": {\\n \\"query\\": \\"serviceName=\'checkout-service\'\\"\\n },\\n \\"variableMapping\\": {\\n \\"key\\": \\"trace.input\\"\\n }\\n }\\n ],\\n \\"status\\": \\"Running\\",\\n \\"createdAt\\": 1782816000,\\n \\"updatedAt\\": 1782816600,\\n \\"dataFilter\\": \\"{\\\\\\"query\\\\\\":\\\\\\"serviceName=\'checkout-service\'\\\\\\",\\\\\\"maxRecords\\\\\\":10,\\\\\\"samplingRate\\\\\\":100}\\",\\n \\"channel\\": \\"default\\",\\n \\"config\\": {\\n \\"key\\": \\"trace\\"\\n },\\n \\"tags\\": {\\n \\"key\\": \\"prod\\"\\n },\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"runStrategyConfig\\": {\\n \\"backfill\\": {\\n \\"enabled\\": true,\\n \\"startTime\\": 1782816000000,\\n \\"endTime\\": 1782902400000\\n },\\n \\"continuous\\": {\\n \\"enabled\\": true,\\n \\"intervalUnit\\": \\"HOUR\\",\\n \\"intervalValue\\": 1,\\n \\"dataDelayMinutes\\": 5\\n }\\n },\\n \\"description\\": \\"评估线上 Agent 链路任务完成度\\"\\n}","type":"json"}]',
+ ],
+ 'GetEvaluator' => [
+ 'summary' => 'Retrieves the details of an evaluator.',
+ 'path' => '/api/v1/evaluators/{agentSpace}/{name}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The AgentSpace name.', 'type' => 'string', 'required' => true, 'example' => 'prod-agentspace', 'title' => ''],
+ ],
+ [
+ 'name' => 'name',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The evaluator name.', 'type' => 'string', 'required' => true, 'example' => 'trace_task_completion', 'title' => ''],
+ ],
+ [
+ 'name' => 'version',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The target version number. If not specified, the latest version is used.', 'type' => 'string', 'required' => false, 'example' => '1.0.0', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FE4CD1E-FF41-56BE-B590-7A021D9C1524', 'title' => ''],
+ 'evaluator' => [
+ 'description' => 'The evaluator details.',
+ 'type' => 'object',
+ 'properties' => [
+ 'agentSpace' => ['description' => 'The AgentSpace name.', 'type' => 'string', 'example' => 'prod-agentspace', 'title' => ''],
+ 'name' => ['description' => 'The evaluator name.', 'type' => 'string', 'example' => 'trace_task_completion', 'title' => ''],
+ 'displayName' => ['description' => 'The display name.', 'type' => 'string', 'example' => '链路任务完成度', 'title' => ''],
+ 'metricName' => ['description' => 'The evaluation metric name.', 'type' => 'string', 'example' => 'agent_task_completion', 'title' => ''],
+ 'type' => [
+ 'description' => 'The evaluator type.',
+ 'enumValueTitles' => ['AGENT' => 'AGENT', 'CODE' => 'CODE', 'LLM' => 'LLM'],
+ 'type' => 'string',
+ 'example' => 'AGENT',
+ 'title' => '',
+ ],
+ 'description' => ['description' => 'The evaluator description.', 'type' => 'string', 'example' => '判断 Agent 是否完成用户任务', 'title' => ''],
+ 'latestVersion' => ['description' => 'The latest version number.', 'type' => 'string', 'example' => '1.0.0', 'title' => ''],
+ 'currentVersion' => ['description' => 'The version number returned in the current response.', 'type' => 'string', 'example' => '1.0.0', 'title' => ''],
+ 'config' => ['description' => 'The configuration of the current version.', 'type' => 'object', 'example' => '{"prompt":"请评估任务完成度"}', 'title' => ''],
+ 'properties' => ['description' => 'The evaluator properties.', 'type' => 'object', 'example' => '{"agentEvaluatorMode":"raw_prompt"}', 'title' => ''],
+ 'versions' => [
+ 'description' => 'The list of versions.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'A single version object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'version' => ['description' => 'The version number.', 'type' => 'string', 'example' => '1.0.0', 'title' => ''],
+ 'versionDescription' => ['description' => 'The version description.', 'type' => 'string', 'example' => '初始版本', 'title' => ''],
+ 'createdAt' => ['description' => 'The time when the version was created. The value is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1782816000', 'title' => ''],
+ ],
+ 'example' => '{"version":"1.0.0"}',
+ 'title' => '',
+ ],
+ 'example' => '[{"version":"1.0.0"}]',
+ 'title' => '',
+ ],
+ 'createdAt' => ['description' => 'The time when the evaluator was created. The value is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1782816000', 'title' => ''],
+ 'updatedAt' => ['description' => 'The time when the evaluator was last updated. The value is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1782816600', 'title' => ''],
+ 'annotations' => [
+ 'description' => 'The list of annotations.',
+ 'type' => 'array',
+ 'items' => ['description' => 'A single annotation.', 'type' => 'string', 'example' => '__en', 'title' => ''],
+ 'example' => '["__en"]',
+ 'title' => '',
+ ],
+ ],
+ 'example' => '{"name":"trace_task_completion","type":"AGENT","currentVersion":"1.0.0"}',
+ 'title' => '',
+ ],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Get evaluator details',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3FE4CD1E-FF41-56BE-B590-7A021D9C1524\\",\\n \\"evaluator\\": {\\n \\"agentSpace\\": \\"prod-agentspace\\",\\n \\"name\\": \\"trace_task_completion\\",\\n \\"displayName\\": \\"链路任务完成度\\",\\n \\"metricName\\": \\"agent_task_completion\\",\\n \\"type\\": \\"AGENT\\",\\n \\"description\\": \\"判断 Agent 是否完成用户任务\\",\\n \\"latestVersion\\": \\"1.0.0\\",\\n \\"currentVersion\\": \\"1.0.0\\",\\n \\"config\\": {\\n \\"prompt\\": \\"请评估任务完成度\\"\\n },\\n \\"properties\\": {\\n \\"agentEvaluatorMode\\": \\"raw_prompt\\"\\n },\\n \\"versions\\": [\\n {\\n \\"version\\": \\"1.0.0\\",\\n \\"versionDescription\\": \\"初始版本\\",\\n \\"createdAt\\": 1782816000\\n }\\n ],\\n \\"createdAt\\": 1782816000,\\n \\"updatedAt\\": 1782816600,\\n \\"annotations\\": [\\n \\"__en\\"\\n ]\\n }\\n}","type":"json"}]',
+ ],
+ 'GetEvaluatorSkill' => [
+ 'path' => '/api/v1/evaluator/{name}/skill/{skillName}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'],
+ 'parameters' => [
+ [
+ 'name' => 'name',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The evaluator name.', 'type' => 'string', 'required' => true, 'example' => 'trace_task_completion', 'title' => ''],
+ ],
+ [
+ 'name' => 'skillName',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The skill name.', 'type' => 'string', 'required' => true, 'example' => 'trace_context_loader', 'title' => ''],
+ ],
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The AgentSpace name.', 'type' => 'string', 'required' => true, 'example' => 'prod-agentspace', 'title' => ''],
+ ],
+ [
+ 'name' => 'version',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The skill version.', 'type' => 'string', 'required' => false, 'example' => '1782816000000', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FE4CD1E-FF41-56BE-B590-7A021D9C1524', 'title' => ''],
+ 'skill' => [
+ 'description' => 'The skill details.',
+ 'type' => 'object',
+ 'properties' => [
+ 'skillName' => ['description' => 'The skill name.', 'type' => 'string', 'example' => 'trace_context_loader', 'title' => ''],
+ 'displayName' => ['description' => 'The display name.', 'type' => 'string', 'example' => 'Trace 上下文读取', 'title' => ''],
+ 'description' => ['description' => 'The skill description.', 'type' => 'string', 'example' => '读取链路上下文辅助评估', 'title' => ''],
+ 'enable' => [
+ 'description' => 'Indicates whether the skill is enabled.',
+ 'enumValueTitles' => ['true' => 'true', 'false' => 'false'],
+ 'type' => 'boolean',
+ 'example' => 'true',
+ 'title' => '',
+ ],
+ 'currentVersion' => ['description' => 'The current version.', 'type' => 'string', 'example' => '1782816000000', 'title' => ''],
+ 'latestVersion' => ['description' => 'The latest version.', 'type' => 'string', 'example' => '1782816000000', 'title' => ''],
+ 'files' => [
+ 'description' => 'The list of skill files.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The skill file object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['description' => 'The file name.', 'type' => 'string', 'example' => 'SKILL.md', 'title' => ''],
+ 'content' => ['description' => 'The file content.', 'type' => 'string', 'example' => '# Trace Context Loader', 'title' => ''],
+ 'remark' => ['description' => 'The file remarks.', 'type' => 'string', 'example' => '主技能说明', 'title' => ''],
+ ],
+ 'example' => '{"name":"SKILL.md"}',
+ 'title' => '',
+ ],
+ 'example' => '[{"name":"SKILL.md","content":"# Trace Context Loader","remark":"主技能说明"}]',
+ 'title' => '',
+ ],
+ 'versions' => [
+ 'description' => 'The list of skill versions.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The version object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'version' => ['description' => 'The version number.', 'type' => 'string', 'example' => '1782816000000', 'title' => ''],
+ 'versionDescription' => ['description' => 'The version description.', 'type' => 'string', 'example' => '首次发布版本', 'title' => ''],
+ 'createdAt' => ['description' => 'The time when the version was created. This value is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1782816000', 'title' => ''],
+ ],
+ 'example' => '{"version":"1.0.0"}',
+ 'title' => '',
+ ],
+ 'example' => '[{"version":"1782816000000","versionDescription":"首次发布版本"}]',
+ 'title' => '',
+ ],
+ 'createdAt' => ['description' => 'The time when the skill was created. This value is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1782816000', 'title' => ''],
+ 'updatedAt' => ['description' => 'The time when the skill was last updated. This value is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1782816600', 'title' => ''],
+ ],
+ 'example' => '{"skillName":"trace_context_loader","enable":true,"currentVersion":"1782816000000"}',
+ 'title' => '',
+ ],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Retrieve evaluator skill details',
+ 'summary' => 'Retrieves the details of an evaluator skill.',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3FE4CD1E-FF41-56BE-B590-7A021D9C1524\\",\\n \\"skill\\": {\\n \\"skillName\\": \\"trace_context_loader\\",\\n \\"displayName\\": \\"Trace 上下文读取\\",\\n \\"description\\": \\"读取链路上下文辅助评估\\",\\n \\"enable\\": true,\\n \\"currentVersion\\": \\"1782816000000\\",\\n \\"latestVersion\\": \\"1782816000000\\",\\n \\"files\\": [\\n {\\n \\"name\\": \\"SKILL.md\\",\\n \\"content\\": \\"# Trace Context Loader\\",\\n \\"remark\\": \\"主技能说明\\"\\n }\\n ],\\n \\"versions\\": [\\n {\\n \\"version\\": \\"1782816000000\\",\\n \\"versionDescription\\": \\"首次发布版本\\",\\n \\"createdAt\\": 1782816000\\n }\\n ],\\n \\"createdAt\\": 1782816000,\\n \\"updatedAt\\": 1782816600\\n }\\n}","type":"json"}]',
+ ],
+ 'GetPipeline' => [
+ 'path' => '/agentspace/{agentSpace}/pipeline/{pipelineName}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'example' => 'my-agent-space', 'description' => '', 'title' => ''],
+ ],
+ [
+ 'name' => 'pipelineName',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'example' => 'my-pipeline', 'description' => '', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'type' => 'string', 'example' => '9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M', 'description' => ''],
+ 'pipelineName' => ['type' => 'string', 'example' => 'my-pipeline', 'description' => '', 'title' => ''],
+ 'description' => ['type' => 'string', 'example' => '我的流水线', 'description' => '', 'title' => ''],
+ 'regionId' => ['type' => 'string', 'example' => 'cn-hangzhou', 'description' => '', 'title' => ''],
+ 'createTime' => ['type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-01-01T00:00:00Z', 'description' => '', 'title' => ''],
+ 'updateTime' => ['type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-01-02T00:00:00Z', 'description' => '', 'title' => ''],
+ 'workspace' => ['type' => 'string', 'example' => 'my-workspace', 'description' => '', 'title' => ''],
+ 'source' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'type' => ['type' => 'string', 'example' => 'SLS', 'description' => '', 'title' => ''],
+ 'logstore' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'project' => ['type' => 'string', 'example' => 'my-sls-project', 'description' => '', 'title' => ''],
+ 'logstore' => ['type' => 'string', 'example' => 'my-sls-logstore', 'description' => '', 'title' => ''],
+ 'query' => ['type' => 'string', 'example' => '* | SELECT *', 'description' => '', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'pipeline' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'nodes' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'id' => ['type' => 'string', 'example' => 'node-1', 'description' => '', 'title' => ''],
+ 'type' => ['type' => 'string', 'example' => 'transform', 'description' => '', 'title' => ''],
+ 'parameters' => [
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'any', 'example' => 'value', 'description' => '', 'title' => ''],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'sink' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'type' => ['type' => 'string', 'example' => 'Dataset', 'description' => '', 'title' => ''],
+ 'dataset' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'agentSpace' => ['type' => 'string', 'example' => 'my-agent-space', 'description' => '', 'title' => ''],
+ 'dataset' => ['type' => 'string', 'example' => 'my-dataset', 'description' => '', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'executePolicy' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'mode' => ['type' => 'string', 'example' => 'Scheduled', 'description' => '', 'title' => ''],
+ 'runOnce' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'fromTime' => ['type' => 'integer', 'format' => 'int64', 'example' => '1735660800000', 'description' => '', 'title' => ''],
+ 'toTime' => ['type' => 'integer', 'format' => 'int64', 'example' => '1735747200000', 'description' => '', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'scheduled' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'interval' => ['type' => 'string', 'example' => '1h', 'description' => '', 'title' => ''],
+ 'fromTime' => ['type' => 'integer', 'format' => 'int64', 'example' => '1735660800000', 'description' => '', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'scheduleStatus' => ['type' => 'string', 'example' => 'Active', 'description' => '', 'title' => ''],
+ 'committedWatermark' => ['type' => 'integer', 'format' => 'int64', 'example' => '1735660800', 'description' => '', 'title' => ''],
+ 'nextTriggerTime' => ['type' => 'integer', 'format' => 'int64', 'example' => '1735661100', 'description' => '', 'title' => ''],
+ ],
+ 'description' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Query a pipeline',
+ 'summary' => 'Queries a CI/CD pipeline.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'agentloop:GetPipeline',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M\\",\\n \\"pipelineName\\": \\"my-pipeline\\",\\n \\"description\\": \\"我的流水线\\",\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"createTime\\": \\"2026-01-01T00:00:00Z\\",\\n \\"updateTime\\": \\"2026-01-02T00:00:00Z\\",\\n \\"workspace\\": \\"my-workspace\\",\\n \\"source\\": {\\n \\"type\\": \\"SLS\\",\\n \\"logstore\\": {\\n \\"project\\": \\"my-sls-project\\",\\n \\"logstore\\": \\"my-sls-logstore\\",\\n \\"query\\": \\"* | SELECT *\\"\\n }\\n },\\n \\"pipeline\\": {\\n \\"nodes\\": [\\n {\\n \\"id\\": \\"node-1\\",\\n \\"type\\": \\"transform\\",\\n \\"parameters\\": {\\n \\"key\\": \\"value\\"\\n }\\n }\\n ]\\n },\\n \\"sink\\": {\\n \\"type\\": \\"Dataset\\",\\n \\"dataset\\": {\\n \\"agentSpace\\": \\"my-agent-space\\",\\n \\"dataset\\": \\"my-dataset\\"\\n }\\n },\\n \\"executePolicy\\": {\\n \\"mode\\": \\"Scheduled\\",\\n \\"runOnce\\": {\\n \\"fromTime\\": 1735660800000,\\n \\"toTime\\": 1735747200000\\n },\\n \\"scheduled\\": {\\n \\"interval\\": \\"1h\\",\\n \\"fromTime\\": 1735660800000\\n }\\n },\\n \\"scheduleStatus\\": \\"Active\\",\\n \\"committedWatermark\\": 1735660800,\\n \\"nextTriggerTime\\": 1735661100\\n}","type":"json"}]',
+ ],
+ 'GetPipelineRun' => [
+ 'summary' => 'Queries the details of a single pipeline run.',
+ 'path' => '/agentspace/{agentSpace}/pipeline/{pipelineName}/runs/{runId}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the AgentSpace.', 'type' => 'string', 'example' => 'my-agent-space'],
+ ],
+ [
+ 'name' => 'pipelineName',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the pipeline.', 'type' => 'string', 'example' => 'my-pipeline'],
+ ],
+ [
+ 'name' => 'runId',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The ID of the run.', 'type' => 'string', 'example' => 'run-20260101-0001'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID, which is used to locate and troubleshoot issues.', 'type' => 'string', 'example' => '9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M'],
+ 'runId' => ['title' => '', 'description' => 'Run Id', 'type' => 'string', 'example' => 'run-20260101-0001'],
+ 'pipelineName' => ['title' => '', 'description' => 'The name of the pipeline.', 'type' => 'string', 'example' => 'my-pipeline'],
+ 'agentSpaceName' => ['title' => '', 'description' => 'The name of the AgentSpace to which the pipeline belongs.', 'type' => 'string', 'example' => 'my-agent-space'],
+ 'fromTime' => ['title' => '', 'description' => 'The start of the data window, in UNIX seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1735660800'],
+ 'toTime' => ['title' => '', 'description' => 'The end of the data window, in UNIX seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1735747200'],
+ 'triggerType' => ['title' => '', 'description' => 'The trigger type. Valid values:'."\n"
+ .'- Scheduled'."\n"
+ .'- Manual'."\n"
+ .'- RunOnce', 'type' => 'string', 'example' => 'Scheduled'],
+ 'triggerTime' => ['title' => '', 'description' => 'The trigger time, in ISO 8601 UTC format.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-01-01T00:00:00.000Z'],
+ 'status' => ['title' => '', 'description' => 'The run status. Valid values:'."\n"
+ .'- Pending'."\n"
+ .'- Running'."\n"
+ .'- Succeeded'."\n"
+ .'- Failed'."\n"
+ .'- Cancelled', 'type' => 'string', 'example' => 'Succeeded'],
+ 'attempt' => ['title' => '', 'description' => 'The current retry count.', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
+ 'maxAttempts' => ['title' => '', 'description' => 'The maximum number of retries.', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
+ 'startTime' => ['title' => '', 'description' => 'The execution start time, in ISO 8601 UTC format.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-01-01T00:00:01.000Z'],
+ 'finishTime' => ['title' => '', 'description' => 'The finish time, in ISO 8601 UTC format.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-01-01T00:00:10.000Z'],
+ 'nextRetryTime' => ['title' => '', 'description' => 'The next retry time, in ISO 8601 UTC format.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-01-01T00:01:00.000Z'],
+ 'stats' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'any', 'description' => '', 'title' => '', 'example' => ''],
+ 'description' => 'The run statistics, including processedRows (number of processed rows), processedBytes (number of processed bytes), outputRows (number of output rows), outputBytes (number of output bytes), elapsedMs (elapsed time in milliseconds), cpuSec (CPU seconds), cpuCores (number of CPU cores), and tokenCount (number of tokens consumed).',
+ 'example' => '',
+ ],
+ 'errorMessage' => ['title' => '', 'description' => 'The error message.', 'type' => 'string', 'example' => ''],
+ 'errorCode' => ['title' => '', 'description' => 'The semantic error code.', 'type' => 'string', 'example' => ''],
+ 'results' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'any', 'description' => '', 'title' => '', 'example' => ''],
+ 'description' => 'The inline run results. This field is returned only when output.inline is set to true at trigger time.',
+ 'example' => '',
+ ],
+ ],
+ 'description' => 'The response data.',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'agentloop:GetPipelineRun',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M\\",\\n \\"runId\\": \\"run-20260101-0001\\",\\n \\"pipelineName\\": \\"my-pipeline\\",\\n \\"agentSpaceName\\": \\"my-agent-space\\",\\n \\"fromTime\\": 1735660800,\\n \\"toTime\\": 1735747200,\\n \\"triggerType\\": \\"Scheduled\\",\\n \\"triggerTime\\": \\"2026-01-01T00:00:00.000Z\\",\\n \\"status\\": \\"Succeeded\\",\\n \\"attempt\\": 0,\\n \\"maxAttempts\\": 3,\\n \\"startTime\\": \\"2026-01-01T00:00:01.000Z\\",\\n \\"finishTime\\": \\"2026-01-01T00:00:10.000Z\\",\\n \\"nextRetryTime\\": \\"2026-01-01T00:01:00.000Z\\",\\n \\"stats\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"errorMessage\\": \\"\\",\\n \\"errorCode\\": \\"\\",\\n \\"results\\": {\\n \\"key\\": \\"\\"\\n }\\n}","type":"json"}]',
+ 'title' => '',
+ ],
+ 'GetPipelineStats' => [
+ 'summary' => 'Queries pipeline run statistics.',
+ 'path' => '/agentspace/{agentSpace}/pipeline/{pipelineName}/stats',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the AgentSpace.', 'type' => 'string', 'example' => 'my-agent-space'],
+ ],
+ [
+ 'name' => 'pipelineName',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the pipeline.', 'type' => 'string', 'example' => 'my-pipeline'],
+ ],
+ [
+ 'name' => 'startTime',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '1735574400', 'description' => ''],
+ ],
+ [
+ 'name' => 'endTime',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '1735660800', 'description' => ''],
+ ],
+ [
+ 'name' => 'granularity',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'type' => 'string', 'example' => 'Hour', 'description' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID, which is used to locate the request during troubleshooting.', 'type' => 'string', 'example' => '9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M'],
+ 'pipelineName' => ['title' => '', 'description' => 'The name of the pipeline.', 'type' => 'string', 'example' => 'my-pipeline'],
+ 'startTime' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '1735574400', 'description' => ''],
+ 'endTime' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '1735660800', 'description' => ''],
+ 'granularity' => ['title' => '', 'type' => 'string', 'example' => 'Hour', 'description' => ''],
+ 'summary' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'totalRuns' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '44', 'description' => ''],
+ 'succeededRuns' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '44', 'description' => ''],
+ 'failedRuns' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'description' => ''],
+ 'cancelledRuns' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'description' => ''],
+ 'successRate' => ['title' => '', 'type' => 'number', 'format' => 'double', 'example' => '1.0', 'description' => ''],
+ 'avgElapsedMs' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '2500', 'description' => ''],
+ 'totalProcessedRows' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '1500000', 'description' => ''],
+ 'totalProcessedBytes' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '5368709120', 'description' => ''],
+ 'totalOutputRows' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '1200000', 'description' => ''],
+ 'totalOutputBytes' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '3221225472', 'description' => ''],
+ 'committedWatermark' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '1735660800', 'description' => ''],
+ 'scheduleLagSeconds' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '120', 'description' => ''],
+ ],
+ 'description' => '',
+ 'example' => '',
+ ],
+ 'timeSeries' => [
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'timestamp' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '1735574400', 'description' => ''],
+ 'runs' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '5', 'description' => ''],
+ 'succeededRuns' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '5', 'description' => ''],
+ 'processedRows' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '100000', 'description' => ''],
+ 'processedBytes' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '536870912', 'description' => ''],
+ 'outputRows' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '80000', 'description' => ''],
+ 'outputBytes' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '322122547', 'description' => ''],
+ 'avgElapsedMs' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '2500', 'description' => ''],
+ ],
+ 'description' => '',
+ 'example' => '',
+ ],
+ 'description' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => 'The response data.',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'agentloop:GetPipelineStats',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M\\",\\n \\"pipelineName\\": \\"my-pipeline\\",\\n \\"startTime\\": 1735574400,\\n \\"endTime\\": 1735660800,\\n \\"granularity\\": \\"Hour\\",\\n \\"summary\\": {\\n \\"totalRuns\\": 44,\\n \\"succeededRuns\\": 44,\\n \\"failedRuns\\": 0,\\n \\"cancelledRuns\\": 0,\\n \\"successRate\\": 1,\\n \\"avgElapsedMs\\": 2500,\\n \\"totalProcessedRows\\": 1500000,\\n \\"totalProcessedBytes\\": 5368709120,\\n \\"totalOutputRows\\": 1200000,\\n \\"totalOutputBytes\\": 3221225472,\\n \\"committedWatermark\\": 1735660800,\\n \\"scheduleLagSeconds\\": 120\\n },\\n \\"timeSeries\\": [\\n {\\n \\"timestamp\\": 1735574400,\\n \\"runs\\": 5,\\n \\"succeededRuns\\": 5,\\n \\"processedRows\\": 100000,\\n \\"processedBytes\\": 536870912,\\n \\"outputRows\\": 80000,\\n \\"outputBytes\\": 322122547,\\n \\"avgElapsedMs\\": 2500\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '',
+ ],
+ 'ListAgentSpaces' => [
+ 'path' => '/agentspace',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The AgentSpace name.', 'type' => 'string', 'required' => false, 'example' => 'test-agent-space', 'title' => ''],
+ ],
+ [
+ 'name' => 'regionId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'maxResults',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The maximum number of results to return.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '50', 'title' => ''],
+ ],
+ [
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The pagination token.', 'type' => 'string', 'required' => false, 'example' => 'pEL20OGYeZQez8NdW7ve', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'The response data.',
+ 'type' => 'object',
+ 'properties' => [
+ 'nextToken' => ['description' => 'The pagination token. This parameter is empty if no more pages are available.', 'type' => 'string', 'example' => 'b5754ef15c784abc8696d82790d2985c', 'title' => ''],
+ 'maxResults' => ['description' => 'The maximum number of results returned.', 'type' => 'integer', 'format' => 'int32', 'example' => '100', 'title' => ''],
+ 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '4E4AC775-2358-5B52-B6FB-171459D7B14B', 'title' => ''],
+ 'total' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '13', 'title' => ''],
+ 'agentSpaces' => [
+ 'description' => 'The AgentSpaces information.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The AgentSpaces information.',
+ 'type' => 'object',
+ 'properties' => [
+ 'agentSpace' => ['description' => 'The AgentSpace name.', 'type' => 'string', 'example' => 'test-agent-space', 'title' => ''],
+ 'description' => ['description' => 'The description.', 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'cmsWorkspace' => ['description' => 'The CMS workspace.', 'type' => 'string', 'example' => 'test-cms-workspace', 'title' => ''],
+ 'mseNamespace' => [
+ 'description' => 'The MSE namespace.',
+ 'type' => 'object',
+ 'properties' => [
+ 'namespaceName' => ['description' => 'The MSE namespace name.', 'type' => 'string', 'example' => 'terraform-alicloud-modules', 'title' => ''],
+ 'namespaceId' => ['description' => 'The MSE namespace ID.', 'type' => 'string', 'example' => 'phoenixcloud-raw-logs', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'slsProject' => ['description' => 'The Simple Log Service project name.', 'type' => 'string', 'example' => 'default-cms-1152309027070167-cn-beijing', 'title' => ''],
+ 'regionId' => ['description' => 'The region ID.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
+ 'createTime' => ['description' => 'The creation time.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2023-08-23T04:06:06Z', 'title' => ''],
+ 'updateTime' => ['description' => 'The update time.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-02-11T08:40:23Z', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Query agentSpaces',
+ 'summary' => 'Queries a list of AgentSpaces.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentloop:ListAgentSpaces',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'AgentSpace', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"nextToken\\": \\"b5754ef15c784abc8696d82790d2985c\\",\\n \\"maxResults\\": 100,\\n \\"requestId\\": \\"4E4AC775-2358-5B52-B6FB-171459D7B14B\\",\\n \\"total\\": 13,\\n \\"agentSpaces\\": [\\n {\\n \\"agentSpace\\": \\"test-agent-space\\",\\n \\"description\\": \\"test\\",\\n \\"cmsWorkspace\\": \\"test-cms-workspace\\",\\n \\"mseNamespace\\": {\\n \\"namespaceName\\": \\"terraform-alicloud-modules\\",\\n \\"namespaceId\\": \\"phoenixcloud-raw-logs\\"\\n },\\n \\"slsProject\\": \\"default-cms-1152309027070167-cn-beijing\\",\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"createTime\\": \\"2023-08-23T04:06:06Z\\",\\n \\"updateTime\\": \\"2026-02-11T08:40:23Z\\"\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListContextStoreAPIKeys' => [
+ 'path' => '/agentspace/{agentSpace}/contextstore/{contextStoreName}/apikey',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the AgentSpace.', 'type' => 'string', 'example' => 'my-agent-space', 'required' => false],
+ ],
+ [
+ 'name' => 'contextStoreName',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the context store.', 'type' => 'string', 'example' => 'my-context-store', 'required' => false],
+ ],
+ [
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The pagination token. Set this parameter to the nextToken value returned in the previous response to retrieve the next page. Do not specify this parameter for the first request.', 'type' => 'string', 'example' => 'MTIzNDU2Nzg5MA==', 'required' => false],
+ ],
+ [
+ 'name' => 'maxResults',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The maximum number of API keys to return. Default value: 20. Maximum value: 100.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'required' => false],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'The response data.',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID, which is used to locate and troubleshoot issues.', 'type' => 'string', 'example' => '9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M'],
+ 'nextToken' => ['title' => '', 'description' => 'The token for the next page. An empty string indicates that the current page is the last page.', 'type' => 'string', 'example' => 'MTIzNDU2Nzg5MA=='],
+ 'maxResults' => ['title' => '', 'description' => 'The maximum number of entries per page that was specified in the request. This value is echoed back.', 'type' => 'integer', 'format' => 'int32', 'example' => '20'],
+ 'total' => ['title' => '', 'description' => 'The total number of API keys that match the query conditions.', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
+ 'results' => [
+ 'title' => '',
+ 'description' => 'The list of API keys.',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '',
+ 'description' => 'The API key entry.',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['title' => '', 'description' => 'The display name of the API key.', 'type' => 'string', 'example' => 'my-api-key'],
+ 'apiKey' => ['title' => '', 'description' => 'The full value of the API key. The plaintext value is returned only when the API key is created. In list scenarios, the value is masked based on business rules.', 'type' => 'string', 'example' => 'sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'],
+ 'createTime' => ['title' => '', 'description' => 'The time when the API key was created, in ISO 8601 UTC format.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-01-01T00:00:00Z'],
+ 'agentSpace' => ['title' => '', 'description' => 'The name of the AgentSpace to which the API key belongs.', 'type' => 'string', 'example' => 'my-agent-space'],
+ 'contextStoreName' => ['title' => '', 'description' => 'The name of the context store to which the API key belongs.', 'type' => 'string', 'example' => 'my-context-store'],
+ ],
+ 'example' => '',
+ ],
+ 'example' => '',
+ ],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'summary' => 'Retrieves a list of API keys.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentloop:ListContextStoreAPIKeys',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'ContextStoreAPIKey', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/contextstore/{#ContextStoreName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M\\",\\n \\"nextToken\\": \\"MTIzNDU2Nzg5MA==\\",\\n \\"maxResults\\": 20,\\n \\"total\\": 3,\\n \\"results\\": [\\n {\\n \\"name\\": \\"my-api-key\\",\\n \\"apiKey\\": \\"sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\\",\\n \\"createTime\\": \\"2026-01-01T00:00:00Z\\",\\n \\"agentSpace\\": \\"my-agent-space\\",\\n \\"contextStoreName\\": \\"my-context-store\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '',
+ ],
+ 'ListContextStores' => [
+ 'path' => '/agentspace/{agentSpace}/contextstore',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the AgentSpace. The name must be 2 to 64 characters in length.', 'type' => 'string', 'required' => true, 'example' => 'my-agent-space', 'maxLength' => 64, 'minLength' => 2],
+ ],
+ [
+ 'name' => 'contextStoreName',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'Filters context stores by name. Exact match is supported. If this parameter is not specified, no filtering is applied.', 'type' => 'string', 'example' => 'my-context-store', 'required' => false],
+ ],
+ [
+ 'name' => 'contextType',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'Filters context stores by type, such as experience or memory. If this parameter is not specified, no filtering is applied.', 'type' => 'string', 'example' => 'experience', 'required' => false],
+ ],
+ [
+ 'name' => 'maxResults',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The maximum number of context stores to return. Default value: 20. Maximum value: 100.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'required' => false],
+ ],
+ [
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The pagination token. Set this parameter to the nextToken value returned in the previous response to retrieve the next page. Do not specify this parameter for the first request.', 'type' => 'string', 'example' => 'MTIzNDU2Nzg5MA==', 'required' => false],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'The response data.',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID. You can use this ID to locate and troubleshoot issues.', 'type' => 'string', 'example' => '9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M'],
+ 'nextToken' => ['title' => '', 'description' => 'The token for the next page. An empty string indicates that the current page is the last page.', 'type' => 'string', 'example' => 'MTIzNDU2Nzg5MA=='],
+ 'maxResults' => ['title' => '', 'description' => 'The maximum number of entries per page that was specified in the request. This value is echoed back.', 'type' => 'integer', 'format' => 'int32', 'example' => '20'],
+ 'total' => ['title' => '', 'description' => 'The total number of context stores that match the query conditions.', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
+ 'results' => [
+ 'title' => '',
+ 'description' => 'The list of context stores.',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '',
+ 'description' => 'The context store entry.',
+ 'type' => 'object',
+ 'properties' => [
+ 'contextStoreName' => ['title' => '', 'description' => 'The name of the context store.', 'type' => 'string', 'example' => 'my-context-store'],
+ 'agentSpace' => ['title' => '', 'description' => 'The name of the AgentSpace to which the context store belongs.', 'type' => 'string', 'example' => 'my-agent-space'],
+ 'regionId' => ['title' => '', 'description' => 'The region ID of the context store.', 'type' => 'string', 'example' => 'cn-hangzhou'],
+ 'contextType' => ['title' => '', 'description' => 'The type of the context store, such as experience or memory.', 'type' => 'string', 'example' => 'experience'],
+ 'description' => ['title' => '', 'description' => 'The description of the context store.', 'type' => 'string', 'example' => '我的上下文库'],
+ 'status' => ['title' => '', 'description' => 'The status of the context store. Valid values: ACTIVE, INITIALIZING, and FAILED.', 'type' => 'string', 'example' => 'ACTIVE'],
+ 'serviceNames' => [
+ 'title' => '',
+ 'description' => 'The list of service names. This parameter has a value only for context stores of the experience type. The service names are used together with the data source AgentSpace to locate trace data sources.',
+ 'type' => 'array',
+ 'items' => ['title' => '', 'description' => 'The service name.', 'type' => 'string', 'example' => 'order-service'],
+ 'example' => '["order-service","payment-service"]',
+ ],
+ 'createTime' => ['title' => '', 'description' => 'The time when the context store was created, in ISO 8601 UTC format.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-01-01T00:00:00Z'],
+ 'updateTime' => ['title' => '', 'description' => 'The time when the context store was last updated, in ISO 8601 UTC format.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-01-02T00:00:00Z'],
+ ],
+ 'example' => '',
+ ],
+ 'example' => '',
+ ],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'summary' => 'Queries a list of context stores.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentloop:ListContextStores',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'ContextStore', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/contextstore/*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M\\",\\n \\"nextToken\\": \\"MTIzNDU2Nzg5MA==\\",\\n \\"maxResults\\": 20,\\n \\"total\\": 5,\\n \\"results\\": [\\n {\\n \\"contextStoreName\\": \\"my-context-store\\",\\n \\"agentSpace\\": \\"my-agent-space\\",\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"contextType\\": \\"experience\\",\\n \\"description\\": \\"我的上下文库\\",\\n \\"status\\": \\"ACTIVE\\",\\n \\"serviceNames\\": [\\n \\"order-service\\"\\n ],\\n \\"createTime\\": \\"2026-01-01T00:00:00Z\\",\\n \\"updateTime\\": \\"2026-01-02T00:00:00Z\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '',
+ ],
+ 'ListDatasets' => [
+ 'summary' => 'Queries a list of datasets.',
+ 'path' => '/agentspace/{agentSpace}/dataset',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The name of the agent space.', 'type' => 'string', 'required' => true, 'maxLength' => 64, 'minLength' => 2, 'example' => 'sop-agent', 'title' => ''],
+ ],
+ [
+ 'name' => 'datasetName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the dataset.', 'type' => 'string', 'required' => false, 'example' => 'product_faq_dataset', 'title' => ''],
+ ],
+ [
+ 'name' => 'maxResults',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The maximum number of results to return.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100', 'title' => ''],
+ ],
+ [
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The pagination token. You do not need to set this parameter for the first request. For subsequent requests, set this parameter to the nextToken value returned in the previous response.', 'type' => 'string', 'required' => false, 'example' => 'RsfoUqpOJd5nd0F1e4OquY/7dKNGp1JMgsKtvCagmtY=', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'nextToken' => ['description' => 'The pagination token for the next page of results.'."\n"
+ ."\n"
+ .'If the total number of results exceeds the maxResults limit, the results are truncated. You can use this token to query the next page of results.', 'type' => 'string', 'example' => 'umaQfI7x758Ns4TgWrj8yA3fYlnk7dJgsfhMrSViRY8=', 'title' => ''],
+ 'maxResults' => ['description' => 'The maximum number of results specified in this request.', 'type' => 'integer', 'format' => 'int32', 'example' => '100', 'title' => ''],
+ 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '90F52F93-8800-5A71-8737-18F34BA90166', 'title' => ''],
+ 'total' => ['description' => 'The total number of records.', 'type' => 'integer', 'format' => 'int32', 'example' => '33', 'title' => ''],
+ 'datasets' => [
+ 'description' => 'The result set.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The result set.',
+ 'type' => 'object',
+ 'properties' => [
+ 'description' => ['description' => 'The description of the dataset.', 'type' => 'string', 'example' => 'Product FAQ dataset for semantic search', 'title' => ''],
+ 'createTime' => ['description' => 'The time when the dataset was created.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-01-19T02:11:02Z', 'title' => ''],
+ 'updateTime' => ['description' => 'The time when the dataset was last updated.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-05-18T02:21:32Z', 'title' => ''],
+ 'datasetName' => ['description' => 'The name of the dataset.', 'type' => 'string', 'example' => 'product_faq_dataset', 'title' => ''],
+ 'agentSpace' => ['description' => 'The name of the agent space.', 'type' => 'string', 'example' => 'sop-agent', 'title' => ''],
+ 'regionId' => ['description' => 'The region ID.', 'type' => 'string', 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'List datasets',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentloop:ListDatasets',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Dataset', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/dataset/*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"nextToken\\": \\"umaQfI7x758Ns4TgWrj8yA3fYlnk7dJgsfhMrSViRY8=\\",\\n \\"maxResults\\": 100,\\n \\"requestId\\": \\"90F52F93-8800-5A71-8737-18F34BA90166\\",\\n \\"total\\": 33,\\n \\"datasets\\": [\\n {\\n \\"description\\": \\"Product FAQ dataset for semantic search\\",\\n \\"createTime\\": \\"2026-01-19T02:11:02Z\\",\\n \\"updateTime\\": \\"2026-05-18T02:21:32Z\\",\\n \\"datasetName\\": \\"product_faq_dataset\\",\\n \\"agentSpace\\": \\"sop-agent\\",\\n \\"regionId\\": \\"cn-shanghai\\"\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListEvaluationRuns' => [
+ 'summary' => 'Queries the list of evaluation runs.',
+ 'path' => '/api/v1/evaluation-task/{agentSpace}/{taskId}/runs',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The AgentSpace name.', 'type' => 'string', 'required' => false, 'example' => 'prod-agentspace', 'title' => ''],
+ ],
+ [
+ 'name' => 'taskId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The evaluation task ID.', 'type' => 'string', 'required' => false, 'example' => 'eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25', 'title' => ''],
+ ],
+ [
+ 'name' => 'status',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The run status filter condition.',
+ 'enumValueTitles' => ['Failed' => 'Failed', 'Running' => 'Running', 'Completed' => 'Completed', 'Terminated' => 'Terminated', 'Pending' => 'Pending'],
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Running',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'runType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The run type filter condition.',
+ 'enumValueTitles' => ['continuous' => 'continuous', 'backfill' => 'backfill', 'continuous_parent' => 'continuous_parent'],
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'backfill',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The pagination token for the next page.', 'type' => 'string', 'required' => false, 'example' => 'eyJsYXN0SWQiOjEwMX0=', 'title' => ''],
+ ],
+ [
+ 'name' => 'maxResults',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The number of entries per page. Default value: 20. Maximum value: 100.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '3FE4CD1E-FF41-56BE-B590-7A021D9C1524'],
+ 'totalCount' => ['description' => 'The total number of runs that match the filter conditions.', 'type' => 'integer', 'format' => 'int64', 'example' => '3', 'title' => ''],
+ 'maxResults' => ['description' => 'The number of entries per page used in this request.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''],
+ 'nextToken' => ['description' => 'The pagination token for the next page. An empty value indicates that no more pages exist.', 'type' => 'string', 'example' => 'eyJsYXN0SWQiOjEyMH0=', 'title' => ''],
+ 'evaluationRuns' => [
+ 'description' => 'The list of run summaries.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The evaluation run summary object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'runId' => ['description' => 'The run ID.', 'type' => 'string', 'example' => 'eval-run-4fd47f3d7e684e15b1d3d178c6a5b81a', 'title' => ''],
+ 'runName' => ['description' => 'The run name.', 'type' => 'string', 'example' => 'trace_task_completion_eval-backfill', 'title' => ''],
+ 'taskId' => ['description' => 'The evaluation task ID.', 'type' => 'string', 'example' => 'eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25', 'title' => ''],
+ 'runType' => [
+ 'description' => 'The run type.',
+ 'enumValueTitles' => ['continuous' => 'continuous', 'backfill' => 'backfill', 'continuous_parent' => 'continuous_parent'],
+ 'type' => 'string',
+ 'example' => 'backfill',
+ 'title' => '',
+ ],
+ 'status' => [
+ 'description' => 'The run status.',
+ 'enumValueTitles' => ['Failed' => 'Failed', 'Running' => 'Running', 'Completed' => 'Completed', 'Terminated' => 'Terminated', 'Pending' => 'Pending'],
+ 'type' => 'string',
+ 'example' => 'Running',
+ 'title' => '',
+ ],
+ 'totalCount' => ['description' => 'The total number of evaluation entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '100', 'title' => ''],
+ 'successCount' => ['description' => 'The number of successful entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '96', 'title' => ''],
+ 'failedCount' => ['description' => 'The number of failed entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '4', 'title' => ''],
+ 'createdAt' => ['description' => 'The creation time, in seconds-level UNIX timestamp.', 'type' => 'integer', 'format' => 'int64', 'example' => '1782816000', 'title' => ''],
+ 'updatedAt' => ['description' => 'The update time, in seconds-level UNIX timestamp.', 'type' => 'integer', 'format' => 'int64', 'example' => '1782816600', 'title' => ''],
+ 'dataStartTime' => ['description' => 'The start time of the data window for this run, in seconds-level UNIX timestamp.', 'type' => 'integer', 'format' => 'int64', 'example' => '1782816000', 'title' => ''],
+ 'dataEndTime' => ['description' => 'The end time of the data window for this run, in seconds-level UNIX timestamp.', 'type' => 'integer', 'format' => 'int64', 'example' => '1782902400', 'title' => ''],
+ ],
+ 'example' => '{"runId":"eval-run-4fd47f3d7e684e15b1d3d178c6a5b81a"}',
+ 'title' => '',
+ ],
+ 'example' => '[{"runId":"eval-run-4fd47f3d7e684e15b1d3d178c6a5b81a","runType":"backfill","status":"Running","totalCount":100}]',
+ 'title' => '',
+ ],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Query evaluation runs',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3FE4CD1E-FF41-56BE-B590-7A021D9C1524\\",\\n \\"totalCount\\": 3,\\n \\"maxResults\\": 20,\\n \\"nextToken\\": \\"eyJsYXN0SWQiOjEyMH0=\\",\\n \\"evaluationRuns\\": [\\n {\\n \\"runId\\": \\"eval-run-4fd47f3d7e684e15b1d3d178c6a5b81a\\",\\n \\"runName\\": \\"trace_task_completion_eval-backfill\\",\\n \\"taskId\\": \\"eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25\\",\\n \\"runType\\": \\"backfill\\",\\n \\"status\\": \\"Running\\",\\n \\"totalCount\\": 100,\\n \\"successCount\\": 96,\\n \\"failedCount\\": 4,\\n \\"createdAt\\": 1782816000,\\n \\"updatedAt\\": 1782816600,\\n \\"dataStartTime\\": 1782816000,\\n \\"dataEndTime\\": 1782902400\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListEvaluationTasks' => [
+ 'path' => '/api/v1/evaluation-tasks',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The AgentSpace name.', 'type' => 'string', 'required' => false, 'example' => 'prod-agentspace', 'title' => ''],
+ ],
+ [
+ 'name' => 'taskName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The fuzzy match condition for the task name.', 'type' => 'string', 'required' => false, 'example' => 'trace_task_completion_eval', 'title' => ''],
+ ],
+ [
+ 'name' => 'taskMode',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The evaluation task mode. If this parameter is not specified, the default value is `batch`.',
+ 'enumValueTitles' => ['batch' => 'batch'],
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'batch',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'dataType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The data source type of the evaluation object. Set this parameter to `trace` for trace-based evaluation.',
+ 'enumValueTitles' => ['trace' => 'trace', 'log' => 'log', 'atif' => 'atif', 'dataset' => 'dataset'],
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'trace',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'status',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The filter condition for the evaluation task status.',
+ 'enumValueTitles' => ['Failed' => 'Failed', 'Running' => 'Running', 'Completed' => 'Completed', 'Scheduling' => 'Scheduling', 'Deleted' => 'Deleted', 'Terminated' => 'Terminated', 'Pending' => 'Pending'],
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Running',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The pagination token for the next page, obtained from the previous response.', 'type' => 'string', 'required' => false, 'example' => 'eyJsYXN0SWQiOjEyMywib2Zmc2V0IjoyMH0=', 'title' => ''],
+ ],
+ [
+ 'name' => 'maxResults',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The number of entries per page. Default value: 20. Maximum value: 100.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'title' => ''],
+ ],
+ [
+ 'name' => 'channel',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The filter condition for the task source. If this parameter is not specified, tasks from the default source are queried.',
+ 'enumValueTitles' => ['default' => 'default'],
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '3FE4CD1E-FF41-56BE-B590-7A021D9C1524'],
+ 'evaluationTasks' => [
+ 'description' => 'The list of evaluation task summaries.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The evaluation task summary object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'taskId' => ['description' => 'The evaluation task ID.', 'type' => 'string', 'example' => 'eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25', 'title' => ''],
+ 'taskName' => ['description' => 'The task name.', 'type' => 'string', 'example' => 'trace_task_completion_eval', 'title' => ''],
+ 'taskMode' => [
+ 'description' => 'The evaluation task mode.',
+ 'enumValueTitles' => ['batch' => 'batch'],
+ 'type' => 'string',
+ 'example' => 'batch',
+ 'title' => '',
+ ],
+ 'dataType' => [
+ 'description' => 'The data source type of the evaluation object.',
+ 'enumValueTitles' => ['trace' => 'trace', 'log' => 'log', 'atif' => 'atif', 'dataset' => 'dataset'],
+ 'type' => 'string',
+ 'example' => 'trace',
+ 'title' => '',
+ ],
+ 'status' => [
+ 'description' => 'The evaluation task status.',
+ 'enumValueTitles' => ['Failed' => 'Failed', 'Running' => 'Running', 'Completed' => 'Completed', 'Scheduling' => 'Scheduling', 'Deleted' => 'Deleted', 'Terminated' => 'Terminated', 'Pending' => 'Pending'],
+ 'type' => 'string',
+ 'example' => 'Running',
+ 'title' => '',
+ ],
+ 'createdAt' => ['description' => 'The creation time, in seconds-level UNIX timestamp.', 'type' => 'integer', 'format' => 'int64', 'example' => '1782816000', 'title' => ''],
+ 'updatedAt' => ['description' => 'The last update time, in seconds-level UNIX timestamp.', 'type' => 'integer', 'format' => 'int64', 'example' => '1782816600', 'title' => ''],
+ 'evaluators' => ['description' => 'The evaluator configuration summary, in JSON string format.', 'type' => 'string', 'example' => '[{"evaluatorRef":"Builtin.agent_task_completion"}]', 'title' => ''],
+ 'tags' => [
+ 'description' => 'The key-value pairs of task tags. This parameter is empty if no tags are set.',
+ 'type' => 'object',
+ 'additionalProperties' => ['description' => 'The value of a task tag. The key name is customized based on business dimensions.', 'type' => 'string', 'example' => 'prod', 'title' => ''],
+ 'example' => '{"serviceId":"checkout-service","env":"prod"}',
+ 'title' => '',
+ ],
+ 'config' => [
+ 'description' => 'The data source and execution configuration summary.',
+ 'type' => 'object',
+ 'additionalProperties' => ['description' => 'The value of a configuration item. The key name is determined by the specific field convention.', 'type' => 'string', 'example' => 'trace', 'title' => ''],
+ 'example' => '{"storeName":"logstore-tracing","dataScope":"trace"}',
+ 'title' => '',
+ ],
+ 'runStrategyConfig' => ['description' => 'The structured run strategy configuration, including the parsed backfill strategy and continuous evaluation strategy.', '$ref' => '#/components/schemas/RunStrategies', 'example' => '{"backfill":{"enabled":true,"startTime":1782816000000,"endTime":1782902400000},"continuous":{"enabled":true,"intervalUnit":"HOUR","intervalValue":1,"dataDelayMinutes":5}}', 'title' => ''],
+ 'description' => ['description' => 'The evaluation task description.', 'type' => 'string', 'example' => '评估线上 Agent 链路任务完成度', 'title' => ''],
+ ],
+ 'example' => '{"taskId":"eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25"}',
+ 'title' => '',
+ ],
+ 'example' => '[{"taskId":"eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25","taskName":"trace_task_completion_eval","taskMode":"batch","dataType":"trace","status":"Running"}]',
+ 'title' => '',
+ ],
+ 'nextToken' => ['description' => 'The pagination token for the next page. An empty value indicates that no more pages are available.', 'type' => 'string', 'example' => 'eyJsYXN0SWQiOjEwMSwib2Zmc2V0IjoyMH0=', 'title' => ''],
+ 'maxResults' => ['description' => 'The number of entries per page used in this request.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''],
+ 'totalCount' => ['description' => 'The total number of records. The total count is returned only on the first page. This value may be empty on subsequent pages.', 'type' => 'integer', 'format' => 'int32', 'example' => '126', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Query evaluation tasks',
+ 'summary' => 'Queries a list of evaluation tasks.',
+ 'responseParamsDescription' => 'In the latest API contract, the list response no longer returns the runStrategies raw JSON string field. Use evaluationTasks[].runStrategyConfig to obtain the structured run strategy.',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3FE4CD1E-FF41-56BE-B590-7A021D9C1524\\",\\n \\"evaluationTasks\\": [\\n {\\n \\"taskId\\": \\"eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25\\",\\n \\"taskName\\": \\"trace_task_completion_eval\\",\\n \\"taskMode\\": \\"batch\\",\\n \\"dataType\\": \\"trace\\",\\n \\"status\\": \\"Running\\",\\n \\"createdAt\\": 1782816000,\\n \\"updatedAt\\": 1782816600,\\n \\"evaluators\\": \\"[{\\\\\\"evaluatorRef\\\\\\":\\\\\\"Builtin.agent_task_completion\\\\\\"}]\\",\\n \\"tags\\": {\\n \\"key\\": \\"prod\\"\\n },\\n \\"config\\": {\\n \\"key\\": \\"trace\\"\\n },\\n \\"runStrategyConfig\\": {\\n \\"backfill\\": {\\n \\"enabled\\": true,\\n \\"startTime\\": 1782816000000,\\n \\"endTime\\": 1782902400000\\n },\\n \\"continuous\\": {\\n \\"enabled\\": true,\\n \\"intervalUnit\\": \\"HOUR\\",\\n \\"intervalValue\\": 1,\\n \\"dataDelayMinutes\\": 5\\n }\\n },\\n \\"description\\": \\"评估线上 Agent 链路任务完成度\\"\\n }\\n ],\\n \\"nextToken\\": \\"eyJsYXN0SWQiOjEwMSwib2Zmc2V0IjoyMH0=\\",\\n \\"maxResults\\": 20,\\n \\"totalCount\\": 126\\n}","type":"json"}]',
+ ],
+ 'ListEvaluatorSkills' => [
+ 'summary' => 'Queries the skill list of an evaluator.',
+ 'path' => '/api/v1/evaluator/{name}/skills',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'],
+ 'parameters' => [
+ [
+ 'name' => 'name',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The evaluator name.', 'type' => 'string', 'required' => true, 'example' => 'trace_task_completion', 'title' => ''],
+ ],
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The AgentSpace name.', 'type' => 'string', 'required' => true, 'example' => 'prod-agentspace', 'title' => ''],
+ ],
+ [
+ 'name' => 'maxResults',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'title' => ''],
+ ],
+ [
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The pagination token for the next page.', 'type' => 'string', 'required' => false, 'example' => 'eyJuZXh0IjoiMjAifQ==', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FE4CD1E-FF41-56BE-B590-7A021D9C1524', 'title' => ''],
+ 'total' => ['description' => 'The total number of skills.', 'type' => 'integer', 'format' => 'int64', 'example' => '3', 'title' => ''],
+ 'nextToken' => ['description' => 'The pagination token for the next page.', 'type' => 'string', 'example' => 'eyJuZXh0IjoiNDAifQ==', 'title' => ''],
+ 'maxResults' => ['description' => 'The number of entries per page used in this request.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''],
+ 'skills' => [
+ 'description' => 'The list of skill summaries.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The skill summary object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'skillName' => ['description' => 'The skill name.', 'type' => 'string', 'example' => 'trace_context_loader', 'title' => ''],
+ 'displayName' => ['description' => 'The display name.', 'type' => 'string', 'example' => 'Trace 上下文读取', 'title' => ''],
+ 'description' => ['description' => 'The skill description.', 'type' => 'string', 'example' => '读取链路上下文辅助评估', 'title' => ''],
+ 'enable' => [
+ 'description' => 'Indicates whether the skill is enabled.',
+ 'enumValueTitles' => ['true' => 'true', 'false' => 'false'],
+ 'type' => 'boolean',
+ 'example' => 'true',
+ 'title' => '',
+ ],
+ 'latestVersion' => ['description' => 'The latest version. This field is declared in CloudSpec but is not currently populated in the backend response.', 'type' => 'string', 'example' => '1782816000000', 'title' => ''],
+ 'createdAt' => ['description' => 'The creation time. This field is declared as int64 in CloudSpec, but the backend currently returns the StarOps `createTime` string field.', 'type' => 'integer', 'format' => 'int64', 'example' => '1782816000', 'title' => ''],
+ 'updatedAt' => ['description' => 'The update time. This field is declared as int64 in CloudSpec, but the backend currently returns the StarOps `updateTime` string field.', 'type' => 'integer', 'format' => 'int64', 'example' => '1782816600', 'title' => ''],
+ ],
+ 'example' => '{"skillName":"trace_context_loader"}',
+ 'title' => '',
+ ],
+ 'example' => '[{"skillName":"trace_context_loader","displayName":"Trace 上下文读取","enable":true}]',
+ 'title' => '',
+ ],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Query evaluator skill list',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3FE4CD1E-FF41-56BE-B590-7A021D9C1524\\",\\n \\"total\\": 3,\\n \\"nextToken\\": \\"eyJuZXh0IjoiNDAifQ==\\",\\n \\"maxResults\\": 20,\\n \\"skills\\": [\\n {\\n \\"skillName\\": \\"trace_context_loader\\",\\n \\"displayName\\": \\"Trace 上下文读取\\",\\n \\"description\\": \\"读取链路上下文辅助评估\\",\\n \\"enable\\": true,\\n \\"latestVersion\\": \\"1782816000000\\",\\n \\"createdAt\\": 1782816000,\\n \\"updatedAt\\": 1782816600\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListEvaluators' => [
+ 'summary' => 'Queries a list of evaluators.',
+ 'path' => '/api/v1/evaluators',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The AgentSpace name.', 'type' => 'string', 'required' => true, 'example' => 'prod-agentspace', 'title' => ''],
+ ],
+ [
+ 'name' => 'type',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The evaluator type filter.',
+ 'enumValueTitles' => ['AGENT' => 'AGENT', 'CODE' => 'CODE', 'LLM' => 'LLM'],
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'AGENT',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'name',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The fuzzy match condition for the evaluator name.', 'type' => 'string', 'required' => false, 'example' => 'trace_task_completion', 'title' => ''],
+ ],
+ [
+ 'name' => 'source',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The evaluator source filter.',
+ 'enumValueTitles' => ['custom' => 'custom', 'builtin' => 'builtin'],
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'custom',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'maxResults',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The number of entries per page. Default value: 20. Maximum value: 100.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'title' => ''],
+ ],
+ [
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The pagination token for the next page.', 'type' => 'string', 'required' => false, 'example' => 'eyJsYXN0SWQiOjEyM30=', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FE4CD1E-FF41-56BE-B590-7A021D9C1524', 'title' => ''],
+ 'total' => ['description' => 'The total number of evaluators that match the filter conditions.', 'type' => 'integer', 'format' => 'int32', 'example' => '12', 'title' => ''],
+ 'nextToken' => ['description' => 'The pagination token for the next page.', 'type' => 'string', 'example' => 'eyJsYXN0SWQiOjEzM30=', 'title' => ''],
+ 'maxResults' => ['description' => 'The number of entries per page used in this request.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''],
+ 'evaluators' => [
+ 'description' => 'The list of evaluator summaries.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The configuration object of a single evaluator.',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['description' => 'The evaluator name.', 'type' => 'string', 'example' => 'trace_task_completion', 'title' => ''],
+ 'displayName' => ['description' => 'The display name.', 'type' => 'string', 'example' => '链路任务完成度', 'title' => ''],
+ 'metricName' => ['description' => 'The metric name.', 'type' => 'string', 'example' => 'agent_task_completion', 'title' => ''],
+ 'type' => [
+ 'description' => 'The evaluator type.',
+ 'enumValueTitles' => ['AGENT' => 'AGENT', 'CODE' => 'CODE', 'LLM' => 'LLM'],
+ 'type' => 'string',
+ 'example' => 'AGENT',
+ 'title' => '',
+ ],
+ 'description' => ['description' => 'The evaluator description.', 'type' => 'string', 'example' => '判断 Agent 是否完成用户任务', 'title' => ''],
+ 'latestVersion' => ['description' => 'The latest version number.', 'type' => 'string', 'example' => '1.0.0', 'title' => ''],
+ 'properties' => ['description' => 'The evaluator properties.', 'type' => 'object', 'example' => '{"agentEvaluatorMode":"raw_prompt"}', 'title' => ''],
+ 'annotations' => [
+ 'description' => 'The list of annotations.',
+ 'type' => 'array',
+ 'items' => ['description' => 'A single annotation.', 'type' => 'string', 'example' => '__en', 'title' => ''],
+ 'example' => '["__en"]',
+ 'title' => '',
+ ],
+ 'createdAt' => ['description' => 'The creation time, in seconds-level UNIX timestamp.', 'type' => 'integer', 'format' => 'int64', 'example' => '1782816000', 'title' => ''],
+ 'updatedAt' => ['description' => 'The update time, in seconds-level UNIX timestamp.', 'type' => 'integer', 'format' => 'int64', 'example' => '1782816600', 'title' => ''],
+ ],
+ 'example' => '{"evaluatorRef":"Builtin.agent_task_completion"}',
+ 'title' => '',
+ ],
+ 'example' => '[{"name":"trace_task_completion","type":"AGENT","latestVersion":"1.0.0"}]',
+ 'title' => '',
+ ],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Query evaluator list',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3FE4CD1E-FF41-56BE-B590-7A021D9C1524\\",\\n \\"total\\": 12,\\n \\"nextToken\\": \\"eyJsYXN0SWQiOjEzM30=\\",\\n \\"maxResults\\": 20,\\n \\"evaluators\\": [\\n {\\n \\"name\\": \\"trace_task_completion\\",\\n \\"displayName\\": \\"链路任务完成度\\",\\n \\"metricName\\": \\"agent_task_completion\\",\\n \\"type\\": \\"AGENT\\",\\n \\"description\\": \\"判断 Agent 是否完成用户任务\\",\\n \\"latestVersion\\": \\"1.0.0\\",\\n \\"properties\\": {\\n \\"agentEvaluatorMode\\": \\"raw_prompt\\"\\n },\\n \\"annotations\\": [\\n \\"__en\\"\\n ],\\n \\"createdAt\\": 1782816000,\\n \\"updatedAt\\": 1782816600\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListPipelineRuns' => [
+ 'summary' => 'Queries the execution history list of a pipeline.',
+ 'path' => '/agentspace/{agentSpace}/pipeline/{pipelineName}/runs',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the AgentSpace.', 'type' => 'string', 'example' => 'my-agent-space'],
+ ],
+ [
+ 'name' => 'pipelineName',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the pipeline.', 'type' => 'string', 'example' => 'my-pipeline'],
+ ],
+ [
+ 'name' => 'status',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'Filters by run status. Valid values: Pending, Running, Succeeded, Failed, and Cancelled. If this parameter is not specified, no filtering is applied.', 'type' => 'string', 'example' => 'Succeeded'],
+ ],
+ [
+ 'name' => 'triggerType',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'Filters by trigger type. Valid values: Manual, Scheduled, and RunOnce. If this parameter is not specified, no filtering is applied.', 'type' => 'string', 'example' => 'Scheduled'],
+ ],
+ [
+ 'name' => 'startTime',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '1735574400', 'description' => ''],
+ ],
+ [
+ 'name' => 'endTime',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '1735660800', 'description' => ''],
+ ],
+ [
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The pagination token. Set this parameter to the nextToken value returned in the previous response to retrieve the next page. Do not specify this parameter for the first request.', 'type' => 'string', 'example' => 'MTIzNDU2Nzg5MA=='],
+ ],
+ [
+ 'name' => 'maxResults',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The maximum number of entries to return. Default value: 50. Maximum value: 200.', 'type' => 'integer', 'format' => 'int32', 'example' => '50'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID, which is used to locate and troubleshoot issues.', 'type' => 'string', 'example' => '9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M'],
+ 'nextToken' => ['title' => '', 'description' => 'The token for the next page. An empty string indicates that the current page is the last page.', 'type' => 'string', 'example' => 'MTIzNDU2Nzg5MA=='],
+ 'maxResults' => ['title' => '', 'description' => 'The maximum number of entries per page specified in the request. This value is echoed back.', 'type' => 'integer', 'format' => 'int32', 'example' => '50'],
+ 'totalCount' => ['title' => '', 'description' => 'The total number of pipeline runs that match the filter conditions.', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'runs' => [
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'runId' => ['title' => '', 'description' => 'Run Id', 'type' => 'string', 'example' => 'run-20260101-0001'],
+ 'pipelineName' => ['title' => '', 'description' => 'The name of the pipeline.', 'type' => 'string', 'example' => 'my-pipeline'],
+ 'agentSpaceName' => ['title' => '', 'description' => 'The name of the AgentSpace to which the run belongs.', 'type' => 'string', 'example' => 'my-agent-space'],
+ 'fromTime' => ['title' => '', 'description' => 'The start of the data window, in UNIX seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1735660800'],
+ 'toTime' => ['title' => '', 'description' => 'The end of the data window, in UNIX seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1735747200'],
+ 'triggerType' => ['title' => '', 'description' => 'The trigger type. Valid values: Scheduled, Manual, and RunOnce.', 'type' => 'string', 'example' => 'Scheduled'],
+ 'triggerTime' => ['title' => '', 'description' => 'The trigger time in ISO 8601 UTC format.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-01-01T00:00:00.000Z'],
+ 'status' => ['title' => '', 'description' => 'The run status. Valid values: Pending, Running, Succeeded, Failed, and Cancelled.', 'type' => 'string', 'example' => 'Succeeded'],
+ 'attempt' => ['title' => '', 'description' => 'The current retry count.', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
+ 'maxAttempts' => ['title' => '', 'description' => 'The maximum number of retries.', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
+ 'startTime' => ['title' => '', 'description' => 'The execution start time in ISO 8601 UTC format.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-01-01T00:00:01.000Z'],
+ 'finishTime' => ['title' => '', 'description' => 'The finish time in ISO 8601 UTC format.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-01-01T00:00:10.000Z'],
+ 'nextRetryTime' => ['title' => '', 'description' => 'The next retry time in ISO 8601 UTC format.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-01-01T00:01:00.000Z'],
+ 'stats' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'any', 'description' => '', 'title' => '', 'example' => ''],
+ 'description' => 'The run statistics, including processedRows (number of processed rows), processedBytes (number of processed bytes), outputRows (number of output rows), outputBytes (number of output bytes), elapsedMs (elapsed time in milliseconds), cpuSec (CPU seconds), cpuCores (number of CPU cores), and tokenCount (number of tokens consumed).',
+ 'example' => '',
+ ],
+ 'errorMessage' => ['title' => '', 'description' => 'The error message.', 'type' => 'string', 'example' => ''],
+ 'errorCode' => ['title' => '', 'description' => 'The semantic error code.', 'type' => 'string', 'example' => ''],
+ ],
+ 'description' => 'A single run record.',
+ 'example' => '',
+ ],
+ 'description' => 'The list of pipeline runs.',
+ 'example' => '',
+ ],
+ ],
+ 'description' => 'The response data.',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentloop:ListPipelineRuns',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M\\",\\n \\"nextToken\\": \\"MTIzNDU2Nzg5MA==\\",\\n \\"maxResults\\": 50,\\n \\"totalCount\\": 100,\\n \\"runs\\": [\\n {\\n \\"runId\\": \\"run-20260101-0001\\",\\n \\"pipelineName\\": \\"my-pipeline\\",\\n \\"agentSpaceName\\": \\"my-agent-space\\",\\n \\"fromTime\\": 1735660800,\\n \\"toTime\\": 1735747200,\\n \\"triggerType\\": \\"Scheduled\\",\\n \\"triggerTime\\": \\"2026-01-01T00:00:00.000Z\\",\\n \\"status\\": \\"Succeeded\\",\\n \\"attempt\\": 0,\\n \\"maxAttempts\\": 3,\\n \\"startTime\\": \\"2026-01-01T00:00:01.000Z\\",\\n \\"finishTime\\": \\"2026-01-01T00:00:10.000Z\\",\\n \\"nextRetryTime\\": \\"2026-01-01T00:01:00.000Z\\",\\n \\"stats\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"errorMessage\\": \\"\\",\\n \\"errorCode\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '',
+ ],
+ 'ListPipelines' => [
+ 'path' => '/agentspace/{agentSpace}/pipeline',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'example' => 'my-agent-space', 'description' => '', 'title' => ''],
+ ],
+ [
+ 'name' => 'pipelineName',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'example' => 'my-pipeline', 'description' => '', 'title' => ''],
+ ],
+ [
+ 'name' => 'scheduleType',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'example' => 'RunOnce', 'description' => '', 'title' => ''],
+ ],
+ [
+ 'name' => 'scheduleStatus',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'example' => 'Active', 'description' => '', 'title' => ''],
+ ],
+ [
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'example' => 'MTIzNDU2Nzg5MA==', 'description' => '', 'title' => ''],
+ ],
+ [
+ 'name' => 'maxResults',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'example' => '20', 'description' => '', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'type' => 'string', 'example' => '9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M', 'description' => ''],
+ 'nextToken' => ['type' => 'string', 'example' => 'MTIzNDU2Nzg5MA==', 'description' => '', 'title' => ''],
+ 'maxResults' => ['type' => 'integer', 'format' => 'int32', 'example' => '20', 'description' => '', 'title' => ''],
+ 'totalCount' => ['type' => 'integer', 'format' => 'int32', 'example' => '100', 'description' => '', 'title' => ''],
+ 'pipelines' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'pipelineName' => ['type' => 'string', 'example' => 'my-pipeline', 'description' => '', 'title' => ''],
+ 'description' => ['type' => 'string', 'example' => '我的流水线', 'description' => '', 'title' => ''],
+ 'regionId' => ['type' => 'string', 'example' => 'cn-hangzhou', 'description' => '', 'title' => ''],
+ 'createTime' => ['type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-01-01T00:00:00Z', 'description' => '', 'title' => ''],
+ 'updateTime' => ['type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-01-02T00:00:00Z', 'description' => '', 'title' => ''],
+ 'workspace' => ['type' => 'string', 'example' => 'my-workspace', 'description' => '', 'title' => ''],
+ 'executePolicy' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'mode' => ['type' => 'string', 'example' => 'RunOnce', 'description' => '', 'title' => ''],
+ 'runOnce' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'fromTime' => ['type' => 'integer', 'format' => 'int64', 'example' => '1735660800000', 'description' => '', 'title' => ''],
+ 'toTime' => ['type' => 'integer', 'format' => 'int64', 'example' => '1735747200000', 'description' => '', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'scheduled' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'fromTime' => ['type' => 'integer', 'format' => 'int64', 'example' => '1735660800000', 'description' => '', 'title' => ''],
+ 'interval' => ['type' => 'string', 'example' => '1h', 'description' => '', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'scheduleType' => ['type' => 'string', 'example' => 'RunOnce', 'description' => '', 'title' => ''],
+ 'scheduleStatus' => ['type' => 'string', 'example' => 'None', 'description' => '', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'List CI/CD pipelines',
+ 'summary' => 'Lists CI/CD pipelines.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentloop:ListPipelines',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M\\",\\n \\"nextToken\\": \\"MTIzNDU2Nzg5MA==\\",\\n \\"maxResults\\": 20,\\n \\"totalCount\\": 100,\\n \\"pipelines\\": [\\n {\\n \\"pipelineName\\": \\"my-pipeline\\",\\n \\"description\\": \\"我的流水线\\",\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"createTime\\": \\"2026-01-01T00:00:00Z\\",\\n \\"updateTime\\": \\"2026-01-02T00:00:00Z\\",\\n \\"workspace\\": \\"my-workspace\\",\\n \\"executePolicy\\": {\\n \\"mode\\": \\"RunOnce\\",\\n \\"runOnce\\": {\\n \\"fromTime\\": 1735660800000,\\n \\"toTime\\": 1735747200000\\n },\\n \\"scheduled\\": {\\n \\"fromTime\\": 1735660800000,\\n \\"interval\\": \\"1h\\"\\n }\\n },\\n \\"scheduleType\\": \\"RunOnce\\",\\n \\"scheduleStatus\\": \\"None\\"\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'PausePipeline' => [
+ 'summary' => 'Pauses a pipeline.',
+ 'path' => '/agentspace/{agentSpace}/pipeline/{pipelineName}/pause',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the AgentSpace where the pipeline is located.', 'type' => 'string', 'example' => 'my-agent-space'],
+ ],
+ [
+ 'name' => 'pipelineName',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the pipeline to pause.', 'type' => 'string', 'example' => 'my-pipeline'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'reason' => ['title' => '', 'description' => 'The reason for pausing the pipeline.', 'type' => 'string', 'example' => 'manual maintenance'],
+ ],
+ 'description' => 'The request body.',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID, which is used to locate and troubleshoot issues.', 'type' => 'string', 'example' => '9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M'],
+ 'pipelineName' => ['title' => '', 'description' => 'The name of the pipeline.', 'type' => 'string', 'example' => 'my-pipeline'],
+ 'agentSpaceName' => ['title' => '', 'description' => 'The name of the AgentSpace where the pipeline is located.', 'type' => 'string', 'example' => 'my-agent-space'],
+ 'scheduleStatus' => ['title' => '', 'description' => 'The scheduling status. The value is fixed as Paused.', 'type' => 'string', 'example' => 'Paused'],
+ 'pauseTime' => ['title' => '', 'description' => 'The time when the pipeline was paused, in ISO 8601 UTC format.', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-01-01T00:00:00.000Z'],
+ 'pausedReason' => ['title' => '', 'description' => 'The reason for pausing the pipeline.', 'type' => 'string', 'example' => 'manual maintenance'],
+ ],
+ 'description' => 'The response data.',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'agentloop:PausePipeline',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M\\",\\n \\"pipelineName\\": \\"my-pipeline\\",\\n \\"agentSpaceName\\": \\"my-agent-space\\",\\n \\"scheduleStatus\\": \\"Paused\\",\\n \\"pauseTime\\": \\"2026-01-01T00:00:00.000Z\\",\\n \\"pausedReason\\": \\"manual maintenance\\"\\n}","type":"json"}]',
+ 'title' => '',
+ ],
+ 'ResumePipeline' => [
+ 'summary' => 'Resumes a pipeline.',
+ 'path' => '/agentspace/{agentSpace}/pipeline/{pipelineName}/resume',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the AgentSpace where the pipeline is located.', 'type' => 'string', 'example' => 'my-agent-space'],
+ ],
+ [
+ 'name' => 'pipelineName',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the pipeline to resume.', 'type' => 'string', 'example' => 'my-pipeline'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID, which is used to locate and troubleshoot issues.', 'type' => 'string', 'example' => '9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M'],
+ 'pipelineName' => ['title' => '', 'description' => 'The name of the pipeline.', 'type' => 'string', 'example' => 'my-pipeline'],
+ 'agentSpaceName' => ['title' => '', 'description' => 'The name of the AgentSpace where the pipeline is located.', 'type' => 'string', 'example' => 'my-agent-space'],
+ 'scheduleStatus' => ['title' => '', 'description' => 'The scheduling status. The value is fixed to Active.', 'type' => 'string', 'example' => 'Active'],
+ 'committedWatermark' => ['title' => '', 'description' => 'The committed watermark, in UNIX seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1735660800'],
+ 'nextTriggerTime' => ['title' => '', 'description' => 'The next scheduling trigger time, in UNIX seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1735664400'],
+ ],
+ 'description' => 'The response data.',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'agentloop:ResumePipeline',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M\\",\\n \\"pipelineName\\": \\"my-pipeline\\",\\n \\"agentSpaceName\\": \\"my-agent-space\\",\\n \\"scheduleStatus\\": \\"Active\\",\\n \\"committedWatermark\\": 1735660800,\\n \\"nextTriggerTime\\": 1735664400\\n}","type":"json"}]',
+ 'title' => '',
+ ],
+ 'RunPipeline' => [
+ 'path' => '/agentspace/{agentSpace}/pipeline/{pipelineName}/run',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'type' => 'string', 'example' => 'my-agent-space', 'description' => ''],
+ ],
+ [
+ 'name' => 'pipelineName',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'type' => 'string', 'example' => 'my-pipeline', 'description' => ''],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'fromTime' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '1735660800', 'description' => ''],
+ 'toTime' => ['title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '1735747200', 'description' => ''],
+ 'output' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'dataset' => ['title' => '', 'type' => 'boolean', 'example' => 'true', 'description' => ''],
+ 'inline' => ['title' => '', 'type' => 'boolean', 'example' => 'false', 'description' => ''],
+ ],
+ 'description' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'type' => 'string', 'example' => '9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M', 'description' => ''],
+ 'runId' => ['title' => '', 'type' => 'string', 'example' => 'run-20260101-0001', 'description' => ''],
+ 'status' => ['title' => '', 'type' => 'string', 'example' => 'Pending', 'description' => ''],
+ 'pipelineName' => ['title' => '', 'type' => 'string', 'example' => 'my-pipeline', 'description' => ''],
+ 'agentSpaceName' => ['title' => '', 'type' => 'string', 'example' => 'my-agent-space', 'description' => ''],
+ ],
+ 'description' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'summary' => 'Manually triggers a pipeline execution.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'agentloop:RunPipeline',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M\\",\\n \\"runId\\": \\"run-20260101-0001\\",\\n \\"status\\": \\"Pending\\",\\n \\"pipelineName\\": \\"my-pipeline\\",\\n \\"agentSpaceName\\": \\"my-agent-space\\"\\n}","type":"json"}]',
+ 'title' => '',
+ ],
+ 'SearchContext' => [
+ 'summary' => 'Searches contexts.',
+ 'path' => '/agentspace/{agentSpace}/contextstore/{contextStoreName}/context/search',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The AgentSpace name. The name must be 2 to 64 characters in length.', 'type' => 'string', 'required' => true, 'example' => 'my-agent-space', 'maxLength' => 64, 'minLength' => 2],
+ ],
+ [
+ 'name' => 'contextStoreName',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The context store name. The name must be 2 to 64 characters in length.', 'type' => 'string', 'required' => true, 'example' => 'my-context-store', 'maxLength' => 64, 'minLength' => 2],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'The retrieval request body.',
+ 'type' => 'object',
+ 'properties' => [
+ 'query' => ['title' => '', 'description' => 'The retrieval query text. Natural language is supported.', 'type' => 'string', 'required' => true, 'example' => '用户最近的偏好设置'],
+ 'formatted' => ['title' => '', 'description' => 'Specifies whether to apply structured formatting to the returned results.', 'type' => 'boolean', 'example' => 'true', 'required' => false],
+ 'filter' => [
+ 'title' => '',
+ 'description' => 'The structured filter conditions. The key is the field name, and the value is the expected matching value.',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => ['title' => '', 'description' => 'The value of the filter condition. The type depends on the field.', 'type' => 'any', 'example' => 'alice'],
+ 'example' => '{"userId":"alice"}',
+ ],
+ 'limit' => ['title' => '', 'description' => 'The maximum number of returned results (similarity Top-N).', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'required' => false],
+ 'threshold' => ['title' => '', 'description' => 'The similarity threshold. Results with a similarity score lower than this value are filtered out. Valid values: 0 to 1.', 'type' => 'number', 'format' => 'double', 'example' => '0.5', 'required' => false],
+ 'retrievalOption' => ['title' => '', 'description' => 'The retrieval options that control the retrieval strategy.', 'type' => 'string', 'example' => 'semantic', 'required' => false],
+ ],
+ 'required' => false,
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID. You can use this ID to locate and troubleshoot issues.', 'type' => 'string', 'example' => '9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M'],
+ 'results' => [
+ 'title' => '',
+ 'description' => 'The list of retrieval results, sorted by similarity in descending order.',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '',
+ 'description' => 'A single retrieval result. The structure is aligned with the storage fields of the context store.',
+ 'type' => 'object',
+ 'additionalProperties' => ['title' => '', 'description' => 'The value of each field in the search results. The type varies depending on the field.', 'type' => 'any', 'example' => '用户偏好:简洁回答'],
+ 'example' => '',
+ ],
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentloop:SearchContext',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'ContextStore', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/contextstore/{#ContextStoreName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M\\",\\n \\"results\\": [\\n {\\n \\"key\\": \\"用户偏好:简洁回答\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '',
+ ],
+ 'TerminatePipeline' => [
+ 'path' => '/agentspace/{agentSpace}/pipeline/{pipelineName}/terminate',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'type' => 'string', 'example' => 'my-agent-space', 'description' => ''],
+ ],
+ [
+ 'name' => 'pipelineName',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'type' => 'string', 'example' => 'my-pipeline', 'description' => ''],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'reason' => ['title' => '', 'type' => 'string', 'example' => 'project deprecated', 'description' => ''],
+ ],
+ 'description' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'type' => 'string', 'example' => '9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M', 'description' => ''],
+ 'pipelineName' => ['title' => '', 'type' => 'string', 'example' => 'my-pipeline', 'description' => ''],
+ 'agentSpaceName' => ['title' => '', 'type' => 'string', 'example' => 'my-agent-space', 'description' => ''],
+ 'scheduleStatus' => ['title' => '', 'type' => 'string', 'example' => 'Terminated', 'description' => ''],
+ 'terminateTime' => ['title' => '', 'type' => 'string', 'format' => 'iso8601_normal', 'example' => '2026-01-01T00:00:00.000Z', 'description' => ''],
+ 'terminatedReason' => ['title' => '', 'type' => 'string', 'example' => 'project deprecated', 'description' => ''],
+ ],
+ 'description' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'summary' => 'Stops a pipeline.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'agentloop:TerminatePipeline',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M\\",\\n \\"pipelineName\\": \\"my-pipeline\\",\\n \\"agentSpaceName\\": \\"my-agent-space\\",\\n \\"scheduleStatus\\": \\"Terminated\\",\\n \\"terminateTime\\": \\"2026-01-01T00:00:00.000Z\\",\\n \\"terminatedReason\\": \\"project deprecated\\"\\n}","type":"json"}]',
+ 'title' => '',
+ ],
+ 'UpdateAgentSpace' => [
+ 'summary' => 'Updates an AgentSpace.',
+ 'path' => '/agentspace/{agentSpace}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The name of the AgentSpace.', 'type' => 'string', 'required' => true, 'maxLength' => 64, 'minLength' => 2, 'example' => 'test-agent-space', 'title' => ''],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.',
+ 'type' => 'object',
+ 'properties' => [
+ 'description' => ['description' => 'The description.', 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''],
+ 'cmsWorkspace' => ['description' => 'The CloudMonitor 2.0 workspace.', 'type' => 'string', 'required' => false, 'example' => 'my-workspace', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ [
+ 'name' => 'clientToken',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The idempotency token. A unique string generated by the client to ensure the idempotence of the update operation.', 'type' => 'string', 'example' => 'a1b2c3d4-1234-5678-90ab-cdef12345678', 'required' => false],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'The response data.',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'AA689779-61AB-5077-BD91-9F7EA1205D68'],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Update an agentSpace',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentloop:UpdateAgentSpace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'AgentSpace', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"AA689779-61AB-5077-BD91-9F7EA1205D68\\"\\n}","type":"json"}]',
+ ],
+ 'UpdateContextStore' => [
+ 'summary' => 'Modifies the configuration of a context store.',
+ 'path' => '/agentspace/{agentSpace}/contextstore/{contextStoreName}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The AgentSpace name. The name must be 2 to 64 characters in length.', 'type' => 'string', 'required' => true, 'example' => 'my-agent-space', 'maxLength' => 64, 'minLength' => 2],
+ ],
+ [
+ 'name' => 'contextStoreName',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the context store to update. The name must be 2 to 64 characters in length.', 'type' => 'string', 'required' => true, 'example' => 'my-context-store', 'maxLength' => 64, 'minLength' => 2],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'The request body.',
+ 'type' => 'object',
+ 'properties' => [
+ 'description' => ['title' => '', 'description' => 'The description of the context store, which helps the business team understand its purpose.', 'type' => 'string', 'example' => '我的上下文库', 'required' => false],
+ 'config' => [
+ 'title' => '',
+ 'description' => 'The context store configuration. If specified, the entire configuration is overwritten. If not specified, the existing configuration is retained.',
+ 'type' => 'object',
+ 'properties' => [
+ 'metadataField' => [
+ 'title' => '',
+ 'description' => 'The metadata field mapping. The key is the business field and the value is the storage field.',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'example' => '{"userId":"user_id","sessionId":"session_id"}',
+ ],
+ 'source' => [
+ 'title' => '',
+ 'description' => 'The datasource config, which serves only as the root identifier of the data source.',
+ 'type' => 'object',
+ 'properties' => [
+ 'startTime' => ['title' => '', 'description' => 'The start time for data backfill, in ISO 8601 UTC format.', 'type' => 'string', 'example' => '2026-01-01T00:00:00Z', 'required' => false],
+ 'agentSpace' => ['title' => '', 'description' => 'The AgentSpace where the trace data source resides. Cross-AgentSpace access is not supported. If specified, this value must be the same as the path AgentSpace. Otherwise, a 400 parameter error is returned. The AgentSpace cannot be changed after creation.', 'type' => 'string', 'example' => 'my-agent-space', 'required' => false],
+ ],
+ 'required' => false,
+ 'example' => '',
+ ],
+ ],
+ 'required' => false,
+ 'example' => '',
+ ],
+ 'contextType' => ['title' => '', 'description' => 'The type of the context store. This value typically cannot be changed after creation. This field is provided only for exception correction.', 'type' => 'string', 'example' => 'experience', 'required' => false],
+ ],
+ 'required' => false,
+ 'example' => '',
+ ],
+ ],
+ [
+ 'name' => 'clientToken',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The idempotency token, which is a unique string generated by the client to ensure that the update operation is idempotent.', 'type' => 'string', 'example' => 'a1b2c3d4-1234-5678-90ab-cdef12345678', 'required' => false],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'The response data.',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID, which is used to locate the request during troubleshooting.', 'type' => 'string', 'example' => '9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M'],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentloop:UpdateContextStore',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'ContextStore', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/contextstore/{#ContextStoreName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M\\"\\n}","type":"json"}]',
+ 'title' => '',
+ ],
+ 'UpdateDataset' => [
+ 'summary' => 'Updates a dataset.',
+ 'path' => '/agentspace/{agentSpace}/dataset/{datasetName}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The name of the agent space.', 'type' => 'string', 'required' => true, 'maxLength' => 64, 'minLength' => 2, 'example' => 'sop-agent', 'title' => ''],
+ ],
+ [
+ 'name' => 'datasetName',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The name of the dataset.', 'type' => 'string', 'required' => true, 'maxLength' => 64, 'minLength' => 2, 'example' => 'product_faq_dataset', 'title' => ''],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request parameters.',
+ 'type' => 'object',
+ 'properties' => [
+ 'description' => ['description' => 'The description of the dataset.', 'type' => 'string', 'required' => false, 'example' => 'backend by serverless devs', 'title' => ''],
+ 'schema' => [
+ 'description' => 'The table schema of the dataset.',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => ['description' => 'The table schema of the dataset.', '$ref' => '#/components/schemas/IndexKey', 'title' => '', 'example' => ''],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "description": "Backend knowledge base maintained by serverless developers",'."\n"
+ .' "schema": {'."\n"
+ .' "title": {'."\n"
+ .' "type": "string",'."\n"
+ .' "chn": false,'."\n"
+ .' "embedding": "false"'."\n"
+ .' },'."\n"
+ .' "summary": {'."\n"
+ .' "type": "string",'."\n"
+ .' "chn": false,'."\n"
+ .' "embedding": "false"'."\n"
+ .' },'."\n"
+ .' "content": {'."\n"
+ .' "type": "string",'."\n"
+ .' "chn": false,'."\n"
+ .' "embedding": "true"'."\n"
+ .' },'."\n"
+ .' "category": {'."\n"
+ .' "type": "string",'."\n"
+ .' "chn": false,'."\n"
+ .' "embedding": "false"'."\n"
+ .' },'."\n"
+ .' "metadata": {'."\n"
+ .' "type": "json",'."\n"
+ .' "chn": false,'."\n"
+ .' "embedding": "false",'."\n"
+ .' "jsonKeys": {'."\n"
+ .' "owner": {'."\n"
+ .' "type": "string",'."\n"
+ .' "chn": false'."\n"
+ .' },'."\n"
+ .' "service": {'."\n"
+ .' "type": "string",'."\n"
+ .' "chn": false'."\n"
+ .' },'."\n"
+ .' "lastReviewedAt": {'."\n"
+ .' "type": "string",'."\n"
+ .' "chn": false'."\n"
+ .' }'."\n"
+ .' }'."\n"
+ .' }'."\n"
+ .' }'."\n"
+ .'}',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'clientToken',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The idempotency token. A unique string generated by the client to ensure that the update operation is idempotent.', 'type' => 'string', 'example' => 'a1b2c3d4-1234-5678-90ab-cdef12345678', 'required' => false],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'BC5B6F62-6FA2-57FC-8285-99753BD34B6D'],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Update a dataset',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentloop:UpdateDataset',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Dataset', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/dataset/{#DatasetName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"BC5B6F62-6FA2-57FC-8285-99753BD34B6D\\"\\n}","type":"json"}]',
+ ],
+ 'UpdateEvaluationRun' => [
+ 'path' => '/api/v1/evaluation-task/{agentSpace}/{taskId}/run/{runId}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The AgentSpace name.', 'type' => 'string', 'required' => false, 'example' => 'prod-agentspace', 'title' => ''],
+ ],
+ [
+ 'name' => 'taskId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The evaluation task ID.', 'type' => 'string', 'required' => false, 'example' => 'eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25', 'title' => ''],
+ ],
+ [
+ 'name' => 'runId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The evaluation run ID.', 'type' => 'string', 'required' => false, 'example' => 'eval-run-4fd47f3d7e684e15b1d3d178c6a5b81a', 'title' => ''],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.',
+ 'type' => 'object',
+ 'properties' => [
+ 'status' => [
+ 'description' => 'The target status. Currently, only stop-related statuses are supported.',
+ 'enumValueTitles' => ['Stopped' => 'Stopped', 'Terminated' => 'Terminated'],
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Terminated',
+ 'title' => '',
+ ],
+ ],
+ 'required' => false,
+ 'example' => '{"status":"Terminated"}',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '3FE4CD1E-FF41-56BE-B590-7A021D9C1524'],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Update an evaluation run',
+ 'summary' => 'Updates an evaluation run.',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3FE4CD1E-FF41-56BE-B590-7A021D9C1524\\"\\n}","type":"json"}]',
+ ],
+ 'UpdateEvaluationTask' => [
+ 'path' => '/api/v1/evaluation-task/{agentSpace}/{taskId}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The AgentSpace name.', 'type' => 'string', 'required' => false, 'example' => 'prod-agentspace', 'title' => ''],
+ ],
+ [
+ 'name' => 'taskId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The evaluation task ID.', 'type' => 'string', 'required' => false, 'example' => 'eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25', 'title' => ''],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.',
+ 'type' => 'object',
+ 'properties' => [
+ 'dataFilter' => ['description' => 'The filter condition for evaluation data. A JSON object or JSON string is supported.', 'type' => 'string', 'required' => false, 'example' => '{"query":"serviceName=\'checkout-service\' AND status=\'OK\'","maxRecords":10,"samplingRate":50}', 'title' => ''],
+ 'evaluators' => [
+ 'description' => 'The new list of evaluator configurations. When specified, this list entirely replaces the existing evaluator list of the task, and the system re-validates evaluator uniqueness and variable mappings.',
+ 'type' => 'array',
+ 'items' => ['description' => 'A single evaluator configuration object.', '$ref' => '#/components/schemas/Evaluator', 'required' => false, 'title' => '', 'example' => ''],
+ 'required' => false,
+ 'example' => '[{"evaluatorRef":"Builtin.agent_task_completion","resultName":"agent_task_completion","resultType":"score","variableMapping":{"input":"trace.input","output":"trace.output","agent_trajectory":"trace.agent_trajectory"}}]',
+ 'title' => '',
+ ],
+ 'status' => [
+ 'description' => 'The task status. Currently the backend only allows users to explicitly set this to `Terminated`. Other statuses are managed by the system.',
+ 'enumValueTitles' => ['Terminated' => 'Terminated'],
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Terminated',
+ 'title' => '',
+ ],
+ 'tags' => [
+ 'description' => 'The key-value pairs of task tags. You do not need to specify this parameter by default. Specify this parameter only when you want to associate or filter tasks by business tags.',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => ['description' => 'The value of a single task tag. The key name is customized based on business dimensions.', 'type' => 'string', 'example' => 'prod', 'title' => ''],
+ 'example' => '{"env":"prod","serviceId":"checkout-service","planId":"plan-20260703"}',
+ 'title' => '',
+ ],
+ 'config' => [
+ 'description' => 'The new task configuration. Some fields that are set during creation cannot be modified.',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => ['description' => 'The value of a single configuration item. The key name is determined by the specific field conventions.', 'type' => 'string', 'example' => 'trace', 'title' => ''],
+ 'example' => '{"dataScope":"trace"}',
+ 'title' => '',
+ ],
+ 'runStrategies' => ['description' => 'The new task execution strategies. A JSON object or JSON string is supported. If the task is in `Completed`, `Terminated`, or `Failed` status and the new strategy enables backfill or continuous mode, the backend resets the task to `Pending` and triggers orchestration.', '$ref' => '#/components/schemas/RunStrategies', 'required' => false, 'title' => '', 'example' => ''],
+ 'description' => ['description' => 'The description of the evaluation task.', 'type' => 'string', 'required' => false, 'example' => '更新后的链路 Trace 任务完成度评估', 'title' => ''],
+ ],
+ 'required' => false,
+ 'example' => '{"dataFilter":{"query":"serviceName=\'checkout-service\' AND status=\'OK\'","maxRecords":10},"runStrategies":{"continuous":{"enabled":true,"intervalUnit":"HOUR","intervalValue":1,"dataDelayMinutes":5}}}',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'clientToken',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The idempotency token. CloudSpec declares this query parameter, but the backend does not currently perform idempotency comparison.', 'type' => 'string', 'example' => 'a1b2c3d4-1234-5678-90ab-cdef12345678', 'required' => false],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '3FE4CD1E-FF41-56BE-B590-7A021D9C1524'],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Update an evaluation task',
+ 'summary' => 'Updates an evaluation task.',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3FE4CD1E-FF41-56BE-B590-7A021D9C1524\\"\\n}","type":"json"}]',
+ ],
+ 'UpdateEvaluator' => [
+ 'summary' => 'Updates an evaluator.',
+ 'path' => '/api/v1/evaluators/{agentSpace}/{name}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The AgentSpace name.', 'type' => 'string', 'required' => true, 'example' => 'prod-agentspace', 'title' => ''],
+ ],
+ [
+ 'name' => 'name',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The evaluator name.', 'type' => 'string', 'required' => true, 'example' => 'trace_task_completion', 'title' => ''],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body. If `version` is not specified, the evaluator attributes are updated. If `version` is specified, a new evaluator version is created.',
+ 'type' => 'object',
+ 'properties' => [
+ 'displayName' => ['description' => 'The display name.', 'type' => 'string', 'required' => false, 'example' => '链路任务完成度', 'title' => ''],
+ 'description' => ['description' => 'The evaluator description.', 'type' => 'string', 'required' => false, 'example' => '判断 Agent 是否完成用户任务', 'title' => ''],
+ 'version' => ['description' => 'The new version number. If specified, a new version is created.', 'type' => 'string', 'required' => false, 'example' => '1.1.0', 'title' => ''],
+ 'versionDescription' => ['description' => 'The version description.', 'type' => 'string', 'required' => false, 'example' => '优化评分说明', 'title' => ''],
+ 'config' => ['description' => 'The new version configuration. This parameter is typically required when `version` is specified.', 'type' => 'object', 'required' => false, 'example' => '{"prompt":"请更严格地评估任务完成度"}', 'title' => ''],
+ 'annotations' => [
+ 'description' => 'The list of annotation marks.',
+ 'type' => 'array',
+ 'items' => ['description' => 'A single annotation mark.', 'type' => 'string', 'required' => false, 'example' => '__en', 'title' => ''],
+ 'required' => false,
+ 'example' => '["__en"]',
+ 'title' => '',
+ ],
+ 'properties' => ['description' => 'The evaluator properties.', 'type' => 'object', 'required' => false, 'example' => '{"agentEvaluatorMode":"raw_prompt"}', 'title' => ''],
+ ],
+ 'required' => false,
+ 'example' => '{"displayName":"链路任务完成度","version":"1.1.0","config":{"prompt":"请更严格地评估任务完成度"}}',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'clientToken',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The idempotency token. CloudSpec declares this query parameter, but the backend does not currently perform idempotency comparison.', 'type' => 'string', 'example' => 'a1b2c3d4-1234-5678-90ab-cdef12345678', 'required' => false],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FE4CD1E-FF41-56BE-B590-7A021D9C1524', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Update an evaluator',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3FE4CD1E-FF41-56BE-B590-7A021D9C1524\\"\\n}","type":"json"}]',
+ ],
+ 'UpdateEvaluatorSkill' => [
+ 'summary' => 'Updates an evaluator skill.',
+ 'path' => '/api/v1/evaluator/{name}/skill/{skillName}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'],
+ 'parameters' => [
+ [
+ 'name' => 'name',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The evaluator name.', 'type' => 'string', 'required' => true, 'example' => 'trace_task_completion', 'title' => ''],
+ ],
+ [
+ 'name' => 'skillName',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The skill name.', 'type' => 'string', 'required' => true, 'example' => 'trace_context_loader', 'title' => ''],
+ ],
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The AgentSpace name.', 'type' => 'string', 'required' => true, 'example' => 'prod-agentspace', 'title' => ''],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.',
+ 'type' => 'object',
+ 'properties' => [
+ 'displayName' => ['description' => 'The display name of the skill.', 'type' => 'string', 'required' => false, 'example' => 'Trace 上下文读取', 'title' => ''],
+ 'description' => ['description' => 'The description of the skill.', 'type' => 'string', 'required' => false, 'example' => '读取链路上下文辅助评估', 'title' => ''],
+ 'enable' => [
+ 'description' => 'Specifies whether to enable the skill.',
+ 'enumValueTitles' => ['true' => 'true', 'false' => 'false'],
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ 'title' => '',
+ ],
+ 'files' => [
+ 'description' => 'The list of skill files. When provided, the skill file content is updated.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'A single skill file object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['description' => 'The skill file name.', 'type' => 'string', 'required' => true, 'example' => 'SKILL.md', 'title' => ''],
+ 'content' => ['description' => 'The skill file content.', 'type' => 'string', 'required' => true, 'example' => '# Trace Context Loader', 'title' => ''],
+ 'remark' => ['description' => 'The file remark.', 'type' => 'string', 'required' => false, 'example' => '主技能说明', 'title' => ''],
+ ],
+ 'required' => false,
+ 'example' => '{"name":"SKILL.md"}',
+ 'title' => '',
+ ],
+ 'required' => false,
+ 'example' => '[{"name":"SKILL.md","content":"# Trace Context Loader","remark":"主技能说明"}]',
+ 'title' => '',
+ ],
+ ],
+ 'required' => false,
+ 'example' => '{"displayName":"Trace 上下文读取","enable":true,"files":[{"name":"SKILL.md","content":"# Trace Context Loader"}]}',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'clientToken',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The idempotency token. CloudSpec declares this query parameter, but the backend does not currently perform idempotency comparison.', 'type' => 'string', 'example' => 'a1b2c3d4-1234-5678-90ab-cdef12345678', 'required' => false],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FE4CD1E-FF41-56BE-B590-7A021D9C1524', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Update evaluator skill',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3FE4CD1E-FF41-56BE-B590-7A021D9C1524\\"\\n}","type":"json"}]',
+ ],
+ 'UpdatePipeline' => [
+ 'summary' => 'Updates a pipeline.',
+ 'path' => '/agentspace/{agentSpace}/pipeline/{pipelineName}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
+ 'parameters' => [
+ [
+ 'name' => 'agentSpace',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'type' => 'string', 'example' => 'my-agent-space', 'description' => ''],
+ ],
+ [
+ 'name' => 'pipelineName',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the pipeline to update.', 'type' => 'string', 'example' => 'my-pipeline'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'description' => ['title' => '', 'description' => 'The description of the pipeline, which helps users understand its purpose.', 'type' => 'string', 'example' => '我的流水线'],
+ 'source' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'type' => ['title' => '', 'description' => 'The data source type, such as SLS.', 'type' => 'string', 'example' => 'SLS'],
+ 'logstore' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'logstore' => ['title' => '', 'description' => 'The name of the SLS Logstore.', 'type' => 'string', 'example' => 'my-sls-logstore'],
+ 'query' => ['title' => '', 'description' => 'The data filtered query statement in SLS query/analysis syntax.', 'type' => 'string', 'example' => '* | SELECT *'],
+ ],
+ 'title' => '',
+ 'description' => 'The SLS Logstore datasource config.',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'description' => 'The pipeline data source. If specified, the existing source configuration is entirely overwritten.',
+ 'example' => '',
+ ],
+ 'pipeline' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'nodes' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'id' => ['title' => '', 'description' => 'The node ID.', 'type' => 'string', 'example' => 'node-1'],
+ 'type' => ['title' => '', 'description' => 'The node type.', 'type' => 'string', 'example' => 'transform'],
+ 'parameters' => [
+ 'type' => 'object',
+ 'additionalProperties' => ['title' => '', 'description' => 'The node parameter value.', 'type' => 'any', 'example' => 'value'],
+ 'title' => '',
+ 'description' => 'The node parameters in key-value format. The parameters vary by node type.',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'description' => 'The configuration of a single node.',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'description' => 'The list of nodes.',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'description' => 'The pipeline configuration (node orchestration). If specified, the existing pipeline configuration is entirely overwritten.',
+ 'example' => '',
+ ],
+ 'sink' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'type' => ['title' => '', 'description' => 'The sink type, such as Dataset.', 'type' => 'string', 'example' => 'Dataset'],
+ 'dataset' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'agentSpace' => ['title' => '', 'type' => 'string', 'example' => 'my-agent-space', 'description' => ''],
+ 'dataset' => ['title' => '', 'description' => 'The name of the destination dataset.', 'type' => 'string', 'example' => 'my-dataset'],
+ ],
+ 'title' => '',
+ 'description' => 'The destination dataset configuration.',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'description' => 'The pipeline sink (data write destination). If specified, the existing sink configuration is entirely overwritten.',
+ 'example' => '',
+ ],
+ 'executePolicy' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'mode' => ['title' => '', 'description' => 'The scheduling mode, such as Scheduled (timed scheduling) or RunOnce (one-time execution).', 'type' => 'string', 'example' => 'Scheduled'],
+ 'runOnce' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'fromTime' => ['title' => '', 'description' => 'The data processing start time, in UNIX millisecond timestamp.', 'type' => 'integer', 'format' => 'int64', 'example' => '1735660800000'],
+ 'toTime' => ['title' => '', 'description' => 'The data processing end time, in UNIX millisecond timestamp.', 'type' => 'integer', 'format' => 'int64', 'example' => '1735747200000'],
+ ],
+ 'title' => '',
+ 'description' => 'The configuration for one-time execution.',
+ 'example' => '',
+ ],
+ 'scheduled' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'interval' => ['title' => '', 'description' => 'The scheduling interval, such as 1h.', 'type' => 'string', 'example' => '1h'],
+ 'fromTime' => ['title' => '', 'description' => 'The scheduling start time, in UNIX millisecond timestamp.', 'type' => 'integer', 'format' => 'int64', 'example' => '1735660800000'],
+ ],
+ 'title' => '',
+ 'description' => 'The timed scheduling configuration.',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'description' => 'The execution policy. If specified, the existing execution policy is entirely overwritten.',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'description' => 'The request body.',
+ 'example' => '',
+ ],
+ ],
+ [
+ 'name' => 'clientToken',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'type' => 'string', 'example' => 'a1b2c3d4-1234-5678-90ab-cdef12345678', 'description' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => ['title' => '', 'description' => 'The request ID, which is used to locate and troubleshoot issues.', 'type' => 'string', 'example' => '9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M'],
+ ],
+ 'description' => 'The response data.',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Update a pipeline',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'agentloop:UpdatePipeline',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M\\"\\n}","type":"json"}]',
+ ],
+ ],
+ 'endpoints' => [
+ ['regionId' => 'cn-shenzhen', 'regionName' => 'China (Shenzhen)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'agentloop.cn-shenzhen.aliyuncs.com', 'endpoint' => 'agentloop.cn-shenzhen.aliyuncs.com', 'vpc' => 'agentloop-vpc.cn-shenzhen.aliyuncs.com'],
+ ['regionId' => 'cn-beijing', 'regionName' => 'China (Beijing)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'agentloop.cn-beijing.aliyuncs.com', 'endpoint' => 'agentloop.cn-beijing.aliyuncs.com', 'vpc' => 'agentloop-vpc.cn-beijing.aliyuncs.com'],
+ ['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'agentloop.cn-shanghai.aliyuncs.com', 'endpoint' => 'agentloop.cn-shanghai.aliyuncs.com', 'vpc' => 'agentloop-vpc.cn-shanghai.aliyuncs.com'],
+ ['regionId' => 'cn-guangzhou', 'regionName' => 'China (Guangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'agentloop.cn-guangzhou.aliyuncs.com', 'endpoint' => 'agentloop.cn-guangzhou.aliyuncs.com', 'vpc' => 'agentloop-vpc.cn-guangzhou.aliyuncs.com'],
+ ['regionId' => 'cn-hongkong', 'regionName' => 'China (Hong Kong)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'agentloop.cn-hongkong.aliyuncs.com', 'endpoint' => 'agentloop.cn-hongkong.aliyuncs.com', 'vpc' => 'agentloop-vpc.cn-hongkong.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'agentloop.ap-southeast-1.aliyuncs.com', 'endpoint' => 'agentloop.ap-southeast-1.aliyuncs.com', 'vpc' => 'agentloop-vpc.ap-southeast-1.aliyuncs.com'],
+ ['regionId' => 'cn-zhangjiakou', 'regionName' => 'China (Zhangjiakou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'agentloop.cn-zhangjiakou.aliyuncs.com', 'endpoint' => 'agentloop.cn-zhangjiakou.aliyuncs.com', 'vpc' => 'agentloop-vpc.cn-zhangjiakou.aliyuncs.com'],
+ ['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'agentloop.cn-hangzhou.aliyuncs.com', 'endpoint' => 'agentloop.cn-hangzhou.aliyuncs.com', 'vpc' => 'agentloop-vpc.cn-hangzhou.aliyuncs.com'],
+ ['regionId' => 'cn-chengdu', 'regionName' => 'China (Chengdu)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'agentloop.cn-chengdu.aliyuncs.com', 'endpoint' => 'agentloop.cn-chengdu.aliyuncs.com', 'vpc' => 'agentloop-vpc.cn-chengdu.aliyuncs.com'],
+ ],
+ 'errorCodes' => [],
+ 'changeSet' => [],
+ 'ram' => [
+ 'productCode' => 'AgentLoop',
+ 'productName' => 'AgentLoop',
+ 'ramCodes' => ['agentloop'],
+ 'ramLevel' => 'RESOURCE',
+ 'ramConditions' => [],
+ 'ramActions' => [
+ [
+ 'apiName' => 'ExecuteQuery',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentloop:ExecuteQuery',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Dataset', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/dataset/{#DatasetName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateEvaluatorSkill',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentloop:CreateEvaluatorSkill',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Evaluator', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluator/{#EvaluatorName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateEvaluationTask',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentloop:CreateEvaluationTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Workspace', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteEvaluationTask',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentloop:DeleteEvaluationTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'EvaluationTask', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluationtask/{#TaskId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteEvaluatorSkill',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentloop:DeleteEvaluatorSkill',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'EvaluatorSkill', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluator/{#EvaluatorName}/skill/{#SkillName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateEvaluator',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentloop:CreateEvaluator',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Workspace', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateDataset',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentloop:CreateDataset',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Dataset', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/dataset/{#DatasetName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdatePipeline',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'agentloop:UpdatePipeline',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListContextStoreAPIKeys',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentloop:ListContextStoreAPIKeys',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'ContextStoreAPIKey', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/contextstore/{#ContextStoreName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetEvaluatorSkill',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentloop:GetEvaluatorSkill',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'EvaluatorSkill', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluator/{#EvaluatorName}/skill/{#SkillName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateContextStore',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentloop:UpdateContextStore',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'ContextStore', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/contextstore/{#ContextStoreName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetAgentSpace',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentloop:GetAgentSpace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'AgentSpace', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListDatasets',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentloop:ListDatasets',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Dataset', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/dataset/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateContextStoreAPIKey',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentloop:CreateContextStoreAPIKey',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'ContextStoreAPIKey', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/contextstore/{#ContextStoreName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListEvaluationTasks',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentloop:ListEvaluationTasks',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'EvaluationTask', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluationtask/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'PausePipeline',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'agentloop:PausePipeline',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateDataset',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentloop:UpdateDataset',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Dataset', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/dataset/{#DatasetName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetContextStore',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentloop:GetContextStore',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'ContextStore', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/contextstore/{#ContextStoreName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteAgentSpace',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentloop:DeleteAgentSpace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'AgentSpace', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListAgentSpaces',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentloop:ListAgentSpaces',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'AgentSpace', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CancelPipelineRun',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'agentloop:CancelPipelineRun',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetPipeline',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'agentloop:GetPipeline',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetContextStoreAPIKey',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentloop:GetContextStoreAPIKey',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'ContextStoreAPIKey', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/contextstore/{#ContextStoreName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteContextStoreAPIKey',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentloop:DeleteContextStoreAPIKey',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'ContextStoreAPIKey', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/contextstore/{#ContextStoreName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ResumePipeline',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'agentloop:ResumePipeline',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'TerminatePipeline',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'agentloop:TerminatePipeline',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateEvaluationRun',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentloop:UpdateEvaluationRun',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'EvaluationTask', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluationtask/{#TaskId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListEvaluators',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentloop:ListEvaluators',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Evaluator', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluator/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetEvaluationRun',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentloop:GetEvaluationRun',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'EvaluationTask', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluationtask/{#TaskId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListContextStores',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentloop:ListContextStores',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'ContextStore', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/contextstore/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListEvaluatorSkills',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentloop:ListEvaluatorSkills',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'EvaluatorSkill', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluator/{#EvaluatorName}/skill/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetDataset',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentloop:GetDataset',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Dataset', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/dataset/{#DatasetName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteDataset',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentloop:DeleteDataset',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Dataset', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/dataset/{#DatasetName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetPipelineStats',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'agentloop:GetPipelineStats',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'AddDatasetData',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'agentloop:AddDatasetData',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Dataset', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpace}/dataset/{#DatasetName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteContextStore',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentloop:DeleteContextStore',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'ContextStore', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/contextstore/{#ContextStoreName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateEvaluator',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentloop:UpdateEvaluator',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Evaluator', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluator/{#EvaluatorName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetEvaluator',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentloop:GetEvaluator',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Evaluator', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluator/{#EvaluatorName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetPipelineRun',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'agentloop:GetPipelineRun',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateEvaluatorSkill',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentloop:UpdateEvaluatorSkill',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'EvaluatorSkill', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluator/{#EvaluatorName}/skill/{#SkillName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListPipelineRuns',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentloop:ListPipelineRuns',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'SearchContext',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentloop:SearchContext',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'ContextStore', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/contextstore/{#ContextStoreName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteEvaluationRun',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentloop:DeleteEvaluationRun',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'EvaluationTask', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluationtask/{#TaskId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetEvaluationTask',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'agentloop:GetEvaluationTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'EvaluationTask', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluationtask/{#TaskId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateContextStore',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentloop:CreateContextStore',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'ContextStore', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/contextstore/{#ContextStoreName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeletePipeline',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentloop:DeletePipeline',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateEvaluationTask',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentloop:UpdateEvaluationTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'EvaluationTask', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluationtask/{#TaskId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateAgentSpace',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'agentloop:CreateAgentSpace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'AgentSpace', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListPipelines',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentloop:ListPipelines',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateAgentSpace',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'agentloop:UpdateAgentSpace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'AgentSpace', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteEvaluator',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'agentloop:DeleteEvaluator',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Evaluator', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluator/{#EvaluatorName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'RunPipeline',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'agentloop:RunPipeline',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListEvaluationRuns',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'agentloop:ListEvaluationRuns',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'AgentLoop', 'resourceType' => 'EvaluationTask', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluationtask/{#TaskId}'],
+ ],
+ ],
+ ],
+ ],
+ 'resourceTypes' => [
+ ['validationType' => 'always', 'resourceType' => 'Dataset', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/dataset/{#DatasetName}'],
+ ['validationType' => 'always', 'resourceType' => 'Evaluator', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluator/{#EvaluatorName}'],
+ ['validationType' => 'always', 'resourceType' => 'Workspace', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}'],
+ ['validationType' => 'always', 'resourceType' => 'EvaluationTask', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluationtask/{#TaskId}'],
+ ['validationType' => 'always', 'resourceType' => 'EvaluatorSkill', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluator/{#EvaluatorName}/skill/{#SkillName}'],
+ ['validationType' => 'always', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}'],
+ ['validationType' => 'always', 'resourceType' => 'ContextStoreAPIKey', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/contextstore/{#ContextStoreName}'],
+ ['validationType' => 'always', 'resourceType' => 'ContextStore', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/contextstore/{#ContextStoreName}'],
+ ['validationType' => 'always', 'resourceType' => 'AgentSpace', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}'],
+ ['validationType' => 'always', 'resourceType' => 'Dataset', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/dataset/*'],
+ ['validationType' => 'always', 'resourceType' => 'EvaluationTask', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluationtask/*'],
+ ['validationType' => 'always', 'resourceType' => 'AgentSpace', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/*'],
+ ['validationType' => 'always', 'resourceType' => 'Evaluator', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluator/*'],
+ ['validationType' => 'always', 'resourceType' => 'ContextStore', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/contextstore/*'],
+ ['validationType' => 'always', 'resourceType' => 'EvaluatorSkill', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluator/{#EvaluatorName}/skill/*'],
+ ['validationType' => 'always', 'resourceType' => 'Dataset', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpace}/dataset/{#DatasetName}'],
+ ['validationType' => 'always', 'resourceType' => 'Pipeline', 'arn' => 'acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/*'],
+ ],
+ ],
+];