langgraph icon indicating copy to clipboard operation
langgraph copied to clipboard

Feat/Add @workflow.register_node decorator

Open Howe829 opened this issue 1 year ago • 4 comments

Adding graph.register_node decorator for easily register a node to the workflow.

Howe829 avatar Mar 15 '24 03:03 Howe829

oh it's kinda convenient. Will defer to @nfcampos on the approval though

hinthornw avatar Mar 15 '24 23:03 hinthornw

I'm not opposed to this as long as we can do it inside the existing add_node method

nfcampos avatar Mar 15 '24 23:03 nfcampos

Hi there, I've tried to make it inside the add_node method.PLTAL It may looks a little bit tricky but this is the best way for me to make add_node as a decorator as well as thinking about the forward compatibility.

Howe829 avatar Mar 16 '24 02:03 Howe829

Any updates on this? Seems quite helpful

Glinte avatar Jul 17 '24 06:07 Glinte