numberOfChoices

abstract fun numberOfChoices(numberOfChoices: Int): AIAgentBuilderAPI(source)

Sets the number of choices to be utilized by the builder instance.

This method configures the builder with a specified number of discrete choices, which could be utilized in the decision-making process or output generation.

Return

The current instance of the Builder for chaining additional configurations.

Parameters

numberOfChoices

The integer representing the number of choices to configure. Must be a positive value.