pub struct ChannelSendTool { /* private fields */ }Expand description
Tool that sends a message through a configured channel.
Parameters:
channel: Composite channel key (telegram.default,telegram.prod, etc.) or bare type name (telegram,slack). Bare names resolve to<type>.default.to: Optional recipient/target ID. When omitted, uses the configureddefault_target. When provided, must match the configureddefault_targetfor the resolved channel.body: Message content to send
Implementations§
Source§impl ChannelSendTool
impl ChannelSendTool
pub fn new( security: Arc<SecurityPolicy>, channel_map: PerToolChannelHandle, default_targets: Arc<RwLock<HashMap<String, String>>>, ) -> Self
Trait Implementations§
Source§impl Attributable for ChannelSendTool
impl Attributable for ChannelSendTool
Source§impl Tool for ChannelSendTool
impl Tool for ChannelSendTool
Source§fn description(&self) -> &str
fn description(&self) -> &str
Human-readable description
Source§fn parameters_schema(&self) -> Value
fn parameters_schema(&self) -> Value
JSON schema for parameters
Auto Trait Implementations§
impl Freeze for ChannelSendTool
impl !RefUnwindSafe for ChannelSendTool
impl Send for ChannelSendTool
impl Sync for ChannelSendTool
impl Unpin for ChannelSendTool
impl UnsafeUnpin for ChannelSendTool
impl !UnwindSafe for ChannelSendTool
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