FunctionalAgentServiceBuilder
A builder class for constructing a FunctionalAIAgentService, enabling a fluent configuration style.
This class allows customization of various parameters and components required for the AI agent service, including strategies, prompts, models, tool registries, and other operational settings.
Parameters
The type of data input to the AI agent during execution.
The type of data output by the AI agent after processing.
Functions
Configures the FunctionalAgentServiceBuilder with the given AI agent configuration.
Builds and returns a configured instance of FunctionalAIAgentService.
Installs the specified feature into the functional service builder and applies the provided configuration.
Sets the maximum number of iterations to use for the service.
Sets the number of choices for the service builder configuration.
Sets the PromptExecutor for this FunctionalServiceBuilder. The PromptExecutor is responsible for processing prompts during the execution of the functional AI service being built.
Configures a system-level prompt message for the functional service builder. This method sets the prompt for the agent, providing necessary system context or instructions that guide the behavior of the language model.
Sets the temperature parameter for the functional service builder. The temperature controls the randomness of the model's output, where a lower value makes the output more deterministic, and a higher value increases randomness.
Sets the tool registry to be used by the FunctionalServiceBuilder.