{"openapi":"3.0.0","info":{"title":"Revenue Calculation Worker","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":{"total_revenue":{"type":"number","description":"The total revenue amount to be reported."}},"description":"Schema of data variables required to calculate this KPI."}},"required":["name","input_variables"]}},"input_data":{"type":"object","properties":{"total_revenue":{"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"},"data":{"type":"object"},"metadata":{"type":"object"}}}}}}}}}}}