Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/codemodder/codetf.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,21 @@ class AIMetadata(BaseModel):
tokens: Optional[int] = None


class Strategy(Enum):
ai = "ai"
hybrid = "hybrid"
deterministic = "deterministic"


class ChangeSet(BaseModel):
"""A set of changes made to a file at `path`"""

path: str
diff: str
changes: list[Change] = []
ai: Optional[AIMetadata] = None
strategy: Optional[Strategy] = None
provisional: Optional[bool] = False


class Reference(BaseModel):
Expand Down
Loading