-
Notifications
You must be signed in to change notification settings - Fork 503
Open
Labels
enhancementNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requested
Description
ClaudeAgentOptions supports output_format for structured JSON outputs:
ClaudeAgentOptions(
output_format={"type": "json_schema", "schema": {...}}
)However, AgentDefinition (for subagents) does not:
AgentDefinition(
description="...",
prompt="...",
tools=["Read"],
model="haiku",
# output_format=??? # -------------------------->Not available
)
I'm building a data processing pipeline where specialized subagents extract and transform data. Each step needs to produce structured JSON that the next step (or external systems) can reliably consume.
Questions
- Is this a deliberate design decision? If so, what's the reasoning?
- Is there a recommended pattern for getting structured data from subagents?
- Are there plans to add output_format support to AgentDefinition?
byt3bl33d3r
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requested