Enforce JSON Action Contract Across Agent Stacks#139
Conversation
MagellaX
commented
Sep 19, 2025
- add shared AgentAction schema + dispatcher with pydantic v2 validation
- move s1/s2/s2.5 prompts and workers to schema-checked JSON output and structured response mode
- update engine adapters and utilities for schema-aware parsing and telemetry, and bump requirements
|
@alckasoc any thoughts? u can merge this |
|
Hi @MagellaX , sorry for the late response! Thank you for the contribution! Some questions:
|
|
It's interesting how you moved from a structured to a freeform architechture. I'm newer to programming so I'm enjoying learning more about how different frameworks and architechtures are designed. |
Totally aligned: the goal is one shared schema and exactly one JSON object per step, validated (pydantic) and dispatched to ACI-no more eval’d Python, fewer parse bugs, model‑agnostic via Structured Outputs when available, and strict post‑validation + fallback elsewhere. If you prefer S3‑only, that’s easy: a thin S3 adapter injects the schema (response_format on OpenAI/Azure or a short JSON‑only prompt), validates the result, and maps to S3’s ACI via a tiny dispatcher; we can leave s1/s2/s2_5 untouched or hide behind a feature flag (AGENT_JSON_CALLS=1, default off) so u can merge this for the moment |
|
hey pls can you merge this?? @alckasoc cause later i can delete this branch!!! |