pub struct AgentCard {Show 18 fields
pub protocol_version: String,
pub name: String,
pub description: String,
pub url: String,
pub version: String,
pub preferred_transport: Option<TransportProtocol>,
pub additional_interfaces: Option<Vec<AgentInterface>>,
pub icon_url: Option<String>,
pub provider: Option<AgentProvider>,
pub documentation_url: Option<String>,
pub capabilities: AgentCapabilities,
pub security_schemes: Option<HashMap<String, SecurityScheme>>,
pub security: Option<Vec<HashMap<String, Vec<String>>>>,
pub default_input_modes: Vec<String>,
pub default_output_modes: Vec<String>,
pub skills: Vec<AgentSkill>,
pub supports_authenticated_extended_card: Option<bool>,
pub signatures: Option<Vec<AgentCardSignature>>,
}Fields§
§protocol_version: String§name: String§description: String§url: String§version: String§preferred_transport: Option<TransportProtocol>§additional_interfaces: Option<Vec<AgentInterface>>§icon_url: Option<String>§provider: Option<AgentProvider>§documentation_url: Option<String>§capabilities: AgentCapabilities§security_schemes: Option<HashMap<String, SecurityScheme>>§security: Option<Vec<HashMap<String, Vec<String>>>>§default_input_modes: Vec<String>§default_output_modes: Vec<String>§skills: Vec<AgentSkill>§supports_authenticated_extended_card: Option<bool>§signatures: Option<Vec<AgentCardSignature>>Implementations§
Source§impl AgentCard
impl AgentCard
pub fn builder( name: String, description: String, url: String, version: String, ) -> AgentCardBuilder
pub fn has_mcp_extension(&self) -> bool
pub fn ensure_mcp_extension(&mut self)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentCard
impl<'de> Deserialize<'de> for AgentCard
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentCard, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentCard, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AgentCard
impl Serialize for AgentCard
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AgentCard
Auto Trait Implementations§
impl Freeze for AgentCard
impl RefUnwindSafe for AgentCard
impl Send for AgentCard
impl Sync for AgentCard
impl Unpin for AgentCard
impl UnwindSafe for AgentCard
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more