Ask a question to get started
Enter to send•Shift+Enter new line
Add a node to the graph and return it.
add_node( self, data: type[BaseModel] | RunnableType | None, id: str | None = None, *, metadata: dict[str, Any] | None = None ) -> Node
data
type[BaseModel] | RunnableType | None
The data of the node.
id
str | None
None
The id of the node.
metadata
dict[str, Any] | None
Optional metadata for the node.