pub struct ToolSpec {
pub name: String,
pub description: String,
pub read_only: bool,
pub asynchronous: Option<AsyncToolConfig>,
}Expand description
工具注册元信息。旧的 register(...) 仍可用;需要配置异步策略时使用
ToolSpec::new(...).asynchronous(...) 再交给 register_tool(...)。
Fields§
§name: String§description: String§read_only: bool§asynchronous: Option<AsyncToolConfig>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolSpec
impl RefUnwindSafe for ToolSpec
impl Send for ToolSpec
impl Sync for ToolSpec
impl Unpin for ToolSpec
impl UnsafeUnpin for ToolSpec
impl UnwindSafe for ToolSpec
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