mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-21 04:46:26 +00:00
feat(ai): 重构AI聊天模块,使用agno框架替代langchain
- 移除langchain相关依赖,引入agno作为大模型开发框架 - 重构聊天会话和消息存储,使用agno的TeamSession管理 - 合并chat_message和chat_session模块为统一的chat模块 - 更新前端API和类型定义,适配新的后端接口 - 优化数据库日志字段类型,根据数据库类型自动选择 - 重构AI助手组件,使用新的聊天API - 清理不再使用的模型、控制器和服务代码
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
"""
|
||||
节点执行处理器模块
|
||||
|
||||
提供各种封装好的方法供节点执行函数调用
|
||||
|
||||
使用方法:
|
||||
在节点执行函数中,所有工具函数已经自动加载到全局命名空间,
|
||||
可以直接使用,无需导入。
|
||||
|
||||
例如:
|
||||
def handler(*args, **kwargs):
|
||||
log_info("任务开始")
|
||||
result = http_get("https://api.example.com")
|
||||
log_info(f"请求结果: {result}")
|
||||
return result
|
||||
"""
|
||||
|
||||
# 这个模块的主要作用是提供文档说明
|
||||
# 实际的功能函数在 context.py 中定义,并通过 NodeExecutionContext 注入到执行环境
|
||||
|
||||
__all__ = []
|
||||
|
||||
Reference in New Issue
Block a user