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

Input

The type of data input to the AI agent during execution.

Output

The type of data output by the AI agent after processing.

Functions

Link copied to clipboard

Configures the FunctionalAgentServiceBuilder with the given AI agent configuration.

Link copied to clipboard

Builds and returns a configured instance of FunctionalAIAgentService.

Link copied to clipboard

Installs the specified feature into the functional service builder and applies the provided configuration.

Link copied to clipboard

Sets the specified Large Language Model (LLM) to be used by the Functional Service.

Link copied to clipboard

Sets the maximum number of iterations to use for the service.

Link copied to clipboard

Sets the number of choices for the service builder configuration.

Link copied to clipboard

Assigns the given prompt to the builder configuration.

Link copied to clipboard

Sets the PromptExecutor for this FunctionalServiceBuilder. The PromptExecutor is responsible for processing prompts during the execution of the functional AI service being built.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Sets the tool registry to be used by the FunctionalServiceBuilder.