Commit 2a04b26
committed
refactor(langgraph): migrate to AgentRunConverter class and enhance event handling
The AgentRunConverter has been updated to use a class-based approach for better state management. The conversion functions are now static methods of the AgentRunConverter class, providing improved tool call ID consistency and event sequencing. The deprecated conversion functions have been removed from the public API.
The AGUI protocol handler has been enhanced with copilotkit compatibility mode to handle sequential tool calls and improved event ordering. New protocol configuration options have been added to support these features.
Several tests have been updated to reflect these changes, including new test files for comprehensive event handling coverage.
feat: add AGUIProtocolConfig with copilotkit compatibility option
refactor: migrate convert functions to AgentRunConverter static methods
refactor: enhance AGUI protocol handler with improved event sequencing
test: add comprehensive tests for AgentRunConverter and AGUI protocol
重构 langgraph 事件转换器以使用 AgentRunConverter 类并增强事件处理
AgentRunConverter 已更新为使用基于类的方法,以实现更好的状态管理。转换函数现在是 AgentRunConverter 类的静态方法,提供改进的工具调用 ID 一致性和事件排序。已从公共 API 中删除了已弃用的转换函数。
AGUI 协议处理器已通过 copilotkit 兼容模式增强,以处理顺序工具调用和改进的事件排序。已添加新的协议配置选项以支持这些功能。
已更新多个测试以反映这些更改,包括为全面事件处理覆盖范围添加的新测试文件。
新功能: 添加带有 copilotkit 兼容性选项的 AGUIProtocolConfig
重构: 将转换函数迁移到 AgentRunConverter 静态方法
重构: 使用改进的事件排序增强 AGUI 协议处理器
测试: 为 AgentRunConverter 和 AGUI 协议添加全面测试
Change-Id: I9e73626b3bf17d6d5af90038d0f2eb229f93dee6
Signed-off-by: OhYee <oyohyee@oyohyee.com>1 parent 568557b commit 2a04b26
File tree
26 files changed
+10160
-2584
lines changed- agentrun
- integration
- langchain
- langgraph
- server
- tests
- e2e/integration/langchain
- unittests
- integration
- server
26 files changed
+10160
-2584
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 21 | + | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
29 | 26 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 27 | | |
34 | 28 | | |
35 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
13 | 21 | | |
14 | 22 | | |
15 | 23 | | |
16 | 24 | | |
17 | 25 | | |
18 | 26 | | |
19 | | - | |
20 | | - | |
| 27 | + | |
21 | 28 | | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
0 commit comments