agents library

Middleware for Genkit Dart that enables sub-agent delegation.

Classes

$AgentDelegationArtifact
An artifact reported back by a delegation tool.
$AgentDelegationResult
Output schema for a generated delegation tool.
$AgentsOptions
Configuration options for the agents middleware.
$DelegateInput
Input schema for a generated delegation tool.
AgentDelegationArtifact
An artifact reported back by a delegation tool.
AgentDelegationResult
Output schema for a generated delegation tool.
AgentsMiddleware
Middleware that enables delegating tasks to registered sub-agents.
AgentsOptions
Configuration options for the agents middleware.
AgentsPlugin
Plugin that registers the agents sub-agent delegation middleware.
DelegateInput
Input schema for a generated delegation tool.

Functions

agents({required List<String> agents, String? toolPrefix, int? maxDelegations, int? historyLength, String? artifactStrategy}) → GenerateMiddlewareRef<AgentsOptions>
Creates a middleware ref that enables sub-agent delegation.