pub struct SessionConfig {Show 15 fields
pub name: Option<String>,
pub working_directory: PathBuf,
pub environment: HashMap<String, String>,
pub shell: Option<String>,
pub shell_command: Option<String>,
pub pty_size: (u16, u16),
pub output_buffer_size: usize,
pub timeout: Option<Duration>,
pub compress_output: bool,
pub parse_output: bool,
pub enable_ai_features: bool,
pub context_config: ContextConfig,
pub agent_role: Option<String>,
pub force_headless: bool,
pub allow_headless_fallback: bool,
}Expand description
Session configuration
Fields§
§name: Option<String>Session name (optional)
working_directory: PathBufWorking directory
environment: HashMap<String, String>Environment variables
shell: Option<String>Shell command to execute
shell_command: Option<String>Shell command to execute (alternative field for compatibility)
pty_size: (u16, u16)PTY size (rows, cols)
output_buffer_size: usizeOutput buffer size in bytes
timeout: Option<Duration>Session timeout (None for no timeout)
compress_output: boolEnable output compression
parse_output: boolEnable semantic output parsing
enable_ai_features: boolEnable AI features
context_config: ContextConfigContext configuration
agent_role: Option<String>Agent role (optional)
force_headless: boolForce headless (non-PTY) execution (useful for restricted sandboxes)
allow_headless_fallback: boolAllow automatic fallback to headless mode when PTY creation fails
Trait Implementations§
Source§impl Clone for SessionConfig
impl Clone for SessionConfig
Source§fn clone(&self) -> SessionConfig
fn clone(&self) -> SessionConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionConfig
impl Debug for SessionConfig
Source§impl Default for SessionConfig
impl Default for SessionConfig
Source§impl<'de> Deserialize<'de> for SessionConfigwhere
SessionConfig: Default,
impl<'de> Deserialize<'de> for SessionConfigwhere
SessionConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SessionConfig
impl RefUnwindSafe for SessionConfig
impl Send for SessionConfig
impl Sync for SessionConfig
impl Unpin for SessionConfig
impl UnwindSafe for SessionConfig
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
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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.