Package org.bsc.langgraph4j.agui.sdk
Record Class AGUIAgentRegistry
java.lang.Object
java.lang.Record
org.bsc.langgraph4j.agui.sdk.AGUIAgentRegistry
- Record Components:
map- the map of agent id to agent instance backing this registry
-
Constructor Summary
ConstructorsConstructorDescriptionAGUIAgentRegistry(Map<String, AGUIAgent> map) Creates an instance of aAGUIAgentRegistryrecord class.AGUIAgentRegistry(AGUIAgent... agents) Creates a registry from the given agents, indexed by theirid. -
Method Summary
Modifier and TypeMethodDescriptionLooks up a registered agent by its identifier.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.map()Returns the value of themaprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AGUIAgentRegistry
-
AGUIAgentRegistry
-
-
Method Details
-
agent
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
map
-