pub struct ExecStreamRequest {
pub prompt: String,
pub idle_timeout: Option<Duration>,
pub output_last_message: Option<PathBuf>,
pub output_schema: Option<PathBuf>,
pub json_event_log: Option<PathBuf>,
}Expand description
Options configuring a streaming exec invocation.
Fields§
§prompt: StringUser prompt that will be forwarded to codex exec.
idle_timeout: Option<Duration>Per-event idle timeout. If no JSON lines arrive before the duration elapses,
ExecStreamError::IdleTimeout is returned.
output_last_message: Option<PathBuf>Optional file path passed through to --output-last-message. When unset, the wrapper
will request a temporary path and return it in ExecCompletion::last_message_path.
output_schema: Option<PathBuf>Optional file path passed through to --output-schema so clients can persist the schema
describing the item envelope structure seen during the run.
json_event_log: Option<PathBuf>Optional file path that receives a tee of every raw JSONL event line as it streams in.
Appends to existing files, flushes each line, and creates parent directories. Overrides
[CodexClientBuilder::json_event_log] for this request when provided.
Trait Implementations§
Source§impl Clone for ExecStreamRequest
impl Clone for ExecStreamRequest
Source§fn clone(&self) -> ExecStreamRequest
fn clone(&self) -> ExecStreamRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more