builder

Creates an PromptExecutorBuilder for constructing a PromptExecutor.

The concrete executor implementation is chosen automatically at build time based on the registered clients — see PromptExecutorBuilder.build for the selection heuristic.

Example usage in Java:

PromptExecutor executor = PromptExecutor.builder()
.addClient(openAIClient)
.addClient(anthropicClient)
.build();

Return

A new PromptExecutorBuilder instance.