Research preview — APIs may change. GitHub
Agent integration
Autonomous agents need spatial reasoning — is this delivery within the geofence? How far is the nearest facility? Does this route intersect a restricted zone? Astral provides verified spatial answers that agents can use in decision-making.The pattern
The integration pattern is straightforward: the agent needs a spatial answer, calls Astral, gets a signed result, and uses the result in its decision logic. The signed result provides an audit trail. Anyone reviewing the agent’s decisions can verify that the spatial reasoning was based on correctly computed data, not fabricated or hallucinated.Raw HTTP from any framework
Astral is a REST API, so any language or framework that can make HTTP requests works. No SDK required.Python
TypeScript
Using the result in decisions
Once the agent has a signed spatial answer, it can branch on the result:true or false:
Example: delivery verification agent
Here is a complete agent workflow that checks whether a courier has arrived at the delivery address. The agent polls the courier’s location and confirms delivery when the courier is close enough.signed_result in the decision object contains the full Astral response, including the cryptographic signature. This means the decision is auditable — anyone can verify the spatial computation that led to it.
Why verified answers matter for agents
When an agent makes a decision based on spatial data, the signed result provides an audit trail. Anyone can verify that the agent’s spatial reasoning was based on correctly computed data. This matters for several reasons:- Accountability — if an agent approves a delivery payout based on location proximity, the signed result proves the distance was computed correctly on the stated inputs.
- Dispute resolution — when a decision is challenged, the signed result is independent evidence. It does not depend on trusting the agent’s own logs.
- Composability — signed results can be submitted onchain to trigger smart contract logic, bridging the agent’s offchain reasoning with onchain actions.