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

Recurse if after tool submission run still requires action. #718

Merged
merged 2 commits into from
Apr 15, 2024

Conversation

raulraja
Copy link
Contributor

@raulraja raulraja commented Apr 12, 2024

This pull request refactors the AssistantThread class to handle better scenarios where a run still requires action after tool output submissions. The main changes include introducing a takeRequiredAction method that manages tool output submission, and checks run status recursively. This ensures all necessary actions are processed before a run is considered completed.

Copy link
Contributor

@javipacheco javipacheco left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

I've tested locally and everything works fine

@javipacheco javipacheco merged commit d33f606 into main Apr 15, 2024
6 checks passed
@javipacheco javipacheco deleted the fix-submit-tooloutput-recursion branch April 15, 2024 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants