Optional OnCalled when all completions in the batch are completed (successfully or with errors)
Array of all ChatResults in the same order as the request params
Optional OnCalled when a single completion from the batch is completed
The completed ChatResult
The index of the completion in the original request array
Optional OnCalled when any completion in the batch encounters an error
The error that occurred
The index of the completion that failed
Interface for callbacks used in parallel chat completions