{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hydracept-com/json-schema/hydracept-com-hydracept-invocation-result-schema.json",
  "title": "HydraceptInvocationResult",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hydracept-com-openapi.json#/components/schemas/HydraceptInvocationResult",
  "properties": {
    "executionId": {
      "type": "string",
      "title": "Executionid"
    },
    "idempotencyKey": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Idempotencykey"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "resolvedProvider": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Resolvedprovider"
    },
    "resolvedModel": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Resolvedmodel"
    },
    "selectedCandidateId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Selectedcandidateid"
    },
    "servedCandidateId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Servedcandidateid"
    },
    "credentialMode": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Credentialmode"
    },
    "credentialSource": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Credentialsource"
    },
    "externalRef": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Externalref"
    },
    "tags": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Tags"
    },
    "metadata": {
      "additionalProperties": true,
      "type": "object",
      "title": "Metadata"
    },
    "typedOutput": {
      "anyOf": [
        {},
        {
          "type": "null"
        }
      ],
      "title": "Typedoutput"
    },
    "outputPayloadRef": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Outputpayloadref"
    },
    "generatedArtifacts": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Generatedartifacts"
    },
    "usage": {
      "anyOf": [
        {
          "$ref": "#/$defs/HydraceptUsageSummary"
        },
        {
          "type": "null"
        }
      ]
    },
    "actualCost": {
      "type": "number",
      "title": "Actualcost",
      "default": 0.0
    },
    "terminationReason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Terminationreason"
    },
    "receiptId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Receiptid"
    },
    "errorCode": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Errorcode"
    },
    "dispatchStatus": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Dispatchstatus"
    },
    "warnings": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Warnings"
    }
  },
  "type": "object",
  "required": [
    "executionId",
    "status"
  ],
  "$defs": {
    "HydraceptUsageSummary": {
      "properties": {
        "inputTokens": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Inputtokens"
        },
        "outputTokens": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Outputtokens"
        },
        "estimatedCost": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Estimatedcost"
        },
        "actualCost": {
          "type": "number",
          "title": "Actualcost",
          "default": 0.0
        },
        "currency": {
          "type": "string",
          "title": "Currency",
          "default": "USD"
        }
      },
      "type": "object",
      "title": "HydraceptUsageSummary"
    }
  }
}