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

Add hooks #12

Merged
merged 12 commits into from
Apr 1, 2024
Merged

Add hooks #12

merged 12 commits into from
Apr 1, 2024

Conversation

tonykchen
Copy link
Contributor

Issue #, if available:
N/A

Description of changes:

  • Added Hook, which represents an evaluation hook.
  • Renamed the abstract method BaseEvaluator.run to BaseEvaluator.evaluate. The run method is now a concrete method that will invoke evaluate within a trace context and execute hooks if applicable.
  • Move module import functionality to utils/
  • Added documentation and examples for hooks.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@tonykchen tonykchen merged commit 321c97e into main Apr 1, 2024
4 checks passed
@tonykchen tonykchen deleted the add-hooks branch April 1, 2024 19:27
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