{"openapi":"3.0.0","info":{"title":"Revenue per Loaded Mile Calculator","version":"1.0.0"},"paths":{"/":{"post":{"summary":"Evaluate input data","operationId":"evaluateData","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"kpi_list":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Name of the KPI"},"input_variables":{"type":"object","properties":{"revenues":{"type":"array","items":{"type":"number"},"description":"List of numeric revenue values for each load (e.g. 1600.00)"},"loaded_miles":{"type":"array","items":{"type":"number"},"description":"List of loaded miles for each load (e.g. 468.0)"}},"description":"Strict mapping of variable names to their schemas required to calculate this KPI."}},"required":["name","input_variables"]}},"input_data":{"type":"object","properties":{"revenues":{"type":"array","items":{"type":"number"}},"loaded_miles":{"type":"array","items":{"type":"number"}}}},"metadata":{"type":"object"},"prompt":{"type":"string"}},"required":["name","kpi_list","input_data","metadata","prompt"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"kpi_list":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"input_variables":{"type":"object"}}}},"value":{"type":"number","description":"The final calculated KPI value"},"data":{"type":"object"},"metadata":{"type":"object"}}}}}}}}}}}