Workflow as a YAML: детерминированная песочница для агента поверх Pydantic AI

habrahabr.ru · tech
Full story

The author argues that agents are unreliable for business automation: they make mistakes at every step, generate huge JSON traces, and prompt changes can go unnoticed. Instead of checking the agent manually, they placed it inside strict constraints using a wrapper over Pydantic AI, MCP tools, skills, and a Studio debugger. The piece explains why this approach is needed and shows the code.

Агент уже пишет код за нас, но с автоматизацией для бизнеса всё иначе: он косячит на каждом шаге, в JSON-трейсе тысячи вызовов, а переписанный промпт вы даже не заметите. Я перестал перепроверять агента вручную — загнал его в жёсткие рамки: wrapper над Pydantic AI, MCP-инструменты, скиллы и Studio с отладчиком. Рассказываю, почему иначе нельзя, и показываю код. Читать далее

Read full article → Compare