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.
SubscribeRelated
ToolStrategyProviderStrategyAutoStrategystructured_responseToolMessage