Why it matters

Sequential-only calling is slow. Parallel + chained enable efficient agents.

Advertisement

The architecture

Parallel: model outputs multiple function calls in one turn.

Chained: dependencies inferred; tools called in order.

Function calling patternsSingle toolsequentialParallel toolssame turnChained toolsoutput → inputParallel reduces latency; chained enables complex workflows in fewer turns
Advanced calling.
Advertisement

How it works end to end

Parallel example: 'get weather for NYC AND LA' → both called concurrently.

Chained example: 'find flights, then book cheapest' → search + book sequenced.

Framework: dispatch parallel calls concurrently; feed results back to model.