Class DataQueryEntries
java.lang.Object
ai.badmonkey.agentspaces.connect.DataQueryEntries
The
aspace:cap/data-query entry types (spec §6.1a): agents write
DataQueryEntries.DataQuery entries, connectors take them and complete with
DataQueryEntries.DataResult entries, and the space gives both sides retries,
observability, and decoupling for free. The canonical query hash is the key
to the economics (ENTERPRISE §3): identical queries share one hash, so one
result under its freshness lease serves every asker in the window, and the
source system sees one execution instead of one per agent per poll.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne change a materializing provider pushed (spec §6.1a), leased for the asset's freshness window so the lease is the retention policy.static final recordOne query awaiting a connector.static final recordOne answered query, leased for its freshness window. -
Method Summary
-
Method Details
-
canonicalHash
The canonical query hash: multibase(sha-256) over the asset name and the parameters in sorted key order, so parameter ordering never splits the cache.- Parameters:
asset- the asset nameparameters- the query parameters- Returns:
- the canonical hash
-