Wx/refactor/1.1.0 rebase#447
Closed
Vinceeee wants to merge 33 commits intoTencentBlueKing:developfrom
Closed
Conversation
升级了 langchain 和 langgraph 两个包到 1.0 移除了langchain0.3 的 AgentExecutor, 也就是 core/agent下的全部文件和core/extend/agent/qa.py 移除了原先的意图识别模块,使用了 retriever 替代了知识库召回的部分 langchain更名为langchain_core langchain_core 添加了 models,这是从core/extend/models中移动而来 langchain_core中的 tools 添加了 compressor,由于处理工具压缩 langchain_core中添加了 output_parsers ,用于替代原先的 AgentAction的解析 langchain_core中填加了retriever,这是从原来的 intent 拆分知识库的部分而来 langchain_core中添加了model_management,仅移动 langfuse 仅移动 langgraph 中添加了 streaming,这个是替代原先的流协议(即将使用agui更新) core 中创建了 core/graphs 和 core/nodes 和 core/tools, 这是 LangGraph 的标准 Agent 构建 添加了 node/model, 添加了标准的 model 构造 添加了 node/tool, 添加了标准的 tool 构造 添加了node/context_processor.py, 用于管理上下文系统 为以上部分添加了大量的测试 更新了版本号 AI工单适配: mock 位置做成了以下修改: ChatCompletionAgent._execute_by_agent,作为处理入口 ChatCompletionAgent._get_agent 返回时添加BkAidevAgentCallbackHandler到 callbacks中 将入口修改为 ChatCompletionAgent, 而不是原先的AgentExecutor,避免了execute_kwargs过于深度的传递,减少耦合 修复了工时上报由于流式返回导致Trace断掉的问题 修改了测试,以便于适配本次修改,预防工单提报时字段缺失 结构化输出问题的修复 对于 build_model_node: 提取了 model_node 和 amodel_node 的公共逻辑:_prepare_model_chain 对于_prepare_model_chain: 从 context_processor 获取解析出来的工具 从 chat_prompt_template 获取需要的模板 从 get_chat_prompt_variables 获取模板需要的参数 对于 use_structured_response=True,将tools和tool_names注入context_variables 对于 ContextProcessor: 修复了query获取方式和enable_parallel_tool_calls参数传入 nodes/tool 重新调整了timer 和 result_limit 的文件位置 nodes/model 重新调整了model的位置,重新引入了压缩逻辑 kb_rag查询修复 cherry-pick了be1ce47这个commit对invoke_decorator的修改 带参数的工具调用修复 添加了对BK工具的处理,以便于修复对变量的支持 新增了测试 其他: minor: 移动了 decorator 文件,该文件适合放在 utils 中 fix: 修复了ai comments提出的问题
feat:支持流式事件回写逻辑和会话版本标识 --story=129401220 (merge request !36) Squash merge branch 'feat/agent-agui-callback' into 'wx/refactor/1.1.0' 支持 AG-UI 协议、流式事件回写与会话版本标识,新增事件处理与单元测试。 - 新增 AG-UI 协议相关常量、事件模型及会话写入器,支持 v2 版本与事件分发回写。 - 新增 AidevAGUIAgent 类及相关方法,实现自定义事件编码、分发与安全回调处理。 - 在构建 Agent 方法中新增 event_handler 参数,支持传入 AGUISessionWriter 实现回写。 - 创建会话时添加 protocol_version 并调整必填校验,支持 session_code 追加输入与回写。 - 新增 AGUISessionWriter 核心单元测试,覆盖工具状态映射、模型回写、去重与异常处理。 <!-- End of auto-generated summary by Gongfeng AI --> TAPD: --story=129401220 feat:可持久化的 checkpoint 支持 --story=129401220 (merge request !38) Squash merge branch 'feat/checkpoint_integration' into 'refactor/1.1.0' TAPD: --story=129401220 fix: 修复模板依赖版本冲突问题--story=129401220 (merge request !40) Squash merge branch 'feat/checkpoint_integration' into 'refactor/1.1.0' fix: 修复模板依赖版本冲突问题--story=129401220 TAPD: --story=129401220 fix: 修复模板assistant中导入错误--story=129401220
Squash merge branch 'fix/deploy-failure' into 'refactor/1.1.0' fix: 修复agent模板部署失败问题--story=129401220 TAPD: --story=129401220
fix: update dependency versions in pnpm-lock.yaml and adjust fetch URL in share.vue
* feat: update makefile
* feat: LangGraph 升级到 v1.0 兼容性适配 --story=129401220
graph:
重构了 ReActAgentBuilder
node:
优化了知识库节点和react的生成
优化了 tool_node 的细节
tool:
优化了一些细节
为 Agent SDK 添加了客户端工具,主要是以下 filesystem 相关工具
ls, read, write, edit, glob, grep, execute
并且为 filesystem 添加了测试
其他:
删除了 memory 和 tool.py 两个文件
更新了 LLM 的测试套件
现在会对相关模型进行测试
现在会对 react-agent 的创建 tool_node 的流程进行测试
修正了 tools 的测试节点
* feat: 补充单元测试 for 知识库检索 --story=129401220
* feat: 支持断点续传和停止回话逻辑--story=129401220 (merge request !56)
Squash merge branch 'feat/agui-backend-integration' into 'refactor/1.1.0'
feat: 支持断点续传和停止回话逻辑--story=129401220
TAPD: --story=129401220
* feat: agui支持 --story=129396678
- 兼容旧流式
- 支持主动停止
- 支持企微机器人使用新协议
- 支持智能体文件上传
- 支持多模态图
- 更新单测&智能体调试日志配置
- 同步develop的修改
* feat: 更新requirement --story=129396678
---------
Co-authored-by: judgehuang <[email protected]>
Co-authored-by: weilunli <[email protected]>
chore: update @blueking/ai-blueking and related dependencies to version 2.0.0-dev.12 in package.json and pnpm-lock.yaml; adjust Makefile to use --no-frozen-lockfile during installation release: 2.0.0-dev.13 release: 2.0.0-dev.14 chore: update @blueking/ai-blueking to version 2.0.0-dev.15 in package.json; enhance error handling in page-demo.vue and side-slider-demo.vue by using Message component for better user feedback release: 2.0.0-dev.15
- 500 错误返回处理 - MCP 适配处理
- 将producer心跳改为独立线程并补充超时验证 - 优化stream复杂度
修复agent报错格式 删除langfuse依赖 升级小鲸版本
release: 2.0.0-dev.17 refactor: update routing for ChatWindow and remove page redirect release: bump version to 2.0.0-dev.18 in package.json chore: update @blueking/ai-blueking to version 2.0.0-dev.18 in package.json release: 2.0.0-dev.18 feat: add aidev-ai-blueking-dev documentation and update dependencies chore: update package versions and improve styling in share.vue fix: delete wrong file
…e.json chore: update @blueking/ai-blueking and @blueking/chat-helper to versions 2.0.0-dev.24 and 0.0.1-beta.22 respectively in pnpm-lock.yaml
…king/chat-helper to version 0.0.1-beta.23 in package.json
…g/chat-x to version 0.0.2, and @blueking/chat-helper to version 0.0.1-beta.25 in package.json
…king/chat-x to version 0.0.3-beta.1 in package.json
aidev-agent 1.1.0b10 aidev-bkplugin 1.1.0b6 - reference docs 为空的时候不去写库 - 升级django依赖 - 修复错误返回格式 - trace_id 支持 - 支持@操作资源
- 更新模板依赖
|
aidev-ci seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.