pub struct AgentCapabilities {
pub streaming: bool,
pub push_notifications: bool,
pub state_transition_history: bool,
pub images: bool,
pub audio: bool,
pub files: bool,
}Expand description
Boolean flags advertising which A2A protocol extensions an agent supports.
The three protocol-defined fields (streaming, push_notifications,
state_transition_history) are part of the A2A specification. The modality fields
(images, audio, files) are Zeph forward-compatible extensions — they default to
false so that peers that do not understand them can safely ignore the fields via
#[serde(default)]. If the A2A spec standardises different names for these capabilities
in a future revision, a follow-up PR can add the canonical names without breaking
existing serialised cards.
Fields§
§streaming: boolAgent supports message/stream for real-time SSE output.
push_notifications: boolAgent supports server-initiated push notifications.
state_transition_history: boolAgent includes full state-transition history in task responses.
images: boolAgent can receive and send Part::File entries with image/* media types (#3326).
Defaults to false. Set via AgentCardBuilder::images.
audio: boolAgent can receive and send Part::File entries with audio/* media types (#3326).
Defaults to false. Set via AgentCardBuilder::audio.
files: boolAgent can receive and send non-media file attachments via Part::File (#3326).
Defaults to false. Set via AgentCardBuilder::files.
Trait Implementations§
Source§impl Clone for AgentCapabilities
impl Clone for AgentCapabilities
Source§fn clone(&self) -> AgentCapabilities
fn clone(&self) -> AgentCapabilities
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more