Class AgenticScopeSerializer

java.lang.Object
dev.langchain4j.agentic.scope.AgenticScopeSerializer

public class AgenticScopeSerializer extends Object
Utility class for serializing AgenticScope objects to JSON format.
  • Method Details

    • toJson

      public static String toJson(DefaultAgenticScope agenticScope)
      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

      public static DefaultAgenticScope fromJson(String json)
      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: