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>) -> Self
pub fn binary_path(self, path: Option<&str>) -> Self
Override the grok binary path. Whitespace-only inputs use PATH lookup.
Sourcepub fn working_directory(self, path: &str) -> Self
pub fn working_directory(self, path: &str) -> Self
Set the subprocess cwd and ACP session boundary.
Sourcepub fn env_passthrough(self, names: Vec<String>) -> Self
pub fn env_passthrough(self, names: Vec<String>) -> Self
Add operator-selected environment variables to the child allowlist.
Sourcepub fn extra_args(self, args: Vec<String>) -> Self
pub fn extra_args(self, args: Vec<String>) -> Self
Set operator-selected Grok global flags.
Sourcepub fn max_acp_stdout_bytes(self, max_acp_stdout_bytes: Option<usize>) -> Self
pub fn max_acp_stdout_bytes(self, max_acp_stdout_bytes: Option<usize>) -> Self
Set the aggregate stdout budget for one ACP request.
Sourcepub fn timeout_secs(self, timeout_secs: Option<u64>) -> Self
pub fn timeout_secs(self, timeout_secs: Option<u64>) -> Self
Set the complete ACP request deadline. Zero uses the provider default.
Sourcepub fn vision_enabled(self, vision_enabled: bool) -> Self
pub fn vision_enabled(self, vision_enabled: bool) -> Self
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>
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§
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