pub struct AgentInterface {
pub url: Url,
pub protocol_binding: ProtocolBinding,
pub protocol_version: A2aVersion,
pub tenant: Option<Arc<str>>,
}Expand description
One protocol binding the agent publishes, with the URL it is reachable at and the A2A version it speaks.
The first entry in AgentCard::supported_interfaces is the
preferred binding per the spec; the rest are fallbacks. The
order in the Vec is the order the spec reads.
Fields§
§url: UrlThe URL the binding is reachable at. The spec recommends
https:// in production; an http:// URL is permitted
for development.
protocol_binding: ProtocolBindingThe protocol binding advertised at this URL.
protocol_version: A2aVersionThe A2A version this interface speaks. Known for a
version the build knows; Unknown for a
forward-compatible version the build has not seen.
tenant: Option<Arc<str>>The tenant ID for tenant-scoped routing, when the server publishes a per-tenant interface. Optional in the spec.
Trait Implementations§
Source§impl Clone for AgentInterface
impl Clone for AgentInterface
Source§impl Debug for AgentInterface
impl Debug for AgentInterface
Source§impl<'de> Deserialize<'de> for AgentInterface
impl<'de> Deserialize<'de> for AgentInterface
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 Eq for AgentInterface
Source§impl PartialEq for AgentInterface
impl PartialEq for AgentInterface
Source§impl Serialize for AgentInterface
impl Serialize for AgentInterface
impl StructuralPartialEq for AgentInterface
Auto Trait Implementations§
impl Freeze for AgentInterface
impl RefUnwindSafe for AgentInterface
impl Send for AgentInterface
impl Sync for AgentInterface
impl Unpin for AgentInterface
impl UnsafeUnpin for AgentInterface
impl UnwindSafe for AgentInterface
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