Skip to content

Commit

Permalink
Add new CodeTF metadata for "strategy" and "provisional"
Browse files Browse the repository at this point in the history
  • Loading branch information
drdavella committed Nov 14, 2024
1 parent 68b1653 commit fddf156
Showing 1 changed file with 8 additions and 0 deletions.
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

0 comments on commit fddf156

Please sign in to comment.