Expand description
§awp-types
Shared protocol types for the Agentic Web Protocol (AWP).
This crate provides pure protocol types with zero adk-* dependencies,
making it importable by any Rust project that needs to work with AWP messages.
§Types
AwpVersion/CURRENT_VERSION— protocol version with compatibility checksTrustLevel— request trust classification (Anonymous, Known, Partner, Internal)RequesterType— human vs. agent requester distinctionAwpError— structured error codes with HTTP status mappingAwpRequest/AwpResponse— protocol request/response envelopesA2aMessage/A2aMessageType— agent-to-agent communicationAwpDiscoveryDocument— well-known discovery endpoint payloadCapabilityManifest/CapabilityEntry— JSON-LD capability descriptionsBusinessContext/BusinessCapability/BusinessPolicy— site configuration
§Serialization
All wire types use #[serde(rename_all = "camelCase")] for JSON serialization.
BusinessContext uses standard snake_case for TOML configuration files.
Structs§
- A2aMessage
- Agent-to-agent message following the AWP communication format.
- AwpDiscovery
Document - AWP discovery document served at
/.well-known/awp.json. - AwpRequest
- AWP protocol request envelope.
- AwpResponse
- AWP protocol response envelope.
- AwpTyped
Message - AWP-typed agent-to-agent message with domain-specific routing.
- AwpVersion
- AWP protocol version with major and minor components.
- Brand
Voice - Brand voice configuration for consistent agent responses.
- Business
Capability - A business capability with access level requirements.
- Business
Context - Structured description of a site’s business domain, capabilities, and policies.
- Business
Identity - Business identity and locale information.
- Business
Policy - A business policy describing operational rules.
- Capability
Entry - A single capability entry within a
CapabilityManifest. - Capability
Manifest - JSON-LD capability manifest describing what a site offers to agents.
- Channel
Config - Channel configuration for multi-channel delivery.
- Content
Config - Content management configuration.
- Outreach
Config - Outreach and follow-up configuration.
- Parse
Version Error - Error returned when parsing an
AwpVersionfrom a string fails. - Payment
Config - Payment provider and policy configuration.
- Payment
Intent - An AWP payment intent representing a business owner’s view of a payment.
- Payment
Policy - Owner-configurable policy for auto-approving or requiring approval.
- Product
- A product or service in the catalog.
- Review
Config - Review platform configuration.
- Support
Config - Support and escalation configuration.
Enums§
- A2aMessage
Type - Type of an agent-to-agent message.
- AwpError
- AWP protocol error with HTTP status code mapping.
- AwpMessage
Type - AWP-specific typed message categories for agent routing.
- Payment
Intent State - State of an AWP payment intent.
- Payment
Policy Decision - Decision from the payment policy engine.
- Requester
Type - Distinguishes between human and agent requesters.
- Trust
Level - Classification of the trust relationship with a requester.
Constants§
- CURRENT_
VERSION - The current AWP protocol version.