pub struct SubagentTool { /* private fields */ }Implementations§
Source§impl SubagentTool
impl SubagentTool
pub fn new( tool_executor: Weak<ToolExecutor>, model_provider: Arc<RwLock<Arc<dyn ModelProvider>>>, project_dir: PathBuf, data_dir: PathBuf, model_name: Arc<RwLock<String>>, harness_config: HarnessConfig, config: Arc<RwLock<NaviConfig>>, prompt_cache: Arc<PromptCache>, components: RuntimeComponents, ) -> Self
Sourcepub fn with_background_resolver(
self,
resolver: Arc<BackgroundModelResolver>,
data_dir: PathBuf,
provider_builder: Arc<ProviderBuilderFn>,
) -> Self
pub fn with_background_resolver( self, resolver: Arc<BackgroundModelResolver>, data_dir: PathBuf, provider_builder: Arc<ProviderBuilderFn>, ) -> Self
Sets the background model resolver for profile-based model selection.
Trait Implementations§
Source§impl Tool for SubagentTool
impl Tool for SubagentTool
fn definition(&self) -> ToolDefinition
fn invoke<'life0, 'async_trait>(
&'life0 self,
invocation: ToolInvocation,
) -> Pin<Box<dyn Future<Output = Result<ToolResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn invoke_with_context<'life0, 'async_trait>(
&'life0 self,
invocation: ToolInvocation,
context: ToolInvocationContext,
) -> Pin<Box<dyn Future<Output = Result<ToolResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !Freeze for SubagentTool
impl !RefUnwindSafe for SubagentTool
impl !UnwindSafe for SubagentTool
impl Send for SubagentTool
impl Sync for SubagentTool
impl Unpin for SubagentTool
impl UnsafeUnpin for SubagentTool
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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