weavel-ai / Ape

Your first AI prompt engineer
https://docs.weavel.ai/sdk-reference/ape-common
MIT License
331 stars 13 forks source link

Feat refactor ape wea 637 #40

Closed engineerA314 closed 1 week ago

engineerA314 commented 1 week ago

Here's the summary of the pull request based on the provided information:

Description

This pull request refactors and renames several core components of the Ape library. The main changes include:

  1. Renaming Evaluate to Evaluator and Generate to Generator for consistency and clarity.
  2. Restructuring the file organization, moving files from evaluate and generate directories to evaluator and generator directories respectively.
  3. Updating import statements and class references throughout the codebase to reflect these changes.
  4. Renaming the generator attribute to generate in the Evaluator class for better alignment with functor best practices.
  5. Removing unused code and improving code formatting in various files.

These changes aim to improve code organization, maintainability, and adherence to best practices. The PR also includes version updates in pyproject.toml files, setting ape-common to version 0.2.0 and the main project to 0.9.0.

Changes that Break Backward Compatibility

This PR introduces several breaking changes:

  1. The Evaluate class has been renamed to Evaluator. Any code using Evaluate will need to be updated.
  2. The Generate class has been renamed to Generator. Code referencing Generate will need to be modified.
  3. Import statements for these classes will need to be updated to reflect the new file structure.
  4. The generator attribute in the Evaluator class has been renamed to generate. Any code accessing this attribute will need to be updated.

Documentation

N/A

Created with Palmier

aschung01 commented 1 week ago

@palmier-bot describe