Skip to content

Commit

Permalink
add default factory
Browse files Browse the repository at this point in the history
  • Loading branch information
shahules786 committed Sep 24, 2024
1 parent 7a1cdd7 commit 13a33ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ragas/metrics/_tool_call_accuracy.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ class ToolCallAccuracy(MultiTurnMetric):
}
)

arg_comparison_metric: SingleTurnMetric = ExactMatch()
arg_comparison_metric: SingleTurnMetric = field(
default_factory=lambda: ExactMatch()
)

def init(self, run_config):
pass
Expand Down

0 comments on commit 13a33ee

Please sign in to comment.