pub struct A2aController { /* private fields */ }Expand description
Controller for A2A protocol endpoints
Implementations§
Source§impl A2aController
impl A2aController
pub fn new(config: ServerConfig, base_url: &str) -> Self
Sourcepub fn with_skill_index(
config: ServerConfig,
base_url: &str,
skill_index: Arc<SkillIndex>,
) -> Self
pub fn with_skill_index( config: ServerConfig, base_url: &str, skill_index: Arc<SkillIndex>, ) -> Self
Create a controller whose agent card also lists the skills in skill_index.
The indexed skills are appended to the agent-derived skills[] entries
via agent_skills_from_index and
served at /.well-known/agent.json.
Trait Implementations§
Source§impl Clone for A2aController
impl Clone for A2aController
Source§fn clone(&self) -> A2aController
fn clone(&self) -> A2aController
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for A2aController
impl !UnwindSafe for A2aController
impl Freeze for A2aController
impl Send for A2aController
impl Sync for A2aController
impl Unpin for A2aController
impl UnsafeUnpin for A2aController
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