Skip to content

Commit

Permalink
Add ai field to result (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
drdavella authored Apr 24, 2024
1 parent 65f8fce commit c1233b3
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 @@ -152,6 +152,10 @@
"type": "array",
"items": { "$ref": "#/definitions/change" },
"minItems": 1
},
"ai": {
"description": "Metadata about AI tool used to generate the fix",
"$ref": "#/definitions/ai"
}
},
"required": ["path", "diff", "changes"]
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 c1233b3

Please sign in to comment.