Commit 684f52ea authored by David Yang's avatar David Yang

docs: sync subject definitions

parent d41f3405
## 2. Subject Definitions
<!-- SUBJECT_SCHEMA_SYNC:START -->
> 同步根对象:`ai_conversation`、`ai_skill`、`ai_topic`、`audit_knowledge_file`、`invoice_assitence` 当前依赖闭包:4 个 Subject。
### `ai_conversation`:AI 聊天会话
- 类型:`normal`
- 字段数量:14
| 字段标签 | 字段别名 | 字段类型 | 多值 | 必填 | 主键 | 关联/配置 |
| ---------- | ---------------- | --------- | ---- | ---- | ---- | --------- |
| 用户 | `user` | user | 否 | 否 | 否 | |
| 消息 | `messages` | object | 是 | 否 | 否 | |
| 标签 | `label` | text | 否 | 否 | 否 | |
| 提示词 | `prompt` | long_text | 否 | 否 | 否 | |
| 置顶 | `pinned` | boolean | 否 | 否 | 否 | |
| 模型 | `model` | text | 否 | 否 | 否 | |
| 智能体 | `agent` | reference | 否 | 否 | 否 | |
| 头像 | `avatar` | file | 否 | 否 | 否 | |
| 会话设置 | `settings` | object | 否 | 否 | 否 | |
| 描述 | `description` | text | 否 | 否 | 否 | |
| 关联知识库 | `knowledge_base` | reference | 是 | 否 | 否 | |
| MCP 列表 | `mcp_list` | object | 是 | 否 | 否 | |
| 关联话题 | `topic` | reference | 否 | 否 | 否 | |
| 智能体类型 | `agentKey` | text | 否 | 否 | 否 | |
### `ai_skill`:AI SKILL
- 类型:`normal`
- 字段数量:4
| 字段标签 | 字段别名 | 字段类型 | 多值 | 必填 | 主键 | 关联/配置 |
| -------- | ------------- | -------- | ---- | ---- | ---- | --------- |
| 标题 | `title` | text | 否 | 否 | 否 | |
| 文件 | `skill_file` | file | 否 | 否 | 否 | |
| 是否启用 | `enabled` | boolean | 否 | 否 | 否 | |
| 描述 | `description` | text | 否 | 否 | 否 | |
### `ai_topic`:AI 话题
- 类型:`normal`
- 字段数量:9
| 字段标签 | 字段别名 | 字段类型 | 多值 | 必填 | 主键 | 关联/配置 |
| --- | --- | --- | --- | --- | --- | --- |
| 话题名称 | `label` | text | 否 | 否 | 否 | |
| 提示词 | `prompt` | long_text | 否 | 否 | 否 | |
| 文档 | `documents` | file | 是 | 否 | 否 | |
| 开启互联网搜索 | `enable_search` | boolean | 否 | 否 | 否 | |
| 开启深度思考 | `enable_thinking` | boolean | 否 | 否 | 否 | |
| 搜索对象设置 | `search_subjects` | object | 是 | 否 | 否 | |
| 常用问题 | `questions` | text | 是 | 否 | 否 | |
| 上下文 | `context` | long_text | 否 | 否 | 否 | |
| 关联知识库 | `kbs` | reference | 是 | 否 | 否 | |
### `audit_knowledge_file`:问题检查点知识库
- 类型:`normal`
- 字段数量:8
| 字段标签 | 字段别名 | 字段类型 | 多值 | 必填 | 主键 | 关联/配置 |
| ---------- | ----------------- | -------- | ---- | ---- | ---- | --------- |
| 源文件 | `source_file` | text | 否 | 否 | 否 | |
| 状态 | `status` | text | 否 | 否 | 否 | |
| 版本号 | `version` | text | 否 | 否 | 否 | |
| 有效记录数 | `row_count` | number | 否 | 否 | 否 | |
| 重复记录数 | `duplicate_count` | number | 否 | 否 | 否 | |
| 无效记录数 | `invalid_count` | text | 否 | 否 | 否 | |
| 解析报告 | `parse_report` | object | 否 | 否 | 否 | |
| 启用时间 | `activated_at` | date | 否 | 否 | 否 | |
### 关联对象与子对象定义
依赖字段通过 `settings.subject` 指向的对象会递归纳入本节;`form` 资源不属于 Subject 依赖。
### 未解析的关联对象
- `invoice_assitence`:Subject invoice_assitence could not be resolved (API GET /subject/invoice_assitence failed (404: subject 'invoice_assitence' not found))
<!-- SUBJECT_SCHEMA_SYNC:END -->
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment