Skip to content
masterclass Buddy

LangChain · Option

response_format

response_format sets the schema for a deep-agent subagent's structured output. The result is returned to the parent agent as JSON in a ToolMessage.

Last updated

Since
v0.7

Syntax

response_format: NotRequired[ResponseFormat[Any] | type | dict[str, Any]]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • ToolStrategy
  • ProviderStrategy
  • AutoStrategy
  • structured_response
  • ToolMessage

Source: response_format | deepagents | LangChain Reference. Checked 2026-11-03.