pub enum AgentDefinitionSpec {
Local(Box<AgentDefinition>),
Remote(RemoteAgentDefinition),
}Variants§
Local(Box<AgentDefinition>)
Remote(RemoteAgentDefinition)
Implementations§
Source§impl AgentDefinitionSpec
impl AgentDefinitionSpec
pub fn local(definition: AgentDefinition) -> Self
pub fn local_with_id( agent_id: impl Into<String>, definition: AgentDefinition, ) -> Self
pub fn a2a(descriptor: AgentDescriptor, binding: A2aAgentBinding) -> Self
pub fn a2a_with_id( agent_id: impl Into<String>, binding: A2aAgentBinding, ) -> Self
pub fn id(&self) -> &str
pub fn descriptor(&self) -> AgentDescriptor
Trait Implementations§
Source§impl Clone for AgentDefinitionSpec
impl Clone for AgentDefinitionSpec
Source§fn clone(&self) -> AgentDefinitionSpec
fn clone(&self) -> AgentDefinitionSpec
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 AgentDefinitionSpec
impl RefUnwindSafe for AgentDefinitionSpec
impl Send for AgentDefinitionSpec
impl Sync for AgentDefinitionSpec
impl Unpin for AgentDefinitionSpec
impl UnwindSafe for AgentDefinitionSpec
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