FunctionalAgentBuilder
A builder class for constructing instances of FunctionalAIAgent with customizable configuration.
This builder simplifies the configuration process by providing a fluent API to set various parameters for the FunctionalAIAgent, including its behavior strategy, prompt details, model settings, tool registry, and additional features. The builder enforces the presence of required configurations and allows the addition of optional parameters to tailor the agent's functionality.
Parameters
The type of input that the resulting AI agent will process.
The type of output that the resulting AI agent will produce.
Constructors
Functions
Configures the FunctionalAgentBuilder with the provided AI agent configuration settings.
Installs and configures a given feature into the functional agent builder.
Sets the maximum number of iterations for the functional agent builder.
Configures the number of choices to be considered during the functional agent's operations.
Sets the provided PromptExecutor instance for the current FunctionalAgentBuilder.
Sets the system-level prompt for the agent being built. The system-level prompt provides contextual instructions to the agent.
Sets the temperature parameter for the functional agent. Temperature controls the randomness of the agent's outputs, where higher values result in more diverse outputs and lower values result in more focused outputs.
Sets the tool registry to be used by the FunctionalAgentBuilder.