When submitting a query, we should allow for the user to submit an (optional) "association" id. The name of this is TBD but the idea is to allow for the user to arbitrarily group queries together (e.g. an agent conversation, an editor session, etc).
We can then use this with the query metadata api to group similar queries.