pub struct AgentInfo {
pub agent_id: AgentId,
pub card: AgentCard,
pub enabled: bool,
pub skills: Option<Vec<AgentSkill>>,
pub mcp_servers: Option<Vec<String>>,
}Fields§
§agent_id: AgentId§card: AgentCard§enabled: bool§skills: Option<Vec<AgentSkill>>§mcp_servers: Option<Vec<String>>Implementations§
Source§impl AgentInfo
impl AgentInfo
pub const fn from_repository_data( agent_id: AgentId, card: AgentCard, enabled: bool, ) -> Self
pub const fn from_card( agent_id: AgentId, card: AgentCard, enabled: bool, ) -> Self
pub fn id(&self) -> &str
pub fn name(&self) -> &str
pub fn endpoint(&self) -> &str
pub fn full_endpoint(&self) -> String
pub fn version(&self) -> &str
pub fn with_skills(self, skills: Vec<AgentSkill>) -> Self
pub fn with_mcp_servers(self, servers: Vec<String>) -> Self
pub fn skills_count(&self) -> usize
pub fn mcp_count(&self) -> usize
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentInfo
impl<'de> Deserialize<'de> for AgentInfo
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
Auto Trait Implementations§
impl Freeze for AgentInfo
impl RefUnwindSafe for AgentInfo
impl Send for AgentInfo
impl Sync for AgentInfo
impl Unpin for AgentInfo
impl UnsafeUnpin for AgentInfo
impl UnwindSafe for AgentInfo
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