Skip to content

Structured Output (output schema) + Tool Call #701

@borso271

Description

@borso271

Current behavior:
According to the documentation (Agents → LLM Agents → Structuring Data):

“Constraint: Using output_schema enables controlled generation within the LLM but disables the agent's ability to use tools or transfer control to other agents. Your instructions must guide the LLM to produce JSON matching the schema directly.”

Why this is limiting:
The inability to combine structured output with tool usage significantly reduces the expressiveness and modularity of agentic workflows. Many real-world applications require both:

Other agent frameworks (e.g., OpenAI's Agents SDK, LangChain) already support coexisting tool calls and structured output by differentiating between “LLM wants to act” vs “LLM wants to reply.”

We would love to know:

  • Is this feature on the roadmap?

  • Are there internal blockers (model behavior / system design) that prevent this from being supported soon?

Thank you! This improvement would greatly expand the viability of the framework in production use.

Metadata

Metadata

Labels

core[Component] This issue is related to the core interface and implementation

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions