pub struct AgentMetadata {
pub id: String,
pub name: String,
pub description: Option<String>,
pub version: Option<String>,
pub capabilities: AgentCapabilities,
pub state: AgentState,
}Expand description
Agent 元数据
Fields§
§id: StringAgent ID
name: StringAgent 名称
description: Option<String>Agent 描述
version: Option<String>Agent 版本
capabilities: AgentCapabilitiesAgent 能力
state: AgentStateAgent 状态
Implementations§
Source§impl AgentMetadata
impl AgentMetadata
Sourcepub fn from_agent(agent: &dyn MoFAAgent) -> Self
pub fn from_agent(agent: &dyn MoFAAgent) -> Self
从 MoFAAgent 创建元数据
Trait Implementations§
Source§impl Clone for AgentMetadata
impl Clone for AgentMetadata
Source§fn clone(&self) -> AgentMetadata
fn clone(&self) -> AgentMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AgentMetadata
impl RefUnwindSafe for AgentMetadata
impl Send for AgentMetadata
impl Sync for AgentMetadata
impl Unpin for AgentMetadata
impl UnsafeUnpin for AgentMetadata
impl UnwindSafe for AgentMetadata
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