Skip to main content

Module agent_protocol

Module agent_protocol 

Source
Expand description

Versioned headless protocol owned by A3S Code.

Cloud and other hosts may transport these values, but A3S Code remains the authority for Agent session/run lifecycle, event names, cancellation, and checkpoint recovery. The protocol intentionally contains no Cloud tenant, scheduler, Workload, Runtime, or provider identity.

Re-exports§

pub use crate::release::AGENT_PROTOCOL_V1;

Structs§

AgentProtocolCommandReceiptV1
Exact observation returned after A3S Code accepts a command.
AgentProtocolEventPageRequestV1
Bounded cursor query accepted by the A3S Code Harness event endpoint.
AgentProtocolEventPageV1
Cursor page projected directly from A3S Code’s authoritative run store.
AgentProtocolEventRecordV1
One authoritative A3S Code event at its run-local sequence.
AgentProtocolRunCancelV1
Cancel the current exact A3S Code run.
AgentProtocolRunIdentityV1
Exact A3S Code release, session, and run selected by a host.
AgentProtocolRunRecoverV1
Resume an A3S Code loop checkpoint into a fresh exact run identity.
AgentProtocolRunStartV1
Start a fresh A3S Code run with an exact host-selected identity.

Enums§

AgentProtocolCommandActionV1
Closed actions accepted by the version-one Code Agent protocol.
AgentProtocolCommandV1
One typed command for the A3S Code session/run lifecycle.
AgentProtocolError
Stable validation failures for the headless Agent protocol.
AgentProtocolRunStateV1
Stable wire projection of RunStatus.

Constants§

AGENT_PROTOCOL_COMMAND_HTTP_PATH_V1
Canonical HTTP endpoint served by a3s code harness for v1 commands.
AGENT_PROTOCOL_EVENT_PAGE_HTTP_PATH_V1
Canonical HTTP endpoint served by a3s code harness for v1 event pages.
AGENT_PROTOCOL_MAX_EVENTS_PER_PAGE
AGENT_PROTOCOL_MAX_EVENT_METADATA_BYTES
AGENT_PROTOCOL_MAX_EVENT_PAGE_BYTES
AGENT_PROTOCOL_MAX_EVENT_PAYLOAD_BYTES
AGENT_PROTOCOL_MAX_EVENT_RECORD_BYTES
AGENT_PROTOCOL_MAX_EVENT_TYPE_BYTES
AGENT_PROTOCOL_MAX_ID_BYTES
AGENT_PROTOCOL_MAX_PROMPT_BYTES
AGENT_PROTOCOL_MAX_REASON_BYTES