Skip to content

Commit c13ba03

Browse files
Update modules/ai-agents/examples/mcp-tools/inputs/stream_processing.yaml
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent eaa2ec1 commit c13ba03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/ai-agents/examples/mcp-tools/inputs/stream_processing.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ redpanda:
1616
processors:
1717
- mapping: |
1818
root.sensor_id = this.sensor_id
19-
root.avg_temperature = this.readings.map_each(r -> r.temperature).mean()
19+
root.avg_temperature = this.readings.map_each(r -> r.temperature).sum() / this.readings.length()
2020
root.max_temperature = this.readings.map_each(r -> r.temperature).max()
2121
root.reading_count = this.readings.length()
2222
root.window_end = now()

0 commit comments

Comments
 (0)