/** 获取数据根目录(与 create-entity 同源规则) */ export interface OntologyImportArgs { /** ontology JSON 文本:{ entities?, concepts?, relations? } */ payload: string; /** 注入者标识(decision-log 留痕——谁注入的;缺省 'external-model-layer') */ agent_id?: string; /** 注入备注(decision-log why 补充) */ comment?: string; } /** * 结构化结果(对齐 snapshot_restore 模式——data 带具体类型)。 */ export interface OntologyImportToolResult { /** 首行必须 [sofagent] 前缀 */ text: string; data: { isError: boolean; /** 注入是否成功 */ ok: boolean; /** 结构化错误清单(ok=false 时非空) */ issues: string[]; /** 注入统计(ok=true 时有值) */ imported?: { entities: number; concepts: number; relations: number; }; /** 写入文件数(ok=true 时有值) */ writtenFiles?: number; /** D1-D5 审计是否 WARN(ok=true 时) */ auditWarn?: boolean; /** decision-log 是否留痕成功(ok=true 时) */ decisionLogged?: boolean; /** 回滚说明(发生回滚时非空) */ rollbackNote?: string; }; } /** * ontology_import——外部提交 ontology 进约束层。 */ export declare function ontologyImport(args: OntologyImportArgs): Promise; //# sourceMappingURL=ontology-import.d.ts.map