pub struct SessionSpec {Show 21 fields
pub id: SessionId,
pub kind: AgentKind,
pub cwd: PathBuf,
pub transport: Transport,
pub bin: Option<String>,
pub args: Vec<String>,
pub model: Option<String>,
pub effort: Option<String>,
pub allowed_tools: Vec<String>,
pub disallowed_tools: Vec<String>,
pub read_only: bool,
pub sandbox: Option<String>,
pub env: Vec<(String, String)>,
pub permission: PermissionPolicy,
pub mcp_exe: Option<PathBuf>,
pub system_append: Option<String>,
pub initial_prompt: Option<String>,
pub initial_attachments: Vec<Attachment>,
pub resume: Option<String>,
pub cols: u16,
pub rows: u16,
}Expand description
All information required to launch a session.
Fields§
§id: SessionId§kind: AgentKind§cwd: PathBuf§transport: Transport§bin: Option<String>Custom executable path or name (overrides default PATH lookup).
args: Vec<String>Extra command-line arguments.
model: Option<String>Model to use (currently only supported by Claude structured mode).
effort: Option<String>Reasoning effort (Claude --effort, Codex model_reasoning_effort, ACP configOption).
allowed_tools: Vec<String>Claude-specific: extra allowed / disallowed tools.
disallowed_tools: Vec<String>§read_only: boolRead-only mode (achieved via plan mode in Claude).
sandbox: Option<String>Codex-specific sandbox mode.
env: Vec<(String, String)>Extra environment variables.
permission: PermissionPolicyUnified permission policy.
mcp_exe: Option<PathBuf>If the ertangle executable path is provided, the adapter injects ertangle mcp into the agent at startup.
system_append: Option<String>Collaboration instructions appended to the system prompt (Claude --append-system-prompt, Codex developerInstructions)
or prepended to the first prompt in ACP; not injected for PTY.
initial_prompt: Option<String>First prompt sent immediately after startup.
initial_attachments: Vec<Attachment>Attachments for the initial prompt.
resume: Option<String>Resume an existing conversation: agent’s native conversation ID. None starts a new conversation.
cols: u16§rows: u16Trait Implementations§
Source§impl Clone for SessionSpec
impl Clone for SessionSpec
Auto Trait Implementations§
impl Forget for SessionSpec
impl Freeze for SessionSpec
impl Move for SessionSpec
impl RefUnwindSafe for SessionSpec
impl Send for SessionSpec
impl Sync for SessionSpec
impl Unpin for SessionSpec
impl UnsafeUnpin for SessionSpec
impl UnwindSafe for SessionSpec
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.