#structuredoutput
LLMs: text-in, text-out.
Enterprise code: structured-in, structured-out.

#SpringAI 2.0 adds two switches on .entity():
• validateSchema() — retries with the error fed back
• useProviderStructuredOutput() — pins the schema at the provider

spring.io/blog/2026/06...

#Java #AI #StructuredOutput
June 23, 2026 at 12:04 PM
Point a) - the protocol itself. It's strongly typed (on both inputs *and* outputs, now, as of the June spec proposal, with structuredOutput), which is good. Streaming is... fine, probably good, but not unique.

I like the "hint" abstraction, and have some thoughts on how it can be more powerful:
August 26, 2025 at 10:54 PM
AI SDK 4.1.15

Custom providers are now stable and auto-complete model IDs.
February 3, 2025 at 11:46 AM
ドキュメント自動更新くん、Stop Hookで全く動かなくて2日くらい悩んでたけど、Claude Codeにデバッグログとかソースコードとか読んでもらってようやく動くようになった。ポイントは、

- StructuredOutputツールを使う
- Sonnetを使う(StructuredOutputツールを使うためのToolSearchツールがHaikuだと使えない)
- $ARGUMENTSのtranscript_pathのファイルを読ませない(token上限超えてエラーになる)

github.com/ryonakae/doc...
github.com
February 25, 2026 at 7:51 AM
Die Lücken bei KI-Modellen und ihrem Einsatz sind krass.

Einerseits haben wir Fähigkeiten, die enorm sind, andererseits können manche Modelle Tool-Usage und StructuredOutput, aber nicht zwingend zeitgleich.

Irgendwas ist schräg.
September 17, 2026 at 11:17 AM
Not sure what I'd *use* it for just yet, but my little virtual tool-server let me turn one of the tools into one which has structuredOutput with a usable JSON-Schema, automagically!
January 5, 2026 at 6:29 PM
Structured Output That Survives a Model Swap: The JSON Scaffold I Actually Ship

Written by Maren Holloway

Multi-model routing is normal now. Here is the schema-first prompt pattern that keeps...

https://promptway.com/blog/json-scaffold-survives-model-swap

#prompting #json #StructuredOutput
Structured Output That Survives a Model Swap: The JSON Scaffold I Actually Ship
Multi-model routing is normal now. Here is the schema-first prompt pattern that keeps objects valid when you change the brain underneath.
promptway.com
July 29, 2026 at 2:10 PM
1. Capability-tagged models - wrong model + feature = compile error

Calling .tools(...) on a model that can't call tools? In sttp-ai that's now a compile error. Model constants carry capability tags (Vision, ToolCalling, StructuredOutput, Reasoning) and the agent builder checks them at compile time
August 31, 2026 at 12:50 PM
Structured output turned LLMs into reliable API endpoints. JSON schema constraints, response parsing and retry semantics made model responses first-class data. The gap between prose and payload finally closed. #StructuredOutput #AIAgents #Engineering
August 20, 2026 at 10:13 AM
Structured output changed AI integration from regex scraping to schema contracts. Models now return JSON you can type, validate, and version. The teams that moved from string parsing to schemas stopped writing the same brittle cleanup code. #StructuredOutput #LLM #APIs
August 20, 2026 at 10:35 AM
Ever wonder why LLMs sometimes make up data? Dive into PhantomFill, the new trick that forces GPT‑5.5 into JSON‑schema output—exposing hallucinations, benchmark hacks, and wild fabrications. Curious? Read on! #PhantomFill #LLMHallucination #StructuredOutput

🔗 aidailypost.com/news/phantom...
July 24, 2026 at 7:25 AM
Structured output & MCP timeout fixes: `--json-schema` and workflow `agent({schema})` could loop indefinitely as the model re-called `StructuredOutput` after success — now blocked. Remote MCP tool calls that hung for 5 minutes with no response now abort with a configurable timeout…
June 23, 2026 at 9:32 PM
Researchers tested GPT‑4o on eight reasoning tasks and found structured output had no causal impact in 43 of 48 cases overall, with effects in only five. Read more: https://getnews.me/causal-inference-shows-limited-impact-of-structured-output-on-llms/ #causalinference #structuredoutput
September 29, 2025 at 8:48 AM
Claude Code Workflow 抓包后原理分析 - Workwith GPT5.5
#开源推广 #开源项目 #Claude 详细内容见: https://github.com/TokenRollAI/claude-code-workflow-research * * * # Claude Code Workflow 省流版 一句话:Claude Code workflow 不是模型自己在一次请求里并发工作,而是主模型先写一段 JavaScript 编排脚本,Claude Code 本地 runtime 执行这段脚本,按脚本启动多个子代理,再把子代理的结构化 JSON 结果串起来。 ## 核心流程 用户显式触发 workflow -> 主模型看到 Workflow 本地工具 -> 主模型生成一段 JS workflow script -> Claude Code 本地 runtime 执行 JS -> JS 里的 agent() 启动多个普通子代理请求 -> 子代理通过 StructuredOutput 返回 JSON -> runtime 把 JSON 当作 agent() 的返回值传给后续 JS -> JS 最终 return 一个对象 -> Claude Code 用 <task-notification> 把结果回灌主会话 ## 最重要的几个点 1. `Workflow` 是本地工具,不是 Anthropic API 的一个特殊 endpoint 。 2. 主模型负责“写编排脚本”,本地 runtime 负责“执行脚本”。 3. workflow 脚本是受限 JavaScript DSL ,不是完整 Node.js 。 4. `agent(prompt, { schema })` 会启动一个子代理,并强制它调用 `StructuredOutput`。 5. 子代理返回的是 schema 校验后的 JSON ,不是父流程从自然语言里硬解析。 6. agent 之间不直接聊天;交接由 JS 完成:上一个 agent 的 JSON -> `JSON.stringify(...)` -> 下一个 agent 的 prompt 。 7. `pipeline()` 默认没有阶段 barrier ,某个 item 完成一阶段就能进入下一阶段。 8. `parallel()` 是 barrier ,只适合确实需要等全部结果时使用。 9. workflow 完成后,最终结果通过 `<task-notification>` 注入回主会话。 10. 支持 resume ,因为脚本要求确定性,已完成且未变更的 agent 调用可以命中缓存。 ## Prompt 是怎么拼的 一次 workflow 子代理请求不是一个巨大的纯文本 prompt ,而是多个槽位组合: 槽位 | 放什么 ---|--- `messages[0].content` | 子代理本轮 user 输入,包含系统提醒和 JS 生成的任务 prompt 。 `system[]` | Claude Code 身份、workflow subagent 规则、环境信息。 `tools[]` | Bash/Read/Skill 等工具,以及动态生成的 `StructuredOutput`。 `StructuredOutput.input_schema` | JS 里传给 `agent(..., { schema })` 的 schema 。 本次例子里,judge prompt 是这样来的: agent( `你是桌游评委,专门从这个维度评审:「${j.desc}」。\n` + `待评概念:\n${JSON.stringify(concept, null, 2)}\n` + `请给出 1-10 分并简述理由。用中文作答。`, { schema: JUDGE_SCHEMA } ) 这里的 `concept` 是 invent agent 通过 `StructuredOutput` 返回的 JSON 。也就是说,下游 prompt 看到什么,完全取决于 JS 作者显式拼进去什么。 ## 本次抓包里的例子 这次 workflow 是一个“桌游设计锦标赛”: * 5 个 invent agent:分别从 5 个设计方向发明桌游。 * 15 个 judge agent:每个概念由 3 个评委维度打分。 * 1 个 synthesize agent:取冠军并嫁接落选概念优点,生成最终设计稿。 * 合计 21 个逻辑 agent 。 最终通知里也记录了: <agent_count>21</agent_count> <subagent_tokens>232900</subagent_tokens> <duration_ms>257654</duration_ms> Claude Code workflow 把“多代理协作”从自然语言群聊变成了可执行的数据流程序:`agent()` 像异步函数,prompt 是输入,`StructuredOutput` JSON 是返回值,`pipeline()` 和 `parallel()` 是调度结构,最终 `return` 是结果。
www.v2ex.com
May 29, 2026 at 2:51 PM
Ever wonder how LLMs turn prompts into clean JSON or call functions on the fly? Dive into JSON mode, function calling, and structured output—boost your AI workflows today! #JSONMode #FunctionCalling #StructuredOutput

🔗 aidailypost.com/news/underst...
June 18, 2026 at 7:54 PM
今日のQiitaトレンド

素人質問が大好きな教授にコードレビューを頼んでみた結果
この記事では、AIに頼りすぎたエンジニアが技術力向上を目指し、コードレビューAIアプリ「素人質問教授コードレビューAI」を開発した過程を紹介しています。
アプリは「やさしいモード」と「鬼モード」の2種類で、AIが教授のように質問形式でコードレビューを行います。
開発にはMastraが活用され、プロンプト設計、Workflowによるパイプライン処理、structuredOutputによる出力構造化、エンドポイントの使い分けなどの工夫が凝らされています。
素人質問が大好きな教授にコードレビューを頼んでみた結果 #初心者 - Qiita
はじめに こんにちは、いのせです。 最近はAIの進化が止まることなく、AIを使ってコーディングするのが当たり前な時代になりましたね。 GitHub Copilot、Claude Code、Cursorなど便利なツールが次々と登場し、コードを書く速度は格段に上がったと思いま...
qiita.com
January 23, 2026 at 10:24 PM