changedOutput schema / anyOf
Previous value: -[
- {
- "allOf": [
- {
- "anyOf": [
- {
- "required": [
- "method",
- "calls_per_day"
- ]
- },
- {
- "not": {
- "anyOf": [
- {
- "required": [
- "method"
- ]
- },
- {
- "required": [
- "calls_per_day"
- ]
- },
- {
- "required": [
- "cu_weight"
- ]
- }
- ]
- },
- "properties": {
- "lines": {
- "minItems": 2,
- "type": "array"
- }
- },
- "required": [
- "lines",
- "daily_cu",
- "daily_cost_usd",
- "cycle_days",
- "cycle_cu",
- "cycle_cost_usd"
- ]
- }
- ],
- "properties": {
- "average_calls_per_sec": {
- "type": "number"
- },
- "calls_per_day": {
- "type": "number"
- },
- "cu_weight": {
- "type": [
- "number",
- "null"
- ]
- },
- "cycle_cost_usd": {
- "type": [
- "number",
- "null"
- ]
- },
- "cycle_cu": {
- "type": "number"
- },
- "cycle_days": {
- "type": "number"
- },
- "daily_cost_usd": {
- "type": [
- "number",
- "null"
- ]
- },
- "daily_cu": {
- "type": "number"
- },
- "exceeds_free_quota": {
- "type": "boolean"
- },
- "exceeds_rate_limit": {
- "type": "boolean"
- },
- "free_quota_cu": {
- "type": [
- "number",
- "null"
- ]
- },
- "lines": {
- "items": {
- "properties": {
- "calls_per_day": {
- "type": "number"
- },
- "cu_weight": {
- "type": "number"
- },
- "daily_cost_usd": {
- "type": [
- "number",
- "null"
- ]
- },
- "daily_cu": {
- "type": "number"
- },
- "method": {
- "type": "string"
- }
- },
- "required": [
- "method",
- "calls_per_day",
- "cu_weight",
- "daily_cu",
- "daily_cost_usd"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "max_calls_per_sec": {
- "type": [
- "number",
- "null"
- ]
- },
- "method": {
- "type": "string"
- },
- "quota_percent": {
- "type": [
- "number",
- "null"
- ]
- }
- },
- "type": "object"
- },
- {
- "not": {
- "properties": {
- "error": {
- "const": "invalid_tool_arguments",
- "type": "string"
- }
- },
- "required": [
- "error"
- ],
- "type": "object"
- }
- }
- ]
- },
- {
- "additionalProperties": false,
- "properties": {
- "error": {
- "const": "invalid_tool_arguments",
- "type": "string"
- },
- "message": {
- "minLength": 1,
- "type": "string"
- },
- "reason": {
- "enum": [
- "invalid_root",
- "schema_type",
- "schema_enum",
- "undeclared_property",
- "credential_field",
- "credential_value"
- ],
- "type": "string"
- }
- },
- "required": [
- "error",
- "reason",
- "message"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "allOf": [
+ {
+ "anyOf": [
+ {
+ "allOf": [
+ {
+ "anyOf": [
+ {
+ "required": [
+ "method",
+ "calls_per_day"
+ ]
+ },
+ {
+ "not": {
+ "anyOf": [
+ {
+ "required": [
+ "method"
+ ]
+ },
+ {
+ "required": [
+ "calls_per_day"
+ ]
+ },
+ {
+ "required": [
+ "cu_weight"
+ ]
+ }
+ ]
+ },
+ "properties": {
+ "lines": {
+ "minItems": 2,
+ "type": "array"
+ }
+ },
+ "required": [
+ "lines",
+ "daily_cu",
+ "daily_cost_usd",
+ "cycle_days",
+ "cycle_cu",
+ "cycle_cost_usd"
+ ]
+ }
+ ],
+ "properties": {
+ "average_calls_per_sec": {
+ "type": "number"
+ },
+ "calls_per_day": {
+ "type": "number"
+ },
+ "cu_weight": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "cycle_cost_usd": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "cycle_cu": {
+ "type": "number"
+ },
+ "cycle_days": {
+ "type": "number"
+ },
+ "daily_cost_usd": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "daily_cu": {
+ "type": "number"
+ },
+ "exceeds_free_quota": {
+ "type": "boolean"
+ },
+ "exceeds_rate_limit": {
+ "type": "boolean"
+ },
+ "free_quota_cu": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "lines": {
+ "items": {
+ "properties": {
+ "calls_per_day": {
+ "type": "number"
+ },
+ "cu_weight": {
+ "type": "number"
+ },
+ "daily_cost_usd": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "daily_cu": {
+ "type": "number"
+ },
+ "method": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "method",
+ "calls_per_day",
+ "cu_weight",
+ "daily_cu",
+ "daily_cost_usd"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "max_calls_per_sec": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "method": {
+ "type": "string"
+ },
+ "quota_percent": {
+ "type": [
+ "number",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ {
+ "not": {
+ "properties": {
+ "error": {
+ "const": "executor_request_rejected",
+ "type": "string"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+ }
+ ]
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "const": "executor_request_rejected",
+ "type": "string"
+ },
+ "message": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "reason": {
+ "enum": [
+ "method_required",
+ "calls_per_day_invalid"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "error",
+ "reason",
+ "message"
+ ],
+ "type": "object"
+ }
+ ],
+ "type": "object"
+ },
+ {
+ "not": {
+ "properties": {
+ "error": {
+ "const": "invalid_tool_arguments",
+ "type": "string"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+ }
+ ]
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "const": "invalid_tool_arguments",
+ "type": "string"
+ },
+ "message": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "reason": {
+ "enum": [
+ "invalid_root",
+ "schema_type",
+ "schema_enum",
+ "undeclared_property",
+ "credential_field",
+ "credential_value"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "error",
+ "reason",
+ "message"
+ ],
+ "type": "object"
+ }
+]