pub struct LiveCursorRunOptions {
pub prompt: String,
pub cwd: PathBuf,
pub agent: CursorAgentConfig,
pub session: CursorSessionConfig,
pub title: String,
pub artifact_stem: PathBuf,
pub render_console: bool,
pub drain_after_prompt: Duration,
}Expand description
Configuration for a single live Cursor prompt run.
Fields§
§prompt: StringPrompt text.
cwd: PathBufWorking directory for the session.
agent: CursorAgentConfigAgent process config.
session: CursorSessionConfigSession create options (mode / model).
title: StringHTML title.
artifact_stem: PathBufArtifact stem ({stem}.html, .raw.txt, .sequence.txt, .chat.txt).
render_console: boolWhen true, print console lines while collecting.
drain_after_prompt: DurationOuter ceiling on collecting after prompt returns (drain late updates).
Implementations§
Source§impl LiveCursorRunOptions
impl LiveCursorRunOptions
Sourcepub fn for_project(
project: impl Into<PathBuf>,
prompt: impl Into<String>,
) -> Self
pub fn for_project( project: impl Into<PathBuf>, prompt: impl Into<String>, ) -> Self
Defaults under target/live_cursor_run for a project root.
Sourcepub fn with_ask_mode(self) -> Self
pub fn with_ask_mode(self) -> Self
Ask mode (no tools/edits) convenience.
Sourcepub fn with_agent_mode(self) -> Self
pub fn with_agent_mode(self) -> Self
Agent mode (tools) convenience.
Trait Implementations§
Source§impl Clone for LiveCursorRunOptions
impl Clone for LiveCursorRunOptions
Source§fn clone(&self) -> LiveCursorRunOptions
fn clone(&self) -> LiveCursorRunOptions
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 LiveCursorRunOptions
impl RefUnwindSafe for LiveCursorRunOptions
impl Send for LiveCursorRunOptions
impl Sync for LiveCursorRunOptions
impl Unpin for LiveCursorRunOptions
impl UnsafeUnpin for LiveCursorRunOptions
impl UnwindSafe for LiveCursorRunOptions
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