addedInput schema / additionalProperties
Added value: +false
addedInput schema / description
Added value: +"Rank a caller-supplied provider set. ARN does not discover providers or independently verify these metrics in this free call."
addedInput schema / properties / providers / description
Added value: +"Provider candidates to rank. Unhealthy candidates are excluded."
addedInput schema / properties / providers / items
Added value: +{
+ "additionalProperties": true,
+ "description": "Caller-supplied provider candidate and measured/estimated routing attributes.",
+ "properties": {
+ "healthy": {
+ "default": true,
+ "description": "Set false to exclude this provider from routing.",
+ "type": "boolean"
+ },
+ "id": {
+ "description": "Optional stable provider identifier.",
+ "type": "string"
+ },
+ "latencyMs": {
+ "default": 1000,
+ "description": "Comparable latency in milliseconds.",
+ "minimum": 0,
+ "type": "number"
+ },
+ "name": {
+ "description": "Optional provider display name.",
+ "type": "string"
+ },
+ "price": {
+ "default": 0,
+ "description": "Comparable per-execution price used by the ranking formula.",
+ "minimum": 0,
+ "type": "number"
+ },
+ "quality": {
+ "description": "Observed or estimated quality score. Defaults to successRate.",
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "successRate": {
+ "default": 0.5,
+ "description": "Observed or estimated success rate.",
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "type": "object"
+}
addedInput schema / properties / requirements / additionalProperties
Added value: +true
addedInput schema / properties / requirements / description
Added value: +"Routing constraints. maxPrice is the currently enforced constraint."
addedInput schema / properties / requirements / properties
Added value: +{
+ "maxPrice": {
+ "description": "Optional maximum provider price. Providers above it are excluded.",
+ "minimum": 0,
+ "type": "number"
+ }
+}
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "additionalProperties": false,
+ "properties": {
+ "alternates": {
+ "description": "Up to three next-ranked eligible providers.",
+ "items": {
+ "type": "object"
+ },
+ "maxItems": 3,
+ "type": "array"
+ },
+ "reason": {
+ "description": "Human-readable explanation of the routing result.",
+ "type": "string"
+ },
+ "selected": {
+ "description": "Highest-ranked eligible provider, including its computed score, or null.",
+ "type": [
+ "object",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "selected",
+ "alternates",
+ "reason"
+ ],
+ "type": "object"
+}