{
  "product": "Unstract",
  "subject_slug": "unstract",
  "case": "TC69",
  "scenario": "S67 · The value must be derived",
  "task": "86bc6rj1x",
  "deployment": "sde-tc69-derived-cost",
  "inputs": [
    {
      "name": "Calderwood_Freight_S66_S67_S72.pdf",
      "sha256": "1bcc6c7b945956c5b6f5a87d223ed3d578a62aa2c56c5fc1e3abedb4cc4de72e",
      "bytes": 120877
    }
  ],
  "schema_fields": [
    {
      "key": "distance_miles",
      "type": "string",
      "description": "The distance of the route, in miles, as stated on the invoice."
    },
    {
      "key": "fuel_rate_per_mile",
      "type": "string",
      "description": "The fuel rate per mile, labelled 'FUEL RATE' on the document, including currency. The value may be a whole number or a decimal number - if the number in the document is in decimal form, the extraction should give the value in decimal, exactly as mentioned in the document."
    },
    {
      "key": "total_fuel_cost",
      "type": "string",
      "description": "The total fuel cost - calculated as the distance in miles multiplied by the fuel rate per mile. This value does NOT appear anywhere in the document; you must compute it from distance_miles x fuel_rate_per_mile."
    }
  ],
  "required": [
    "distance_miles",
    "fuel_rate_per_mile",
    "total_fuel_cost"
  ],
  "endpoint": "<base>/deployment/api/<organization_id>/<api_name>/",
  "surface": "API",
  "config": "evidence",
  "variant": null,
  "config_settings": {
    "timeout": 0,
    "include_metadata": true,
    "include_metrics": true,
    "include_extracted_text": true
  },
  "config_changed_from_default": {
    "include_metadata": {
      "value": true,
      "default": false
    },
    "include_metrics": {
      "value": true,
      "default": false
    },
    "include_extracted_text": {
      "value": true,
      "default": false
    }
  },
  "config_use_for": "any extraction where the result must show its source text, line numbers and cost (metadata carries the line numbers and whisper hash used by the highlight API)",
  "config_doc": "https://docs.unstract.com/unstract/unstract_platform/api_deployment/unstract_api_deployment_execution_api.md",
  "config_why": "Documented Execution API; include_metadata/include_metrics/include_extracted_text requested so the result shows the source text and cost per the vendor docs. Unstract takes the fields in a Prompt Studio project: one prompt per schema field = field description verbatim, no hints (arrays are a JSON-output prompt that also names the item keys from the schema); LLM Azure GPT-4o free trial; default free-trial text extractor; deployment tool settings default. Project SDE-TC69-derived-cost, 3 text prompts.",
  "config_note": "configuration `evidence` (any extraction where the result must show its source text, line numbers and cost (metadata carries the line numbers and whisper hash used by the highlight API); per https://docs.unstract.com/unstract/unstract_platform/api_deployment/unstract_api_deployment_execution_api.md): sent timeout=0, include_metadata=true, include_metrics=true, include_extracted_text=true; changed from the default: include_metadata=true (default false), include_metrics=true (default false), include_extracted_text=true (default false)",
  "rerun": null,
  "tool_version": "not exposed by the hosted product",
  "plan_tier": "Unstract Cloud free trial (14 days, 1,000K LLM tokens; free-trial Azure GPT-4o LLM)",
  "run_time": "2026-11-24 15:42 IST",
  "latency_s": 21.3,
  "pages": null,
  "cost": null,
  "output_file": "output.json",
  "response_file": "api_response.json",
  "request_file": "request.json",
  "run_file": "run.json",
  "source_renders": [
    "source_Calderwood_Freight_S66_S_page_1.png",
    "source_Calderwood_Freight_S66_S_page_2.png",
    "source_Calderwood_Freight_S66_S_page_3.png"
  ],
  "code_version": {
    "commit": "51584148c55d28dd7e10aa44d041854f6fa4c139",
    "branch": "adapter/sde-unstract",
    "uncommitted_changes": true
  },
  "extra": {
    "submit_response": {
      "message": {
        "execution_id": "afa65221-7ec5-4397-8c08-bced1e1f4f39",
        "execution_status": "PENDING",
        "status_api": "/deployment/api/org_0pMusmf6SGq5PdXO/sde-tc69-derived-cost/?execution_id=afa65221-7ec5-4397-8c08-bced1e1f4f39",
        "error": null,
        "result": null
      }
    },
    "polls": [
      {
        "t": 7.2,
        "http": 422,
        "status": "EXECUTING"
      },
      {
        "t": 11.9,
        "http": 422,
        "status": "EXECUTING"
      },
      {
        "t": 16.5,
        "http": 422,
        "status": "EXECUTING"
      },
      {
        "t": 21.3,
        "http": 200,
        "status": "COMPLETED"
      }
    ],
    "execution_id": "afa65221-7ec5-4397-8c08-bced1e1f4f39"
  }
}