Commit 07b2d5c
committed
test(integration): add debug logging and set safe LLM call limit for Google ADK tests
Add comprehensive debug logging to mock LLM server and scenarios to help troubleshoot Google ADK message format issues. Also set a reasonable maximum LLM calls limit of 10 to prevent infinite loops while maintaining test functionality.
Added detailed message logging in MockLLMServer to track role and content, including tool calls and tool call IDs. Added debug information in MockScenario to track tool messages and current turn calculations. Set safe LLM call limit to 10 in GoogleADKTestMixin to avoid infinite loops during testing.
添加详细的调试日志记录到模拟 LLM 服务器和场景中,以帮助排查 Google ADK 消息格式问题。同时设置合理的最大 LLM 调用次数限制为 10,以防止无限循环,同时保持测试功能。
在 MockLLMServer 中添加了详细的消息日志记录以跟踪角色和内容,包括工具调用和工具调用 ID。在 MockScenario 中添加了调试信息以跟踪工具消息和当前回合计算。在 GoogleADKTestMixin 中将安全的 LLM 调用限制设置为 10,以避免测试期间的无限循环。
Change-Id: I35875fa483297be319313c00aa706e1f4e160bf6
Signed-off-by: OhYee <oyohyee@oyohyee.com>1 parent 7da6a03 commit 07b2d5c
File tree
3 files changed
+44
-2
lines changed- tests/unittests/integration
3 files changed
+44
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
307 | 328 | | |
308 | 329 | | |
309 | 330 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
116 | 120 | | |
117 | 121 | | |
118 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
119 | 131 | | |
120 | 132 | | |
121 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
122 | 142 | | |
123 | 143 | | |
124 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | | - | |
| 101 | + | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| |||
0 commit comments