Code mode is not a sandbox
Code mode changes how a model calls your tools. A sandbox changes where code runs. How the two differ, the three places a sandbox boundary can go, and how Pydantic AI workspaces and Monty fit in.
PydanticAI Blog12 min read
2 stories
Code mode changes how a model calls your tools. A sandbox changes where code runs. How the two differ, the three places a sandbox boundary can go, and how Pydantic AI workspaces and Monty fit in.
5,276 graded agent runs on eight models, from one-line edits to 200-item jobs. On long tasks code mode cut cost 58% and wall time 51% and got 16 points more right. On tiny ones it costs more. Here is all of it.
Showing 2 of 2 stories
You're all caught up.
Get the top AI news and tools straight to your inbox every week.
Weekly · AI news
Join 15,000+ AI enthusiasts