Struct GrokCliBuilder
pub struct GrokCliBuilder { /* private fields */ }Expand description
Typed builder for GrokCliModelProvider.
alias and an existing absolute working_directory are required. Other
values use the provider’s fail-closed defaults when unset.
Implementations§
Source§impl GrokCliBuilder
impl GrokCliBuilder
Sourcepub fn binary_path(self, path: Option<&str>) -> GrokCliBuilder
pub fn binary_path(self, path: Option<&str>) -> GrokCliBuilder
Override the grok binary path. Whitespace-only inputs use PATH lookup.
Sourcepub fn working_directory(self, path: &str) -> GrokCliBuilder
pub fn working_directory(self, path: &str) -> GrokCliBuilder
Set the subprocess cwd and ACP session boundary.
Sourcepub fn env_passthrough(self, names: Vec<String>) -> GrokCliBuilder
pub fn env_passthrough(self, names: Vec<String>) -> GrokCliBuilder
Add operator-selected environment variables to the child allowlist.
Sourcepub fn extra_args(self, args: Vec<String>) -> GrokCliBuilder
pub fn extra_args(self, args: Vec<String>) -> GrokCliBuilder
Set operator-selected Grok global flags.
Sourcepub fn max_acp_stdout_bytes(
self,
max_acp_stdout_bytes: Option<usize>,
) -> GrokCliBuilder
pub fn max_acp_stdout_bytes( self, max_acp_stdout_bytes: Option<usize>, ) -> GrokCliBuilder
Set the aggregate stdout budget for one ACP request.
Sourcepub fn timeout_secs(self, timeout_secs: Option<u64>) -> GrokCliBuilder
pub fn timeout_secs(self, timeout_secs: Option<u64>) -> GrokCliBuilder
Set the complete ACP request deadline. Zero uses the provider default.
Sourcepub fn vision_enabled(self, vision_enabled: bool) -> GrokCliBuilder
pub fn vision_enabled(self, vision_enabled: bool) -> GrokCliBuilder
Enable sending ACP image blocks from the alias vision = true config.
See the field docs: this is a local send-path switch, not a Grok
capability rewrite.
pub fn build(self) -> Result<GrokCliModelProvider, Error>
Auto Trait Implementations§
impl Freeze for GrokCliBuilder
impl RefUnwindSafe for GrokCliBuilder
impl Send for GrokCliBuilder
impl Sync for GrokCliBuilder
impl Unpin for GrokCliBuilder
impl UnsafeUnpin for GrokCliBuilder
impl UnwindSafe for GrokCliBuilder
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§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