Files

12 lines
991 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""助手按需查看(look 文档第二部分 + 总方案 L1–L4,docs/design/app-platform-and-look.md 第五部分)。BE-4 实现。
- base.py LookKind 接口、targets / 记录的形状、上限常量、生成过程的注入接口(Applier / Checker)
- tables.py 表(库概览、表目录、表详情,含遮罩;与 db_schema__、/schema 共用 data/schema_view.py)
- capabilities.py 能力(只给操作名、参数、返回字段、读写、要不要确认;不给地址和凭据)
- versions.py 工作流版本(应用润色时看钉住的版本;app/apps/describe.py)
- pick.py 按需求挑选:几种对象共用一份挑选提示词,挑选模型第一次要用时才拿
- service.py 解析 targets、按类型挑选、交回目录、字数上限、重复查看短路、产出记录
生成过程(读到 look 停下、执行、接着写)在 api/copilot_gen.py;各入口怎么组装在 api/copilot_context.py 和 api/copilot.py。
"""