langchain_core.runnables.graph
.node_data_json¶
- langchain_core.runnables.graph.node_data_json(node: Node, *, with_schemas: bool = False) Dict[str, Union[str, Dict[str, Any]]] [source]¶
将节点的数据转换为可JSON序列化的格式。
- 参数:
node:要转换的节点。 with_schemas:如果数据是Pydantic模型,则是否包含数据的模式。
- 返回:
包含数据类型和数据本身的字典。
- Parameters
node (Node) –
with_schemas (bool) –
- Return type
Dict[str, Union[str, Dict[str, Any]]]