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 SessionSpecwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<(String, String)>: Freeze,
PhantomData<Attachment>: Freeze,
impl Move for SessionSpec
impl RefUnwindSafe for SessionSpec
impl Send for SessionSpecwhere
RawVecInner: Send,
impl Sync for SessionSpecwhere
RawVecInner: Sync,
impl Unpin for SessionSpec
impl UnsafeUnpin for SessionSpecwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<Attachment>: UnsafeUnpin,
impl UnwindSafe for SessionSpecwhere
RawVecInner: UnwindSafe,
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.