Package dev.langchain4j.agentic.scope
Interface AgenticScopeJsonCodec
public interface AgenticScopeJsonCodec
A codec for serializing and deserializing
DefaultAgenticScope
objects to and from JSON.-
Method Summary
Modifier and TypeMethodDescriptionDeserializes a JSON string to aDefaultAgenticScope
object.toJson
(DefaultAgenticScope agenticScope) Serializes aDefaultAgenticScope
object to a JSON string.
-
Method Details
-
fromJson
Deserializes a JSON string to aDefaultAgenticScope
object.- Parameters:
json
- the JSON string.- Returns:
- the deserialized
DefaultAgenticScope
object.
-
toJson
Serializes aDefaultAgenticScope
object to a JSON string.- Parameters:
agenticScope
- theDefaultAgenticScope
object.- Returns:
- the serialized JSON string.
-