JsonSpec#
- class langchain_community.tools.json.tool.JsonSpec[source]#
Bases:
BaseModel
Base class for JSON spec.
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- param dict_: Dict [Required]#
- param max_value_length: int = 200#
- classmethod from_file(path: Path) JsonSpec [source]#
Create a JsonSpec from a file.
- Parameters:
path (Path) –
- Return type:
Examples using JsonSpec