pub struct DevToolset { /* private fields */ }Expand description
Bundles the developer tools (read_file, write_file, edit_file, glob,
grep, bash) so they can be attached to an agent in one call.
Mutating tools (write_file, edit_file) are omitted when the workspace is
read-only, and bash is omitted when bash is disabled — so the toolset the
model sees always matches what the workspace actually permits.
Implementations§
Trait Implementations§
Source§impl Toolset for DevToolset
impl Toolset for DevToolset
Source§fn tools<'life0, 'async_trait>(
&'life0 self,
_ctx: Arc<dyn ReadonlyContext>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Arc<dyn Tool>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn tools<'life0, 'async_trait>(
&'life0 self,
_ctx: Arc<dyn ReadonlyContext>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Arc<dyn Tool>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the tools available in this toolset for the given context.
Source§fn process_llm_request<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: Arc<dyn ReadonlyContext>,
_request: &'life1 mut LlmRequest,
) -> Pin<Box<dyn Future<Output = Result<(), AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn process_llm_request<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: Arc<dyn ReadonlyContext>,
_request: &'life1 mut LlmRequest,
) -> Pin<Box<dyn Future<Output = Result<(), AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Applies toolset-specific context to an LLM request before each model call. Read more
Auto Trait Implementations§
impl Freeze for DevToolset
impl RefUnwindSafe for DevToolset
impl Send for DevToolset
impl Sync for DevToolset
impl Unpin for DevToolset
impl UnsafeUnpin for DevToolset
impl UnwindSafe for DevToolset
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