Skip to content

Commit ed01c88

Browse files
CopilotTomeHirata
andauthored
Fix GEPAFeedbackMetric Protocol missing 'self' parameter (#9111)
* Initial plan * Add missing 'self' parameter to GEPAFeedbackMetric and PredictorFeedbackFn Protocol __call__ methods Co-authored-by: TomeHirata <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: TomeHirata <[email protected]>
1 parent 90eabee commit ed01c88

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dspy/teleprompt/gepa/gepa.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
@experimental(version="3.0.0")
2626
class GEPAFeedbackMetric(Protocol):
2727
def __call__(
28+
self,
2829
gold: Example,
2930
pred: Prediction,
3031
trace: Optional["DSPyTrace"],

dspy/teleprompt/gepa/gepa_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class ScoreWithFeedback(Prediction):
4242

4343
class PredictorFeedbackFn(Protocol):
4444
def __call__(
45+
self,
4546
predictor_output: dict[str, Any],
4647
predictor_inputs: dict[str, Any],
4748
module_inputs: Example,

0 commit comments

Comments
 (0)