Get structured output from agents changedagent-sdk/structured-outputs
Nearest release: v2.1.306, published under an hour after upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 21 Oct 2026 02:01 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 30 Oct 2026 18:07 UTC.
Upstream edited
Recorded here
Lines+2added
Lines−2removed
From line
12
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits12to this page, all time
The whole hunk
from line 12, old and new numbered
/
from line 12
1212
1313Consider a recipe app where an agent searches the web and brings back recipes. Without structured outputs, you get free-form text that you'd need to parse yourself. With structured outputs, you define the shape you want and get typed data you can use directly in your app.
1414
15> **Without structured outputs**
15> [accordion] Without structured outputs
1616>
1717> ```text theme={null}
1818> Here's a classic chocolate chip cookie recipe!
from line 28
2828>
2929> To use this in your app, you'd need to parse out the title, convert "15 minutes" to a number, separate ingredients from instructions, and handle inconsistent formatting across responses.
3030
31> **With structured outputs**
31> [accordion] With structured outputs
3232>
3333> ```jsonc theme={null}
3434> {
No line in this hunk matches that.