Expand description
Agent-to-Agent protocol types, client, and server for Gestura.
gestura-core-a2a implements Gestura’s A2A domain: a transport-agnostic
JSON-RPC server model, an HTTP client for remote agents, and the typed task
lifecycle/provenance structures needed for cross-agent delegation.
§Main concepts
A2AServer: protocol server that shells can expose over HTTP/SSEA2AClient: HTTP client for discovery, task creation, retries, status, and cancellationAgentCard/Skill: remote capability advertisementA2ATask,TaskStatus,RemoteTaskContract: typed remote-task lifecycleTaskProvenance/TaskAuditEvent: provenance and audit metadata
§Architecture boundary
This crate owns protocol logic and domain types. Listener setup, shell transport hosting, and GUI/CLI presentation concerns remain in the shell crates that embed it.
§Stable import paths
Most code should import through gestura_core::a2a::*.
Structs§
- A2AClient
- A2A HTTP Client for agent-to-agent communication
- A2AError
- A2A Error
- A2AMessage
- A2A Message
- A2ARequest
- A2A JSON-RPC Request
- A2AResponse
- A2A JSON-RPC Response
- A2AServer
- A2A server for handling incoming JSON-RPC requests.
- A2ATask
- A2A Task
- A2ATask
Event - Streamable task event payload.
- Agent
Card - Agent Card for A2A discovery
- Agent
Card Registry - In-memory registry for discovered/known agent cards.
- Agent
Profile - Agent profile for authentication and identity propagation.
- Artifact
- Artifact produced by a task
- Artifact
Manifest Entry - Summary metadata for an artifact without its full payload.
- Authentication
Info - Authentication info
- Create
Task Request - Rich remote task create request.
- OAuth2
Config - OAuth2 configuration
- Profile
Store - Profile store for managing agent profiles.
- Remote
Task Contract - Structured contract shared with a remote worker.
- Remote
Task Lease - Active lease state for a remote task.
- Remote
Task Lease Request - Requested lease semantics for a remote task.
- Remote
Task Progress - Progress snapshot reported by a remote worker.
- Skill
- Skill definition
- Task
Artifact Fetch Request - Request to fetch a specific artifact for a task.
- Task
Audit Event - Audit entry recorded for task lifecycle changes.
- Task
Heartbeat Request - Heartbeat/update request for a remote task.
- Task
Provenance - Remote provenance metadata for a task.
Enums§
- A2ATask
Event Kind - Event emitted when an A2A task changes.
- Message
Part - Message part (text, file, or data)
- Task
Status - Task status
Functions§
- create_
gestura_ agent_ card - Create a default agent card for Gestura.
- is_
token_ well_ formed - Return whether a token is well-formed for Gestura’s current bearer-token scheme.