{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/axonflow/json-schema/axonflow-cost-estimate-request-schema.json",
  "title": "CostEstimateRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/axonflow-cost-management-api-openapi.yml#/components/schemas/CostEstimateRequest",
  "type": "object",
  "properties": {
    "provider": {
      "type": "string"
    },
    "model": {
      "type": "string"
    },
    "steps": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WorkflowStep"
      }
    }
  },
  "required": [
    "steps"
  ],
  "$defs": {
    "WorkflowStep": {
      "type": "object",
      "required": [
        "name",
        "type"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "mcp_query",
            "llm",
            "api_call",
            "transform"
          ]
        },
        "connector": {
          "type": "string"
        },
        "query": {
          "type": "string"
        },
        "prompt": {
          "type": "string"
        },
        "dependencies": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}