Package dev.langchain4j.agentic.scope
Class AgenticScopeSerializer
java.lang.Object
dev.langchain4j.agentic.scope.AgenticScopeSerializer
Utility class for serializing AgenticScope objects to JSON format.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultAgenticScope
Deserializes a JSON string into a AgenticScope object.static String
toJson
(DefaultAgenticScope agenticScope) Serializes a AgenticScope into a JSON string.
-
Method Details
-
toJson
Serializes a AgenticScope into a JSON string.- Parameters:
agenticScope
- AgenticScope to be serialized.- Returns:
- A JSON string with the contents of the AgenticScope.
- See Also:
-
fromJson
Deserializes a JSON string into a AgenticScope object.- Parameters:
json
- JSON string to be deserialized.- Returns:
- A AgenticScope object constructed from the JSON.
- See Also:
-