Skip to content

Commit

Permalink
Add ai field to result
Browse files Browse the repository at this point in the history
  • Loading branch information
drdavella authored Apr 24, 2024
1 parent 65f8fce commit b3b0832
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions codetf.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@
"type": "array",
"description": "A set of file paths for files that the tool failed to fix",
"items": { "$ref": "#/definitions/unfixedFinding" }
},
"ai": {
"description": "Metadata about AI tool used to generate the fix",
"$ref": "#/definitions/ai"
}
},
"required": ["codemod", "summary", "description", "changeset"]
Expand Down Expand Up @@ -212,6 +216,24 @@
"required": ["action", "result", "package"]
},

"ai": {
"type": "object",
"properties": {
"provider": {
"type": "string",
"description": "Name of the AI provider used to generate this fix"
},
"model": {
"type": "string",
"description": "Name of the model used to generate this fix"
}
"tokens": {
"type": "integer",
"description": "Total number of tokens used to generate the fix"
}
}
}

"detectionTool": {
"type": "object",
"properties": {
Expand Down

0 comments on commit b3b0832

Please sign in to comment.