Executable Code Actions vs. JSON Tool Calling: Architecture, Token Economics, Sandboxing, and Expressivity in Production AI Agents
Executable Code Actions vs. JSON Tool Calling: Architecture, Token Economics, Sandboxing, and Expressivity in Production AI Agents The dominant paradigm for connecting large language models to external tools has relied on structured JSON function calling. First standardized across commercial APIs via JSON Schema manifests and constrained decoding, this approach frames agent interaction as remote procedure calls (RPC): the model outputs a JSON object specifying a tool name and parameters, the ho
1 min
