What are the two primary methods discussed for achieving structured output from Claude?	Prompt-based methods (using message pre-fill and stop sequences) and Tool-based methods (using defined tools and schemas).
What is the main advantage of using tool-based structured output over prompt-based methods?	It provides more reliable output.
What is the main disadvantage of using tool-based structured output?	It is significantly more complex to set up.
What is the core mechanism of tool-based structured output?	Writing a JSON schema specification for a tool whose inputs define the desired structure of the data to be extracted.
Describe the general flow when using tools to extract structured data.	A prompt and the tool schema are provided to Claude, which then responds with a Tool Use Block containing the structured data matching the schema.
How can you force Claude to call a specific tool when using the client messages API?	By providing a `tool choice` parameter in the function call, specifying the tool type and name.
When designing a tool schema for data extraction, what must the tool's inputs represent?	The structure of the data you are looking for (e.g., a "balance" as an integer and "key insights" as a list of strings).
