Commit 6942561
Include total_blocks in content_block:end events
Orchestrator now includes total_blocks count in content_block:end event data,
allowing hooks to determine which block is the last in the response.
This enables hooks to display token usage after the last content block from
each LLM response, rather than after every block or only at the end.
Changes:
- Added total_blocks to CONTENT_BLOCK_START event data
- Added total_blocks to CONTENT_BLOCK_END event data
- Hooks can now check: is_last = block_index == total_blocks - 1
🤖 Generated with [Amplifier](https://github.com/microsoft/amplifier)
Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>1 parent cb3fe47 commit 6942561
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
| 178 | + | |
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
| |||
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
| 187 | + | |
186 | 188 | | |
187 | 189 | | |
188 | 190 | | |
189 | | - | |
190 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
191 | 197 | | |
192 | 198 | | |
193 | 199 | | |
| |||
0 commit comments