AI Gateway Custom Reporting: Support boolean AND on tags

The docs AI Gateway’s Custom Reporting API (see Custom Reporting) indicate that tags are filtered as a boolean OR. We need to be able to perform a boolean AND on tags.

We would like to send send tags that look something like this: [“product:product-name”, “tier:core”, “env:prod”] and then run reports on AI gateway consumption for product-name’s core tier, only in production. The boolean OR on the tags does not allow us to drill down to fine-grained results.

Suggestion: Add an optional query parameter that allows us to specify the boolean operation on tags.

Thanks for sharing, Jeff! I passed this onto our AI Gateway team.