Package dev.langchain4j.agentic.scope
Interface AgenticScopeAccess
- All Known Subinterfaces:
SupervisorAgent
,UntypedAgent
public interface AgenticScopeAccess
Allow to access the
AgenticScope
of any agent extending it.-
Method Summary
Modifier and TypeMethodDescriptionboolean
evictAgenticScope
(Object memoryId) Evicts theAgenticScope
with the given id.getAgenticScope
(Object memoryId) Returns theAgenticScope
with the given id for this AI service or null if such memory doesn't exist.
-
Method Details
-
getAgenticScope
Returns theAgenticScope
with the given id for this AI service or null if such memory doesn't exist.- Parameters:
memoryId
- The id of theAgenticScope
.- Returns:
- The
AgenticScope
with the given memoryId or null if such memory doesn't exist.
-
evictAgenticScope
Evicts theAgenticScope
with the given id.- Parameters:
memoryId
- The id of theAgenticScope
to be evicted.- Returns:
- true if
AgenticScope
with the given id existed, and it was successfully evicted, false otherwise.
-