{"inputSchema":{"type":"object","properties":{"periods":{"type":"array","items":{"type":"object","properties":{"pv_wh":{"type":"number","minimum":0,"maximum":1000000000},"import_wh":{"type":"number","minimum":0,"maximum":1000000000},"export_wh":{"type":"number","minimum":0,"maximum":1000000000},"load_wh":{"type":"number","minimum":0,"maximum":1000000000},"battery_delta_wh":{"type":"number","minimum":-1000000000,"maximum":1000000000},"loss_wh":{"type":"number","minimum":0,"maximum":1000000000}},"required":["pv_wh","import_wh","export_wh","load_wh","battery_delta_wh","loss_wh"],"additionalProperties":false},"maxItems":100,"minItems":1},"tolerance_wh":{"type":"number","minimum":0,"maximum":1000000}},"required":["periods","tolerance_wh"],"additionalProperties":false},"outputSchema":{"type":"object","required":["question","measured_at","source","data","limitations","upstream_cost_usdc"],"properties":{"question":{"const":"pv-meter-energy-balance"},"measured_at":{"type":"string","maxLength":30,"minLength":1},"source":{"type":"object","properties":{"kind":{"const":"supplied_input"},"sha256":{"type":"string","maxLength":64,"minLength":1},"reference":{"type":"string","maxLength":256,"minLength":1}},"required":["kind","sha256","reference"],"additionalProperties":false},"data":{"type":"object","properties":{"residual_wh":{"type":"array","items":{"$ref":"#/$defs/s0"},"maxItems":100,"minItems":0},"outside_tolerance":{"type":"array","items":{"type":"integer","minimum":0,"maximum":1000000000000},"maxItems":100,"minItems":0},"sum_residual_wh":{"$ref":"#/$defs/s0"}},"required":["residual_wh","outside_tolerance","sum_residual_wh"],"additionalProperties":false},"limitations":{"type":"array","items":{"type":"string","maxLength":4096},"maxItems":5,"minItems":0},"upstream_cost_usdc":{"const":0}},"additionalProperties":true,"$id":"urn:halowerk:w2:B7","$defs":{"s0":{"type":"number","minimum":-1e+30,"maximum":1e+30}}},"requestExample":{"periods":[{"pv_wh":1000,"import_wh":100,"export_wh":200,"load_wh":800,"battery_delta_wh":80,"loss_wh":20}],"tolerance_wh":5},"price_usdc":"0.005"}