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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. 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