Skip to content

Add reset() to trace.model #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
allenanie opened this issue Mar 25, 2025 · 4 comments
Open

Add reset() to trace.model #46

allenanie opened this issue Mar 25, 2025 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@allenanie
Copy link
Collaborator

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

@allenanie allenanie self-assigned this Mar 25, 2025
@allenanie allenanie added the enhancement New feature or request label Mar 25, 2025
@allenanie
Copy link
Collaborator Author

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

@chinganc
Copy link
Collaborator

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

@allenanie
Copy link
Collaborator Author

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

@chinganc
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants