Skip to content

Commit

Permalink
Update langchain.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CShorten authored Aug 12, 2024
1 parent 3b09115 commit dc55826
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dspy/predict/langchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def reset(self):
self.train = []
self.demos = []

def dump_state(self):
def dump_state(self, save_field_meta=False):
"""save_field_meta is set as a default argument to support the Parameter interface for dump_state()"""
state_keys = ["lm", "traces", "train", "demos"]
return {k: getattr(self, k) for k in state_keys}

Expand Down

0 comments on commit dc55826

Please sign in to comment.