Files
hms/crates/erp-ai/src/agent/tools/mod.rs
iven 8b59f2d7d9 feat(ai): Day 3 — GetHealthInsightsTool + 配额前置检查 + Token 预算限制
- 新增 GetHealthInsightsTool:聚合档案摘要+化验异常+体征异常,输出 InsightCard
- 注册到 Patient/MedicalStaff 沙箱(10 个 Tool 全部就位)
- chat_handler 添加 QuotaService 配额前置检查(月度 Token/患者日限额)
- AgentRunParams 新增 token_budget 字段,Orchestrator 每轮累计检查超预算强制结束
2026-05-19 10:56:09 +08:00

22 lines
750 B
Rust

// Agent Tool 实现
pub mod analyze_health_trends;
pub mod analyze_lab_report;
pub mod get_health_insights;
pub mod query_appointments;
pub mod query_lab_reports;
pub mod query_medications;
pub mod query_patient_profile;
pub mod query_vitals;
pub mod search_medical_knowledge;
pub use analyze_health_trends::AnalyzeHealthTrendsTool;
pub use analyze_lab_report::AnalyzeLabReportTool;
pub use get_health_insights::GetHealthInsightsTool;
pub use query_appointments::QueryAppointmentsTool;
pub use query_lab_reports::QueryLabReportsTool;
pub use query_medications::QueryMedicationsTool;
pub use query_patient_profile::QueryPatientProfileTool;
pub use query_vitals::QueryPatientVitalsTool;
pub use search_medical_knowledge::SearchMedicalKnowledgeTool;