AIAgentService
AIAgentService is a core interface for managing AI agents. The service allows creation, removal, and management of AI agents and provides functionalities to list agents based on their statuses.f
A single instance of AIAgentService manages one kind of uniform AI Agents serving same purpose and solving the same type of user task. It's useful to create, manage, and track the progress of running agents solving similar user tasks in parallel.
Parameters
Type parameter for the input data for the agents.
Type parameter for the output data generated by the agents.
Inheritors
Types
Properties
Functions
Creates a new AI agent with the specified configuration, tool registry, and optional parameters.
Creates an AI agent with the specified configuration and runs it using the provided input.
Retrieves a list of active AI agents currently managed by the service.
Retrieves a comprehensive list of all AI agents currently managed by the service, regardless of their state (active, inactive, or finished).
Retrieves a list of AI agents that have completed their tasks and are marked as finished.
Retrieves a list of inactive AI agents currently managed by the service.
Removes the specified AI agent from the service.
Removes an AI agent based on its unique identifier.