Package dev.langchain4j.agentic.scope
Interface AgenticScopeStore
public interface AgenticScopeStore
Service Provider Interface for AgenticScope persistence.
Implementations must provide ways to store and retrieve AgenticScope instances.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
delete
(AgenticScopeKey key) Deletes a AgenticScope by its ID.Gets all available AgenticScope .load
(AgenticScopeKey key) Loads a AgenticScope by its ID.boolean
save
(AgenticScopeKey key, DefaultAgenticScope agenticScope) Saves or updates a AgenticScope instance.
-
Method Details
-
save
Saves or updates a AgenticScope instance.- Parameters:
agenticScope
- the AgenticScope to persist- Returns:
- true if the operation was successful
-
load
Loads a AgenticScope by its ID.- Parameters:
key
- the ID of the AgenticScope to load- Returns:
- an Optional containing the AgenticScope if found, empty otherwise
-
delete
Deletes a AgenticScope by its ID.- Parameters:
key
- the ID of the AgenticScope to delete- Returns:
- true if the AgenticScope was found and deleted
-
getAllKeys
Set<AgenticScopeKey> getAllKeys()Gets all available AgenticScope .- Returns:
- a Set of all AgenticScope keys in the persistence store
-