aws / fmeval

Foundation Model Evaluations Library
http://aws.github.io/fmeval
Apache License 2.0
153 stars 40 forks source link

feat: implement validate_call decorator #207

Closed danielezhu closed 3 months ago

danielezhu commented 3 months ago

Description of changes: This PR includes the implementation of a decorator that performs input/output validation of a Transform's __call__ method. It cleans up the existing code such that we don't have to manually invoke the same boilerplate code every time.

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