{ "components": { "schemas": { "AcceptTurnRequest": { "additionalProperties": false, "properties": { "content": { "maxLength": 100000, "minLength": 1, "title": "内容", "type": "string" }, "idempotency_key": { "maxLength": 200, "minLength": 1, "title": "幂等性 键", "type": "string" }, "retry_count": { "default": 0, "maximum": 5.0, "minimum": 0.0, "title": "重试次数", "type": "integer" }, "timeout_seconds": { "default": 180.0, "maximum": 600.0, "minimum": 5.0, "title": "超时秒数", "type": "number" } }, "required": [ "content", "idempotency_key" ], "title": "接受 轮次 请求", "type": "object" }, "AgentDefinitionListResponse": { "properties": { "items": { "items": { "$ref": "#/components/schemas/AgentDefinitionResponse" }, "title": "条目", "type": "array" }, "total": { "title": "总数", "type": "integer" } }, "required": [ "total", "items" ], "title": "智能体 定义 列表 响应", "type": "object" }, "AgentDefinitionResponse": { "properties": { "agent_definition_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "智能体 定义 ID" }, "archived_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "归档时间" }, "created_at": { "format": "date-time", "title": "创建时间", "type": "string" }, "definition_key": { "title": "定义 键", "type": "string" }, "deployments": { "items": { "$ref": "#/components/schemas/DeploymentSnapshotResponse" }, "title": "部署列表", "type": "array" }, "id": { "title": "ID", "type": "string" }, "memory_policy_version": { "title": "记忆 策略 版本", "type": "string" }, "name": { "title": "名称", "type": "string" }, "persona_key": { "title": "Persona 键", "type": "string" }, "persona_sha256": { "title": "Persona SHA 256", "type": "string" }, "prompt_key": { "title": "提示词键", "type": "string" }, "prompt_sha256": { "title": "提示词 SHA 256", "type": "string" }, "qualification_state": { "$ref": "#/components/schemas/QualificationState" }, "tool_names": { "items": { "type": "string" }, "title": "工具 名称", "type": "array" }, "version": { "title": "版本", "type": "integer" } }, "required": [ "id", "definition_key", "version", "name", "prompt_key", "prompt_sha256", "persona_key", "persona_sha256", "tool_names", "memory_policy_version", "qualification_state", "deployments", "created_at" ], "title": "智能体 定义 响应", "type": "object" }, "AgentRuntimeAcceptanceDefaultsResponse": { "properties": { "conversation_model_key": { "title": "会话 模型 键", "type": "string" }, "embedding_model_key": { "title": "向量模型 模型 键", "type": "string" }, "include_llama_compatibility": { "title": "包含 llama 兼容性", "type": "boolean" }, "persona_key": { "title": "Persona 键", "type": "string" }, "prompt_key": { "title": "提示词键", "type": "string" }, "retry_count": { "title": "重试次数", "type": "integer" }, "reviewer_model_key": { "title": "评审器 模型 键", "type": "string" }, "rounds": { "title": "轮数", "type": "integer" }, "timeout_seconds": { "title": "超时秒数", "type": "number" } }, "required": [ "conversation_model_key", "reviewer_model_key", "embedding_model_key", "prompt_key", "persona_key", "rounds", "timeout_seconds", "retry_count", "include_llama_compatibility" ], "title": "智能体 运行时 资格验收 默认值 响应", "type": "object" }, "AgentRuntimeAcceptanceOptionsResponse": { "properties": { "cases": { "items": { "$ref": "#/components/schemas/TestRunOptionResponse" }, "title": "案例", "type": "array" }, "defaults": { "$ref": "#/components/schemas/AgentRuntimeAcceptanceDefaultsResponse" } }, "required": [ "defaults", "cases" ], "title": "智能体 运行时 资格验收 选项 响应", "type": "object" }, "AgentRuntimeAcceptanceRunRequest": { "additionalProperties": false, "properties": { "case_keys": { "anyOf": [ { "items": { "type": "string" }, "minItems": 1, "type": "array" }, { "type": "null" } ], "title": "案例键" }, "conversation_model_key": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "会话 模型 键" }, "embedding_model_key": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "向量模型 模型 键" }, "include_llama_compatibility": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "包含 llama 兼容性" }, "persona_key": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Persona 键" }, "prompt_key": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "提示词键" }, "retry_count": { "anyOf": [ { "maximum": 5.0, "minimum": 0.0, "type": "integer" }, { "type": "null" } ], "title": "重试次数" }, "reviewer_model_key": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "评审器 模型 键" }, "rounds": { "anyOf": [ { "maximum": 3.0, "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "轮数" }, "run_type": { "const": "agent_runtime_acceptance", "title": "运行类型", "type": "string" }, "timeout_seconds": { "anyOf": [ { "maximum": 600.0, "minimum": 5.0, "type": "number" }, { "type": "null" } ], "title": "超时秒数" } }, "required": [ "run_type" ], "title": "智能体 运行时 资格验收 运行 请求", "type": "object" }, "AgentStudioBundleResponse": { "properties": { "compaction_model_key": { "title": "压缩 模型 键", "type": "string" }, "deployments": { "items": { "$ref": "#/components/schemas/DeploymentSnapshotResponse" }, "title": "部署列表", "type": "array" }, "key": { "title": "键", "type": "string" }, "memory_policy_version": { "title": "记忆 策略 版本", "type": "string" }, "model_key": { "title": "模型 键", "type": "string" }, "name": { "title": "名称", "type": "string" }, "persona_key": { "title": "Persona 键", "type": "string" }, "prompt_key": { "title": "提示词键", "type": "string" }, "qualification_state": { "$ref": "#/components/schemas/QualificationState" }, "tool_names": { "items": { "type": "string" }, "title": "工具 名称", "type": "array" } }, "required": [ "key", "name", "model_key", "compaction_model_key", "prompt_key", "persona_key", "tool_names", "memory_policy_version", "qualification_state", "deployments" ], "title": "智能体 工作台 套件 响应", "type": "object" }, "AgentStudioOptionsResponse": { "properties": { "bundles": { "items": { "$ref": "#/components/schemas/AgentStudioBundleResponse" }, "title": "套件", "type": "array" }, "default_bundle_key": { "title": "默认 套件 键", "type": "string" }, "default_retry_count": { "default": 0, "title": "默认 重试 计数", "type": "integer" }, "default_timeout_seconds": { "default": 180.0, "title": "默认 超时 秒", "type": "number" }, "max_retry_count": { "default": 5, "title": "最大 重试 计数", "type": "integer" }, "runtime": { "const": "ade_native", "default": "ade_native", "title": "运行时", "type": "string" } }, "required": [ "default_bundle_key", "bundles" ], "title": "智能体 工作台 选项 响应", "type": "object" }, "AgentStudioSessionListResponse": { "properties": { "items": { "items": { "$ref": "#/components/schemas/AgentStudioSessionResponse" }, "title": "条目", "type": "array" }, "total": { "title": "总数", "type": "integer" } }, "required": [ "total", "items" ], "title": "智能体 工作台 会话 列表 响应", "type": "object" }, "AgentStudioSessionResponse": { "properties": { "agent_definition": { "$ref": "#/components/schemas/AgentDefinitionResponse" }, "conversation": { "$ref": "#/components/schemas/ConversationResponse" }, "idempotent_replay": { "default": false, "title": "幂等重放", "type": "boolean" }, "latest_run": { "anyOf": [ { "$ref": "#/components/schemas/RunResponse" }, { "type": "null" } ] }, "memory_subject": { "$ref": "#/components/schemas/MemorySubjectResponse" }, "session_id": { "title": "会话 ID", "type": "string" } }, "required": [ "session_id", "agent_definition", "memory_subject", "conversation" ], "title": "智能体 工作台 会话 响应", "type": "object" }, "ApiAgentStudioRuntimeDefaultsResponse": { "properties": { "temperature": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Temperature" }, "top_k": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Top K" }, "top_p": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Top P" } }, "title": "API 智能体 工作台 运行时 默认值 响应", "type": "object" }, "ApiCommentingGenerateResponse": { "properties": { "cache_prompt": { "title": "缓存 提示词", "type": "boolean" }, "content": { "title": "内容", "type": "string" }, "content_source": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "内容 来源" }, "enable_thinking": { "default": false, "title": "启用 Thinking", "type": "boolean" }, "finish_reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "结束原因" }, "max_tokens": { "title": "最大 Token 数", "type": "integer" }, "model": { "title": "模型", "type": "string" }, "model_key": { "title": "模型 键", "type": "string" }, "persona_key": { "title": "Persona 键", "type": "string" }, "prompt_key": { "title": "提示词键", "type": "string" }, "provider": { "title": "供应商", "type": "string" }, "provider_model_id": { "title": "供应商 模型 ID", "type": "string" }, "raw_reply": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "原始 回复" }, "raw_request": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "原始 请求" }, "received_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "接收时间" }, "scenario": { "enum": [ "chat", "comment", "label" ], "title": "场景", "type": "string" }, "selected_attempt": { "title": "选中尝试", "type": "string" }, "source_id": { "title": "来源 ID", "type": "string" }, "source_label": { "title": "来源 标签", "type": "string" }, "task_shape": { "enum": [ "classic", "all_in_system", "structured_output" ], "title": "任务形态", "type": "string" }, "temperature": { "title": "Temperature", "type": "number" }, "timeout_seconds": { "title": "超时秒数", "type": "number" }, "top_k": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Top K" }, "top_p": { "title": "Top P", "type": "number" }, "usage": { "additionalProperties": true, "title": "用量", "type": "object" } }, "required": [ "scenario", "model_key", "source_id", "source_label", "provider_model_id", "prompt_key", "persona_key", "model", "content", "provider", "max_tokens", "timeout_seconds", "task_shape", "cache_prompt", "temperature", "top_p", "selected_attempt" ], "title": "API 评论 生成 响应", "type": "object" }, "ApiCommentingRuntimeDefaultsResponse": { "properties": { "cache_prompt": { "title": "缓存 提示词", "type": "boolean" }, "max_tokens": { "title": "最大 Token 数", "type": "integer" }, "task_shape": { "enum": [ "classic", "all_in_system", "structured_output" ], "title": "任务形态", "type": "string" }, "temperature": { "title": "Temperature", "type": "number" }, "timeout_seconds": { "title": "超时秒数", "type": "number" }, "top_k": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Top K" }, "top_p": { "title": "Top P", "type": "number" } }, "required": [ "max_tokens", "timeout_seconds", "task_shape", "cache_prompt", "temperature", "top_p" ], "title": "API 评论 运行时 默认值 响应", "type": "object" }, "ApiLabelSchemaListResponse": { "properties": { "include_archived": { "title": "包含已归档", "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/ApiLabelSchemaRecordResponse" }, "title": "条目", "type": "array" }, "total": { "title": "总数", "type": "integer" } }, "required": [ "total", "include_archived" ], "title": "API 标签 Schema 列表 响应", "type": "object" }, "ApiLabelSchemaRecordResponse": { "properties": { "archived": { "title": "已归档", "type": "boolean" }, "description": { "title": "描述", "type": "string" }, "key": { "title": "键", "type": "string" }, "label": { "title": "标签", "type": "string" }, "preview": { "title": "预览", "type": "string" }, "schema": { "additionalProperties": true, "title": "Schema", "type": "object" }, "source_path": { "title": "来源路径", "type": "string" }, "updated_at": { "title": "更新时间", "type": "string" } }, "required": [ "key", "label", "description", "schema", "preview", "archived", "source_path", "updated_at" ], "title": "API 标签 Schema 记录 响应", "type": "object" }, "ApiLabelingGenerateResponse": { "properties": { "finish_reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "结束原因" }, "model_key": { "title": "模型 键", "type": "string" }, "output_mode": { "enum": [ "strict_json_schema", "json_schema", "json_object", "best_effort_prompt_json" ], "title": "输出模式", "type": "string" }, "prompt_key": { "title": "提示词键", "type": "string" }, "provider_model_id": { "title": "供应商 模型 ID", "type": "string" }, "raw_reply": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "原始 回复" }, "raw_request": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "原始 请求" }, "received_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "接收时间" }, "result": { "additionalProperties": { "items": { "type": "string" }, "type": "array" }, "title": "结果", "type": "object" }, "scenario": { "enum": [ "chat", "comment", "label" ], "title": "场景", "type": "string" }, "schema_key": { "title": "Schema 键", "type": "string" }, "selected_attempt": { "enum": [ "primary", "repair" ], "title": "选中尝试", "type": "string" }, "source_id": { "title": "来源 ID", "type": "string" }, "source_label": { "title": "来源 标签", "type": "string" }, "temperature": { "title": "Temperature", "type": "number" }, "top_k": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Top K" }, "top_p": { "title": "Top P", "type": "number" }, "usage": { "additionalProperties": true, "title": "用量", "type": "object" }, "validation_errors": { "items": { "type": "string" }, "title": "校验 错误", "type": "array" } }, "required": [ "scenario", "model_key", "source_id", "source_label", "provider_model_id", "prompt_key", "schema_key", "output_mode", "selected_attempt", "temperature", "top_p" ], "title": "API 标注 生成 响应", "type": "object" }, "ApiLabelingRuntimeDefaultsResponse": { "properties": { "max_tokens": { "title": "最大 Token 数", "type": "integer" }, "repair_retry_count": { "title": "修复重试次数", "type": "integer" }, "temperature": { "title": "Temperature", "type": "number" }, "timeout_seconds": { "title": "超时秒数", "type": "number" }, "top_k": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Top K" }, "top_p": { "title": "Top P", "type": "number" } }, "required": [ "max_tokens", "timeout_seconds", "repair_retry_count", "temperature", "top_p" ], "title": "API 标注 运行时 默认值 响应", "type": "object" }, "ApiOptionEntryResponse": { "properties": { "agent_studio_candidate": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "智能体 工作台 候选" }, "agent_studio_compatible": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "智能体 工作台 兼容" }, "available": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "可用" }, "deployment": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "部署" }, "description": { "title": "描述", "type": "string" }, "identity_sha256": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "身份 SHA 256" }, "is_default": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "是否 默认" }, "key": { "title": "键", "type": "string" }, "label": { "title": "标签", "type": "string" }, "label_lab_available": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "标签 实验室 可用" }, "profile_applied": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "已应用 Profile" }, "profile_source": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Profile 来源" }, "provider_model_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "供应商 模型 ID" }, "sampling_defaults": { "additionalProperties": true, "title": "采样 默认值", "type": "object" }, "scenario": { "anyOf": [ { "enum": [ "chat", "comment", "label" ], "type": "string" }, { "type": "null" } ], "title": "场景" }, "scenario_sampling_defaults": { "additionalProperties": { "additionalProperties": true, "type": "object" }, "title": "场景 采样 默认值", "type": "object" }, "source_adapter": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "来源 适配器" }, "source_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "来源 ID" }, "source_label": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "来源 标签" }, "structured_output_mode": { "anyOf": [ { "enum": [ "strict_json_schema", "json_schema", "json_object", "best_effort_prompt_json" ], "type": "string" }, { "type": "null" } ], "title": "结构化输出模式" }, "supports_thinking": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "支持 Thinking" }, "supports_top_k": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "支持 Top K" }, "thinking_default_enabled": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Thinking 默认启用" }, "tool_call_thinking_default_enabled": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "工具 调用 Thinking 默认 已启用" } }, "required": [ "key", "label", "description" ], "title": "API 选项 条目 响应", "type": "object" }, "ApiOptionsDefaultsResponse": { "properties": { "embedding": { "title": "向量模型", "type": "string" }, "model": { "title": "模型", "type": "string" }, "persona_key": { "title": "Persona 键", "type": "string" }, "prompt_key": { "title": "提示词键", "type": "string" }, "scenario": { "enum": [ "chat", "comment", "label" ], "title": "场景", "type": "string" }, "schema_key": { "default": "", "title": "Schema 键", "type": "string" } }, "required": [ "scenario", "model", "prompt_key", "persona_key", "embedding" ], "title": "API 选项 默认值 响应", "type": "object" }, "ApiOptionsResponse": { "properties": { "agent_studio": { "anyOf": [ { "$ref": "#/components/schemas/ApiAgentStudioRuntimeDefaultsResponse" }, { "type": "null" } ] }, "commenting": { "anyOf": [ { "$ref": "#/components/schemas/ApiCommentingRuntimeDefaultsResponse" }, { "type": "null" } ] }, "defaults": { "$ref": "#/components/schemas/ApiOptionsDefaultsResponse" }, "embeddings": { "items": { "$ref": "#/components/schemas/ApiOptionEntryResponse" }, "title": "向量模型", "type": "array" }, "labeling": { "anyOf": [ { "$ref": "#/components/schemas/ApiLabelingRuntimeDefaultsResponse" }, { "type": "null" } ] }, "models": { "items": { "$ref": "#/components/schemas/ApiOptionEntryResponse" }, "title": "模型列表", "type": "array" }, "personas": { "items": { "$ref": "#/components/schemas/ApiOptionEntryResponse" }, "title": "Persona 列表", "type": "array" }, "prompts": { "items": { "$ref": "#/components/schemas/ApiOptionEntryResponse" }, "title": "提示词列表", "type": "array" }, "scenario": { "enum": [ "chat", "comment", "label" ], "title": "场景", "type": "string" }, "schemas": { "items": { "$ref": "#/components/schemas/ApiOptionEntryResponse" }, "title": "Schema 列表", "type": "array" } }, "required": [ "scenario", "models", "embeddings", "prompts", "personas", "defaults" ], "title": "API 选项 响应", "type": "object" }, "ApiPersonaMetadataResponse": { "properties": { "key": { "title": "键", "type": "string" }, "length": { "title": "长度", "type": "integer" }, "preview": { "title": "预览", "type": "string" }, "scenario": { "enum": [ "chat", "comment", "label" ], "title": "场景", "type": "string" } }, "required": [ "scenario", "key", "preview", "length" ], "title": "API Persona 元数据 响应", "type": "object" }, "ApiPromptMetadataResponse": { "properties": { "description": { "title": "描述", "type": "string" }, "key": { "title": "键", "type": "string" }, "label": { "title": "标签", "type": "string" }, "length": { "title": "长度", "type": "integer" }, "preview": { "title": "预览", "type": "string" }, "scenario": { "enum": [ "chat", "comment", "label" ], "title": "场景", "type": "string" } }, "required": [ "scenario", "key", "label", "description", "preview", "length" ], "title": "API 提示词 元数据 响应", "type": "object" }, "ApiPromptPersonaDefaultResponse": { "properties": { "persona_key": { "title": "Persona 键", "type": "string" }, "prompt_key": { "title": "提示词键", "type": "string" }, "scenario": { "enum": [ "chat", "comment", "label" ], "title": "场景", "type": "string" } }, "required": [ "scenario", "prompt_key", "persona_key" ], "title": "API 提示词 Persona 默认 响应", "type": "object" }, "ApiPromptPersonaMetadataResponse": { "properties": { "defaults": { "$ref": "#/components/schemas/ApiPromptPersonaDefaultResponse" }, "personas": { "items": { "$ref": "#/components/schemas/ApiPersonaMetadataResponse" }, "title": "Persona 列表", "type": "array" }, "prompts": { "items": { "$ref": "#/components/schemas/ApiPromptMetadataResponse" }, "title": "提示词列表", "type": "array" } }, "required": [ "defaults", "prompts", "personas" ], "title": "提示词与 Persona 元数据响应", "type": "object" }, "ApiPromptPersonaRevisionResponse": { "properties": { "after": { "title": "变更后", "type": "string" }, "after_length": { "title": "变更后 长度", "type": "integer" }, "after_preview": { "title": "变更后 预览", "type": "string" }, "agent_id": { "title": "智能体 ID", "type": "string" }, "before": { "title": "变更前", "type": "string" }, "before_length": { "title": "变更前 长度", "type": "integer" }, "before_preview": { "title": "变更前 预览", "type": "string" }, "delta_length": { "title": "变化 长度", "type": "integer" }, "field": { "title": "字段", "type": "string" }, "recorded_at": { "title": "记录时间", "type": "string" }, "revision_id": { "title": "修订 ID", "type": "string" }, "source": { "title": "来源", "type": "string" } }, "required": [ "revision_id", "recorded_at", "agent_id", "field", "source", "before", "after", "before_preview", "after_preview", "before_length", "after_length", "delta_length" ], "title": "提示词与 Persona 修订响应", "type": "object" }, "ApiPromptPersonaRevisionsResponse": { "properties": { "agent_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "智能体 ID" }, "field": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "字段" }, "items": { "items": { "$ref": "#/components/schemas/ApiPromptPersonaRevisionResponse" }, "title": "条目", "type": "array" }, "limit": { "title": "限制", "type": "integer" }, "total": { "title": "总数", "type": "integer" } }, "required": [ "total", "limit", "items" ], "title": "API 提示词 Persona 修订 响应", "type": "object" }, "ApiTemplateListResponse": { "properties": { "include_archived": { "title": "包含已归档", "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/ApiTemplateRecordResponse" }, "title": "条目", "type": "array" }, "scenario": { "anyOf": [ { "enum": [ "chat", "comment", "label" ], "type": "string" }, { "type": "null" } ], "title": "场景" }, "total": { "title": "总数", "type": "integer" } }, "required": [ "total", "include_archived", "items" ], "title": "API 模板 列表 响应", "type": "object" }, "ApiTemplateRecordResponse": { "properties": { "archived": { "title": "已归档", "type": "boolean" }, "content": { "title": "内容", "type": "string" }, "content_sha256": { "title": "内容 SHA 256", "type": "string" }, "description": { "title": "描述", "type": "string" }, "key": { "title": "键", "type": "string" }, "kind": { "title": "类别", "type": "string" }, "label": { "title": "标签", "type": "string" }, "length": { "title": "长度", "type": "integer" }, "output_schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "输出 Schema" }, "preview": { "title": "预览", "type": "string" }, "scenario": { "enum": [ "chat", "comment", "label" ], "title": "场景", "type": "string" }, "source_path": { "title": "来源路径", "type": "string" }, "updated_at": { "title": "更新时间", "type": "string" } }, "required": [ "kind", "scenario", "key", "label", "description", "content", "content_sha256", "preview", "length", "archived", "source_path", "updated_at" ], "title": "API 模板 记录 响应", "type": "object" }, "ChatMemoryEvaluationDefaultsResponse": { "properties": { "embedding": { "title": "向量模型", "type": "string" }, "fixture_key": { "title": "测试数据集 键", "type": "string" }, "judge_enabled": { "title": "启用评审模型", "type": "boolean" }, "model": { "title": "模型", "type": "string" }, "persona_key": { "title": "Persona 键", "type": "string" }, "prompt_key": { "title": "提示词键", "type": "string" }, "retry_count": { "title": "重试次数", "type": "integer" }, "rounds": { "title": "轮数", "type": "integer" }, "timeout_seconds": { "title": "超时秒数", "type": "number" } }, "required": [ "model", "prompt_key", "persona_key", "embedding", "fixture_key", "rounds", "timeout_seconds", "retry_count", "judge_enabled" ], "title": "对话 记忆 评估 默认值 响应", "type": "object" }, "ChatMemoryEvaluationOptionsResponse": { "properties": { "defaults": { "$ref": "#/components/schemas/ChatMemoryEvaluationDefaultsResponse" }, "fixtures": { "items": { "$ref": "#/components/schemas/TestRunOptionResponse" }, "title": "测试数据集", "type": "array" } }, "required": [ "defaults", "fixtures" ], "title": "对话 记忆 评估 选项 响应", "type": "object" }, "ChatMemoryEvaluationRunRequest": { "additionalProperties": false, "properties": { "embedding": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "向量模型" }, "fixture_key": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "测试数据集 键" }, "judge_enabled": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "启用评审模型" }, "judge_model_key": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "评审模型 模型 键" }, "model": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "模型" }, "persona_key": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Persona 键" }, "prompt_key": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "提示词键" }, "retry_count": { "anyOf": [ { "maximum": 5.0, "minimum": 0.0, "type": "integer" }, { "type": "null" } ], "title": "重试次数" }, "rounds": { "anyOf": [ { "maximum": 100.0, "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "轮数" }, "run_type": { "const": "chat_memory_eval", "title": "运行类型", "type": "string" }, "timeout_seconds": { "anyOf": [ { "exclusiveMinimum": 0.0, "maximum": 600.0, "type": "number" }, { "type": "null" } ], "title": "超时秒数" } }, "required": [ "run_type" ], "title": "对话 记忆 评估 运行 请求", "type": "object" }, "CommentingGenerateRequest": { "additionalProperties": false, "examples": [ { "cache_prompt": false, "enable_thinking": false, "input": "Summarize the reader reaction and write one concise editor-style reply.", "max_tokens": 512, "model_key": "local_llama_server::qwen3527b", "persona_key": "comment_linxiaotang", "prompt_key": "comment_v20260418", "retry_count": 1, "scenario": "comment", "task_shape": "classic", "temperature": 0.6, "timeout_seconds": 120, "top_k": 64, "top_p": 1.0 } ], "properties": { "cache_prompt": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "description": "Comment Lab 的 llama.cpp 提示词缓存开关。默认关闭,并且只发送给 llama.cpp 后端来源。", "title": "缓存 提示词" }, "enable_thinking": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "description": "可选 vLLM/Gemma thinking 开关。对支持的 vLLM 来源设为 true 时,ADE 会发送 `chat_template_kwargs.enable_thinking=true`。", "title": "启用 Thinking" }, "include_diagnostics": { "default": false, "description": "仅管理员可选择启用原始供应商请求/响应诊断信息。", "title": "包含 诊断", "type": "boolean" }, "input": { "description": "需要评论的新闻文章、评论线程或源文本。", "title": "输入", "type": "string" }, "max_tokens": { "anyOf": [ { "minimum": 0.0, "type": "integer" }, { "type": "null" } ], "description": "可选响应 Token 预算。默认使用 Comment Lab 运行时设置。", "title": "最大 Token 数" }, "model_key": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "来自 `/api/v2/model-catalog/options?scenario=comment` 的路由器作用域模型键,例如 `local_llama_server::qwen3527b`。", "examples": [ "local_llama_server::qwen3527b" ], "title": "模型 键" }, "persona_key": { "default": "comment_linxiaotang", "description": "来自 `/api/v2/model-catalog/options?scenario=comment` 的 Comment Lab Persona 键。", "title": "Persona 键", "type": "string" }, "prompt_key": { "default": "comment_v20260418", "description": "来自 `/api/v2/model-catalog/options?scenario=comment` 的 Comment Lab 提示词键。", "title": "提示词键", "type": "string" }, "retry_count": { "anyOf": [ { "maximum": 5.0, "minimum": 0.0, "type": "integer" }, { "type": "null" } ], "description": "瞬时失败时的可选供应商重试次数。", "title": "重试次数" }, "scenario": { "default": "comment", "description": "该端点必须使用 `comment`。", "enum": [ "chat", "comment", "label" ], "title": "场景", "type": "string" }, "task_shape": { "anyOf": [ { "enum": [ "classic", "all_in_system", "structured_output" ], "type": "string" }, { "type": "null" } ], "description": "提示词打包策略。默认使用 Comment Lab 运行时设置。", "title": "任务形态" }, "temperature": { "anyOf": [ { "maximum": 2.0, "minimum": 0.0, "type": "number" }, { "type": "null" } ], "description": "采样 temperature。默认使用 Comment Lab 运行时设置。", "title": "Temperature" }, "timeout_seconds": { "anyOf": [ { "exclusiveMinimum": 0.0, "type": "number" }, { "type": "null" } ], "description": "可选供应商超时时间(秒)。本地模型建议使用类似 120 的实际值。", "title": "超时秒数" }, "top_k": { "anyOf": [ { "exclusiveMinimum": 0.0, "type": "integer" }, { "type": "null" } ], "description": "可选 top_k 采样值。默认使用模型 profile 或 Comment Lab 运行时设置。", "title": "Top K" }, "top_p": { "anyOf": [ { "exclusiveMinimum": 0.0, "maximum": 1.0, "type": "number" }, { "type": "null" } ], "description": "核采样 top_p。默认使用 Comment Lab 运行时设置。", "title": "Top P" } }, "required": [ "input" ], "title": "评论 生成 请求", "type": "object" }, "ConversationActivityResponse": { "properties": { "items": { "items": { "$ref": "#/components/schemas/TurnActivityResponse" }, "title": "条目", "type": "array" } }, "required": [ "items" ], "title": "会话 活动 响应", "type": "object" }, "ConversationResponse": { "properties": { "agent_definition_id": { "title": "智能体 定义 ID", "type": "string" }, "archived_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "归档时间" }, "created_at": { "format": "date-time", "title": "创建时间", "type": "string" }, "id": { "title": "ID", "type": "string" }, "memory_subject_id": { "title": "记忆 主体 ID", "type": "string" }, "purpose": { "$ref": "#/components/schemas/RuntimeResourcePurpose", "default": "development" }, "title": { "default": "Conversation", "title": "标题", "type": "string" }, "version": { "title": "版本", "type": "integer" } }, "required": [ "id", "agent_definition_id", "memory_subject_id", "version", "created_at" ], "title": "会话 响应", "type": "object" }, "ConversationStateResponse": { "properties": { "agent_definition_id": { "title": "智能体 定义 ID", "type": "string" }, "archived_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "归档时间" }, "created_at": { "format": "date-time", "title": "创建时间", "type": "string" }, "id": { "title": "ID", "type": "string" }, "memory_subject_id": { "title": "记忆 主体 ID", "type": "string" }, "message_total": { "default": 0, "title": "消息 总数", "type": "integer" }, "messages": { "items": { "$ref": "#/components/schemas/MessageResponse" }, "title": "消息", "type": "array" }, "messages_truncated": { "default": false, "title": "消息 已截断", "type": "boolean" }, "next_before_sequence": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "下一个 变更前 序号" }, "purpose": { "$ref": "#/components/schemas/RuntimeResourcePurpose", "default": "development" }, "summary": { "anyOf": [ { "$ref": "#/components/schemas/ConversationSummaryResponse" }, { "type": "null" } ] }, "title": { "default": "Conversation", "title": "标题", "type": "string" }, "version": { "title": "版本", "type": "integer" } }, "required": [ "id", "agent_definition_id", "memory_subject_id", "version", "created_at", "messages" ], "title": "会话 状态 响应", "type": "object" }, "ConversationSummaryProvenanceResponse": { "properties": { "content_sha256": { "title": "内容 SHA 256", "type": "string" }, "input_sha256": { "title": "输入 SHA 256", "type": "string" }, "model_fingerprint": { "title": "模型 指纹", "type": "string" }, "model_key": { "title": "模型 键", "type": "string" }, "policy_sha256": { "title": "策略 SHA 256", "type": "string" }, "prompt_sha256": { "title": "提示词 SHA 256", "type": "string" }, "provider_request_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "供应商 请求 ID" }, "run_id": { "title": "运行 ID", "type": "string" } }, "required": [ "run_id", "model_key", "model_fingerprint", "content_sha256", "prompt_sha256", "input_sha256", "policy_sha256" ], "title": "会话 摘要 来源证明 响应", "type": "object" }, "ConversationSummaryResponse": { "properties": { "content": { "title": "内容", "type": "string" }, "created_at": { "format": "date-time", "title": "创建时间", "type": "string" }, "id": { "title": "ID", "type": "string" }, "previous_summary_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "上一个 摘要 ID" }, "provenance": { "$ref": "#/components/schemas/ConversationSummaryProvenanceResponse" }, "source_boundary": { "$ref": "#/components/schemas/ConversationSummarySourceBoundaryResponse" }, "version": { "title": "版本", "type": "integer" } }, "required": [ "id", "version", "content", "source_boundary", "provenance", "created_at" ], "title": "会话 摘要 响应", "type": "object" }, "ConversationSummarySourceBoundaryResponse": { "description": "一个摘要版本所代表的不可变原始消息前缀。", "properties": { "message_ids": { "items": { "type": "string" }, "title": "消息 ID", "type": "array" }, "through_sequence": { "title": "截止 序号", "type": "integer" } }, "required": [ "through_sequence", "message_ids" ], "title": "会话 摘要 来源 边界 响应", "type": "object" }, "CreateAgentDefinitionRequest": { "additionalProperties": false, "properties": { "compaction_model_key": { "maxLength": 300, "minLength": 1, "title": "压缩 模型 键", "type": "string" }, "definition_key": { "maxLength": 64, "minLength": 2, "pattern": "^[a-z][a-z0-9_-]+$", "title": "定义 键", "type": "string" }, "expected_current_version": { "anyOf": [ { "minimum": 0.0, "type": "integer" }, { "type": "null" } ], "title": "期望 当前 版本" }, "model_key": { "maxLength": 300, "minLength": 1, "title": "模型 键", "type": "string" }, "name": { "maxLength": 120, "minLength": 1, "title": "名称", "type": "string" }, "persona_key": { "default": "chat_linxiaotang", "maxLength": 128, "minLength": 1, "title": "Persona 键", "type": "string" }, "prompt_key": { "default": "chat_v20261019", "maxLength": 128, "minLength": 1, "title": "提示词键", "type": "string" }, "tool_names": { "items": { "enum": [ "search_memory", "get_weather" ], "type": "string" }, "maxItems": 2, "title": "工具 名称", "type": "array" } }, "required": [ "definition_key", "name", "model_key", "compaction_model_key" ], "title": "创建 智能体 定义 请求", "type": "object" }, "CreateAgentStudioSessionRequest": { "additionalProperties": false, "properties": { "agent_definition_id": { "anyOf": [ { "maxLength": 100, "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "智能体 定义 ID" }, "idempotency_key": { "maxLength": 200, "minLength": 1, "title": "幂等性 键", "type": "string" }, "memory_subject_id": { "anyOf": [ { "maxLength": 100, "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "记忆 主体 ID" }, "new_definition": { "anyOf": [ { "$ref": "#/components/schemas/CreateAgentDefinitionRequest" }, { "type": "null" } ] }, "new_subject": { "anyOf": [ { "$ref": "#/components/schemas/CreateMemorySubjectRequest" }, { "type": "null" } ] }, "title": { "default": "New conversation", "maxLength": 120, "minLength": 1, "title": "标题", "type": "string" } }, "required": [ "idempotency_key" ], "title": "创建 智能体 工作台 会话 请求", "type": "object" }, "CreateEvaluationSessionRequest": { "additionalProperties": false, "description": "创建一个隔离的评估会话及其默认资源。", "properties": { "agent_definition_id": { "anyOf": [ { "maxLength": 100, "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "智能体 定义 ID" }, "compaction_model_key": { "anyOf": [ { "maxLength": 300, "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "压缩 模型 键" }, "idempotency_key": { "maxLength": 200, "minLength": 1, "title": "幂等性 键", "type": "string" }, "memory_subject_id": { "anyOf": [ { "maxLength": 100, "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "记忆 主体 ID" }, "model_key": { "anyOf": [ { "maxLength": 300, "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "模型 键" }, "persona_key": { "default": "chat_linxiaotang", "maxLength": 128, "minLength": 1, "title": "Persona 键", "type": "string" }, "prompt_key": { "default": "chat_v20261019", "maxLength": 128, "minLength": 1, "title": "提示词键", "type": "string" }, "subject_display_name": { "default": "", "maxLength": 200, "title": "主体 显示 名称", "type": "string" }, "subject_external_key": { "anyOf": [ { "maxLength": 200, "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "主体 外部 键" }, "title": { "default": "Evaluation conversation", "maxLength": 120, "minLength": 1, "title": "标题", "type": "string" }, "tool_names": { "items": { "enum": [ "search_memory", "get_weather" ], "type": "string" }, "maxItems": 2, "title": "工具 名称", "type": "array" } }, "required": [ "idempotency_key" ], "title": "创建 评估 会话 请求", "type": "object" }, "CreateMemorySubjectRequest": { "additionalProperties": false, "properties": { "display_name": { "default": "", "maxLength": 200, "title": "显示 名称", "type": "string" }, "external_key": { "maxLength": 200, "minLength": 1, "title": "外部 键", "type": "string" } }, "required": [ "external_key" ], "title": "创建 记忆 主体 请求", "type": "object" }, "CurrentStackSmokeOptionsResponse": { "properties": { "run_type": { "const": "ade_api_e2e_check", "title": "运行类型", "type": "string" } }, "required": [ "run_type" ], "title": "当前 服务栈 冒烟测试 选项 响应", "type": "object" }, "CurrentStackSmokeRunRequest": { "additionalProperties": false, "properties": { "run_type": { "const": "ade_api_e2e_check", "title": "运行类型", "type": "string" } }, "required": [ "run_type" ], "title": "当前 服务栈 冒烟测试 运行 请求", "type": "object" }, "DeliveryListResponse": { "properties": { "blocked_operation_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "阻塞 操作 ID" }, "counts": { "additionalProperties": { "type": "integer" }, "title": "计数", "type": "object" }, "items": { "items": { "$ref": "#/components/schemas/DeliveryResponse" }, "title": "条目", "type": "array" }, "limit": { "title": "限制", "type": "integer" }, "offset": { "title": "偏移量", "type": "integer" }, "relationship": { "$ref": "#/components/schemas/RelationshipResponse" }, "total": { "title": "总数", "type": "integer" } }, "required": [ "relationship", "total", "limit", "offset", "counts", "blocked_operation_id", "items" ], "title": "投递 列表 响应", "type": "object" }, "DeliveryResponse": { "properties": { "accepted_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "已接受 时间" }, "attempt_count": { "title": "尝试 计数", "type": "integer" }, "blocked_by_operation_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "阻塞 按 操作 ID" }, "check_count": { "title": "检查 计数", "type": "integer" }, "conversation_id": { "title": "会话 ID", "type": "string" }, "created_at": { "format": "date-time", "title": "创建时间", "type": "string" }, "document_id": { "title": "文档 ID", "type": "string" }, "last_checked_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "最近 已检查 时间" }, "last_error_code": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "最近 错误 源码" }, "message_id": { "title": "消息 ID", "type": "string" }, "message_sequence": { "title": "消息 序号", "type": "integer" }, "native_progress": { "additionalProperties": true, "title": "原生运行时 进度", "type": "object" }, "native_status": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "原生运行时 状态" }, "operation_id": { "title": "操作 ID", "type": "string" }, "queue_age_seconds": { "title": "队列 时长 秒", "type": "number" }, "relationship_sequence": { "title": "关系 序号", "type": "integer" }, "retained_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "已留存 时间" }, "retry_requested": { "title": "重试 请求的", "type": "boolean" }, "role": { "enum": [ "user", "assistant" ], "title": "角色", "type": "string" }, "status": { "enum": [ "queued", "submitting", "processing", "retained", "failed", "uncertain" ], "title": "状态", "type": "string" }, "updated_at": { "format": "date-time", "title": "更新时间", "type": "string" } }, "required": [ "operation_id", "document_id", "message_id", "conversation_id", "role", "message_sequence", "relationship_sequence", "status", "attempt_count", "check_count", "retry_requested", "last_error_code", "native_status", "native_progress", "accepted_at", "retained_at", "last_checked_at", "created_at", "updated_at", "queue_age_seconds", "blocked_by_operation_id" ], "title": "投递 响应", "type": "object" }, "DeliveryRetryRequest": { "additionalProperties": false, "properties": { "expected_check_count": { "minimum": 0.0, "title": "期望 检查 计数", "type": "integer" } }, "required": [ "expected_check_count" ], "title": "投递 重试 请求", "type": "object" }, "DeploymentSnapshotResponse": { "properties": { "deployment_id": { "title": "部署 ID", "type": "string" }, "fingerprint": { "title": "指纹", "type": "string" }, "fingerprint_payload": { "additionalProperties": true, "title": "指纹载荷", "type": "object" }, "lifecycle": { "title": "生命周期", "type": "string" }, "qualification_state": { "$ref": "#/components/schemas/QualificationState" }, "role": { "enum": [ "conversation", "compaction" ], "title": "角色", "type": "string" }, "route_alias": { "title": "路由别名", "type": "string" } }, "required": [ "deployment_id", "route_alias", "fingerprint", "role", "lifecycle", "qualification_state" ], "title": "部署 快照 响应", "type": "object" }, "EvaluationSessionResponse": { "description": "为评估会话创建或绑定的隔离资源。", "properties": { "agent_definition": { "$ref": "#/components/schemas/AgentDefinitionResponse" }, "conversation": { "$ref": "#/components/schemas/ConversationResponse" }, "idempotent_replay": { "default": false, "title": "幂等重放", "type": "boolean" }, "latest_run": { "anyOf": [ { "$ref": "#/components/schemas/RunResponse" }, { "type": "null" } ] }, "memory_subject": { "$ref": "#/components/schemas/MemorySubjectResponse" }, "session_id": { "title": "会话 ID", "type": "string" } }, "required": [ "session_id", "agent_definition", "memory_subject", "conversation" ], "title": "评估 会话 响应", "type": "object" }, "EvaluationSessionStateResponse": { "properties": { "conversation": { "$ref": "#/components/schemas/ConversationStateResponse" }, "latest_run": { "anyOf": [ { "$ref": "#/components/schemas/RunResponse" }, { "type": "null" } ] }, "memory_subject": { "$ref": "#/components/schemas/MemorySubjectResponse" } }, "required": [ "conversation", "memory_subject" ], "title": "评估 会话 状态 响应", "type": "object" }, "HTTPValidationError": { "properties": { "detail": { "items": { "$ref": "#/components/schemas/ValidationError" }, "title": "详情", "type": "array" } }, "title": "HTTP 校验错误", "type": "object" }, "LabelSchemaPatchRequest": { "properties": { "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "描述" }, "label": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "标签" }, "schema": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "Schema" } }, "title": "标签 Schema 补丁 请求", "type": "object" }, "LabelSchemaWriteRequest": { "properties": { "description": { "default": "", "title": "描述", "type": "string" }, "key": { "title": "键", "type": "string" }, "label": { "default": "", "title": "标签", "type": "string" }, "schema": { "additionalProperties": true, "title": "Schema", "type": "object" } }, "required": [ "key", "schema" ], "title": "标签 Schema 写入 请求", "type": "object" }, "LabelingGenerateRequest": { "examples": [ { "input": "Messi scored for Inter Miami against Orlando City.", "max_tokens": 1024, "model_key": "local_llama_server::qwen3527b", "prompt_key": "label_football_entities_v1", "repair_retry_count": 1, "scenario": "label", "schema_key": "label_football_entity_groups_v1", "temperature": 0.0, "timeout_seconds": 120, "top_k": 64, "top_p": 1.0 } ], "properties": { "include_diagnostics": { "default": false, "description": "仅管理员可选择启用原始供应商请求/响应诊断信息。", "title": "包含 诊断", "type": "boolean" }, "input": { "description": "用于抽取分组实体列表的文章或文本。", "title": "输入", "type": "string" }, "max_tokens": { "anyOf": [ { "minimum": 0.0, "type": "integer" }, { "type": "null" } ], "description": "可选响应 Token 预算。默认使用 Label Lab 运行时设置。", "title": "最大 Token 数" }, "model_key": { "description": "来自 `/api/v2/model-catalog/options?scenario=label` 的路由器作用域模型键,例如 `local_llama_server::qwen3527b`。", "examples": [ "local_llama_server::qwen3527b" ], "title": "模型 键", "type": "string" }, "prompt_key": { "default": "label_generic_entities_v1", "description": "来自 `/api/v2/model-catalog/options?scenario=label` 的 Label Lab 提示词键。", "title": "提示词键", "type": "string" }, "repair_retry_count": { "anyOf": [ { "maximum": 3.0, "minimum": 0.0, "type": "integer" }, { "type": "null" } ], "description": "结构化输出校验失败后的修复重试次数。", "title": "修复重试次数" }, "scenario": { "default": "label", "description": "该端点必须使用 `label`。", "enum": [ "chat", "comment", "label" ], "title": "场景", "type": "string" }, "schema_key": { "default": "label_entity_groups_v1", "description": "来自 `/api/v2/model-catalog/options?scenario=label` 的 Label Schema Center 键。", "title": "Schema 键", "type": "string" }, "temperature": { "anyOf": [ { "maximum": 2.0, "minimum": 0.0, "type": "number" }, { "type": "null" } ], "description": "采样 temperature。默认使用 Label Lab 运行时设置。", "title": "Temperature" }, "timeout_seconds": { "anyOf": [ { "exclusiveMinimum": 0.0, "type": "number" }, { "type": "null" } ], "description": "可选供应商超时时间(秒)。本地模型建议使用类似 120 的实际值。", "title": "超时秒数" }, "top_k": { "anyOf": [ { "exclusiveMinimum": 0.0, "type": "integer" }, { "type": "null" } ], "description": "可选 top_k 采样值。默认使用模型 profile 或 Label Lab 运行时设置。", "title": "Top K" }, "top_p": { "anyOf": [ { "exclusiveMinimum": 0.0, "maximum": 1.0, "type": "number" }, { "type": "null" } ], "description": "核采样 top_p。默认使用 Label Lab 运行时设置。", "title": "Top P" } }, "required": [ "input", "model_key" ], "title": "标注 生成 请求", "type": "object" }, "LearnedMemoryResponse": { "properties": { "consolidated_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "已归纳 时间" }, "consolidation_failed_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "归纳 失败 时间" }, "context": { "default": "", "title": "上下文", "type": "string" }, "date": { "default": "", "title": "日期", "type": "string" }, "document_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "文档 ID" }, "entities": { "default": "", "title": "实体", "type": "string" }, "fact_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "事实 类型" }, "id": { "title": "ID", "type": "string" }, "mentioned_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "提及 时间" }, "occurred_end": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "已发生 结束" }, "occurred_start": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "已发生 开始" }, "source_memory_ids": { "items": { "type": "string" }, "title": "来源 记忆 ID", "type": "array" }, "state": { "default": "valid", "title": "状态", "type": "string" }, "text": { "title": "文本", "type": "string" } }, "required": [ "id", "text" ], "title": "已形成 记忆 响应", "type": "object" }, "MemorySubjectListResponse": { "properties": { "items": { "items": { "$ref": "#/components/schemas/MemorySubjectResponse" }, "title": "条目", "type": "array" }, "total": { "title": "总数", "type": "integer" } }, "required": [ "total", "items" ], "title": "记忆 主体 列表 响应", "type": "object" }, "MemorySubjectResponse": { "properties": { "archived_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "归档时间" }, "created_at": { "format": "date-time", "title": "创建时间", "type": "string" }, "display_name": { "title": "显示 名称", "type": "string" }, "external_key": { "title": "外部 键", "type": "string" }, "id": { "title": "ID", "type": "string" }, "updated_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "更新时间" }, "version": { "default": 1, "title": "版本", "type": "integer" } }, "required": [ "id", "external_key", "display_name", "created_at" ], "title": "记忆 主体 响应", "type": "object" }, "MessageResponse": { "properties": { "content": { "title": "内容", "type": "string" }, "created_at": { "format": "date-time", "title": "创建时间", "type": "string" }, "id": { "title": "ID", "type": "string" }, "role": { "enum": [ "user", "assistant" ], "title": "角色", "type": "string" }, "run_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "运行 ID" }, "sequence": { "title": "序号", "type": "integer" } }, "required": [ "id", "sequence", "role", "content", "created_at" ], "title": "消息 响应", "type": "object" }, "ModelCatalogEntryResponse": { "properties": { "agent_studio_available": { "title": "智能体 工作台 可用", "type": "boolean" }, "agent_studio_candidate": { "default": false, "title": "智能体 工作台 候选", "type": "boolean" }, "agent_studio_compatible": { "default": true, "title": "智能体 工作台 兼容", "type": "boolean" }, "comment_lab_available": { "title": "评论 实验室 可用", "type": "boolean" }, "deployment": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "部署" }, "label_lab_available": { "title": "标签 实验室 可用", "type": "boolean" }, "model_key": { "title": "模型 键", "type": "string" }, "model_type": { "title": "模型 类型", "type": "string" }, "profile_applied": { "default": false, "title": "已应用 Profile", "type": "boolean" }, "profile_source": { "default": "", "title": "Profile 来源", "type": "string" }, "provider_model_id": { "title": "供应商 模型 ID", "type": "string" }, "sampling_defaults": { "additionalProperties": true, "title": "采样 默认值", "type": "object" }, "scenario_sampling_defaults": { "additionalProperties": { "additionalProperties": true, "type": "object" }, "title": "场景 采样 默认值", "type": "object" }, "source_adapter": { "default": "generic_openai", "title": "来源 适配器", "type": "string" }, "source_id": { "title": "来源 ID", "type": "string" }, "source_kind": { "title": "来源 类别", "type": "string" }, "source_label": { "title": "来源 标签", "type": "string" }, "structured_output_mode": { "anyOf": [ { "enum": [ "strict_json_schema", "json_schema", "json_object", "best_effort_prompt_json" ], "type": "string" }, { "type": "null" } ], "title": "结构化输出模式" }, "supports_thinking": { "default": false, "title": "支持 Thinking", "type": "boolean" }, "supports_top_k": { "default": false, "title": "支持 Top K", "type": "boolean" }, "thinking_default_enabled": { "default": false, "title": "Thinking 默认启用", "type": "boolean" } }, "required": [ "model_key", "source_id", "source_label", "source_kind", "provider_model_id", "model_type", "agent_studio_available", "comment_lab_available", "label_lab_available" ], "title": "模型 目录 条目 响应", "type": "object" }, "ModelCatalogResponse": { "properties": { "generated_at": { "title": "已生成 时间", "type": "number" }, "items": { "items": { "$ref": "#/components/schemas/ModelCatalogEntryResponse" }, "title": "条目", "type": "array" }, "sources": { "items": { "$ref": "#/components/schemas/ModelCatalogSourceResponse" }, "title": "来源列表", "type": "array" } }, "required": [ "generated_at" ], "title": "模型 目录 响应", "type": "object" }, "ModelCatalogSourceModelResponse": { "properties": { "model_type": { "title": "模型 类型", "type": "string" }, "provider_model_id": { "title": "供应商 模型 ID", "type": "string" } }, "required": [ "provider_model_id", "model_type" ], "title": "模型 目录 来源 模型 响应", "type": "object" }, "ModelCatalogSourceResponse": { "properties": { "adapter": { "default": "generic_openai", "title": "适配器", "type": "string" }, "allowlist_applied": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "已应用允许列表" }, "allowlist_checked_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "允许列表检查时间" }, "base_url": { "title": "Base URL", "type": "string" }, "detail": { "title": "详情", "type": "string" }, "enabled_for": { "items": { "type": "string" }, "title": "启用场景", "type": "array" }, "filtered_model_count": { "default": 0, "title": "过滤后 模型 计数", "type": "integer" }, "id": { "title": "ID", "type": "string" }, "kind": { "title": "类别", "type": "string" }, "label": { "title": "标签", "type": "string" }, "models": { "items": { "$ref": "#/components/schemas/ModelCatalogSourceModelResponse" }, "title": "模型列表", "type": "array" }, "raw_model_count": { "default": 0, "title": "原始 模型 计数", "type": "integer" }, "status": { "title": "状态", "type": "string" } }, "required": [ "id", "label", "kind", "base_url", "enabled_for", "status", "detail" ], "title": "模型 目录 来源 响应", "type": "object" }, "NativeOperationResponse": { "properties": { "created_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "创建时间" }, "native_progress": { "additionalProperties": true, "title": "原生运行时 进度", "type": "object" }, "operation_id": { "title": "操作 ID", "type": "string" }, "operation_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "操作 类型" }, "status": { "title": "状态", "type": "string" }, "updated_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "更新时间" } }, "required": [ "operation_id", "status", "native_progress" ], "title": "原生运行时 操作 响应", "type": "object" }, "NativeOperationsResponse": { "properties": { "items": { "items": { "$ref": "#/components/schemas/NativeOperationResponse" }, "title": "条目", "type": "array" }, "limit": { "title": "限制", "type": "integer" }, "offset": { "title": "偏移量", "type": "integer" }, "relationship": { "$ref": "#/components/schemas/RelationshipResponse" }, "total": { "title": "总数", "type": "integer" } }, "required": [ "relationship", "total", "limit", "offset", "items" ], "title": "原生运行时 操作 响应", "type": "object" }, "ObservationIdentity": { "properties": { "attempt_id": { "title": "尝试 ID", "type": "string" }, "conversation_id": { "title": "会话 ID", "type": "string" }, "run_id": { "title": "运行 ID", "type": "string" }, "workspace_id": { "title": "工作区 ID", "type": "string" } }, "required": [ "run_id", "attempt_id", "workspace_id", "conversation_id" ], "title": "观测 身份", "type": "object" }, "PersonaTemplatePatchRequest": { "properties": { "content": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "内容" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "描述" }, "label": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "标签" } }, "title": "Persona 模板 补丁 请求", "type": "object" }, "PersonaTemplateWriteRequest": { "properties": { "content": { "title": "内容", "type": "string" }, "description": { "default": "", "title": "描述", "type": "string" }, "key": { "title": "键", "type": "string" }, "label": { "default": "", "title": "标签", "type": "string" }, "scenario": { "anyOf": [ { "enum": [ "chat", "comment", "label" ], "type": "string" }, { "type": "null" } ], "title": "场景" } }, "required": [ "key", "content" ], "title": "Persona 模板 写入 请求", "type": "object" }, "PrivateAttemptObservation": { "properties": { "attempt_id": { "title": "尝试 ID", "type": "string" }, "records": { "items": { "$ref": "#/components/schemas/PrivateObservationRecord" }, "title": "记录", "type": "array" } }, "required": [ "attempt_id", "records" ], "title": "私有 尝试 观测", "type": "object" }, "PrivateObservationRecord": { "properties": { "identity": { "$ref": "#/components/schemas/ObservationIdentity" }, "input_complete": { "title": "输入 完整", "type": "boolean" }, "recorded_at": { "title": "记录时间", "type": "number" }, "schema_version": { "const": 1, "title": "Schema 版本", "type": "integer" }, "sequence": { "minimum": 1.0, "title": "序号", "type": "integer" }, "type": { "enum": [ "attempt_execution.started", "attempt_execution.finished", "context.sources", "context.composed", "compaction.sources", "compaction.completed", "memory_lookup.started", "memory_lookup.completed", "memory_lookup.failed", "model_request.started", "model_request.finished" ], "title": "类型", "type": "string" }, "value": { "additionalProperties": true, "title": "值", "type": "object" } }, "required": [ "schema_version", "identity", "sequence", "recorded_at", "type", "input_complete", "value" ], "title": "私有 观测 记录", "type": "object" }, "PrivateObservationResponse": { "properties": { "committed_assistant_message_ids": { "items": { "type": "string" }, "title": "已提交 助手 消息 ID", "type": "array" }, "observations": { "items": { "$ref": "#/components/schemas/PrivateAttemptObservation" }, "title": "观测记录", "type": "array" }, "run_id": { "title": "运行 ID", "type": "string" }, "run_status": { "$ref": "#/components/schemas/RunStatus" }, "saved_attempts": { "items": { "$ref": "#/components/schemas/SavedAttemptObservation" }, "title": "已保存的尝试", "type": "array" }, "schema_version": { "const": 1, "title": "Schema 版本", "type": "integer" }, "workspace_id": { "title": "工作区 ID", "type": "string" } }, "required": [ "schema_version", "run_id", "workspace_id", "run_status", "saved_attempts", "committed_assistant_message_ids", "observations" ], "title": "私有 观测 响应", "type": "object" }, "PromptTemplatePatchRequest": { "properties": { "content": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "内容" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "描述" }, "label": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "标签" } }, "title": "提示词 模板 补丁 请求", "type": "object" }, "PromptTemplateWriteRequest": { "properties": { "content": { "title": "内容", "type": "string" }, "description": { "default": "", "title": "描述", "type": "string" }, "key": { "title": "键", "type": "string" }, "label": { "default": "", "title": "标签", "type": "string" }, "scenario": { "anyOf": [ { "enum": [ "chat", "comment", "label" ], "type": "string" }, { "type": "null" } ], "title": "场景" } }, "required": [ "key", "content" ], "title": "提示词 模板 写入 请求", "type": "object" }, "QualificationState": { "enum": [ "qualified", "unqualified" ], "title": "资格 状态", "type": "string" }, "RelationshipMemoriesResponse": { "properties": { "items": { "items": { "$ref": "#/components/schemas/LearnedMemoryResponse" }, "title": "条目", "type": "array" }, "limit": { "title": "限制", "type": "integer" }, "offset": { "title": "偏移量", "type": "integer" }, "relationship": { "$ref": "#/components/schemas/RelationshipResponse" }, "total": { "title": "总数", "type": "integer" } }, "required": [ "relationship", "total", "limit", "offset", "items" ], "title": "关系 记忆 响应", "type": "object" }, "RelationshipResponse": { "properties": { "character_root_id": { "title": "角色 根 ID", "type": "string" }, "last_error_code": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "最近 错误 源码" }, "state": { "title": "状态", "type": "string" }, "subject_id": { "title": "主体 ID", "type": "string" } }, "required": [ "subject_id", "character_root_id", "state", "last_error_code" ], "title": "关系 响应", "type": "object" }, "RetryRunRequest": { "additionalProperties": false, "properties": { "expected_attempt_count": { "minimum": 1.0, "title": "期望 尝试 计数", "type": "integer" }, "idempotency_key": { "maxLength": 200, "minLength": 1, "pattern": "\\S", "title": "幂等性 键", "type": "string" } }, "required": [ "idempotency_key", "expected_attempt_count" ], "title": "重试 运行 请求", "type": "object" }, "RunEventListResponse": { "properties": { "items": { "items": { "$ref": "#/components/schemas/RunEventResponse" }, "title": "条目", "type": "array" }, "total": { "title": "总数", "type": "integer" } }, "required": [ "total", "items" ], "title": "运行 事件 列表 响应", "type": "object" }, "RunEventResponse": { "properties": { "attempt": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "尝试" }, "causation_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "因果关系 ID" }, "correlation_id": { "title": "关联 ID", "type": "string" }, "id": { "title": "ID", "type": "string" }, "occurred_at": { "format": "date-time", "title": "已发生 时间", "type": "string" }, "payload": { "additionalProperties": true, "title": "载荷", "type": "object" }, "run_id": { "title": "运行 ID", "type": "string" }, "schema_version": { "default": 1, "title": "Schema 版本", "type": "integer" }, "sequence": { "title": "序号", "type": "integer" }, "type": { "title": "类型", "type": "string" }, "visibility": { "const": "operator", "default": "operator", "title": "可见性", "type": "string" } }, "required": [ "id", "run_id", "sequence", "type", "occurred_at", "correlation_id" ], "title": "运行 事件 响应", "type": "object" }, "RunListResponse": { "properties": { "items": { "items": { "$ref": "#/components/schemas/RunResponse" }, "title": "条目", "type": "array" }, "total": { "title": "总数", "type": "integer" } }, "required": [ "total", "items" ], "title": "运行 列表 响应", "type": "object" }, "RunResponse": { "properties": { "attempt_count": { "title": "尝试 计数", "type": "integer" }, "cancellation_requested_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "取消 请求的 时间" }, "conversation_id": { "title": "会话 ID", "type": "string" }, "created_at": { "format": "date-time", "title": "创建时间", "type": "string" }, "error_code": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "错误 源码" }, "error_message": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "错误 消息" }, "finished_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "结束时间" }, "id": { "title": "ID", "type": "string" }, "paused_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "已暂停 时间" }, "qualification_state": { "$ref": "#/components/schemas/QualificationState" }, "retry_count": { "title": "重试次数", "type": "integer" }, "started_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "开始时间" }, "status": { "$ref": "#/components/schemas/RunStatus" }, "timeout_seconds": { "title": "超时秒数", "type": "number" } }, "required": [ "id", "conversation_id", "status", "qualification_state", "attempt_count", "timeout_seconds", "retry_count", "created_at" ], "title": "运行 响应", "type": "object" }, "RunStatus": { "enum": [ "pending", "running", "paused", "succeeded", "failed", "cancelled" ], "title": "运行 状态", "type": "string" }, "RuntimeResourcePurpose": { "enum": [ "development", "agent_studio", "evaluation", "preview" ], "title": "运行时 资源 用途", "type": "string" }, "RuntimeWorkerHealthResponse": { "properties": { "checked_at": { "format": "date-time", "title": "已检查 时间", "type": "string" }, "compatibility_fingerprint": { "title": "兼容性指纹", "type": "string" }, "compatible_worker_count": { "title": "兼容 工作器 计数", "type": "integer" }, "database_ready": { "title": "数据库就绪", "type": "boolean" }, "failure_code": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "失败 源码" }, "freshness_seconds": { "title": "新鲜度秒数", "type": "number" }, "latest_heartbeat_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "最新 心跳 时间" }, "matching_build_worker_count": { "title": "匹配 构建 工作器 计数", "type": "integer" }, "source_dirty": { "title": "来源 脏状态", "type": "boolean" }, "source_fingerprint": { "title": "来源 指纹", "type": "string" }, "source_revision": { "title": "来源 修订", "type": "string" }, "status": { "enum": [ "ready", "not_ready" ], "title": "状态", "type": "string" }, "worker_ready": { "title": "工作器就绪", "type": "boolean" } }, "required": [ "status", "database_ready", "worker_ready", "checked_at", "freshness_seconds", "compatible_worker_count", "matching_build_worker_count", "compatibility_fingerprint", "source_revision", "source_dirty", "source_fingerprint" ], "title": "运行时 工作器 健康状态 响应", "type": "object" }, "SavedAttemptObservation": { "properties": { "attempt_number": { "minimum": 1.0, "title": "尝试 序号", "type": "integer" }, "id": { "title": "ID", "type": "string" }, "status": { "title": "状态", "type": "string" } }, "required": [ "id", "attempt_number", "status" ], "title": "已保存 尝试 观测", "type": "object" }, "SourceResponse": { "properties": { "content": { "title": "内容", "type": "string" }, "definition_version_id": { "title": "定义 版本 ID", "type": "string" }, "delivery": { "$ref": "#/components/schemas/DeliveryResponse" }, "native_context": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "原生运行时 上下文" }, "native_original_text": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "原生运行时 原始 文本" }, "occurred_at": { "format": "date-time", "title": "已发生 时间", "type": "string" }, "relationship": { "$ref": "#/components/schemas/RelationshipResponse" } }, "required": [ "relationship", "delivery", "content", "occurred_at", "definition_version_id", "native_original_text", "native_context" ], "title": "来源 响应", "type": "object" }, "TestCenterCatalogOptionsResponse": { "properties": { "embeddings": { "items": { "$ref": "#/components/schemas/TestRunOptionResponse" }, "title": "向量模型", "type": "array" }, "models": { "items": { "$ref": "#/components/schemas/TestRunOptionResponse" }, "title": "模型列表", "type": "array" }, "personas": { "items": { "$ref": "#/components/schemas/TestRunOptionResponse" }, "title": "Persona 列表", "type": "array" }, "prompts": { "items": { "$ref": "#/components/schemas/TestRunOptionResponse" }, "title": "提示词列表", "type": "array" } }, "required": [ "models", "embeddings", "prompts", "personas" ], "title": "测试 中心 目录 选项 响应", "type": "object" }, "TestCenterOptionsResponse": { "properties": { "agent_runtime_acceptance": { "$ref": "#/components/schemas/AgentRuntimeAcceptanceOptionsResponse" }, "catalog": { "$ref": "#/components/schemas/TestCenterCatalogOptionsResponse" }, "chat_memory_eval": { "$ref": "#/components/schemas/ChatMemoryEvaluationOptionsResponse" }, "current_stack_smoke": { "$ref": "#/components/schemas/CurrentStackSmokeOptionsResponse" }, "run_types": { "items": { "$ref": "#/components/schemas/TestRunOptionResponse" }, "title": "运行 类型", "type": "array" } }, "required": [ "run_types", "catalog", "chat_memory_eval", "agent_runtime_acceptance", "current_stack_smoke" ], "title": "测试 中心 选项 响应", "type": "object" }, "TestRunArtifactListResponse": { "properties": { "items": { "items": { "$ref": "#/components/schemas/TestRunArtifactResponse" }, "title": "条目", "type": "array" }, "run_id": { "title": "运行 ID", "type": "string" } }, "required": [ "run_id", "items" ], "title": "测试 运行 产物 列表 响应", "type": "object" }, "TestRunArtifactReadResponse": { "properties": { "artifact": { "$ref": "#/components/schemas/TestRunArtifactResponse" }, "content": { "title": "内容", "type": "string" }, "line_count": { "title": "行数", "type": "integer" }, "run_id": { "title": "运行 ID", "type": "string" }, "truncated": { "title": "已截断", "type": "boolean" } }, "required": [ "run_id", "artifact", "content", "truncated", "line_count" ], "title": "测试 运行 产物 读取 响应", "type": "object" }, "TestRunArtifactResponse": { "properties": { "artifact_id": { "title": "产物 ID", "type": "string" }, "exists": { "title": "是否存在", "type": "boolean" }, "path": { "title": "路径", "type": "string" }, "size_bytes": { "title": "字节大小", "type": "integer" }, "type": { "title": "类型", "type": "string" } }, "required": [ "artifact_id", "type", "path", "exists", "size_bytes" ], "title": "测试 运行 产物 响应", "type": "object" }, "TestRunListResponse": { "properties": { "items": { "items": { "$ref": "#/components/schemas/TestRunRecordResponse" }, "title": "条目", "type": "array" } }, "required": [ "items" ], "title": "测试 运行 列表 响应", "type": "object" }, "TestRunOptionResponse": { "properties": { "available": { "default": true, "title": "可用", "type": "boolean" }, "key": { "title": "键", "type": "string" }, "label": { "title": "标签", "type": "string" } }, "required": [ "key", "label" ], "title": "测试 运行 选项 响应", "type": "object" }, "TestRunRecordResponse": { "properties": { "artifacts": { "items": { "$ref": "#/components/schemas/TestRunArtifactResponse" }, "title": "产物", "type": "array" }, "cancel_requested": { "title": "取消 请求的", "type": "boolean" }, "command": { "items": { "type": "string" }, "title": "命令", "type": "array" }, "created_at": { "title": "创建时间", "type": "string" }, "error": { "title": "错误", "type": "string" }, "exit_code": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "退出 源码" }, "finished_at": { "title": "结束时间", "type": "string" }, "log_file": { "title": "日志文件", "type": "string" }, "output_tail": { "items": { "type": "string" }, "title": "输出尾部", "type": "array" }, "run_id": { "title": "运行 ID", "type": "string" }, "run_type": { "title": "运行类型", "type": "string" }, "started_at": { "title": "开始时间", "type": "string" }, "status": { "title": "状态", "type": "string" } }, "required": [ "run_id", "run_type", "status", "command", "created_at", "started_at", "finished_at", "log_file", "cancel_requested", "error" ], "title": "测试 运行 记录 响应", "type": "object" }, "TurnAcceptedResponse": { "properties": { "events_url": { "title": "事件 URL", "type": "string" }, "idempotent_replay": { "default": false, "title": "幂等重放", "type": "boolean" }, "run_id": { "title": "运行 ID", "type": "string" }, "status": { "$ref": "#/components/schemas/RunStatus" } }, "required": [ "run_id", "status", "events_url" ], "title": "轮次 已接受 响应", "type": "object" }, "TurnActivityResponse": { "properties": { "context": { "$ref": "#/components/schemas/TurnContextActivityResponse" }, "provider": { "additionalProperties": { "type": "integer" }, "title": "供应商", "type": "object" }, "provider_complete": { "title": "供应商 完整", "type": "boolean" }, "provider_observed": { "title": "供应商 已观测", "type": "boolean" }, "run_id": { "title": "运行 ID", "type": "string" }, "status": { "$ref": "#/components/schemas/RunStatus" }, "tools": { "items": { "$ref": "#/components/schemas/TurnToolActivityResponse" }, "title": "工具", "type": "array" }, "tools_complete": { "title": "工具 完整", "type": "boolean" } }, "required": [ "run_id", "status", "provider", "provider_complete", "provider_observed", "tools", "tools_complete", "context" ], "title": "轮次 活动 响应", "type": "object" }, "TurnContextActivityResponse": { "properties": { "automatic_memory_ids": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "title": "自动 记忆 ID" }, "current_chat": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "当前 对话" }, "tool_memory_ids": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "title": "工具 记忆 ID" } }, "title": "轮次 上下文 活动 响应", "type": "object" }, "TurnToolActivityResponse": { "properties": { "failed": { "title": "失败次数", "type": "integer" }, "name": { "title": "名称", "type": "string" }, "succeeded": { "title": "成功次数", "type": "integer" }, "unresolved": { "title": "未确定次数", "type": "integer" } }, "required": [ "name", "succeeded", "failed", "unresolved" ], "title": "轮次 工具 活动 响应", "type": "object" }, "UpdateMemorySubjectRequest": { "additionalProperties": false, "properties": { "display_name": { "maxLength": 200, "minLength": 1, "title": "显示 名称", "type": "string" }, "expected_version": { "minimum": 1.0, "title": "期望 版本", "type": "integer" } }, "required": [ "display_name", "expected_version" ], "title": "更新 记忆 主体 请求", "type": "object" }, "ValidationError": { "properties": { "ctx": { "title": "上下文", "type": "object" }, "input": { "title": "输入" }, "loc": { "items": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] }, "title": "位置", "type": "array" }, "msg": { "title": "消息", "type": "string" }, "type": { "title": "错误 类型", "type": "string" } }, "required": [ "loc", "msg", "type" ], "title": "校验错误", "type": "object" } }, "securitySchemes": { "HTTPBearer": { "scheme": "bearer", "type": "http" } } }, "info": { "description": "提供用于 ADE API 运行时/控制/测试编排的版本化 API 路由。面向后端优先的 API 调用,并用于 ADE Web 集成。", "summary": "面向 ADE 与本地 ADE API 工作流的运行时与控制 API", "title": "ADE API", "version": "0.3.0" }, "openapi": "3.1.0", "paths": { "/api/v2/comment-lab/generations": { "post": { "operationId": "api_commenting_generate_api_v2_comment_lab_generations_post", "requestBody": { "content": { "application/json": { "examples": { "llama_server_comment": { "summary": "使用本地 llama-server 生成", "value": { "cache_prompt": false, "enable_thinking": false, "input": "Summarize the reader reaction and write one concise editor-style reply.", "max_tokens": 512, "model_key": "local_llama_server::qwen3527b", "persona_key": "comment_linxiaotang", "prompt_key": "comment_v20260418", "retry_count": 1, "scenario": "comment", "task_shape": "classic", "temperature": 0.6, "timeout_seconds": 120, "top_k": 64, "top_p": 1.0 } } }, "schema": { "$ref": "#/components/schemas/CommentingGenerateRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiCommentingGenerateResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "生成用于新闻/评论线程的无状态评论", "tags": [ "评论实验室" ] } }, "/api/v2/label-lab/generations": { "post": { "operationId": "api_labeling_generate_api_v2_label_lab_generations_post", "requestBody": { "content": { "application/json": { "examples": { "football_entities": { "summary": "抽取足球球员与球队", "value": { "input": "Messi scored for Inter Miami against Orlando City.", "max_tokens": 1024, "model_key": "local_llama_server::qwen3527b", "prompt_key": "label_football_entities_v1", "repair_retry_count": 1, "scenario": "label", "schema_key": "label_football_entity_groups_v1", "temperature": 0.0, "timeout_seconds": 120, "top_k": 64, "top_p": 1.0 } } }, "schema": { "$ref": "#/components/schemas/LabelingGenerateRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiLabelingGenerateResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "为输入文章生成无状态分组实体抽取", "tags": [ "标注实验室" ] } }, "/api/v2/model-catalog/models": { "get": { "operationId": "get_model_catalog_api_v2_model_catalog_models_get", "parameters": [ { "in": "query", "name": "refresh", "required": false, "schema": { "default": false, "title": "刷新", "type": "boolean" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ModelCatalogResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "获取统一模型目录诊断", "tags": [ "Model Catalog" ] } }, "/api/v2/model-catalog/options": { "get": { "description": "返回一个 ADE 场景解析后的模型与内容选项。", "operationId": "api_get_options_api_v2_model_catalog_options_get", "parameters": [ { "in": "query", "name": "refresh", "required": false, "schema": { "default": false, "title": "刷新", "type": "boolean" } }, { "in": "query", "name": "scenario", "required": false, "schema": { "default": "chat", "title": "场景", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiOptionsResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "列出 ADE 场景的运行时选项", "tags": [ "Model Catalog" ] } }, "/api/v2/prompt-center/catalog": { "get": { "operationId": "prompt_persona_metadata_api_v2_prompt_center_catalog_get", "parameters": [ { "in": "query", "name": "scenario", "required": false, "schema": { "default": "chat", "title": "场景", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiPromptPersonaMetadataResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "获取提示词与 Persona 元数据", "tags": [ "提示词中心" ] } }, "/api/v2/prompt-center/personas": { "get": { "operationId": "list_personas_api_v2_prompt_center_personas_get", "parameters": [ { "in": "query", "name": "include_archived", "required": false, "schema": { "default": false, "title": "包含已归档", "type": "boolean" } }, { "in": "query", "name": "scenario", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "场景" } }, { "in": "query", "name": "search", "required": false, "schema": { "default": "", "title": "搜索", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiTemplateListResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "列出 Persona 模板", "tags": [ "提示词中心" ] }, "post": { "operationId": "create_persona_api_v2_prompt_center_personas_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonaTemplateWriteRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiTemplateRecordResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "创建 Persona 模板", "tags": [ "提示词中心" ] } }, "/api/v2/prompt-center/personas/{key}": { "get": { "operationId": "get_persona_api_v2_prompt_center_personas__key__get", "parameters": [ { "in": "path", "name": "key", "required": true, "schema": { "title": "键", "type": "string" } }, { "in": "query", "name": "archived", "required": false, "schema": { "default": false, "title": "已归档", "type": "boolean" } }, { "in": "query", "name": "scenario", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "场景" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiTemplateRecordResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "获取 Persona 模板", "tags": [ "提示词中心" ] }, "patch": { "operationId": "update_persona_api_v2_prompt_center_personas__key__patch", "parameters": [ { "in": "path", "name": "key", "required": true, "schema": { "title": "键", "type": "string" } }, { "in": "query", "name": "scenario", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "场景" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PersonaTemplatePatchRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiTemplateRecordResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "更新 Persona 模板", "tags": [ "提示词中心" ] } }, "/api/v2/prompt-center/personas/{key}/archive": { "post": { "operationId": "archive_persona_api_v2_prompt_center_personas__key__archive_post", "parameters": [ { "in": "path", "name": "key", "required": true, "schema": { "title": "键", "type": "string" } }, { "in": "query", "name": "scenario", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "场景" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiTemplateRecordResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "归档 Persona 模板", "tags": [ "提示词中心" ] } }, "/api/v2/prompt-center/personas/{key}/purge": { "delete": { "operationId": "purge_persona_api_v2_prompt_center_personas__key__purge_delete", "parameters": [ { "in": "path", "name": "key", "required": true, "schema": { "title": "键", "type": "string" } }, { "in": "query", "name": "scenario", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "场景" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "清除已归档 Persona 模板", "tags": [ "提示词中心" ] } }, "/api/v2/prompt-center/personas/{key}/restore": { "post": { "operationId": "restore_persona_api_v2_prompt_center_personas__key__restore_post", "parameters": [ { "in": "path", "name": "key", "required": true, "schema": { "title": "键", "type": "string" } }, { "in": "query", "name": "scenario", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "场景" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiTemplateRecordResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "恢复已归档 Persona 模板", "tags": [ "提示词中心" ] } }, "/api/v2/prompt-center/prompts": { "get": { "operationId": "api_prompt_center_list_prompts_api_v2_prompt_center_prompts_get", "parameters": [ { "in": "query", "name": "include_archived", "required": false, "schema": { "default": false, "title": "包含已归档", "type": "boolean" } }, { "in": "query", "name": "scenario", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "场景" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiTemplateListResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "列出系统提示词模板", "tags": [ "提示词中心" ] }, "post": { "operationId": "api_prompt_center_create_prompt_api_v2_prompt_center_prompts_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PromptTemplateWriteRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiTemplateRecordResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "创建系统提示词模板", "tags": [ "提示词中心" ] } }, "/api/v2/prompt-center/prompts/{key}": { "get": { "operationId": "api_prompt_center_get_prompt_api_v2_prompt_center_prompts__key__get", "parameters": [ { "in": "path", "name": "key", "required": true, "schema": { "title": "键", "type": "string" } }, { "in": "query", "name": "archived", "required": false, "schema": { "default": false, "title": "已归档", "type": "boolean" } }, { "in": "query", "name": "scenario", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "场景" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiTemplateRecordResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "获取系统提示词模板", "tags": [ "提示词中心" ] }, "patch": { "operationId": "api_prompt_center_update_prompt_api_v2_prompt_center_prompts__key__patch", "parameters": [ { "in": "path", "name": "key", "required": true, "schema": { "title": "键", "type": "string" } }, { "in": "query", "name": "scenario", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "场景" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PromptTemplatePatchRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiTemplateRecordResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "更新系统提示词模板", "tags": [ "提示词中心" ] } }, "/api/v2/prompt-center/prompts/{key}/archive": { "post": { "operationId": "api_prompt_center_archive_prompt_api_v2_prompt_center_prompts__key__archive_post", "parameters": [ { "in": "path", "name": "key", "required": true, "schema": { "title": "键", "type": "string" } }, { "in": "query", "name": "scenario", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "场景" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiTemplateRecordResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "归档系统提示词模板", "tags": [ "提示词中心" ] } }, "/api/v2/prompt-center/prompts/{key}/purge": { "delete": { "operationId": "api_prompt_center_purge_prompt_api_v2_prompt_center_prompts__key__purge_delete", "parameters": [ { "in": "path", "name": "key", "required": true, "schema": { "title": "键", "type": "string" } }, { "in": "query", "name": "scenario", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "场景" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "清除已归档系统提示词模板", "tags": [ "提示词中心" ] } }, "/api/v2/prompt-center/prompts/{key}/restore": { "post": { "operationId": "api_prompt_center_restore_prompt_api_v2_prompt_center_prompts__key__restore_post", "parameters": [ { "in": "path", "name": "key", "required": true, "schema": { "title": "键", "type": "string" } }, { "in": "query", "name": "scenario", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "场景" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiTemplateRecordResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "恢复已归档系统提示词模板", "tags": [ "提示词中心" ] } }, "/api/v2/prompt-center/revisions": { "get": { "operationId": "prompt_persona_revisions_api_v2_prompt_center_revisions_get", "parameters": [ { "in": "query", "name": "agent_id", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "智能体 ID" } }, { "in": "query", "name": "field", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "字段" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 80, "title": "限制", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiPromptPersonaRevisionsResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "获取提示词/Persona 修订历史时间线", "tags": [ "提示词中心" ] } }, "/api/v2/schema-center/label-schemas": { "get": { "operationId": "api_schema_center_list_label_schemas_api_v2_schema_center_label_schemas_get", "parameters": [ { "in": "query", "name": "include_archived", "required": false, "schema": { "default": false, "title": "包含已归档", "type": "boolean" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiLabelSchemaListResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "列出 Label Lab JSON Schema", "tags": [ "Schema 中心" ] }, "post": { "operationId": "api_schema_center_create_label_schema_api_v2_schema_center_label_schemas_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LabelSchemaWriteRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiLabelSchemaRecordResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "创建 Label Lab JSON Schema", "tags": [ "Schema 中心" ] } }, "/api/v2/schema-center/label-schemas/{key}": { "get": { "operationId": "api_schema_center_get_label_schema_api_v2_schema_center_label_schemas__key__get", "parameters": [ { "in": "path", "name": "key", "required": true, "schema": { "title": "键", "type": "string" } }, { "in": "query", "name": "archived", "required": false, "schema": { "default": false, "title": "已归档", "type": "boolean" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiLabelSchemaRecordResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "获取 Label Lab JSON Schema", "tags": [ "Schema 中心" ] }, "patch": { "operationId": "api_schema_center_update_label_schema_api_v2_schema_center_label_schemas__key__patch", "parameters": [ { "in": "path", "name": "key", "required": true, "schema": { "title": "键", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LabelSchemaPatchRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiLabelSchemaRecordResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "更新 Label Lab JSON Schema", "tags": [ "Schema 中心" ] } }, "/api/v2/schema-center/label-schemas/{key}/archive": { "post": { "operationId": "api_schema_center_archive_label_schema_api_v2_schema_center_label_schemas__key__archive_post", "parameters": [ { "in": "path", "name": "key", "required": true, "schema": { "title": "键", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiLabelSchemaRecordResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "归档 Label Lab JSON Schema", "tags": [ "Schema 中心" ] } }, "/api/v2/schema-center/label-schemas/{key}/purge": { "delete": { "operationId": "api_schema_center_purge_label_schema_api_v2_schema_center_label_schemas__key__purge_delete", "parameters": [ { "in": "path", "name": "key", "required": true, "schema": { "title": "键", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "清除已归档 Label Lab JSON Schema", "tags": [ "Schema 中心" ] } }, "/api/v2/schema-center/label-schemas/{key}/restore": { "post": { "operationId": "api_schema_center_restore_label_schema_api_v2_schema_center_label_schemas__key__restore_post", "parameters": [ { "in": "path", "name": "key", "required": true, "schema": { "title": "键", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiLabelSchemaRecordResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "恢复已归档 Label Lab JSON Schema", "tags": [ "Schema 中心" ] } }, "/api/v2/test-center/options": { "get": { "operationId": "get_test_center_options_api_v2_test_center_options_get", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TestCenterOptionsResponse" } } }, "description": "成功响应" } }, "security": [ { "HTTPBearer": [] } ], "summary": "获取测试中心标准启动选项", "tags": [ "测试中心" ] } }, "/api/v2/test-center/runs": { "get": { "operationId": "list_test_runs_api_v2_test_center_runs_get", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TestRunListResponse" } } }, "description": "成功响应" } }, "security": [ { "HTTPBearer": [] } ], "summary": "列出编排测试运行", "tags": [ "测试中心" ] }, "post": { "operationId": "create_test_run_api_v2_test_center_runs_post", "requestBody": { "content": { "application/json": { "schema": { "discriminator": { "mapping": { "ade_api_e2e_check": "#/components/schemas/CurrentStackSmokeRunRequest", "agent_runtime_acceptance": "#/components/schemas/AgentRuntimeAcceptanceRunRequest", "chat_memory_eval": "#/components/schemas/ChatMemoryEvaluationRunRequest" }, "propertyName": "run_type" }, "oneOf": [ { "$ref": "#/components/schemas/CurrentStackSmokeRunRequest" }, { "$ref": "#/components/schemas/ChatMemoryEvaluationRunRequest" }, { "$ref": "#/components/schemas/AgentRuntimeAcceptanceRunRequest" } ], "title": "请求" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TestRunRecordResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "创建编排测试运行", "tags": [ "测试中心" ] } }, "/api/v2/test-center/runs/{run_id}": { "get": { "operationId": "get_test_run_api_v2_test_center_runs__run_id__get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "运行 ID", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TestRunRecordResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "获取编排测试运行", "tags": [ "测试中心" ] } }, "/api/v2/test-center/runs/{run_id}/artifacts": { "get": { "operationId": "list_test_run_artifacts_api_v2_test_center_runs__run_id__artifacts_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "运行 ID", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TestRunArtifactListResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "列出测试运行产物", "tags": [ "测试中心" ] } }, "/api/v2/test-center/runs/{run_id}/artifacts/{artifact_id}": { "get": { "operationId": "read_test_run_artifact_api_v2_test_center_runs__run_id__artifacts__artifact_id__get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "运行 ID", "type": "string" } }, { "in": "path", "name": "artifact_id", "required": true, "schema": { "title": "产物 ID", "type": "string" } }, { "in": "query", "name": "max_lines", "required": false, "schema": { "default": 400, "title": "最大 行", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TestRunArtifactReadResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "读取测试运行产物内容", "tags": [ "测试中心" ] } }, "/api/v2/test-center/runs/{run_id}/cancel": { "post": { "operationId": "cancel_test_run_api_v2_test_center_runs__run_id__cancel_post", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "运行 ID", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TestRunRecordResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "取消编排测试运行", "tags": [ "测试中心" ] } }, "/api/v3/agent-studio/definitions": { "get": { "operationId": "list_definitions_api_v3_agent_studio_definitions_get", "parameters": [ { "in": "query", "name": "include_archived", "required": false, "schema": { "default": false, "title": "包含已归档", "type": "boolean" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 200, "minimum": 1, "title": "限制", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "偏移量", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentDefinitionListResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "列出当前 Agent Studio 定义版本", "tags": [ "智能体运行时" ] }, "post": { "operationId": "create_definition_api_v3_agent_studio_definitions_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateAgentDefinitionRequest" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentDefinitionResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "创建下一个不可变 Agent Studio 定义版本", "tags": [ "智能体运行时" ] } }, "/api/v3/agent-studio/definitions/{definition_id}": { "delete": { "operationId": "archive_definition_api_v3_agent_studio_definitions__definition_id__delete", "parameters": [ { "in": "path", "name": "definition_id", "required": true, "schema": { "title": "定义 ID", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentDefinitionResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "归档 Agent Studio 定义", "tags": [ "智能体运行时" ] } }, "/api/v3/agent-studio/definitions/{definition_id}/restore": { "post": { "operationId": "restore_definition_api_v3_agent_studio_definitions__definition_id__restore_post", "parameters": [ { "in": "path", "name": "definition_id", "required": true, "schema": { "title": "定义 ID", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentDefinitionResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "恢复 Agent Studio 定义", "tags": [ "智能体运行时" ] } }, "/api/v3/agent-studio/options": { "get": { "operationId": "get_options_api_v3_agent_studio_options_get", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentStudioOptionsResponse" } } }, "description": "成功响应" } }, "security": [ { "HTTPBearer": [] } ], "summary": "列出已配置的原生 Agent Studio 套件", "tags": [ "智能体运行时" ] } }, "/api/v3/agent-studio/sessions": { "get": { "operationId": "list_sessions_api_v3_agent_studio_sessions_get", "parameters": [ { "in": "query", "name": "include_archived", "required": false, "schema": { "default": false, "title": "包含已归档", "type": "boolean" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 200, "minimum": 1, "title": "限制", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "偏移量", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentStudioSessionListResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "列出持久化 Agent Studio 会话", "tags": [ "智能体运行时" ] }, "post": { "operationId": "create_session_api_v3_agent_studio_sessions_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateAgentStudioSessionRequest" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentStudioSessionResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "原子创建 Agent Studio 会话", "tags": [ "智能体运行时" ] } }, "/api/v3/agent-studio/sessions/{conversation_id}": { "delete": { "operationId": "archive_session_api_v3_agent_studio_sessions__conversation_id__delete", "parameters": [ { "in": "path", "name": "conversation_id", "required": true, "schema": { "title": "会话 ID", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentStudioSessionResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "归档 Agent Studio 会话", "tags": [ "智能体运行时" ] }, "get": { "operationId": "get_session_api_v3_agent_studio_sessions__conversation_id__get", "parameters": [ { "in": "path", "name": "conversation_id", "required": true, "schema": { "title": "会话 ID", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentStudioSessionResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "获取 Agent Studio 会话绑定", "tags": [ "智能体运行时" ] } }, "/api/v3/agent-studio/sessions/{conversation_id}/restore": { "post": { "operationId": "restore_session_api_v3_agent_studio_sessions__conversation_id__restore_post", "parameters": [ { "in": "path", "name": "conversation_id", "required": true, "schema": { "title": "会话 ID", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentStudioSessionResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "恢复 Agent Studio 会话", "tags": [ "智能体运行时" ] } }, "/api/v3/agent-studio/sessions/{conversation_id}/state": { "get": { "operationId": "get_session_state_api_v3_agent_studio_sessions__conversation_id__state_get", "parameters": [ { "in": "path", "name": "conversation_id", "required": true, "schema": { "title": "会话 ID", "type": "string" } }, { "in": "query", "name": "message_limit", "required": false, "schema": { "default": 200, "maximum": 200, "minimum": 1, "title": "消息 上限", "type": "integer" } }, { "in": "query", "name": "before_sequence", "required": false, "schema": { "anyOf": [ { "minimum": 1, "type": "integer" }, { "type": "null" } ], "title": "变更前 序号" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConversationStateResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "检查分页的 Agent Studio 会话状态", "tags": [ "智能体运行时" ] } }, "/api/v3/agent-studio/subjects": { "get": { "operationId": "list_subjects_api_v3_agent_studio_subjects_get", "parameters": [ { "in": "query", "name": "include_archived", "required": false, "schema": { "default": false, "title": "包含已归档", "type": "boolean" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 200, "minimum": 1, "title": "限制", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "偏移量", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemorySubjectListResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "列出 Agent Studio 记忆主体", "tags": [ "智能体运行时" ] }, "post": { "operationId": "create_subject_api_v3_agent_studio_subjects_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateMemorySubjectRequest" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemorySubjectResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "创建 Agent Studio 记忆主体", "tags": [ "智能体运行时" ] } }, "/api/v3/agent-studio/subjects/{subject_id}": { "delete": { "operationId": "archive_subject_api_v3_agent_studio_subjects__subject_id__delete", "parameters": [ { "in": "path", "name": "subject_id", "required": true, "schema": { "title": "主体 ID", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemorySubjectResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "归档 Agent Studio 记忆主体", "tags": [ "智能体运行时" ] }, "patch": { "operationId": "update_subject_api_v3_agent_studio_subjects__subject_id__patch", "parameters": [ { "in": "path", "name": "subject_id", "required": true, "schema": { "title": "主体 ID", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateMemorySubjectRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemorySubjectResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "重命名 Agent Studio 记忆主体", "tags": [ "智能体运行时" ] } }, "/api/v3/agent-studio/subjects/{subject_id}/restore": { "post": { "operationId": "restore_subject_api_v3_agent_studio_subjects__subject_id__restore_post", "parameters": [ { "in": "path", "name": "subject_id", "required": true, "schema": { "title": "主体 ID", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemorySubjectResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "恢复 Agent Studio 记忆主体", "tags": [ "智能体运行时" ] } }, "/api/v3/conversations/{conversation_id}/activity": { "get": { "operationId": "list_conversation_activity_api_v3_conversations__conversation_id__activity_get", "parameters": [ { "in": "path", "name": "conversation_id", "required": true, "schema": { "title": "会话 ID", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConversationActivityResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "读取保留的每轮提供方、工具和上下文观测", "tags": [ "智能体运行时" ] } }, "/api/v3/conversations/{conversation_id}/runs": { "get": { "operationId": "list_runs_api_v3_conversations__conversation_id__runs_get", "parameters": [ { "in": "path", "name": "conversation_id", "required": true, "schema": { "title": "会话 ID", "type": "string" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 200, "minimum": 1, "title": "限制", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "偏移量", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunListResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "列出单个会话的智能体运行", "tags": [ "智能体运行时" ] } }, "/api/v3/conversations/{conversation_id}/turns": { "post": { "operationId": "accept_turn_api_v3_conversations__conversation_id__turns_post", "parameters": [ { "in": "path", "name": "conversation_id", "required": true, "schema": { "title": "会话 ID", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AcceptTurnRequest" } } }, "required": true }, "responses": { "202": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TurnAcceptedResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "接受异步会话轮次", "tags": [ "智能体运行时" ] } }, "/api/v3/evaluation-sessions": { "post": { "operationId": "create_evaluation_session_api_v3_evaluation_sessions_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateEvaluationSessionRequest" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EvaluationSessionResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "原子创建隔离的评估会话", "tags": [ "智能体运行时" ] } }, "/api/v3/evaluation-sessions/{conversation_id}/state": { "get": { "operationId": "get_evaluation_session_state_api_v3_evaluation_sessions__conversation_id__state_get", "parameters": [ { "in": "path", "name": "conversation_id", "required": true, "schema": { "title": "会话 ID", "type": "string" } }, { "in": "query", "name": "message_limit", "required": false, "schema": { "default": 200, "maximum": 200, "minimum": 1, "title": "消息 上限", "type": "integer" } }, { "in": "query", "name": "before_sequence", "required": false, "schema": { "anyOf": [ { "minimum": 1, "type": "integer" }, { "type": "null" } ], "title": "变更前 序号" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EvaluationSessionStateResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "独立于 Memory 检视已保存的评估会话与最新运行", "tags": [ "智能体运行时" ] } }, "/api/v3/memory/subjects/{subject_id}/characters/{character_root_id}/deliveries": { "get": { "operationId": "list_deliveries_api_v3_memory_subjects__subject_id__characters__character_root_id__deliveries_get", "parameters": [ { "in": "path", "name": "subject_id", "required": true, "schema": { "format": "uuid", "title": "主体 ID", "type": "string" } }, { "in": "path", "name": "character_root_id", "required": true, "schema": { "format": "uuid", "title": "角色 根 ID", "type": "string" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 200, "minimum": 1, "title": "限制", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "偏移量", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DeliveryListResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "独立于 Memory 可用性检视关系投递状态", "tags": [ "智能体运行时" ] } }, "/api/v3/memory/subjects/{subject_id}/characters/{character_root_id}/deliveries/{operation_id}/retry": { "post": { "operationId": "retry_delivery_api_v3_memory_subjects__subject_id__characters__character_root_id__deliveries__operation_id__retry_post", "parameters": [ { "in": "path", "name": "subject_id", "required": true, "schema": { "format": "uuid", "title": "主体 ID", "type": "string" } }, { "in": "path", "name": "character_root_id", "required": true, "schema": { "format": "uuid", "title": "角色 根 ID", "type": "string" } }, { "in": "path", "name": "operation_id", "required": true, "schema": { "format": "uuid", "title": "操作 ID", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DeliveryRetryRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DeliveryResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "重试所选关系中的不可变投递", "tags": [ "智能体运行时" ] } }, "/api/v3/memory/subjects/{subject_id}/characters/{character_root_id}/memories": { "get": { "operationId": "list_memories_api_v3_memory_subjects__subject_id__characters__character_root_id__memories_get", "parameters": [ { "in": "path", "name": "subject_id", "required": true, "schema": { "format": "uuid", "title": "主体 ID", "type": "string" } }, { "in": "path", "name": "character_root_id", "required": true, "schema": { "format": "uuid", "title": "角色 根 ID", "type": "string" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 200, "minimum": 1, "title": "限制", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "偏移量", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RelationshipMemoriesResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "列出同一人物与角色的已形成记忆", "tags": [ "智能体运行时" ] } }, "/api/v3/memory/subjects/{subject_id}/characters/{character_root_id}/operations": { "get": { "operationId": "list_operations_api_v3_memory_subjects__subject_id__characters__character_root_id__operations_get", "parameters": [ { "in": "path", "name": "subject_id", "required": true, "schema": { "format": "uuid", "title": "主体 ID", "type": "string" } }, { "in": "path", "name": "character_root_id", "required": true, "schema": { "format": "uuid", "title": "角色 根 ID", "type": "string" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 100, "minimum": 1, "title": "限制", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "偏移量", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NativeOperationsResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "列出同一关系的原生处理与归纳操作", "tags": [ "智能体运行时" ] } }, "/api/v3/memory/subjects/{subject_id}/characters/{character_root_id}/operations/{operation_id}": { "get": { "operationId": "get_operation_api_v3_memory_subjects__subject_id__characters__character_root_id__operations__operation_id__get", "parameters": [ { "in": "path", "name": "subject_id", "required": true, "schema": { "format": "uuid", "title": "主体 ID", "type": "string" } }, { "in": "path", "name": "character_root_id", "required": true, "schema": { "format": "uuid", "title": "角色 根 ID", "type": "string" } }, { "in": "path", "name": "operation_id", "required": true, "schema": { "format": "uuid", "title": "操作 ID", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NativeOperationResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "检视所选关系中的原生操作", "tags": [ "智能体运行时" ] } }, "/api/v3/memory/subjects/{subject_id}/characters/{character_root_id}/sources/{document_id}": { "get": { "operationId": "get_source_api_v3_memory_subjects__subject_id__characters__character_root_id__sources__document_id__get", "parameters": [ { "in": "path", "name": "subject_id", "required": true, "schema": { "format": "uuid", "title": "主体 ID", "type": "string" } }, { "in": "path", "name": "character_root_id", "required": true, "schema": { "format": "uuid", "title": "角色 根 ID", "type": "string" } }, { "in": "path", "name": "document_id", "required": true, "schema": { "title": "文档 ID", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SourceResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "检视所选关系中的原始来源", "tags": [ "智能体运行时" ] } }, "/api/v3/private-observations/runs/{run_id}": { "get": { "operationId": "read_run_observations_api_v3_private_observations_runs__run_id__get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "format": "uuid", "title": "运行 ID", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PrivateObservationResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "导出显式启用的开发工作区内单次已保存运行的观测记录", "tags": [ "智能体运行时" ] } }, "/api/v3/runs/{run_id}": { "get": { "operationId": "get_run_api_v3_runs__run_id__get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "运行 ID", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "获取智能体运行", "tags": [ "智能体运行时" ] } }, "/api/v3/runs/{run_id}/cancel": { "post": { "operationId": "cancel_run_api_v3_runs__run_id__cancel_post", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "运行 ID", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "取消智能体运行", "tags": [ "智能体运行时" ] } }, "/api/v3/runs/{run_id}/event-log": { "get": { "operationId": "list_run_events_api_v3_runs__run_id__event_log_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "运行 ID", "type": "string" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 200, "maximum": 500, "minimum": 1, "title": "限制", "type": "integer" } }, { "in": "query", "name": "after_sequence", "required": false, "schema": { "default": 0, "minimum": 0, "title": "变更后 序号", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunEventListResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "以 JSON 读取规范化智能体运行事件", "tags": [ "智能体运行时" ] } }, "/api/v3/runs/{run_id}/events": { "get": { "operationId": "stream_run_events_api_v3_runs__run_id__events_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "运行 ID", "type": "string" } }, { "in": "header", "name": "Last-Event-ID", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "最近 事件 ID" } } ], "responses": { "200": { "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "流式读取规范化智能体运行事件", "tags": [ "智能体运行时" ] } }, "/api/v3/runs/{run_id}/retry": { "post": { "operationId": "retry_run_api_v3_runs__run_id__retry_post", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "运行 ID", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RetryRunRequest" } } }, "required": true }, "responses": { "202": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TurnAcceptedResponse" } } }, "description": "成功响应" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "校验错误" } }, "security": [ { "HTTPBearer": [] } ], "summary": "使用已保存输入和新的记忆查询重试暂停的回复", "tags": [ "智能体运行时" ] } }, "/api/v3/worker-health": { "get": { "operationId": "get_worker_health_api_v3_worker_health_get", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RuntimeWorkerHealthResponse" } } }, "description": "成功响应" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RuntimeWorkerHealthResponse" } } }, "description": "数据库或匹配的运行时工作器尚未就绪" } }, "security": [ { "HTTPBearer": [] } ], "summary": "检查智能体运行工作器就绪状态", "tags": [ "智能体运行时" ] } } }, "servers": [ { "description": "本地 ADE API", "url": "http://127.0.0.1:8000" } ], "tags": [ { "description": "持久化智能体的创建、检查与对话操作。", "name": "智能体工作台" }, { "description": "使用模型路由器可见模型生成无状态评论。", "name": "评论实验室" }, { "description": "使用 Label Lab Schema 进行无状态分组实体抽取。", "name": "标注实验室" }, { "description": "提示词模板与 SQLite 后端 Persona 库管理。", "name": "提示词中心" }, { "description": "基于文件的 Label Lab JSON Schema 管理。", "name": "Schema 中心" }, { "description": "编排式实时检查与测试运行产物访问。", "name": "测试中心" }, { "description": "由模型路由器支持的模型目录与场景运行时选项。", "name": "Model Catalog" }, { "description": "ADE 自有 Agent Studio 运行时 API。", "name": "智能体运行时" } ] }