Skip to main content

Module schema

Module schema 

Source
Expand description

Version-neutral ACP schema items.

Each protocol version’s messages (requests, responses, notifications and supporting types) are in that version’s SDK module: crate::v1::schema and, with unstable_protocol_v2, agent_client_protocol::v2::schema. This module holds only the items every version shares: ProtocolVersion, MaybeUndefined, the IntoOption and IntoMaybeUndefined conversion traits, and SuccessorMessage.

The types come from the agent-client-protocol-schema crate, which this crate pins to one exact version. Use them through the SDK instead of depending on agent-client-protocol-schema directly.

Structs§

ProtocolVersion
Protocol version identifier.
SuccessorMessage
A typed view of a proxy/successor envelope.

Enums§

MaybeUndefined
Similar to Option, but it has three states, undefined, null and x.

Traits§

IntoMaybeUndefined
Utility trait for builder methods for optional values. This allows the caller to either pass in the value itself without wrapping it in Some, or to just pass in an Option if that is what they have, or set it back to undefined.
IntoOption
Utility trait for builder methods for optional values. This allows the caller to either pass in the value itself without wrapping it in Some, or to just pass in an Option if that is what they have.