Pattern
Code Mode / programmatic tool calling
Let the model write a short program that calls tools as functions inside a sandbox, so that many calls, loops and filtering happen in one step and only the final result enters the model's context.
Classification Exposing tools as a code API the model calls from a sandbox. ACI design for large tool surfaces.
Full entry
The complete treatment — problem, how it works, when to use it, sources, and examples — lives in the volume below.
Browse the full pattern index or the catalog.