round-robin
The round_robin
provider allows you to distribute requests across multiple clients in a round-robin fashion. After each call, the next client in the list will be used.
BAML
Options
strategy
The list of client names to try in order. Cannot be empty.
start
The index of the client to start with.
Default is random(0, len(strategy))
In the BAML Playground, Default is 0
.
retry_policy
When using a retry_policy with a round-robin client, it will rotate the strategy list after each retry.
BAML
Nesting multiple round-robin clients
You can nest multiple round-robin clients inside of each other. The round-robin as you would expect.
BAML