AIAgentService
Creates a GraphAIAgentService instance with the provided configuration, strategy, tool registry, and optional feature installation logic.
Return
A GraphAIAgentService instance configured with the provided parameters.
Parameters
The executor responsible for processing AI prompts and responses.
Configuration parameters for the AI agent.
A strategy defining the graph structure for AI agent interactions and processing.
The registry of tools available to the agent. Defaults to an empty registry.
A lambda expression to install additional features in the agent's feature context.
Type Parameters
The input type that the service processes.
The output type that the service produces.
Creates a FunctionalAIAgentService instance with the provided parameters.
Return
A FunctionalAIAgentService instance initialized with the given parameters.
Parameters
The executor responsible for handling prompts and managing their execution.
The configuration parameters for the AI agent.
The functional strategy that defines the behavior and capabilities of the AI agent.
The registry containing tools that can be used by the agent. Defaults to an empty registry.
A lambda expression to configure and install additional features to the AI agent context.
Type Parameters
The type of input data expected by the service.
The type of output data produced by the service.
Invokes the process to create and return an instance of GraphAIAgentService.
Parameters
The executor responsible for handling prompts during the agent's operation.
The configuration object for the AI agent.
The registry containing tools available for the agent to use. Defaults to an empty tool registry.
A lambda function to install additional features into the agent's feature context.
Creates a GraphAIAgentService with the default singleRunStrategy and the given model parameters.
Return
A GraphAIAgentService instance configured with the provided parameters.
Parameters
Executor responsible for processing prompts and interacting with the language model.
Language model to use.
Graph strategy defining the agent's workflow.
Registry of tools available to the agent. Defaults to an empty registry.
Optional system prompt for the agent.
Optional sampling temperature for the model, typically between 0.0 and 1.0.
Maximum number of agent iterations. Defaults to 50.
Optional processor for the model's responses.
Lambda to install additional features into the agent's feature context.
Creates a GraphAIAgentService with the default singleRunStrategy and the given model parameters.
Return
A GraphAIAgentService instance configured with the provided parameters.
Parameters
Executor responsible for processing prompts and interacting with the language model.
Language model to use.
Registry of tools available to the agent. Defaults to an empty registry.
Optional system prompt for the agent.
Optional sampling temperature for the model, typically between 0.0 and 1.0.
Maximum number of agent iterations. Defaults to 50.
Optional processor for the model's responses.
Lambda to install additional features into the agent's feature context.