Skip to content
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

Using variables (#4) #30297

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

aymeric-roucher
Copy link
Contributor

What does this PR do?

Add support of state variables in the ReactAgent, which allows it to store for instance the result of an image generation to re-use it in later processing.

cc @LysandreJik

@aymeric-roucher
Copy link
Contributor Author

The relevant commit is this last one

Comment on lines 375 to 386
for key, value in arguments.items():
if value in self.state:
arguments[key] = self.state[value]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clean

@aymeric-roucher aymeric-roucher changed the title Using variables Using variables (#4) Apr 23, 2024
@aymeric-roucher aymeric-roucher merged commit f802052 into huggingface:agents Apr 23, 2024
1 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants