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

@@ -0,0 +1,479 @@
{
"$defs": {
"JevFacetOptionScore": {
"additionalProperties": false,
"properties": {
"label": {
"maxLength": 100,
"minLength": 1,
"title": "Label",
"type": "string"
},
"label_id": {
"anyOf": [
{
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Label Id"
},
"probability": {
"maximum": 1,
"minimum": 0,
"title": "Probability",
"type": "number"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
}
},
"required": [
"label",
"probability"
],
"title": "JevFacetOptionScore",
"type": "object"
},
"JevFacetResolution": {
"additionalProperties": false,
"properties": {
"added_to_project": {
"default": false,
"title": "Added To Project",
"type": "boolean"
},
"choice_confidence": {
"maximum": 1,
"minimum": 0,
"title": "Choice Confidence",
"type": "number"
},
"facet": {
"enum": [
"tags",
"audience",
"use_for",
"domain"
],
"title": "Facet",
"type": "string"
},
"fit_probability": {
"maximum": 1,
"minimum": 0,
"title": "Fit Probability",
"type": "number"
},
"new_probability": {
"maximum": 1,
"minimum": 0,
"title": "New Probability",
"type": "number"
},
"option_probabilities": {
"default": [],
"items": {
"$ref": "#/$defs/JevFacetOptionScore"
},
"maxItems": 6,
"title": "Option Probabilities",
"type": "array"
},
"rank": {
"maximum": 20,
"minimum": 1,
"title": "Rank",
"type": "integer"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"selected_label": {
"anyOf": [
{
"maxLength": 100,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Selected Label"
},
"selected_label_id": {
"anyOf": [
{
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Selected Label Id"
},
"selected_new_label": {
"default": false,
"title": "Selected New Label",
"type": "boolean"
},
"value": {
"maxLength": 100,
"minLength": 1,
"title": "Value",
"type": "string"
}
},
"required": [
"facet",
"value",
"fit_probability",
"new_probability",
"choice_confidence",
"rank"
],
"title": "JevFacetResolution",
"type": "object"
},
"JevFacetScore": {
"additionalProperties": false,
"properties": {
"facet": {
"enum": [
"tags",
"audience",
"use_for",
"domain"
],
"title": "Facet",
"type": "string"
},
"probability": {
"maximum": 1,
"minimum": 0,
"title": "Probability",
"type": "number"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"value": {
"maxLength": 100,
"minLength": 1,
"title": "Value",
"type": "string"
}
},
"required": [
"facet",
"value",
"probability"
],
"title": "JevFacetScore",
"type": "object"
},
"Locator": {
"additionalProperties": false,
"properties": {
"block_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Block Id",
"type": "string"
},
"end": {
"exclusiveMinimum": 0,
"title": "End",
"type": "integer"
},
"kind": {
"enum": [
"text_span",
"pdf_page_span",
"transcript_timestamp_span"
],
"title": "Kind",
"type": "string"
},
"page": {
"anyOf": [
{
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Page"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"start": {
"minimum": 0,
"title": "Start",
"type": "integer"
},
"time_end_ms": {
"anyOf": [
{
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Time End Ms"
},
"time_start_ms": {
"anyOf": [
{
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Time Start Ms"
}
},
"required": [
"kind",
"block_id",
"start",
"end"
],
"title": "Locator",
"type": "object"
}
},
"additionalProperties": false,
"properties": {
"created_at": {
"format": "date-time",
"title": "Created At",
"type": "string"
},
"excerpt": {
"maxLength": 4000,
"minLength": 1,
"title": "Excerpt",
"type": "string"
},
"extraction_id": {
"pattern": "^[a-f0-9]{64}$",
"title": "Extraction Id",
"type": "string"
},
"jev_facet_resolutions": {
"default": [],
"items": {
"$ref": "#/$defs/JevFacetResolution"
},
"maxItems": 20,
"title": "Jev Facet Resolutions",
"type": "array"
},
"jev_facet_scores": {
"default": [],
"items": {
"$ref": "#/$defs/JevFacetScore"
},
"maxItems": 20,
"title": "Jev Facet Scores",
"type": "array"
},
"jev_lens": {
"anyOf": [
{
"enum": [
"technical",
"conceptual",
"cultural-historical",
"financial-market"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Jev Lens"
},
"jev_lens_confidence": {
"anyOf": [
{
"maximum": 1,
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Jev Lens Confidence"
},
"jev_model": {
"anyOf": [
{
"maxLength": 100,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Jev Model"
},
"jev_relation_probability": {
"anyOf": [
{
"maximum": 1,
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Jev Relation Probability"
},
"lens": {
"enum": [
"technical",
"conceptual",
"cultural-historical",
"financial-market"
],
"title": "Lens",
"type": "string"
},
"locator": {
"$ref": "#/$defs/Locator"
},
"project_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Project Id",
"type": "string"
},
"relevance": {
"default": "borderline",
"enum": [
"borderline",
"low"
],
"title": "Relevance",
"type": "string"
},
"relevance_rationale": {
"maxLength": 2000,
"minLength": 1,
"title": "Relevance Rationale",
"type": "string"
},
"review_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Review Id",
"type": "string"
},
"run_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Run Id",
"type": "string"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"source_revision_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Source Revision Id",
"type": "string"
},
"status": {
"default": "needs-user-review",
"enum": [
"needs-user-review",
"included",
"excluded",
"deferred"
],
"title": "Status",
"type": "string"
},
"submitted_by": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Submitted By",
"type": "string"
},
"summary": {
"maxLength": 2000,
"minLength": 1,
"title": "Summary",
"type": "string"
}
},
"required": [
"review_id",
"project_id",
"run_id",
"source_revision_id",
"extraction_id",
"locator",
"excerpt",
"lens",
"summary",
"relevance_rationale",
"submitted_by",
"created_at"
],
"title": "IngestReviewItem",
"type": "object"
}