Process results programmatically changedagents-and-tools/tool-use/programmatic-tool-calling
Nearest release: v2.1.307, published an hour before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+1added
Lines−1removed
From line
1,197
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits14to this page, all time
The whole hunk
from line 1197, old and new numbered
/
from line 1197
11971197 results[region] = sum(row["revenue"] for row in rows)
11981198
11991199# Process results programmatically
1200top_region = max(results.items(), key=lambda x: x[1])
1200top_region = max(results.items(), key=lambda item: item[1])
12011201print(f"Top region: {top_region[0]} with ${top_region[1]:,} in revenue")
12021202```
12031203
No line in this hunk matches that.