OptionalflagCustom tracking flag to scope the report to. Omit (with unitId) for the tenant-wide default.
OptionalschemaTenant schema to report on (e.g. U137803), overriding the operating context's. Restricted — passing it requires the script to run with a fixed id. Omit/leave blank to use the operating context's schema.
OptionalunitOperating Unit seqnum to scope the report to. Omit (with flag) for the tenant-wide default.
Scope filters for B.ai.usageReporting(). All optional — omit unitId/flag to target the tenant-wide default; schemaName overrides the tenant schema (restricted).
Example: ```javascript const report = B.ai.usageReporting({ flag: "intake-agent" }); B.out = (report.spendMicrosUsed / 1000000).toFixed(2) + " spent this window"; ```