tmp
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import {
|
||||
hospitalInfoListTool,
|
||||
hospitalInfoGetTool,
|
||||
hospitalInfoQueryTool,
|
||||
hospitalInfoSetTool,
|
||||
} from "../infra/tools/index.js";
|
||||
|
||||
// 医院就医信息查询与维护(医生资料/坐班、科室、看病指南等)
|
||||
export const createHospitalInfoSubagent = (model) => ({
|
||||
name: "hospital-info-subagent",
|
||||
description: "查询和维护医院基本资料及就医信息:医院电话、医生资料、出诊信息、科室位置与电话、看病指南(门诊/挂号/医保/住院/检查须知)等",
|
||||
systemPrompt: `你负责医院就医信息的查询、维护、更新、核验。
|
||||
|
||||
查询:
|
||||
- 先用 hospital_info_list 拿到医院(名称、id)列表定位医院,再用 hospital_info_get 按医院 id 获取完整信息。
|
||||
- 需要按科室、医生名过滤时,可用名称模糊查询,返回精准信息。
|
||||
- 出诊信息等时效性数据必须注明信息更新时间,并提示用户以医院最新公告为准。
|
||||
- 查不到的信息如实告知,禁止编造。
|
||||
|
||||
维护:
|
||||
- overview:医院级文本全量替换,写入前先查询现有内容,合并整理后整体写入,不得丢失原有信息。
|
||||
- guides:场景键值对浅合并,新增场景直接传键值对;删除场景将值置为 null。
|
||||
- photos/departments/doctors:列表按锚点操作,锚点为 照片=url、科室=name、医生=name+department;upsert 新增或整条更新,remove 删除。
|
||||
- doctors 的 detail 包含职称、擅长方向、号别(普通/专家/特需)、坐班与停诊安排。
|
||||
- 尽量提供 updatedBy 记录操作人。图片只存 URL 链接,不负责图片上传。`,
|
||||
model,
|
||||
tools: [hospitalInfoListTool, hospitalInfoGetTool, hospitalInfoQueryTool, hospitalInfoSetTool],
|
||||
});
|
||||
@@ -0,0 +1,24 @@
|
||||
import {
|
||||
escortRecordQueryTool,
|
||||
escortRecordSetTool,
|
||||
healthProfileQueryTool,
|
||||
healthProfileSetTool,
|
||||
} from "../infra/tools/index.js";
|
||||
|
||||
// 患者记录:陪诊预约记录 + 健康档案的查询和设置
|
||||
export const createPatientRecordSubagent = (model) => ({
|
||||
name: "patient-record-subagent",
|
||||
description: "查询和设置患者记录:陪诊预约记录、健康档案",
|
||||
systemPrompt: `根据用户指令,调用工具完成患者记录的查询和设置。
|
||||
|
||||
陪诊预约记录:
|
||||
- 查询用 escort_record_query,更新用 escort_record_set(按记录 _id 定位)。
|
||||
|
||||
健康档案:
|
||||
- 查询用 health_profile_query(可按姓名模糊、电话精确、档案 ID 定位),创建/更新用 health_profile_set。
|
||||
- 更新前先查询现有档案,仅修改用户明确要求变更的字段,不得覆盖其他信息。
|
||||
- 涉及敏感信息(证件号、电话、地址),仅按需记录和返回,禁止编造。`,
|
||||
model,
|
||||
mode: "fork", // deepagents 1.13:继承主对话历史,管理员指令中的上下文(患者、订单等)无需复述
|
||||
tools: [escortRecordQueryTool, escortRecordSetTool, healthProfileQueryTool, healthProfileSetTool],
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
import { webFetchTool, webSearchTool } from "../infra/tools/index.js";
|
||||
|
||||
// 陪诊(陪同就医)行业问题研究和解答
|
||||
export const createResearchSubagent = (model) => ({
|
||||
name: "escort-research-subagent",
|
||||
description: "陪诊(陪同就医)行业问题研究和解答",
|
||||
systemPrompt: "你是陪诊(陪同就医)行业政策、发展趋势、行业知识研究和解答专家。",
|
||||
model,
|
||||
tools: [webFetchTool, webSearchTool],
|
||||
});
|
||||
Reference in New Issue
Block a user