Class AgentsRegistry.CompositeAgentsRegistry
java.lang.Object
dev.langchain4j.agentic.planner.AgentsRegistry.CompositeAgentsRegistry
- All Implemented Interfaces:
AgentsRegistry
- Enclosing interface:
AgentsRegistry
-
Nested Class Summary
Nested classes/interfaces inherited from interface AgentsRegistry
AgentsRegistry.CompositeAgentsRegistry, AgentsRegistry.EmptyAgentsRegistry, AgentsRegistry.LazyHolder -
Method Summary
Modifier and TypeMethodDescriptionReturns all agents registered in this registry, keyed by agent name.Returns the agent registered with the given name.
-
Method Details
-
allAgents
Description copied from interface:AgentsRegistryReturns all agents registered in this registry, keyed by agent name.- Specified by:
allAgentsin interfaceAgentsRegistry- Returns:
- an unmodifiable map of agent names to
AgentInstances
-
getAgent
Description copied from interface:AgentsRegistryReturns the agent registered with the given name.- Specified by:
getAgentin interfaceAgentsRegistry- Parameters:
name- the agent name- Returns:
- the matching
AgentInstance
-