Trace icon indicating copy to clipboard operation
Trace copied to clipboard

Add reset() to trace.model

Open allenanie opened this issue 9 months ago • 4 comments

Multiple people asked me if there's a simple way to reset parameter node value back to original. Will work on adding this.

allenanie avatar Mar 25 '25 18:03 allenanie

But to support LangGraph, we might need a more general reset() on the parameter level, not just on the @model level.

allenanie avatar Mar 25 '25 18:03 allenanie

Do you mean to reset it to the first value that the parameter is initialized to? or setting it to some user-given value?

chinganc avatar Mar 25 '25 20:03 chinganc

Initial value (This request was asked by Xavier and some other people)

allenanie avatar Mar 25 '25 22:03 allenanie

We can create a new attribute/property for a node, e.g., init_data, which supports read and write.

chinganc avatar Apr 22 '25 18:04 chinganc