pub struct StartSessionRequest {Show 15 fields
pub create_managed_worktree: Option<bool>,
pub launch_base: Option<String>,
pub launch_branch: Option<String>,
pub checkout: Option<ExactCheckout>,
pub expected_runtime_identity: Option<String>,
pub mjolnir_subagents: Option<bool>,
pub workspace_id: Option<String>,
pub profile_id: Option<String>,
pub target_id: Option<String>,
pub bundle_id: Option<String>,
pub project_directory: Option<PathBuf>,
pub title: Option<String>,
pub model: Option<String>,
pub effort: Option<String>,
pub prompt: Option<String>,
}Expand description
Create a session and, optionally, send its first prompt. Served in M2.
profile_id and target_id may be omitted, and each resolves
independently: a caller may name a profile and take the saved default
target. An omitted identifier comes from the pair the user last saved with
the mj go workflow, which the first setup also becomes, so a caller that
has never read config.toml can create a session by naming neither. The
controller still receives two explicit identifiers, because a session whose
profile was implicit would be a session nobody can explain later.
Fields§
§create_managed_worktree: Option<bool>§launch_base: Option<String>Diff baseline; also the starting revision for a raw managed worktree.
launch_branch: Option<String>Branch to check out in a new isolated workspace.
checkout: Option<ExactCheckout>Exact starting selection for one bundle repository, verified before readiness.
expected_runtime_identity: Option<String>§mjolnir_subagents: Option<bool>None means native sub-agents, the same as Some(false).
workspace_id: Option<String>§profile_id: Option<String>Omitted follows the saved default. See the type’s own documentation.
target_id: Option<String>Omitted follows the saved default. See the type’s own documentation.
bundle_id: Option<String>§project_directory: Option<PathBuf>§title: Option<String>§model: Option<String>§effort: Option<String>§prompt: Option<String>Trait Implementations§
Source§impl Clone for StartSessionRequest
impl Clone for StartSessionRequest
Source§impl Debug for StartSessionRequest
impl Debug for StartSessionRequest
Source§impl Default for StartSessionRequest
impl Default for StartSessionRequest
Source§impl<'de> Deserialize<'de> for StartSessionRequest
impl<'de> Deserialize<'de> for StartSessionRequest
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>,
Source§impl PartialEq for StartSessionRequest
impl PartialEq for StartSessionRequest
Source§impl Serialize for StartSessionRequest
impl Serialize for StartSessionRequest
impl StructuralPartialEq for StartSessionRequest
Auto Trait Implementations§
impl Freeze for StartSessionRequest
impl RefUnwindSafe for StartSessionRequest
impl Send for StartSessionRequest
impl Sync for StartSessionRequest
impl Unpin for StartSessionRequest
impl UnsafeUnpin for StartSessionRequest
impl UnwindSafe for StartSessionRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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