{"openapi":"3.0.0","info":{"title":"AR Aging Analytics 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_ar_balance":{"type":"number","description":"The total value of all accounts receivable."},"past_due_ar_balance":{"type":"number","description":"The total value of accounts receivable that are past the due date."}},"description":"Strict list of scalar or JSON data variable names required to calculate this KPI."}},"required":["name","input_variables"]}},"input_data":{"type":"object","properties":{"total_ar_balance":{"type":"number"},"past_due_ar_balance":{"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"}}}}}}}}}}}