Skip to main content

Crate awp_types

Crate awp_types 

Source
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

§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.
AwpDiscoveryDocument
AWP discovery document served at /.well-known/awp.json.
AwpRequest
AWP protocol request envelope.
AwpResponse
AWP protocol response envelope.
AwpTypedMessage
AWP-typed agent-to-agent message with domain-specific routing.
AwpVersion
AWP protocol version with major and minor components.
BrandVoice
Brand voice configuration for consistent agent responses.
BusinessCapability
A business capability with access level requirements.
BusinessContext
Structured description of a site’s business domain, capabilities, and policies.
BusinessIdentity
Business identity and locale information.
BusinessPolicy
A business policy describing operational rules.
CapabilityEntry
A single capability entry within a CapabilityManifest.
CapabilityManifest
JSON-LD capability manifest describing what a site offers to agents.
ChannelConfig
Channel configuration for multi-channel delivery.
ContentConfig
Content management configuration.
OutreachConfig
Outreach and follow-up configuration.
ParseVersionError
Error returned when parsing an AwpVersion from a string fails.
PaymentConfig
Payment provider and policy configuration.
PaymentIntent
An AWP payment intent representing a business owner’s view of a payment.
PaymentPolicy
Owner-configurable policy for auto-approving or requiring approval.
Product
A product or service in the catalog.
ReviewConfig
Review platform configuration.
SupportConfig
Support and escalation configuration.

Enums§

A2aMessageType
Type of an agent-to-agent message.
AwpError
AWP protocol error with HTTP status code mapping.
AwpMessageType
AWP-specific typed message categories for agent routing.
PaymentIntentState
State of an AWP payment intent.
PaymentPolicyDecision
Decision from the payment policy engine.
RequesterType
Distinguishes between human and agent requesters.
TrustLevel
Classification of the trust relationship with a requester.

Constants§

CURRENT_VERSION
The current AWP protocol version.