OpenAI.Agents.ToolExecutor (openai_agents v0.1.0)

Executes tools in parallel or serially based on their type. Handles error recovery and telemetry.

Summary

Functions

Executes multiple function calls in parallel.

Executes a single function call.

Functions

execute_parallel(function_calls, available_tools, context)

@spec execute_parallel([map()], [module()], any()) :: [{String.t(), any()}]

Executes multiple function calls in parallel.

Returns a list of {call_id, result} tuples.

execute_single(function_call, tool_map, context)

@spec execute_single(map(), map(), any()) :: {String.t(), any()}

Executes a single function call.