Token Efficiency Encyclopedia

Operation Batching

Group related tool calls into a single model turn instead of issuing many small round-trips. Parallel tool calling, where supported, further reduces wall-clock time.

How It Works

If the agent needs to read three files, search a directory, and run a test, all requests are included in one assistant turn. The model receives all results together in the next turn, rather than alternating request/response for each operation.

Benefits

When to Use

Batch when operations are independent and their results are needed together to make the next decision. Do not batch when an early result would change which later operations are needed.

See Also

Tools