Commit 4703895
authored
fix(a2a-middleware): ensure tool results are passed to orchestrator in subsequent runs (#465)
Bug: The A2A middleware was not including tool results in input.messages when
triggering subsequent runs. This caused the orchestration agent to not see the
tool results in its context, leading to repeated tool calls and broken multi-turn
conversations with A2A agents.
Fix: Collect all tool result messages and add them to input.messages before
calling triggerNewRun(). This ensures the orchestrator receives the tool results
in the conversation context for the next run.
Also removes unused 'text' import from stream/consumers.1 parent e94630b commit 4703895
1 file changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
129 | 128 | | |
130 | 129 | | |
131 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
| |||
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
163 | 168 | | |
164 | 169 | | |
165 | 170 | | |
| |||
184 | 189 | | |
185 | 190 | | |
186 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
187 | 198 | | |
188 | 199 | | |
189 | 200 | | |
| |||
0 commit comments