feat: add docs and add unit test

This commit is contained in:
Eduardo Chiarotti
2024-07-24 11:05:09 -03:00
parent 660a2ae837
commit 2a88d1d462
2 changed files with 33 additions and 1 deletions

View File

@@ -970,7 +970,7 @@ class Crew(BaseModel):
def test(
self, n_iterations: int, model: str, inputs: Optional[Dict[str, Any]] = None
) -> None:
"""Test the crew with the given inputs."""
"""Test and evaluate the Crew with the given inputs for n iterations."""
evaluator = CrewEvaluator(self, model)
for i in range(1, n_iterations + 1):