iomgaa ab88c50827 完善智能体系统:添加疾病分析器模块和项目配置
- 修复基础代理类的导入路径问题和配置引用
- 添加疾病分析器智能体模块
  - 实现疾病风险评估和个性化建议功能
  - 包含结构化输出模型和智能提示模板
- 新增项目配置文件和包初始化文件
- 更新依赖:添加packaging和sqlalchemy包
- 添加Claude指导文档

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-10 20:50:06 +08:00

32 lines
1.0 KiB
Python
Raw 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.

from typing import List, Dict, Any
from pydantic import Field
from agent_system.base import BaseResponseModel
class DiseaseAnalysisResult(BaseResponseModel):
"""
疾病上下文分析结果模型
"""
disease_category: str = Field(
...,
description="疾病类别(如:神经系统疾病、心血管疾病、呼吸系统疾病等)"
)
suspected_conditions: List[str] = Field(
default_factory=list,
description="可能的疾病诊断列表"
)
onset_pattern: str = Field(
...,
description="起病模式(急性、亚急性、慢性)"
)
severity_level: str = Field(
...,
description="疾病严重程度(轻度、中度、重度)"
)
evaluation_priorities: Dict[str, List[str]] = Field(
default_factory=dict,
description="各子任务的评估重点key为子任务名称value为重点因素列表"
)
medical_reasoning: str = Field(
...,
description="医学分析推理过程"
)