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§
- Protocol
Version - Protocol version identifier.
- Successor
Message - A typed view of a
proxy/successorenvelope.
Enums§
- Maybe
Undefined - Similar to
Option, but it has three states,undefined,nullandx.
Traits§
- Into
Maybe Undefined - 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. - Into
Option - 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.