mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-26 16:48:13 +00:00
Minor formatting changes
This commit is contained in:
@@ -17,12 +17,10 @@ patronus_eval_tool = PatronusPredifinedCriteriaEvalTool(
|
||||
# Test the PatronusLocalEvaluatorTool where agent uses the local evaluator
|
||||
client = Client()
|
||||
|
||||
|
||||
@client.register_local_evaluator("local_evaluator_name")
|
||||
def my_evaluator(**kwargs):
|
||||
return EvaluationResult(pass_="PASS", score=0.5, explanation="Explanation test")
|
||||
|
||||
|
||||
patronus_eval_tool = PatronusLocalEvaluatorTool(
|
||||
evaluator="local_evaluator_name", evaluated_model_gold_answer="test"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user