Ask a question to get started
Enter to send•Shift+Enter new line
Convert the graph to a JSON-serializable format.
to_json( self, *, with_schemas: bool = False ) -> dict[str, list[dict[str, Any]]]
with_schemas
bool
False
Whether to include the schemas of the nodes if they are Pydantic models.