pub struct LiveGrokRunOptions {
pub prompt: String,
pub cwd: PathBuf,
pub serve: GrokServeOptions,
pub title: String,
pub artifact_stem: PathBuf,
pub request_deadline: Duration,
pub prompt_wait_ceiling: Option<Duration>,
pub connect_timeout: Duration,
pub render_console: bool,
}Expand description
Configuration for a single live Grok prompt run.
Fields§
§prompt: StringPrompt text sent via session/prompt.
cwd: PathBufWorking directory for the Grok session (cwd).
serve: GrokServeOptionsServe options (port, secret, log path, ready timeout).
title: StringTitle used in the HTML review page.
artifact_stem: PathBufArtifact stem directory + base name (without extension).
Writes {stem}.html, {stem}.raw.txt, {stem}.sequence.txt, {stem}.chat.txt.
request_deadline: DurationHow long the Connector may wait for a single JSON-RPC (including the prompt). Default: 2 hours — long enough for real agent work; still fail-closed.
prompt_wait_ceiling: Option<Duration>Optional outer ceiling on waiting for prompt completion.
None = wait until the RPC finishes or request_deadline fires.
connect_timeout: DurationConnect / session-open timeout.
render_console: boolWhen true, render console lines while collecting.
Implementations§
Trait Implementations§
Source§impl Clone for LiveGrokRunOptions
impl Clone for LiveGrokRunOptions
Source§fn clone(&self) -> LiveGrokRunOptions
fn clone(&self) -> LiveGrokRunOptions
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 moreAuto Trait Implementations§
impl Freeze for LiveGrokRunOptions
impl RefUnwindSafe for LiveGrokRunOptions
impl Send for LiveGrokRunOptions
impl Sync for LiveGrokRunOptions
impl Unpin for LiveGrokRunOptions
impl UnsafeUnpin for LiveGrokRunOptions
impl UnwindSafe for LiveGrokRunOptions
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