Package dev.langchain4j.agentic.scope
package dev.langchain4j.agentic.scope
-
ClassDescriptionThe AgenticScope class represents a common environment where agents belonging to the same agentic system can share their state.Allow to access the
AgenticScopeof any agent extending it.A codec for serializing and deserializingDefaultAgenticScopeobjects to and from JSON.Singleton registry for managing AgenticScope instances.Utility class for serializing AgenticScope objects to JSON format.Service Provider Interface for AgenticScope persistence.Thrown when a persistent agentic system suspends because it contains unresolvedSuspendedResponseentries (typically from a HumanInTheLoop agent).The invocation of an agent, as notified to the planner of its parent.The persistable form of the answers that decision agents write to theAgenticScope:ChoiceandScaleare generic in their enum type, which the JSON serialization of the scope would lose, and none of the three types has a constructor a JSON library can call.Holds the result of an agent invocation along with its associatedAgenticScope.