Skip to content

Make MultiStepAgent and abstract class #1204

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

Merged

Conversation

sysradium
Copy link
Contributor

I suggest to mark MultiStepAgent as an abstract class since it is not meant to be instantiate on its own.
Also it has 2 methods, that other agent implementation must implement.

Before, when I just started using this library I shoot myself in a foot but instantiating MultiStepAgent and then trying to figure out why it quickly goes through max_steps and halts.

@sysradium sysradium marked this pull request as ready for review April 15, 2025 20:14
Copy link
Collaborator

@aymeric-roucher aymeric-roucher left a comment

Choose a reason for hiding this comment

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

Thank you @sysradium!

@aymeric-roucher aymeric-roucher merged commit 54edaab into huggingface:main Apr 16, 2025
3 checks passed
@sysradium sysradium deleted the switch-to-abc-class-for-agents branch April 16, 2025 12:45
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