| Field | Value |
|---|---|
| Canonical URI | https://docs.aion.to/extensions/aion/middleware/1.0.0 |
| Issuer | aion |
| Version | 1.0.0 |
| Activation | This extension is declarative. It will always be active and does not require activation. |
| Related Extensions | Middleware/Fulfills |
Overview
The Middleware extension marks an agent as a sequence middleware: it receives an A2A request from an upstream component, performs validation or transformation, and either forwards the request downstream or terminates the flow with a response. This extension is descriptive. It does not add new RPC methods or message shapes, and it does not, by itself, require client activation.Agent Card Declaration
Parameters
| Name | Required | Description |
|---|---|---|
intent | optional | Short label for purpose (e.g., authz, moderation, routing). |
terminates | optional | Indicates the middleware may return a final response without forwarding downstream. |
Behavior
- Middleware should preserve the A2A request envelope and add or modify metadata or parts as needed.
- Middleware may short-circuit a request by returning an error or response when policy checks fail.
- Ordering is controlled by the agent sequence configuration, not by this extension itself.