Interface AgenticScope
- All Superinterfaces:
LangChain4jManaged
- All Known Implementing Classes:
DefaultAgenticScope
The AgenticScope class represents a common environment where agents belonging to the same
agentic system can share their state.
It maintains the state of the computation, tracks agent invocations, and provides
methods to allow agents to interact with the shared state.
Agents can register their calls, and the context of interactions is stored for later retrieval. The class also provides methods to read and write state, manage agent invocations, and retrieve the context as a conversation.
-
Field Summary
Fields inherited from interface LangChain4jManaged
CURRENT -
Method Summary
Modifier and TypeMethodDescriptionagentInvocations(String agentName) contextAsConversation(Object... agents) contextAsConversation(String... agentNames) booleanmemoryId()<T> Tstate()voidwriteState(String key, Object value) voidwriteStates(Map<String, Object> newState)
-
Method Details
-
memoryId
Object memoryId() -
writeState
-
writeStates
-
hasState
-
readState
-
readState
-
state
-
contextAsConversation
-
contextAsConversation
-
agentInvocations
-