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

Output handler max iterations #61

Merged
merged 8 commits into from
Jul 7, 2024
Merged

Output handler max iterations #61

merged 8 commits into from
Jul 7, 2024

Conversation

BespalovSergey
Copy link
Collaborator

No description provided.

@@ -58,17 +63,17 @@ def agent():

except ModuleNotInstalled:
Copy link
Contributor

Choose a reason for hiding this comment

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

LlamaIndex should always be installed in test environments, so let's remove this try-except block.

Also, let's replace DuckDuckGoSearchRun with some mock tool in this and other tests, because it's quite possible we'll get rid of this dependency one day.

self.kwargs = kwargs

def __str__(self):
return "\n args: {}\n kwargs: {}".format(self.args, self.kwargs)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return "\n args: {}\n kwargs: {}".format(self.args, self.kwargs)
return "Maximum number of output handler iterations exceeded"

@whimo whimo merged commit a4c2fdd into main Jul 7, 2024
36 checks passed
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