Class InMemoryAgentRegistry
java.lang.Object
io.agentscope.spring.boot.admin.registry.InMemoryAgentRegistry
- All Implemented Interfaces:
AgentRegistry
Single-node, in-memory
AgentRegistry suitable as the starter default.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
InMemoryAgentRegistry
public InMemoryAgentRegistry()
-
-
Method Details
-
register
public void register(io.agentscope.core.agent.Agent agent) - Specified by:
registerin interfaceAgentRegistry
-
unregister
- Specified by:
unregisterin interfaceAgentRegistry
-
find
- Specified by:
findin interfaceAgentRegistry
-
list
Description copied from interface:AgentRegistryAll registered agents in insertion order.- Specified by:
listin interfaceAgentRegistry
-
size
public int size()- Specified by:
sizein interfaceAgentRegistry
-