用途:该技能覆盖 Databricks Agent Bricks 中两类预构建 AI 组件。Knowledge Assistant(KA)用于对 Volume 内 PDF/文本做 RAG 文档问答;Supervisor Agent 用于编排多个智能体或工具。
主要能力:KA 支持通过 databricks knowledge-assistants 命令创建助手、添加知识源、同步并查看状态、列出与删除。知识源类型为 files(Volume 路径)或 index(Vector Search,需 index_name、text_col、doc_uri_col),状态经历 CREATING(约 2-5 分钟)→ ONLINE → OFFLINE。Supervisor Agent 使用 databricks supervisor-agents(Beta,需 CLI ≥ v1.0.0),可创建/获取/更新/删除智能体,并通过 create-tool 挂载工具,工具类型包括 genie_space、knowledge_assistant、uc_function、uc_connection、volume、app,另有 serving_endpoint、lakeview_dashboard、supervisor_agent、uc_table、vector_search_index、catalog、schema、web_search 等未完全验证;还可用 create-example 添加路由示例(guidelines 为重复字符串,必须用 --json)。
使用方式:先由 databricks volumes list 等命令定位数据,再用 create-knowledge-assistant 及 create-knowledge-source 建 KA(使用 --json 时只传 PARENT 位置参数,其余字段放入 JSON),随后 sync-knowledge-sources 并在 get-knowledge-assistant 查看状态。Supervisor 侧创建时传显示名位置参数,描述与指令用 flag;创建工具时把 tool_type 放入 --json,各类型有对应的字段结构。
适用场景:企业内部文档问答、把 Genie SQL 分析、UC 函数或外部 MCP 服务统一到一个对话入口。
限制:Supervisor Agent 为 Beta;端点创建后可能需约 10 分钟才可响应,可用 databricks serving-endpoints get 检查;删除助手、智能体、工具或示例均为不可逆操作,需先确认 id;部分工具类型字段结构未在此端到端验证,应参考 --help 与参考文档。