pub struct ToolHintProvider { /* private fields */ }Expand description
Generates guidance from prompt hints on the active tool snapshot.
Implementations§
Source§impl ToolHintProvider
impl ToolHintProvider
Sourcepub fn new() -> Result<Self, ContextIdentityError>
pub fn new() -> Result<Self, ContextIdentityError>
Creates the built-in active-tool provider.
§Errors
Returns an error only when the crate’s static provider ID is invalid.
Trait Implementations§
Source§impl Clone for ToolHintProvider
impl Clone for ToolHintProvider
Source§fn clone(&self) -> ToolHintProvider
fn clone(&self) -> ToolHintProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ContextProvider for ToolHintProvider
impl ContextProvider for ToolHintProvider
Source§fn id(&self) -> &ContextProviderId
fn id(&self) -> &ContextProviderId
Returns stable provider identity.
Source§fn provide(&self, request: ContextRequest) -> ContextProviderFuture<'_>
fn provide(&self, request: ContextRequest) -> ContextProviderFuture<'_>
Produces bounded modules from one immutable request.
Auto Trait Implementations§
impl Freeze for ToolHintProvider
impl RefUnwindSafe for ToolHintProvider
impl Send for ToolHintProvider
impl Sync for ToolHintProvider
impl Unpin for ToolHintProvider
impl UnsafeUnpin for ToolHintProvider
impl UnwindSafe for ToolHintProvider
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