You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature #802 [Agent][Platform] Shift structured output from Agent to Platform component (chr-hertel)
This PR was merged into the main branch.
Discussion
----------
[Agent][Platform] Shift structured output from Agent to Platform component
| 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
<img width="1765" height="359" alt="image" src="https://github.com/user-attachments/assets/df9fc29f-fc90-4094-8c2f-10f01535dbfa" />
Commits
-------
8110d13 Shift structured output from Agent to Platform component
// Create orchestrator agent for routing decisions
29
29
$orchestrator = newAgent(
30
30
$platform,
31
31
'gpt-4o-mini',
32
-
[newSystemPromptInputProcessor('You are an intelligent agent orchestrator that routes user questions to specialized agents.'), $structuredOutputProcessor],
33
-
[$structuredOutputProcessor],
32
+
[newSystemPromptInputProcessor('You are an intelligent agent orchestrator that routes user questions to specialized agents.')],
34
33
);
35
34
36
35
// Create technical agent for handling technical issues
0 commit comments