GraphAIAgentService
A service class for managing graph-based AI agents, responsible for orchestrating the behavior and execution of agents within a configurable graph-based strategy.
This class extends AIAgentServiceBase and provides an implementation for creating AI agents that follow a graph-based approach. It leverages a strategy pattern defined by AIAgentGraphStrategy to handle input and output transformations.
The GraphAIAgentService is marked with the InternalAgentsApi annotation, indicating that it is intended for internal use within agent-related implementations and not guaranteed for backward compatibility.
Parameters
An instance of PromptExecutor, responsible for executing prompts using language models and handling responses.
Constructors
Properties
Functions
Creates and registers a new AI agent using the provided agent ID and clock.
Creates a managed AI agent with the specified identifier and clock.
Retrieves a list of all currently active AI agents managed by the service.
Retrieves a list of all AI agents currently managed by the service, regardless of their state (e.g., active, inactive, or finished).
Retrieves a list of all agents that have already finished their task.
Retrieves a list of inactive AI agents managed by this service.
Removes the specified AI agent from the managed collection.
Removes a managed AI agent identified by the specified unique identifier.