Files
hermes-control-panel/agent-schemas/delegation-request.schema.json
T

83 lines
2.9 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://hermes.vyntehome.com/schemas/delegation-request.schema.json",
"title": "Hermes Agent Delegation Request",
"type": "object",
"required": ["requestedProfile", "objective", "budget", "timeoutAt", "idempotencyKey"],
"properties": {
"schema": { "const": "hermes.agent.delegation.v1" },
"requestId": { "type": "string", "minLength": 1, "maxLength": 120 },
"parentExecutionId": { "type": ["string", "null"], "maxLength": 120 },
"requestedProfile": {
"type": "object",
"required": ["id", "version"],
"properties": {
"id": { "type": "string", "minLength": 1, "maxLength": 120 },
"version": { "type": "integer", "minimum": 1 }
},
"additionalProperties": false
},
"objective": { "type": "string", "minLength": 1, "maxLength": 2000 },
"acceptanceCriteria": {
"type": "array",
"maxItems": 20,
"items": { "type": "string", "minLength": 1, "maxLength": 500 }
},
"constraints": {
"type": "array",
"maxItems": 20,
"items": { "type": "string", "minLength": 1, "maxLength": 500 }
},
"contextSelectors": {
"type": "array",
"maxItems": 20,
"items": {
"type": "object",
"required": ["source", "selector", "purpose"],
"properties": {
"source": { "type": "string", "minLength": 1, "maxLength": 120 },
"selector": { "type": "object" },
"purpose": { "type": "string", "minLength": 1, "maxLength": 240 }
},
"additionalProperties": false
}
},
"requestedCapabilities": {
"type": "array",
"maxItems": 20,
"items": {
"type": "object",
"required": ["scope", "resource", "operations"],
"properties": {
"scope": { "type": "string", "minLength": 1, "maxLength": 120 },
"resource": { "type": "string", "minLength": 1, "maxLength": 240 },
"operations": {
"type": "array",
"maxItems": 20,
"items": { "type": "string", "minLength": 1, "maxLength": 80 }
}
},
"additionalProperties": false
}
},
"budget": { "$ref": "#/$defs/budget" },
"timeoutAt": { "type": "string", "format": "date-time" },
"idempotencyKey": { "type": "string", "minLength": 1, "maxLength": 180 }
},
"additionalProperties": false,
"$defs": {
"budget": {
"type": "object",
"required": ["runtimeMs", "toolCalls", "inputTokens", "outputTokens", "costUsdMicros"],
"properties": {
"runtimeMs": { "type": "integer", "minimum": 1 },
"toolCalls": { "type": "integer", "minimum": 1 },
"inputTokens": { "type": "integer", "minimum": 1 },
"outputTokens": { "type": "integer", "minimum": 1 },
"costUsdMicros": { "type": "integer", "minimum": 1 }
},
"additionalProperties": false
}
}
}