arun
or aprint_response
method, enabling concurrent execution of tool calls.parallel_tool_calls
parameter
(enabled by default) that allows multiple tool calls to be requested and
executed simultaneously.gpt-4o
makes three simultaneous tool calls to atask1
, atask2
and atask3
. Normally these tool calls would execute sequentially, but using the aprint_response
function, they run concurrently, improving execution time.