{ "components": { "schemas": { "EntityTypeInfo": { "description": "实体类型定义(来自本体模型)", "properties": { "description": { "default": "", "description": "实体类型说明", "title": "Description", "type": "string" }, "label": { "description": "显示名称", "title": "Label", "type": "string" }, "name": { "description": "实体类型名(对应 Neo4j Label)", "title": "Name", "type": "string" }, "properties": { "description": "属性定义列表(含 unique 标记)", "items": { "$ref": "#/components/schemas/PropertyInfo" }, "title": "Properties", "type": "array" } }, "required": [ "name", "label" ], "title": "EntityTypeInfo", "type": "object" }, "ErrorResponse": { "properties": { "error": { "title": "Error", "type": "string" } }, "required": [ "error" ], "title": "ErrorResponse", "type": "object" }, "ExtractedEntity": { "description": "抽取出的实体", "properties": { "confidence": { "description": "置信度 0.0~1.0", "maximum": 1.0, "minimum": 0.0, "title": "Confidence", "type": "number" }, "properties": { "additionalProperties": true, "description": "属性值(必须包含所有 unique=true 的属性)", "title": "Properties", "type": "object" }, "source_text": { "description": "实体在原文中的来源文本片段(约 50 字以内)", "title": "Source Text", "type": "string" }, "temp_id": { "description": "局部临时 ID(供同一 chunk 内的关系引用,格式: e1/e2/...)", "title": "Temp Id", "type": "string" }, "type": { "description": "实体类型名(必须与 OntologySchema 中的 name 一致)", "title": "Type", "type": "string" } }, "required": [ "temp_id", "type", "properties", "confidence", "source_text" ], "title": "ExtractedEntity", "type": "object" }, "ExtractedRelation": { "description": "抽取出的关系", "properties": { "confidence": { "description": "置信度 0.0~1.0", "maximum": 1.0, "minimum": 0.0, "title": "Confidence", "type": "number" }, "properties": { "additionalProperties": true, "description": "关系属性值", "title": "Properties", "type": "object" }, "source_temp_id": { "description": "源实体的 temp_id", "title": "Source Temp Id", "type": "string" }, "source_text": { "description": "关系在原文中的来源文本片段", "title": "Source Text", "type": "string" }, "target_temp_id": { "description": "目标实体的 temp_id", "title": "Target Temp Id", "type": "string" }, "type": { "description": "关系类型名(必须与 OntologySchema 中的 name 一致)", "title": "Type", "type": "string" } }, "required": [ "type", "source_temp_id", "target_temp_id", "confidence", "source_text" ], "title": "ExtractedRelation", "type": "object" }, "HTTPValidationError": { "properties": { "detail": { "items": { "$ref": "#/components/schemas/ValidationError" }, "title": "Detail", "type": "array" } }, "title": "HTTPValidationError", "type": "object" }, "InferenceScenarioBindingResponse": { "properties": { "effective": { "default": false, "title": "Effective", "type": "boolean" }, "model_profile_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Model Profile Id" }, "scenario_code": { "title": "Scenario Code", "type": "string" }, "scope_type": { "title": "Scope Type", "type": "string" }, "tenant_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Tenant Id" }, "updated_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Updated At" }, "updated_by": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Updated By" }, "version": { "default": 0, "title": "Version", "type": "integer" } }, "required": [ "scenario_code", "scope_type" ], "title": "InferenceScenarioBindingResponse", "type": "object" }, "InferenceScenarioBindingUpdate": { "additionalProperties": false, "properties": { "model_profile_id": { "title": "Model Profile Id", "type": "string" }, "version": { "minimum": 0.0, "title": "Version", "type": "integer" } }, "required": [ "version", "model_profile_id" ], "title": "InferenceScenarioBindingUpdate", "type": "object" }, "KGExtractRequest": { "description": "KG 抽取请求(单个 chunk,由 Graph 后端分块后调用)", "properties": { "confidence_threshold": { "default": 0.7, "description": "置信度阈值(参考值,具体分类由 Graph 后端处理)", "title": "Confidence Threshold", "type": "number" }, "doc_context": { "default": "", "description": "文档头部上下文(前 N 字),帮助 LLM 理解主题和简称", "title": "Doc Context", "type": "string" }, "graph_id": { "description": "知识图谱 ID", "title": "Graph Id", "type": "integer" }, "ontology": { "$ref": "#/components/schemas/OntologySchema", "description": "本体 Schema(实体类型+关系类型+属性定义)" }, "text": { "description": "待抽取的文本(单个 chunk,约 1000 字符)", "title": "Text", "type": "string" } }, "required": [ "text", "ontology", "graph_id" ], "title": "KGExtractRequest", "type": "object" }, "KGExtractResponse": { "description": "KG 抽取响应", "properties": { "entities": { "items": { "$ref": "#/components/schemas/ExtractedEntity" }, "title": "Entities", "type": "array" }, "processing_time": { "description": "处理耗时(秒)", "title": "Processing Time", "type": "number" }, "relations": { "items": { "$ref": "#/components/schemas/ExtractedRelation" }, "title": "Relations", "type": "array" } }, "required": [ "processing_time" ], "title": "KGExtractResponse", "type": "object" }, "NavigateAction": { "properties": { "label": { "title": "Label", "type": "string" }, "route": { "title": "Route", "type": "string" } }, "required": [ "label", "route" ], "title": "NavigateAction", "type": "object" }, "NavigateRequest": { "additionalProperties": false, "properties": { "query": { "title": "Query", "type": "string" } }, "required": [ "query" ], "title": "NavigateRequest", "type": "object" }, "NavigateResponse": { "properties": { "actions": { "items": { "$ref": "#/components/schemas/NavigateAction" }, "title": "Actions", "type": "array" }, "text": { "title": "Text", "type": "string" } }, "required": [ "text", "actions" ], "title": "NavigateResponse", "type": "object" }, "NotebookEngineCatalogCandidate": { "additionalProperties": false, "properties": { "candidate_id": { "minLength": 1, "title": "Candidate Id", "type": "string" }, "engine_id": { "minimum": 1.0, "title": "Engine Id", "type": "integer" }, "engine_name": { "minLength": 1, "title": "Engine Name", "type": "string" }, "engine_type": { "minLength": 1, "title": "Engine Type", "type": "string" }, "kind": { "minLength": 1, "title": "Kind", "type": "string" }, "name": { "minLength": 1, "title": "Name", "type": "string" }, "path": { "additionalProperties": true, "title": "Path", "type": "object" }, "path_names": { "items": { "type": "string" }, "maxItems": 16, "title": "Path Names", "type": "array" }, "role": { "minLength": 1, "title": "Role", "type": "string" }, "term": { "minLength": 1, "title": "Term", "type": "string" } }, "required": [ "candidate_id", "role", "engine_id", "engine_name", "engine_type", "name", "term", "kind", "path" ], "title": "NotebookEngineCatalogCandidate", "type": "object" }, "NotebookGenerationRequest": { "additionalProperties": false, "properties": { "candidates": { "items": { "$ref": "#/components/schemas/NotebookEngineCatalogCandidate" }, "maxItems": 320, "title": "Candidates", "type": "array" }, "kernel": { "const": "python3", "default": "python3", "title": "Kernel", "type": "string" }, "missing_intents": { "description": "首轮零召回时请求补充尚未尝试的资源检索词", "items": { "$ref": "#/components/schemas/NotebookMissingIntent" }, "maxItems": 8, "title": "Missing Intents", "type": "array" }, "query": { "minLength": 1, "title": "Query", "type": "string" }, "resources": { "items": { "$ref": "#/components/schemas/NotebookResourceFact" }, "maxItems": 8, "title": "Resources", "type": "array" } }, "required": [ "query" ], "title": "NotebookGenerationRequest", "type": "object" }, "NotebookGenerationResponse": { "properties": { "candidates": { "items": { "additionalProperties": true, "type": "object" }, "title": "Candidates", "type": "array" }, "clarification_reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Clarification Reason" }, "code": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Code" }, "explanation": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Explanation" }, "intents": { "items": { "additionalProperties": true, "type": "object" }, "title": "Intents", "type": "array" }, "message": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Message" }, "status": { "enum": [ "intents_ready", "candidates_ready", "success", "need_clarification" ], "title": "Status", "type": "string" }, "warnings": { "items": { "type": "string" }, "title": "Warnings", "type": "array" } }, "required": [ "status" ], "title": "NotebookGenerationResponse", "type": "object" }, "NotebookMissingIntent": { "additionalProperties": false, "properties": { "role": { "minLength": 1, "title": "Role", "type": "string" }, "search_queries": { "items": { "type": "string" }, "maxItems": 8, "minItems": 1, "title": "Search Queries", "type": "array" } }, "required": [ "role", "search_queries" ], "title": "NotebookMissingIntent", "type": "object" }, "NotebookResourceFact": { "additionalProperties": false, "properties": { "candidate_id": { "minLength": 1, "title": "Candidate Id", "type": "string" }, "crs": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Crs" }, "engine_id": { "minimum": 1.0, "title": "Engine Id", "type": "integer" }, "engine_name": { "minLength": 1, "title": "Engine Name", "type": "string" }, "engine_type": { "minLength": 1, "title": "Engine Type", "type": "string" }, "fields": { "items": { "additionalProperties": true, "type": "object" }, "maxItems": 200, "title": "Fields", "type": "array" }, "geometry_column": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Geometry Column" }, "geometry_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Geometry Type" }, "kind": { "minLength": 1, "title": "Kind", "type": "string" }, "name": { "minLength": 1, "title": "Name", "type": "string" }, "path": { "additionalProperties": true, "title": "Path", "type": "object" }, "path_names": { "items": { "type": "string" }, "maxItems": 16, "title": "Path Names", "type": "array" }, "path_segments": { "items": { "additionalProperties": { "type": "string" }, "type": "object" }, "maxItems": 16, "minItems": 1, "title": "Path Segments", "type": "array" }, "role": { "minLength": 1, "title": "Role", "type": "string" }, "term": { "minLength": 1, "title": "Term", "type": "string" } }, "required": [ "candidate_id", "role", "engine_id", "engine_name", "engine_type", "name", "term", "kind", "path", "path_segments" ], "title": "NotebookResourceFact", "type": "object" }, "OntologySchema": { "description": "本体 Schema(传递给 LLM 的抽取指导)", "properties": { "entity_types": { "description": "实体类型列表", "items": { "$ref": "#/components/schemas/EntityTypeInfo" }, "title": "Entity Types", "type": "array" }, "relation_types": { "description": "关系类型列表", "items": { "$ref": "#/components/schemas/RelationTypeInfo" }, "title": "Relation Types", "type": "array" } }, "required": [ "entity_types", "relation_types" ], "title": "OntologySchema", "type": "object" }, "PropertyInfo": { "description": "属性定义(来自本体模型)", "properties": { "data_type": { "description": "数据类型: string/integer/float/boolean/date/datetime/wkt", "title": "Data Type", "type": "string" }, "description": { "default": "", "description": "属性说明", "title": "Description", "type": "string" }, "label": { "description": "显示名称", "title": "Label", "type": "string" }, "name": { "description": "属性名(英文标识符)", "title": "Name", "type": "string" }, "required": { "default": false, "description": "是否必填", "title": "Required", "type": "boolean" }, "unique": { "default": false, "description": "是否为唯一标识属性(驱动 Neo4j MERGE 的唯一键)", "title": "Unique", "type": "boolean" } }, "required": [ "name", "label", "data_type" ], "title": "PropertyInfo", "type": "object" }, "QueryClarification": { "additionalProperties": false, "properties": { "category": { "title": "Category", "type": "string" }, "control": { "enum": [ "single_choice", "multiple_choice", "text", "resource_choice", "notice" ], "title": "Control", "type": "string" }, "key": { "title": "Key", "type": "string" }, "options": { "items": { "$ref": "#/components/schemas/QueryClarificationOption" }, "title": "Options", "type": "array" }, "prompt": { "title": "Prompt", "type": "string" }, "required": { "default": true, "title": "Required", "type": "boolean" }, "resource_candidates": { "items": { "$ref": "#/components/schemas/QueryResourceCandidate" }, "title": "Resource Candidates", "type": "array" } }, "required": [ "key", "category", "prompt", "control" ], "title": "QueryClarification", "type": "object" }, "QueryClarificationOption": { "additionalProperties": false, "properties": { "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Description" }, "label": { "title": "Label", "type": "string" }, "value": { "title": "Value", "type": "string" } }, "required": [ "value", "label" ], "title": "QueryClarificationOption", "type": "object" }, "QueryGenerationRequest": { "additionalProperties": false, "properties": { "clarification_answers": { "additionalProperties": { "anyOf": [ { "type": "string" }, { "items": { "type": "string" }, "type": "array" } ] }, "description": "用户对本次查询语义缺口的已确认答案;key 必须来自上一次结构化澄清", "maxProperties": 20, "title": "Clarification Answers", "type": "object" }, "current_query": { "anyOf": [ { "maxLength": 200000, "type": "string" }, { "type": "null" } ], "description": "编辑器中已有的查询文本,只作为生成上下文,不作为资源事实或执行范围", "title": "Current Query" }, "engine_context": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "description": "由 Agent 的 engine.list Tool 提供的已验证引擎事实;Develop 用户入口由 Copilot 自行发现", "title": "Engine Context" }, "engine_id": { "minimum": 1.0, "title": "Engine Id", "type": "integer" }, "query": { "minLength": 1, "title": "Query", "type": "string" }, "query_language": { "minLength": 1, "title": "Query Language", "type": "string" }, "resource_scope_locator": { "anyOf": [ { "maxLength": 4096, "minLength": 1, "type": "string" }, { "type": "null" } ], "description": "仅用于资源发现的 Owner Engine Catalog 容器 locator,不是输入资源或查询执行范围", "title": "Resource Scope Locator" }, "resources": { "items": { "$ref": "#/components/schemas/ResourceFact" }, "maxItems": 20, "title": "Resources", "type": "array" } }, "required": [ "query", "engine_id", "query_language" ], "title": "QueryGenerationRequest", "type": "object" }, "QueryGenerationResponse": { "properties": { "clarifications": { "items": { "$ref": "#/components/schemas/QueryClarification" }, "title": "Clarifications", "type": "array" }, "explanation": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Explanation" }, "query": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Query" }, "query_language": { "title": "Query Language", "type": "string" }, "query_parameters": { "items": { "$ref": "#/components/schemas/QueryParameterDefinition" }, "title": "Query Parameters", "type": "array" }, "resources": { "anyOf": [ { "items": { "$ref": "#/components/schemas/ResourceFact" }, "type": "array" }, { "type": "null" } ], "title": "Resources" }, "status": { "title": "Status", "type": "string" }, "warnings": { "items": { "type": "string" }, "title": "Warnings", "type": "array" } }, "required": [ "status", "query_language", "query_parameters" ], "title": "QueryGenerationResponse", "type": "object" }, "QueryParameterDefinition": { "additionalProperties": false, "properties": { "default": { "title": "Default" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Description" }, "name": { "pattern": "^[A-Za-z_][A-Za-z0-9_]*$", "title": "Name", "type": "string" }, "type": { "enum": [ "string", "integer", "number", "boolean" ], "title": "Type", "type": "string" } }, "required": [ "name", "type" ], "title": "QueryParameterDefinition", "type": "object" }, "QueryResourceCandidate": { "additionalProperties": false, "properties": { "ancestors": { "items": { "additionalProperties": true, "type": "object" }, "title": "Ancestors", "type": "array" }, "asset_type": { "title": "Asset Type", "type": "string" }, "crs": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "已验证的 CRS", "title": "Crs" }, "data_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "资源数据类型", "title": "Data Type" }, "engine_id": { "anyOf": [ { "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "description": "资源所属引擎实例 ID", "title": "Engine Id" }, "engine_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Engine Name" }, "fields": { "description": "受限字段事实", "items": { "additionalProperties": true, "type": "object" }, "maxItems": 200, "title": "Fields", "type": "array" }, "full_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Full Name" }, "geometry_column": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "已验证的几何列", "title": "Geometry Column" }, "geometry_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "已验证的几何类型", "title": "Geometry Type" }, "locator": { "description": "已验证的 ADDP ResourceLocator", "minLength": 1, "title": "Locator", "type": "string" }, "name": { "title": "Name", "type": "string" }, "path": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Path" }, "query_references": { "additionalProperties": { "$ref": "#/components/schemas/ResourceQueryReference" }, "description": "Owner按查询语言确认的结构化查询名称,例如sql.parts=[public,users];不得拆分full_name猜测", "title": "Query References", "type": "object" }, "recommendation_reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Recommendation Reason" }, "recommended": { "default": false, "title": "Recommended", "type": "boolean" }, "role": { "description": "资源在本次任务中的稳定用途", "minLength": 1, "title": "Role", "type": "string" }, "schema_coverage": { "anyOf": [ { "enum": [ "complete", "sampled", "unknown" ], "type": "string" }, { "type": "null" } ], "description": "字段事实覆盖范围:complete、sampled 或 unknown", "title": "Schema Coverage" }, "score": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Score" }, "source_engine_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "资源来源引擎类型,由 Owner 校验", "title": "Source Engine Type" } }, "required": [ "role", "locator", "name", "asset_type" ], "title": "QueryResourceCandidate", "type": "object" }, "RelationTypeInfo": { "description": "关系类型定义(来自本体模型)", "properties": { "description": { "default": "", "description": "关系类型说明", "title": "Description", "type": "string" }, "label": { "description": "显示名称", "title": "Label", "type": "string" }, "name": { "description": "关系类型名(对应 Neo4j 关系类型)", "title": "Name", "type": "string" }, "properties": { "items": { "$ref": "#/components/schemas/PropertyInfo" }, "title": "Properties", "type": "array" }, "source_type": { "description": "源实体类型名", "title": "Source Type", "type": "string" }, "target_type": { "description": "目标实体类型名", "title": "Target Type", "type": "string" } }, "required": [ "name", "label", "source_type", "target_type" ], "title": "RelationTypeInfo", "type": "object" }, "ResourceFact": { "additionalProperties": false, "description": "A bounded projection of a resource confirmed by its owner.", "properties": { "crs": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "已验证的 CRS", "title": "Crs" }, "data_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "资源数据类型", "title": "Data Type" }, "engine_id": { "anyOf": [ { "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "description": "资源所属引擎实例 ID", "title": "Engine Id" }, "fields": { "description": "受限字段事实", "items": { "additionalProperties": true, "type": "object" }, "maxItems": 200, "title": "Fields", "type": "array" }, "full_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "资源在来源引擎内的规范名称", "title": "Full Name" }, "geometry_column": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "已验证的几何列", "title": "Geometry Column" }, "geometry_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "已验证的几何类型", "title": "Geometry Type" }, "locator": { "description": "已验证的 ADDP ResourceLocator", "minLength": 1, "title": "Locator", "type": "string" }, "query_references": { "additionalProperties": { "$ref": "#/components/schemas/ResourceQueryReference" }, "description": "Owner按查询语言确认的结构化查询名称,例如sql.parts=[public,users];不得拆分full_name猜测", "title": "Query References", "type": "object" }, "role": { "description": "资源在本次任务中的稳定用途", "minLength": 1, "title": "Role", "type": "string" }, "schema_coverage": { "anyOf": [ { "enum": [ "complete", "sampled", "unknown" ], "type": "string" }, { "type": "null" } ], "description": "字段事实覆盖范围:complete、sampled 或 unknown", "title": "Schema Coverage" }, "source_engine_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "资源来源引擎类型,由 Owner 校验", "title": "Source Engine Type" } }, "required": [ "role", "locator" ], "title": "ResourceFact", "type": "object" }, "ResourceIntent": { "description": "一个需要独立检索并由用户确认的输入数据项。", "properties": { "role": { "description": "数据项在本次分析中的稳定业务用途", "minLength": 1, "title": "Role", "type": "string" }, "search_queries": { "description": "用于 data.search 的业务资源名或常用技术名", "items": { "type": "string" }, "maxItems": 8, "minItems": 1, "title": "Search Queries", "type": "array" } }, "required": [ "role", "search_queries" ], "title": "ResourceIntent", "type": "object" }, "ResourceQueryReference": { "additionalProperties": false, "description": "Exact owner-verified identifier segments; never a dotted-name parser.", "properties": { "parts": { "description": "原样保留的查询名称分段", "items": { "minLength": 1, "pattern": "^[^\\x00]+$", "type": "string" }, "maxItems": 32, "minItems": 1, "title": "Parts", "type": "array" } }, "required": [ "parts" ], "title": "ResourceQueryReference", "type": "object" }, "StandardDocumentCandidate": { "additionalProperties": false, "properties": { "candidate_type": { "enum": [ "glossary", "element", "code_set", "metric" ], "title": "Candidate Type", "type": "string" }, "code": { "maxLength": 100, "minLength": 1, "pattern": "^[a-z][a-z0-9_]*$", "title": "Code", "type": "string" }, "definition": { "maxLength": 4000, "minLength": 1, "title": "Definition", "type": "string" }, "evidences": { "items": { "$ref": "#/components/schemas/StandardDocumentEvidence" }, "maxItems": 20, "minItems": 1, "title": "Evidences", "type": "array" }, "name": { "maxLength": 200, "minLength": 1, "title": "Name", "type": "string" }, "payload": { "$ref": "#/components/schemas/StandardDocumentCandidatePayload" } }, "required": [ "candidate_type", "code", "name", "definition", "evidences" ], "title": "StandardDocumentCandidate", "type": "object" }, "StandardDocumentCandidatePayload": { "additionalProperties": false, "properties": { "aggregation": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Aggregation" }, "calculation_formula": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Calculation Formula" }, "code_set_code": { "anyOf": [ { "maxLength": 100, "minLength": 1, "pattern": "^[a-z][a-z0-9_]*$", "type": "string" }, { "type": "null" } ], "title": "Code Set Code" }, "data_type": { "anyOf": [ { "enum": [ "string", "int", "bigint", "float", "decimal", "date", "datetime", "bool", "json" ], "type": "string" }, { "type": "null" } ], "title": "Data Type" }, "dimensions": { "items": { "type": "string" }, "title": "Dimensions", "type": "array" }, "items": { "items": { "$ref": "#/components/schemas/StandardDocumentCodeItem" }, "title": "Items", "type": "array" }, "statistical_scope": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Statistical Scope" }, "unit": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Unit" }, "value_domain_kind": { "anyOf": [ { "enum": [ "unrestricted", "range", "enumeration" ], "type": "string" }, { "type": "null" } ], "title": "Value Domain Kind" } }, "title": "StandardDocumentCandidatePayload", "type": "object" }, "StandardDocumentCodeItem": { "additionalProperties": false, "properties": { "code": { "title": "Code", "type": "string" }, "definition": { "default": "", "title": "Definition", "type": "string" }, "name": { "title": "Name", "type": "string" } }, "required": [ "code", "name" ], "title": "StandardDocumentCodeItem", "type": "object" }, "StandardDocumentEvidence": { "additionalProperties": false, "properties": { "end_line": { "minimum": 1.0, "title": "End Line", "type": "integer" }, "section_path": { "maxLength": 500, "minLength": 1, "title": "Section Path", "type": "string" }, "start_line": { "minimum": 1.0, "title": "Start Line", "type": "integer" } }, "required": [ "section_path", "start_line", "end_line" ], "title": "StandardDocumentEvidence", "type": "object" }, "StandardDocumentExtractRequest": { "additionalProperties": false, "properties": { "code_namespace": { "anyOf": [ { "maxLength": 50, "minLength": 1, "pattern": "^[a-z][a-z0-9_]*$", "type": "string" }, { "type": "null" } ], "description": "领域候选编码前缀;非领域文档显式传 null | Domain candidate code prefix; pass null explicitly for non-domain documents", "title": "Code Namespace" }, "document_name": { "maxLength": 200, "minLength": 1, "title": "Document Name", "type": "string" }, "known_candidates": { "description": "同一文档中命名空间合规的候选编码复用提示 | Namespace-compliant candidate code reuse hints from the same document", "items": { "$ref": "#/components/schemas/StandardDocumentKnownCandidate" }, "maxItems": 200, "title": "Known Candidates", "type": "array" }, "sections": { "items": { "$ref": "#/components/schemas/StandardDocumentSection" }, "maxItems": 200, "minItems": 1, "title": "Sections", "type": "array" }, "version_label": { "default": "", "maxLength": 50, "title": "Version Label", "type": "string" } }, "required": [ "document_name", "code_namespace", "known_candidates", "sections" ], "title": "StandardDocumentExtractRequest", "type": "object" }, "StandardDocumentExtractResponse": { "additionalProperties": false, "properties": { "candidates": { "items": { "$ref": "#/components/schemas/StandardDocumentCandidate" }, "maxItems": 200, "title": "Candidates", "type": "array" } }, "title": "StandardDocumentExtractResponse", "type": "object" }, "StandardDocumentKnownCandidate": { "additionalProperties": false, "properties": { "candidate_type": { "enum": [ "glossary", "element", "code_set", "metric" ], "title": "Candidate Type", "type": "string" }, "code": { "maxLength": 100, "minLength": 1, "pattern": "^[a-z][a-z0-9_]*$", "title": "Code", "type": "string" }, "definition": { "maxLength": 4000, "minLength": 1, "title": "Definition", "type": "string" }, "name": { "maxLength": 200, "minLength": 1, "title": "Name", "type": "string" } }, "required": [ "candidate_type", "code", "name", "definition" ], "title": "StandardDocumentKnownCandidate", "type": "object" }, "StandardDocumentSection": { "additionalProperties": false, "properties": { "end_line": { "minimum": 1.0, "title": "End Line", "type": "integer" }, "section_path": { "maxLength": 500, "minLength": 1, "title": "Section Path", "type": "string" }, "start_line": { "minimum": 1.0, "title": "Start Line", "type": "integer" }, "text": { "maxLength": 200000, "minLength": 1, "title": "Text", "type": "string" } }, "required": [ "section_path", "start_line", "end_line", "text" ], "title": "StandardDocumentSection", "type": "object" }, "TransferGenerationRequest": { "additionalProperties": false, "properties": { "query": { "maxLength": 4000, "minLength": 1, "title": "Query", "type": "string" }, "resources": { "description": "调用方提供的源资源上下文,不是授权证明 | Caller-supplied source context, not proof of authorization", "items": { "$ref": "#/components/schemas/ResourceFact" }, "maxItems": 1, "title": "Resources", "type": "array" }, "task": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "description": "由 Transfer 向导构造的当前草稿;不接受 endpoint 之外的身份或凭据", "title": "Task" } }, "required": [ "query" ], "title": "TransferGenerationRequest", "type": "object" }, "TransferGenerationResponse": { "properties": { "clarification_reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Clarification Reason" }, "intents": { "anyOf": [ { "items": { "$ref": "#/components/schemas/ResourceIntent" }, "type": "array" }, { "type": "null" } ], "description": "无资源时返回的检索意图,由调用方发现资源 | Search intents for caller-owned discovery when no resource is supplied", "title": "Intents" }, "message": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Message" }, "resources": { "anyOf": [ { "items": { "$ref": "#/components/schemas/ResourceFact" }, "type": "array" }, { "type": "null" } ], "title": "Resources" }, "status": { "enum": [ "intents_ready", "need_clarification", "success" ], "title": "Status", "type": "string" }, "task": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "Task" }, "warnings": { "items": { "type": "string" }, "title": "Warnings", "type": "array" } }, "required": [ "status" ], "title": "TransferGenerationResponse", "type": "object" }, "ValidationError": { "properties": { "loc": { "items": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] }, "title": "Location", "type": "array" }, "msg": { "title": "Message", "type": "string" }, "type": { "title": "Error Type", "type": "string" } }, "required": [ "loc", "msg", "type" ], "title": "ValidationError", "type": "object" }, "WorkflowGenerationRequest": { "additionalProperties": false, "properties": { "query": { "maxLength": 4000, "minLength": 1, "title": "Query", "type": "string" }, "resources": { "description": "由 owner Tool 验证的输入资源事实;为空时先返回候选供确认", "items": { "$ref": "#/components/schemas/ResourceFact" }, "maxItems": 8, "title": "Resources", "type": "array" }, "workflow_engine_id": { "minimum": 1.0, "title": "Workflow Engine Id", "type": "integer" } }, "required": [ "query", "workflow_engine_id" ], "title": "WorkflowGenerationRequest", "type": "object" }, "WorkflowGenerationResponse": { "properties": { "clarification_reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Clarification Reason" }, "data_source_candidates": { "anyOf": [ { "items": { "$ref": "#/components/schemas/WorkflowResourceCandidate" }, "type": "array" }, { "type": "null" } ], "title": "Data Source Candidates" }, "errors": { "anyOf": [ { "items": {}, "type": "array" }, { "type": "null" } ], "title": "Errors" }, "explanation": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Explanation" }, "message": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Message" }, "resources": { "anyOf": [ { "items": { "$ref": "#/components/schemas/ResourceFact" }, "type": "array" }, { "type": "null" } ], "title": "Resources" }, "selected_operators": { "anyOf": [ { "items": {}, "type": "array" }, { "type": "null" } ], "title": "Selected Operators" }, "status": { "title": "Status", "type": "string" }, "suggestions": { "anyOf": [ { "items": {}, "type": "array" }, { "type": "null" } ], "title": "Suggestions" }, "validation_result": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "Validation Result" }, "warnings": { "anyOf": [ { "items": {}, "type": "array" }, { "type": "null" } ], "title": "Warnings" }, "workflow": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "Workflow" } }, "required": [ "status" ], "title": "WorkflowGenerationResponse", "type": "object" }, "WorkflowResourceCandidate": { "additionalProperties": false, "properties": { "ancestors": { "items": { "additionalProperties": true, "type": "object" }, "title": "Ancestors", "type": "array" }, "asset_type": { "title": "Asset Type", "type": "string" }, "crs": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "已验证的 CRS", "title": "Crs" }, "data_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "资源数据类型", "title": "Data Type" }, "engine_id": { "title": "Engine Id", "type": "integer" }, "engine_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Engine Name" }, "fields": { "description": "受限字段事实", "items": { "additionalProperties": true, "type": "object" }, "maxItems": 200, "title": "Fields", "type": "array" }, "full_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Full Name" }, "geometry_column": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "已验证的几何列", "title": "Geometry Column" }, "geometry_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "已验证的几何类型", "title": "Geometry Type" }, "locator": { "description": "已验证的 ADDP ResourceLocator", "minLength": 1, "title": "Locator", "type": "string" }, "name": { "title": "Name", "type": "string" }, "path": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Path" }, "query_references": { "additionalProperties": { "$ref": "#/components/schemas/ResourceQueryReference" }, "description": "Owner按查询语言确认的结构化查询名称,例如sql.parts=[public,users];不得拆分full_name猜测", "title": "Query References", "type": "object" }, "recommendation_reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Recommendation Reason" }, "recommended": { "default": false, "title": "Recommended", "type": "boolean" }, "role": { "description": "资源在本次任务中的稳定用途", "minLength": 1, "title": "Role", "type": "string" }, "schema_coverage": { "anyOf": [ { "enum": [ "complete", "sampled", "unknown" ], "type": "string" }, { "type": "null" } ], "description": "字段事实覆盖范围:complete、sampled 或 unknown", "title": "Schema Coverage" }, "score": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Score" }, "source_engine_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "资源来源引擎类型,由 Owner 校验", "title": "Source Engine Type" } }, "required": [ "role", "locator", "engine_id", "name", "asset_type" ], "title": "WorkflowResourceCandidate", "type": "object" } }, "securitySchemes": { "BearerAuth": { "description": "ADDP 用户访问令牌:Authorization: Bearer ", "scheme": "bearer", "type": "http" } } }, "info": { "title": "ADDP Copilot", "version": "1.0.0" }, "openapi": "3.1.0", "paths": { "/": { "get": { "description": "根路径", "operationId": "root__get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "根路径 | Root", "x-addp-auth-mode": "public" } }, "/health/live": { "get": { "operationId": "health_live_health_live_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "存活检查 | Liveness Check", "x-addp-auth-mode": "public" } }, "/health/ready": { "get": { "operationId": "health_ready_health_ready_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "就绪检查 | Readiness Check", "x-addp-auth-mode": "public" } }, "/kg-build/extract": { "post": { "description": "从单个文本 chunk 抽取实体和关系\n\n- 文本分块由 Graph 后端负责(见 graph/backend/internal/service/build_service.go)\n- 此端点只处理单个 chunk(约 1000 字符)\n- 抽取结果的置信度分类和写入 Neo4j 由 Graph 后端负责", "operationId": "extract_from_chunk_api_v1_copilot_kg_build_extract_post", "parameters": [ { "in": "header", "name": "Accept-Language", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Accept-Language" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/KGExtractRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/KGExtractResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "认证失效 | Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "权限不足 | Permission denied" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "抽取实体关系 | Extract From Chunk", "tags": [ "图谱构建 | KG Build" ], "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "copilot.knowledge_graph.execute" ] } }, "/navigate/guide": { "post": { "description": "根据用户意图返回平台导航建议\n\n接收自然语言描述,返回相关模块/页面的链接列表", "operationId": "navigate_guide_api_v1_copilot_navigate_guide_post", "parameters": [ { "in": "header", "name": "Accept-Language", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Accept-Language" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NavigateRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NavigateResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "认证失效 | Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "权限不足 | Permission denied" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "导航引导 | Navigation Guide", "tags": [ "导航引导 | Navigation Guide" ], "x-addp-auth-mode": "authenticated" } }, "/notebook/generate": { "post": { "description": "仅处理 Develop 已限定的 Session 候选和资源事实,不自行搜索全租户数据。", "operationId": "generate_notebook_api_v1_copilot_notebook_generate_post", "parameters": [ { "in": "header", "name": "Accept-Language", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Accept-Language" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotebookGenerationRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotebookGenerationResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "认证失效 | Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "权限不足 | Permission denied" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "生成 Notebook Python 单元 | Generate Notebook Python cell", "tags": [ "Notebook 智能体 | Notebook Agent" ], "x-addp-auth-mode": "delegated_tool", "x-addp-required-permissions": [ "copilot.notebook.execute" ] } }, "/query/generate": { "post": { "description": "在当前查询工作台引擎范围内发现资源并生成候选查询文本。", "operationId": "generate_query_api_v1_copilot_query_generate_post", "parameters": [ { "in": "header", "name": "Accept-Language", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Accept-Language" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/QueryGenerationRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/QueryGenerationResponse" } } }, "description": "Successful Response" }, "400": { "description": "请求不符合查询生成约束 | Invalid query generation request" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "认证失效 | Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "权限不足 | Permission denied" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" }, "500": { "description": "查询生成失败 | Query generation failed" }, "502": { "description": "Owner Tool 或推理服务调用失败 | Owner Tool or inference service call failed" } }, "security": [ { "BearerAuth": [] } ], "summary": "生成查询语言 | Generate Query Language", "tags": [ "查询智能体 | Query Agent" ], "x-addp-auth-mode": "delegated_tool", "x-addp-required-permissions": [ "copilot.sql.execute" ] } }, "/settings/inference-bindings/{scenario_code}": { "get": { "operationId": "get_inference_scenario_binding_api_v1_copilot_settings_inference_bindings__scenario_code__get", "parameters": [ { "in": "path", "name": "scenario_code", "required": true, "schema": { "title": "Scenario Code", "type": "string" } }, { "in": "header", "name": "Accept-Language", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Accept-Language" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InferenceScenarioBindingResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "认证失效 | Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "权限不足 | Permission denied" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "获取 Copilot 推理场景绑定 | Get Copilot Inference Scenario Binding", "tags": [ "配置管理 | Configuration Management" ], "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "copilot.configuration.read" ] }, "put": { "operationId": "update_inference_scenario_binding_api_v1_copilot_settings_inference_bindings__scenario_code__put", "parameters": [ { "in": "path", "name": "scenario_code", "required": true, "schema": { "title": "Scenario Code", "type": "string" } }, { "in": "header", "name": "Accept-Language", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Accept-Language" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InferenceScenarioBindingUpdate" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InferenceScenarioBindingResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "认证失效 | Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "权限不足 | Permission denied" }, "409": { "description": "版本冲突 | Version conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "更新 Copilot 推理场景绑定 | Update Copilot Inference Scenario Binding", "tags": [ "配置管理 | Configuration Management" ], "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "copilot.configuration.update" ] } }, "/standard-documents/extract": { "post": { "description": "按 Standard 提供的领域编码命名空间与同文档既有候选编码约束生成结果;越界编码整批拒绝 | Generates candidates under the domain code namespace and same-document known-code constraints supplied by Standard; rejects the entire result when any code is outside the namespace", "operationId": "extract_standard_document_api_v1_copilot_standard_documents_extract_post", "parameters": [ { "in": "header", "name": "Accept-Language", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Accept-Language" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StandardDocumentExtractRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StandardDocumentExtractResponse" } } }, "description": "Successful Response" }, "400": { "description": "推理场景配置不符合提炼要求 | Invalid extraction inference configuration" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "认证失效 | Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "权限不足 | Permission denied" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" }, "502": { "description": "推理失败或模型输出违反候选契约 | Inference failed or model output violated the candidate contract" } }, "security": [ { "BearerAuth": [] } ], "summary": "提炼数据标准候选 | Extract data standard candidates", "tags": [ "数据标准 | Data Standard" ], "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "copilot.standard_document.execute" ] } }, "/transfer/generate": { "post": { "description": "提取单一源意图,或在调用方上下文内生成无副作用的草稿。", "operationId": "generate_transfer_api_v1_copilot_transfer_generate_post", "parameters": [ { "in": "header", "name": "Accept-Language", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Accept-Language" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransferGenerationRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransferGenerationResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "认证失效 | Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "权限不足 | Permission denied" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" }, "503": { "description": "推理场景未配置或推理运行时未就绪 | Inference scenario is not configured or runtime is not ready" } }, "security": [ { "BearerAuth": [] } ], "summary": "提取 Transfer 源意图或生成任务草稿 | Extract Transfer source intent or generate task draft", "tags": [ "Transfer 智能体 | Transfer Agent" ], "x-addp-auth-mode": "delegated_tool", "x-addp-required-permissions": [ "copilot.transfer.execute" ] } }, "/workflow/generate": { "post": { "description": "Discover first-party candidates or consume already confirmed ResourceFact values.", "operationId": "generate_workflow_api_v1_copilot_workflow_generate_post", "parameters": [ { "in": "header", "name": "Accept-Language", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Accept-Language" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkflowGenerationRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkflowGenerationResponse" } } }, "description": "Successful Response" }, "400": { "description": "请求不符合工作流生成约束 | Invalid workflow generation request" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "认证失效 | Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "权限不足 | Permission denied" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" }, "500": { "description": "工作流生成失败 | Workflow generation failed" }, "502": { "description": "Owner Tool 调用失败 | Owner Tool call failed" } }, "security": [ { "BearerAuth": [] } ], "summary": "生成工作流 | Generate Workflow", "tags": [ "工作流智能体 | Workflow Agent" ], "x-addp-auth-mode": "delegated_tool", "x-addp-required-permissions": [ "copilot.workflow.execute" ] } } }, "servers": [ { "url": "/api/v1/copilot" } ] }