pub struct AllToolsResult {
pub tools: Vec<Box<dyn Tool>>,
pub delegate_handle: Option<DelegateParentToolsHandle>,
pub ask_user_handle: Option<PerToolChannelHandle>,
pub reaction_handle: PerToolChannelHandle,
pub poll_handle: Option<PerToolChannelHandle>,
pub escalate_handle: Option<PerToolChannelHandle>,
pub channel_send_handle: Option<PerToolChannelHandle>,
pub unfiltered_tool_arcs: Vec<Arc<dyn Tool>>,
}Expand description
Bundled return values from tool registry construction.
Named struct to avoid an ever-growing positional tuple that’s painful to destructure across many callers.
Fields§
§tools: Vec<Box<dyn Tool>>§delegate_handle: Option<DelegateParentToolsHandle>§ask_user_handle: Option<PerToolChannelHandle>§reaction_handle: PerToolChannelHandle§poll_handle: Option<PerToolChannelHandle>§escalate_handle: Option<PerToolChannelHandle>§channel_send_handle: Option<PerToolChannelHandle>§unfiltered_tool_arcs: Vec<Arc<dyn Tool>>Pre-boxed Arcs of every tool (before policy filter). Used by skill-scoped builtin elevation to resolve targets at registration.
Auto Trait Implementations§
impl Freeze for AllToolsResult
impl !RefUnwindSafe for AllToolsResult
impl Send for AllToolsResult
impl Sync for AllToolsResult
impl Unpin for AllToolsResult
impl UnsafeUnpin for AllToolsResult
impl !UnwindSafe for AllToolsResult
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more