changedOutput schema / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "accountRiskPct": {
- "type": [
- "number",
- "null"
- ]
- },
- "calculationBreakdown": {
- "additionalProperties": false,
- "properties": {
- "assumptions": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "components": {
- "additionalProperties": {
- "type": "number"
- },
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- "thresholds": {
- "additionalProperties": {
- "type": "number"
- },
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- }
- },
- "required": [
- "components",
- "thresholds",
- "assumptions"
- ],
- "type": "object"
- },
- "leverage": {
- "type": [
- "number",
- "null"
- ]
- },
- "positionExposurePct": {
- "type": [
- "number",
- "null"
- ]
- },
- "positiveFactors": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "riskAmount": {
- "type": [
- "number",
- "null"
- ]
- },
- "riskFactors": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "riskLevel": {
- "enum": [
- "low",
- "moderate",
- "high",
- "critical"
- ],
- "type": "string"
- },
- "riskRewardRatio": {
- "type": [
- "number",
- "null"
- ]
- },
- "riskScore": {
- "maximum": 100,
- "minimum": 0,
- "type": "integer"
- },
- "safeLeverage": {
- "type": [
- "number",
- "null"
- ]
- },
- "sourceTraceability": {
- "additionalProperties": false,
- "properties": {
- "notes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "portfolioExposure": {
- "enum": [
- "GROK",
- "SIGNALFLOW",
- "MERGED",
- "NEW"
- ],
- "type": "string"
- },
- "strategyPerformance": {
- "enum": [
- "GROK",
- "SIGNALFLOW",
- "MERGED",
- "NEW"
- ],
- "type": "string"
- },
- "tradeLog": {
- "enum": [
- "GROK",
- "SIGNALFLOW",
- "MERGED",
- "NEW"
- ],
- "type": "string"
- },
- "tradeRisk": {
- "enum": [
- "GROK",
- "SIGNALFLOW",
- "MERGED",
- "NEW"
- ],
- "type": "string"
- }
- },
- "required": [
- "strategyPerformance",
- "tradeRisk",
- "portfolioExposure",
- "tradeLog",
- "notes"
- ],
- "type": "object"
- },
- "warnings": {
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "required": [
- "riskScore",
- "riskLevel",
- "riskAmount",
- "accountRiskPct",
- "riskRewardRatio",
- "positionExposurePct",
- "leverage",
- "riskFactors",
- "positiveFactors",
- "warnings",
- "calculationBreakdown"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "nextAction": {
- "additionalProperties": false,
- "properties": {
- "instruction": {
- "type": "string"
- },
- "target": {
- "const": "x402_endpoint",
- "type": "string"
- },
- "type": {
- "const": "pay_and_retry",
- "type": "string"
- }
- },
- "required": [
- "type",
- "target",
- "instruction"
- ],
- "type": "object"
- },
- "payment": {
- "additionalProperties": false,
- "properties": {
- "endpoint": {
- "type": "string"
- },
- "method": {
- "const": "POST",
- "type": "string"
- },
- "retrySameBody": {
- "const": true,
- "type": "boolean"
- }
- },
- "required": [
- "endpoint",
- "method",
- "retrySameBody"
- ],
- "type": "object"
- },
- "preview": {
- "additionalProperties": false,
- "properties": {
- "fullResultAvailable": {
- "const": true,
- "type": "boolean"
- },
- "inputAccepted": {
- "const": true,
- "type": "boolean"
- },
- "summary": {
- "type": "string"
- },
- "useCases": {
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "required": [
- "inputAccepted",
- "fullResultAvailable",
- "summary",
- "useCases"
- ],
- "type": "object"
- },
- "price": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "minimum": 0,
- "type": "number"
- },
- "currency": {
- "type": "string"
- },
- "protocol": {
- "const": "x402",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency",
- "protocol"
- ],
- "type": "object"
- },
- "requestId": {
- "type": "string"
- },
- "status": {
- "const": "payment_required",
- "type": "string"
- },
- "tool": {
- "type": "string"
- }
- },
- "required": [
- "status",
- "tool",
- "requestId",
- "price",
- "preview",
- "payment",
- "nextAction"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "accountRiskPct": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "calculationBreakdown": {
+ "additionalProperties": false,
+ "properties": {
+ "assumptions": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "components": {
+ "additionalProperties": {
+ "type": "number"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "thresholds": {
+ "additionalProperties": {
+ "type": "number"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "components",
+ "thresholds",
+ "assumptions"
+ ],
+ "type": "object"
+ },
+ "leverage": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "positionExposurePct": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "positiveFactors": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "riskAmount": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "riskFactors": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "riskLevel": {
+ "enum": [
+ "low",
+ "moderate",
+ "high",
+ "critical"
+ ],
+ "type": "string"
+ },
+ "riskRewardRatio": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "riskScore": {
+ "maximum": 100,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "safeLeverage": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "sourceTraceability": {
+ "additionalProperties": false,
+ "properties": {
+ "notes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "portfolioExposure": {
+ "enum": [
+ "GROK",
+ "SIGNALFLOW",
+ "MERGED",
+ "NEW"
+ ],
+ "type": "string"
+ },
+ "strategyPerformance": {
+ "enum": [
+ "GROK",
+ "SIGNALFLOW",
+ "MERGED",
+ "NEW"
+ ],
+ "type": "string"
+ },
+ "tradeLog": {
+ "enum": [
+ "GROK",
+ "SIGNALFLOW",
+ "MERGED",
+ "NEW"
+ ],
+ "type": "string"
+ },
+ "tradeRisk": {
+ "enum": [
+ "GROK",
+ "SIGNALFLOW",
+ "MERGED",
+ "NEW"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "strategyPerformance",
+ "tradeRisk",
+ "portfolioExposure",
+ "tradeLog",
+ "notes"
+ ],
+ "type": "object"
+ },
+ "warnings": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "riskScore",
+ "riskLevel",
+ "riskAmount",
+ "accountRiskPct",
+ "riskRewardRatio",
+ "positionExposurePct",
+ "leverage",
+ "riskFactors",
+ "positiveFactors",
+ "warnings",
+ "calculationBreakdown"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "nextAction": {
+ "additionalProperties": false,
+ "properties": {
+ "instruction": {
+ "type": "string"
+ },
+ "target": {
+ "enum": [
+ "x402_endpoint",
+ "mcp_credits_endpoint",
+ "payment_endpoint",
+ "unavailable"
+ ],
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "pay_and_retry",
+ "authorize_and_use_mcp_credits",
+ "payment_unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "target",
+ "instruction"
+ ],
+ "type": "object"
+ },
+ "payment": {
+ "additionalProperties": false,
+ "properties": {
+ "endpoint": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "method": {
+ "const": "POST",
+ "type": "string"
+ },
+ "retrySameBody": {
+ "const": true,
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "endpoint",
+ "method",
+ "retrySameBody"
+ ],
+ "type": "object"
+ },
+ "paymentGuidance": {},
+ "preview": {
+ "additionalProperties": false,
+ "properties": {
+ "fullResultAvailable": {
+ "const": true,
+ "type": "boolean"
+ },
+ "inputAccepted": {
+ "const": true,
+ "type": "boolean"
+ },
+ "summary": {
+ "type": "string"
+ },
+ "useCases": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "inputAccepted",
+ "fullResultAvailable",
+ "summary",
+ "useCases"
+ ],
+ "type": "object"
+ },
+ "price": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "currency": {
+ "type": "string"
+ },
+ "protocol": {
+ "enum": [
+ "x402",
+ "api_credits",
+ "subscription",
+ "l402",
+ "mpp",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "currency",
+ "protocol"
+ ],
+ "type": "object"
+ },
+ "requestId": {
+ "type": "string"
+ },
+ "status": {
+ "const": "payment_required",
+ "type": "string"
+ },
+ "tool": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "tool",
+ "requestId",
+ "price",
+ "preview",
+ "payment",
+ "nextAction"
+ ],
+ "type": "object"
+ }
+]