pub struct ToolExposureContext<'a> {
pub session_id: &'a str,
/* private fields */
}Expand description
Live capability state used to hide registered tools at a model boundary.
Fields§
§session_id: &'a strImplementations§
Source§impl ToolExposureContext<'_>
impl ToolExposureContext<'_>
Sourcepub fn supports_tool_image_input(&self) -> bool
pub fn supports_tool_image_input(&self) -> bool
Reports whether the active model accepts image input.
Sourcepub fn latest_message(&self) -> Option<MessageEvent>
pub fn latest_message(&self) -> Option<MessageEvent>
Returns the most recent typed conversation message in model context.
Auto Trait Implementations§
impl<'a> !UnwindSafe for ToolExposureContext<'a>
impl<'a> Freeze for ToolExposureContext<'a>
impl<'a> RefUnwindSafe for ToolExposureContext<'a>
impl<'a> Send for ToolExposureContext<'a>
impl<'a> Sync for ToolExposureContext<'a>
impl<'a> Unpin for ToolExposureContext<'a>
impl<'a> UnsafeUnpin for ToolExposureContext<'a>
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