pub struct AgentTuiOptions {Show 24 fields
pub tool: String,
pub working_directory: PathBuf,
pub executable: Option<String>,
pub prefix_args: Vec<String>,
pub extra_args: Vec<String>,
pub extra_env: HashMap<String, String>,
pub model: Option<String>,
pub prompt: Option<String>,
pub system_prompt: Option<String>,
pub prompt_after: Option<String>,
pub prompt_key: TerminalKey,
pub resume: Option<String>,
pub read_only: bool,
pub plan_only: bool,
pub approve_each: bool,
pub skip_default_safety_flags: bool,
pub cols: u16,
pub rows: u16,
pub settle_duration: Duration,
pub interactions: Vec<TerminalInteraction>,
pub stop_marker: Option<String>,
pub stop_marker_grace: Duration,
pub timeout: Duration,
pub artifact_directory: Option<PathBuf>,
}Expand description
Options for launching and driving an agent’s real interactive terminal UI.
Fields§
§tool: StringAgent CLI name.
working_directory: PathBufDirectory in which the agent runs.
executable: Option<String>Override for the agent executable.
prefix_args: Vec<String>Arguments inserted before the generated agent arguments.
extra_args: Vec<String>Additional agent arguments.
extra_env: HashMap<String, String>Additional environment variables.
model: Option<String>Optional model name or alias.
prompt: Option<String>Initial user prompt.
system_prompt: Option<String>Optional system prompt.
prompt_after: Option<String>Marker that must be observed before sending the initial prompt.
prompt_key: TerminalKeyControl key sent after the initial prompt.
resume: Option<String>Session identifier to resume.
read_only: boolRequest the client’s native read-only mode.
plan_only: boolRequest the client’s native plan-only mode where distinct.
approve_each: boolRequest approval for individual operations.
skip_default_safety_flags: boolSuppress the default autonomous safety-bypass flags.
cols: u16Initial terminal width.
rows: u16Initial terminal height.
settle_duration: DurationTime without output before a frame is considered settled.
interactions: Vec<TerminalInteraction>Input, control-key, and resize interactions.
stop_marker: Option<String>Marker after which the capture process can be stopped.
stop_marker_grace: DurationGrace period after the stop marker.
timeout: DurationOverall capture timeout.
artifact_directory: Option<PathBuf>Directory for transcript, frame, cast, and animation artifacts.
Trait Implementations§
Source§impl Clone for AgentTuiOptions
impl Clone for AgentTuiOptions
Source§fn clone(&self) -> AgentTuiOptions
fn clone(&self) -> AgentTuiOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AgentTuiOptions
impl Debug for AgentTuiOptions
Auto Trait Implementations§
impl Freeze for AgentTuiOptions
impl RefUnwindSafe for AgentTuiOptions
impl Send for AgentTuiOptions
impl Sync for AgentTuiOptions
impl Unpin for AgentTuiOptions
impl UnsafeUnpin for AgentTuiOptions
impl UnwindSafe for AgentTuiOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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>
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>
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