Skip to content

Commit

Permalink
Add scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
aorwall committed Jan 17, 2025
1 parent 354923f commit dfb27a8
Show file tree
Hide file tree
Showing 3 changed files with 771 additions and 0 deletions.
4 changes: 4 additions & 0 deletions moatless/message_history/message_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ def create(cls, message_history_type: MessageHistoryType, **obj):
from moatless.message_history.summary import SummaryMessageHistoryGenerator

return SummaryMessageHistoryGenerator(**obj)

elif message_history_type == MessageHistoryType.MESSAGES:

return cls(**obj)
else:
raise ValueError(f"Invalid message_history_type: {message_history_type}")

Expand Down
Loading

0 comments on commit dfb27a8

Please sign in to comment.