chat-image-edit / src /agents /Untitled-1.json
simonlee-cb's picture
feat: working mask generation agent
a21dee1
{
"name": "image_editing_instruction",
"strict": true,
"schema": {
"type": "object",
"properties": {
"category": {
"type": "string",
"description": "The editing category based on the instruction. Must be one of: Addition, Remove, Local, Global, Background.",
"enum": [
"Addition",
"Remove",
"Local",
"Global",
"Background"
]
},
"subject": {
"type": "string",
"description": "The subject of the editing instruction. Must be a noun in no more than 5 words."
},
"caption": {
"type": "string",
"description": "The detailed description of the image."
},
"target_caption": {
"type": "string",
"description": "Apply the editing instruction to the image caption. The target caption should describe the image after the editing instruction is applied."
}
},
"required": [
"category",
"subject",
"caption",
"target_caption"
],
"additionalProperties": false
}
}