feat: bound agent facet label proposals

This commit is contained in:
vasily committed 2026-10-14 21:53:35 +08:00
1 parent 6adc5a0d35
commit 1e5beb5fc2
7 files changed
+999 -6

No files matched your search

+155
View File
@@ -1,5 +1,151 @@
{
"$defs": {
"ProjectFacetLabel": {
"additionalProperties": false,
"properties": {
"aliases": {
"default": [],
"items": {
"maxLength": 100,
"minLength": 1,
"type": "string"
},
"maxItems": 20,
"title": "Aliases",
"type": "array"
},
"canonical_label": {
"maxLength": 100,
"minLength": 1,
"title": "Canonical Label",
"type": "string"
},
"created_at": {
"format": "date-time",
"title": "Created At",
"type": "string"
},
"definition": {
"maxLength": 500,
"minLength": 1,
"title": "Definition",
"type": "string"
},
"facet": {
"enum": [
"tags",
"audience",
"use_for",
"domain"
],
"title": "Facet",
"type": "string"
},
"jev_fit_probability": {
"anyOf": [
{
"maximum": 1,
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Jev Fit Probability"
},
"jev_model": {
"anyOf": [
{
"maxLength": 100,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Jev Model"
},
"jev_new_probability": {
"anyOf": [
{
"maximum": 1,
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Jev New Probability"
},
"label_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Label Id",
"type": "string"
},
"merged_into": {
"anyOf": [
{
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Merged Into"
},
"origin_review_id": {
"anyOf": [
{
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Origin Review Id"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"status": {
"default": "active",
"enum": [
"active",
"merged",
"retired"
],
"title": "Status",
"type": "string"
}
},
"required": [
"label_id",
"facet",
"canonical_label",
"definition",
"created_at"
],
"title": "ProjectFacetLabel",
"type": "object"
},
"ProjectStatus": {
"enum": [
"active",
@@ -38,6 +184,15 @@
"title": "Description",
"type": "string"
},
"facet_labels": {
"default": [],
"items": {
"$ref": "#/$defs/ProjectFacetLabel"
},
"maxItems": 2000,
"title": "Facet Labels",
"type": "array"
},
"key_questions": {
"items": {
"type": "string"