pub struct A2AToolAdapter { /* private fields */ }Expand description
A2A 工具适配器
Implementations§
Trait Implementations§
Source§impl Tool for A2AToolAdapter
impl Tool for A2AToolAdapter
Source§fn categories(&self) -> &'static [ToolCategory]
fn categories(&self) -> &'static [ToolCategory]
工具分类 Read more
Source§fn input_schema(&self) -> Value
fn input_schema(&self) -> Value
工具输入参数的 schema Read more
Source§fn call<'life0, 'async_trait>(
&'life0 self,
input: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn call<'life0, 'async_trait>(
&'life0 self,
input: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
执行工具 Read more
Source§fn definition(&self) -> ToolDefinition
fn definition(&self) -> ToolDefinition
获取工具定义 (ToolDefinition) Read more
Auto Trait Implementations§
impl Freeze for A2AToolAdapter
impl !RefUnwindSafe for A2AToolAdapter
impl Send for A2AToolAdapter
impl Sync for A2AToolAdapter
impl Unpin for A2AToolAdapter
impl UnsafeUnpin for A2AToolAdapter
impl !UnwindSafe for A2AToolAdapter
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