changedOutput schema / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "contract_version": {
- "const": "ardaro.agent-utilities.response.v1"
- },
- "identities": {
- "additionalProperties": false,
- "properties": {
- "analysis_result_identity": {
- "pattern": "^res_[0-9a-f]{64}(?![\\s\\S])",
- "type": "string"
- },
- "payment_identity": {
- "additionalProperties": false,
- "properties": {
- "protocol": {
- "const": "x402-v2"
- },
- "reference": {
- "pattern": "^pay_[0-9a-f]{64}(?![\\s\\S])",
- "type": "string"
- },
- "replayed": {
- "type": "boolean"
- }
- },
- "required": [
- "protocol",
- "reference",
- "replayed"
- ],
- "type": "object"
- }
- },
- "required": [
- "analysis_result_identity",
- "payment_identity"
- ],
- "type": "object"
- },
- "result": {
- "additionalProperties": false,
- "properties": {
- "candidate_characters": {
- "maximum": 32768,
- "minimum": 1,
- "type": "integer"
- },
- "characters_removed": {
- "maximum": 32767,
- "minimum": 0,
- "type": "integer"
- },
- "compressed_prompt_payload": {
- "maxLength": 32768,
- "minLength": 1,
- "type": "string"
- },
- "compression_ratio": {
- "type": "null"
- },
- "human_review_required": {
- "const": true,
- "type": "boolean"
- },
- "latency_or_cost_savings_verified": {
- "const": false,
- "type": "boolean"
- },
- "original_characters": {
- "maximum": 32768,
- "minimum": 1,
- "type": "integer"
- },
- "semantic_preservation_verified": {
- "const": false,
- "type": "boolean"
- },
- "status": {
- "const": "REVIEW_CANDIDATE",
- "type": "string"
- },
- "tokenizer_used": {
- "type": "null"
- },
- "tokens_saved": {
- "type": "null"
- },
- "transformation": {
- "const": "Reduce three or more consecutive LF/CRLF line breaks to two LF line breaks; no words or role headers removed",
- "type": "string"
- }
- },
- "required": [
- "status",
- "compressed_prompt_payload",
- "transformation",
- "original_characters",
- "candidate_characters",
- "characters_removed",
- "tokens_saved",
- "tokenizer_used",
- "compression_ratio",
- "semantic_preservation_verified",
- "human_review_required",
- "latency_or_cost_savings_verified"
- ],
- "type": "object"
- },
- "service_id": {
- "const": "ardaro.compress_agent_context"
- },
- "status": {
- "const": "review_required"
- }
- },
- "required": [
- "contract_version",
- "service_id",
- "status",
- "result",
- "identities"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "contract_version": {
- "const": "ardaro.agent-utilities.response.v1"
- },
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "maxLength": 100,
- "type": "string"
- },
- "message": {
- "maxLength": 300,
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "status": {
- "const": "error"
- }
- },
- "required": [
- "contract_version",
- "status",
- "error"
- ],
- "type": "object"
- },
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "additionalProperties": false,
- "properties": {
- "contract_version": {
- "const": "ardaro.agent-receipt-intelligence.response.v1"
- },
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "maxLength": 80,
- "type": "string"
- },
- "message": {
- "maxLength": 280,
- "type": "string"
- },
- "remediation": {
- "maxLength": 280,
- "type": "string"
- },
- "retryable": {
- "type": "boolean"
- },
- "service_code": {
- "enum": [
- "ARDARO_ARITHMETIC_MISMATCH",
- "ARDARO_DOCUMENT_TOO_LARGE",
- "ARDARO_DUPLICATE_SUSPECTED",
- "ARDARO_EXTRACTION_LOW_CONFIDENCE",
- "ARDARO_IDEMPOTENCY_CONFLICT",
- "ARDARO_INPUT_UNSUPPORTED",
- "ARDARO_PAYMENT_INVALID",
- "ARDARO_PAYMENT_RECONCILIATION_REQUIRED",
- "ARDARO_PAYMENT_REQUIRED",
- "ARDARO_RATE_LIMITED",
- "ARDARO_SERVICE_UNAVAILABLE"
- ]
- }
- },
- "required": [
- "code",
- "service_code",
- "message",
- "retryable",
- "remediation"
- ],
- "type": "object"
- },
- "status": {
- "const": "error"
- }
- },
- "required": [
- "contract_version",
- "status",
- "error"
- ],
- "type": "object"
- },
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "additionalProperties": false,
- "properties": {
- "contract_version": {
- "const": "ardaro.agent-receipt-intelligence.response.v1"
- },
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "maxLength": 80,
- "minLength": 1,
- "type": "string"
- },
- "message": {
- "const": "Service is not ready."
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "service": {
- "const": "ardaro-receipt-intelligence"
- },
- "status": {
- "const": "not_ready"
- }
- },
- "required": [
- "contract_version",
- "status",
- "service",
- "error"
- ],
- "type": "object"
- },
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {
- "accepts": {
- "items": {
- "properties": {
- "amount": {
- "type": "string"
- },
- "asset": {
- "type": "string"
- },
- "extra": {
- "additionalProperties": true,
- "type": "object"
- },
- "maxTimeoutSeconds": {
- "type": "integer"
- },
- "network": {
- "type": "string"
- },
- "payTo": {
- "type": "string"
- },
- "scheme": {
- "type": "string"
- }
- },
- "required": [
- "scheme",
- "network",
- "asset",
- "amount",
- "payTo",
- "maxTimeoutSeconds"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "error": {
- "type": [
- "string",
- "null"
- ]
- },
- "extensions": {
- "oneOf": [
- {
- "additionalProperties": true,
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "resource": {
- "oneOf": [
- {
- "properties": {
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "iconUrl": {
- "type": [
- "string",
- "null"
- ]
- },
- "mimeType": {
- "type": [
- "string",
- "null"
- ]
- },
- "serviceName": {
- "type": [
- "string",
- "null"
- ]
- },
- "tags": {
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ]
- },
- "url": {
- "type": "string"
- }
- },
- "required": [
- "url"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "x402Version": {
- "const": 2,
- "default": 2,
- "type": "integer"
- }
- },
- "required": [
- "accepts"
- ],
- "type": "object"
- },
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "additionalProperties": false,
- "properties": {
- "error": {
- "type": "string"
- }
- },
- "required": [
- "error"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "message": {
- "type": "string"
- },
- "status": {
- "const": "error"
- }
- },
- "required": [
- "status",
- "message"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "contract_version": {
+ "const": "ardaro.agent-utilities.response.v1"
+ },
+ "identities": {
+ "additionalProperties": false,
+ "properties": {
+ "analysis_result_identity": {
+ "pattern": "^res_[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "payment_identity": {
+ "additionalProperties": false,
+ "properties": {
+ "protocol": {
+ "const": "x402-v2"
+ },
+ "reference": {
+ "pattern": "^pay_[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "replayed": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "protocol",
+ "reference",
+ "replayed"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "analysis_result_identity",
+ "payment_identity"
+ ],
+ "type": "object"
+ },
+ "result": {
+ "additionalProperties": false,
+ "properties": {
+ "candidate_characters": {
+ "maximum": 32768,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "characters_removed": {
+ "maximum": 32767,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "compressed_prompt_payload": {
+ "maxLength": 32768,
+ "minLength": 1,
+ "type": "string"
+ },
+ "compression_ratio": {
+ "type": "null"
+ },
+ "human_review_required": {
+ "const": true,
+ "type": "boolean"
+ },
+ "latency_or_cost_savings_verified": {
+ "const": false,
+ "type": "boolean"
+ },
+ "original_characters": {
+ "maximum": 32768,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "semantic_preservation_verified": {
+ "const": false,
+ "type": "boolean"
+ },
+ "status": {
+ "const": "REVIEW_CANDIDATE",
+ "type": "string"
+ },
+ "tokenizer_used": {
+ "type": "null"
+ },
+ "tokens_saved": {
+ "type": "null"
+ },
+ "transformation": {
+ "const": "Reduce three or more consecutive LF/CRLF line breaks to two LF line breaks; no words or role headers removed",
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "compressed_prompt_payload",
+ "transformation",
+ "original_characters",
+ "candidate_characters",
+ "characters_removed",
+ "tokens_saved",
+ "tokenizer_used",
+ "compression_ratio",
+ "semantic_preservation_verified",
+ "human_review_required",
+ "latency_or_cost_savings_verified"
+ ],
+ "type": "object"
+ },
+ "service_id": {
+ "const": "ardaro.compress_agent_context"
+ },
+ "status": {
+ "const": "review_required"
+ }
+ },
+ "required": [
+ "contract_version",
+ "service_id",
+ "status",
+ "result",
+ "identities"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "contract_version": {
+ "const": "ardaro.agent-utilities.response.v1"
+ },
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "maxLength": 100,
+ "type": "string"
+ },
+ "message": {
+ "maxLength": 300,
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "status": {
+ "const": "error"
+ }
+ },
+ "required": [
+ "contract_version",
+ "status",
+ "error"
+ ],
+ "type": "object"
+ },
+ {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "contract_version": {
+ "const": "ardaro.agent-receipt-intelligence.response.v1"
+ },
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "maxLength": 80,
+ "type": "string"
+ },
+ "message": {
+ "maxLength": 280,
+ "type": "string"
+ },
+ "remediation": {
+ "maxLength": 280,
+ "type": "string"
+ },
+ "retryable": {
+ "type": "boolean"
+ },
+ "service_code": {
+ "enum": [
+ "ARDARO_ARITHMETIC_MISMATCH",
+ "ARDARO_DOCUMENT_TOO_LARGE",
+ "ARDARO_DUPLICATE_SUSPECTED",
+ "ARDARO_EXTRACTION_LOW_CONFIDENCE",
+ "ARDARO_IDEMPOTENCY_CONFLICT",
+ "ARDARO_INPUT_UNSUPPORTED",
+ "ARDARO_PAYMENT_INVALID",
+ "ARDARO_PAYMENT_RECONCILIATION_REQUIRED",
+ "ARDARO_PAYMENT_REQUIRED",
+ "ARDARO_RATE_LIMITED",
+ "ARDARO_SERVICE_UNAVAILABLE"
+ ]
+ }
+ },
+ "required": [
+ "code",
+ "service_code",
+ "message",
+ "retryable",
+ "remediation"
+ ],
+ "type": "object"
+ },
+ "status": {
+ "const": "error"
+ }
+ },
+ "required": [
+ "contract_version",
+ "status",
+ "error"
+ ],
+ "type": "object"
+ },
+ {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "contract_version": {
+ "const": "ardaro.agent-receipt-intelligence.response.v1"
+ },
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ },
+ "message": {
+ "const": "Service is not ready."
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "service": {
+ "const": "ardaro-receipt-intelligence"
+ },
+ "status": {
+ "const": "not_ready"
+ }
+ },
+ "required": [
+ "contract_version",
+ "status",
+ "service",
+ "error"
+ ],
+ "type": "object"
+ },
+ {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "properties": {
+ "accepts": {
+ "items": {
+ "properties": {
+ "amount": {
+ "type": "string"
+ },
+ "asset": {
+ "type": "string"
+ },
+ "extra": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "maxTimeoutSeconds": {
+ "type": "integer"
+ },
+ "network": {
+ "type": "string"
+ },
+ "payTo": {
+ "type": "string"
+ },
+ "scheme": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "scheme",
+ "network",
+ "asset",
+ "amount",
+ "payTo",
+ "maxTimeoutSeconds"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "error": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "extensions": {
+ "oneOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "resource": {
+ "oneOf": [
+ {
+ "properties": {
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "iconUrl": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "mimeType": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "serviceName": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "tags": {
+ "oneOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "url"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "x402Version": {
+ "const": 2,
+ "default": 2,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "accepts"
+ ],
+ "type": "object"
+ },
+ {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "message": {
+ "type": "string"
+ },
+ "status": {
+ "const": "error"
+ }
+ },
+ "required": [
+ "status",
+ "message"
+ ],
+ "type": "object"
+ }
+]