Files
ailine/backend/app/agent_subgraphs/common/state_base.py
root bc26b81f08 feat: 实现完整的人工审核功能与子图模块
- 新增三个核心子图:人工审核、意图理解、格式化输出
- 实现完整的审核 API 端点(/api/review/*)
- 前端添加审核确认界面(右下角固定框)
- 为每个子图创建分步测试代码
- 添加功能实现文档
2026-04-25 13:24:50 +08:00

11 lines
440 B
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.

"""
状态基类工具模块
提供类型安全的 LangGraph 状态基类和常用状态操作工具
功能:
1. BaseState - 基础状态基类包含通用字段消息、token统计、耗时等
2. StateUtils - 状态操作工具类,提供常用的状态访问和修改方法
3. TypedStateBuilder - 类型化状态构建器,支持链式创建自定义状态
4. StateValidation - 状态验证工具,确保状态完整性
"""