Skip to content

Conversation

@chr-hertel
Copy link
Member

@chr-hertel chr-hertel commented Oct 22, 2025

Q A
Bug fix? no
New feature? yes
Docs? no
Issues
License MIT

The main differentiator between the Agent and the Platform component is that the Agent is designed for multi-step model interaction and this is not the case for structured output. In the beginning the feature was also a bit more heavy than the light platform, since it was using the Serializer, and the Platform not having extension points for it.

Nowadays the Platform uses the Serializer anyways for the contract handling, and relies on a optional EventDispatcher, that now also can provide the needed extension points.

Secondary goals where to introduce a ResultEvent and bring back user-land validation for structured output capability of model.

Fixes #791, replaces #794

image

@chr-hertel chr-hertel added Platform Issues & PRs about the AI Platform component Agent Issues & PRs about the AI Agent component labels Oct 22, 2025
@carsonbot carsonbot changed the title [Platform] Shift structured output from Agent to Platform component [Agent][Platform] Shift structured output from Agent to Platform component Oct 22, 2025
@chr-hertel chr-hertel force-pushed the shift-structure-output branch from 95bcfbc to edebf2b Compare October 22, 2025 21:07
@chr-hertel chr-hertel force-pushed the shift-structure-output branch from edebf2b to 14158cb Compare October 22, 2025 21:13
@OskarStark
Copy link
Contributor

OskarStark commented Oct 23, 2025

Rebase needed, but from what I can see 👍

@chr-hertel chr-hertel force-pushed the shift-structure-output branch from 14158cb to 8110d13 Compare October 23, 2025 17:41
Copy link
Contributor

@OskarStark OskarStark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely makes more sense in the platform from an architectural point of view 👍🏻

@chr-hertel chr-hertel merged commit d2caecc into symfony:main Oct 24, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Agent Issues & PRs about the AI Agent component Feature New feature Platform Issues & PRs about the AI Platform component Status: Reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Capability::OUTPUT_STRUCTURED is incorrectly listed for Gemini < 2.5 and lacks a proper exception

3 participants