pub struct CodingRuntimeBuilder { /* private fields */ }Expand description
Builder for parent coding runtime composition.
Implementations§
Source§impl CodingRuntimeBuilder
impl CodingRuntimeBuilder
Sourcepub fn new(input: CodingRuntimeInput) -> Self
pub fn new(input: CodingRuntimeInput) -> Self
Creates a full coding-runtime builder.
Sourcepub fn for_command_generation(input: CodingRuntimeInput) -> Self
pub fn for_command_generation(input: CodingRuntimeInput) -> Self
Creates the explicit read-only command-generation variant.
Full-only inputs such as a process backend and subagent configuration are intentionally ignored by this variant. The read-only profile is selected by construction so those capabilities cannot be advertised or admitted accidentally.
Sourcepub fn permission_policy(self, policy: CodingPermissionPolicy) -> Self
pub fn permission_policy(self, policy: CodingPermissionPolicy) -> Self
Sets the complete permission policy shared by parent and child runtimes.
Sourcepub fn with_loaded_session(self, loaded: LoadedSession) -> Self
pub fn with_loaded_session(self, loaded: LoadedSession) -> Self
Installs an already loaded session without performing another store read.
Sourcepub fn session_store(self, store: FileSessionStore) -> Self
pub fn session_store(self, store: FileSessionStore) -> Self
Configures automatic incremental session persistence into store.
Sourcepub fn build(self) -> Result<CodingRuntime, CodingRuntimeBuildError>
pub fn build(self) -> Result<CodingRuntime, CodingRuntimeBuildError>
Builds a new parent runtime and its stable coding loop policy.
Sourcepub fn build_with_reservation(
self,
reservation: &mut Option<SessionReservation>,
) -> Result<CodingRuntime, CodingRuntimeBuildError>
pub fn build_with_reservation( self, reservation: &mut Option<SessionReservation>, ) -> Result<CodingRuntime, CodingRuntimeBuildError>
Builds a new parent runtime and transfers an already-acquired
merry_runtime::SessionReservation into the runtime once validation
succeeds.
Sourcepub async fn resume_from_store_without_automatic_savepoints(
self,
store: FileSessionStore,
) -> Result<CodingRuntime, CodingRuntimeBuildError>
pub async fn resume_from_store_without_automatic_savepoints( self, store: FileSessionStore, ) -> Result<CodingRuntime, CodingRuntimeBuildError>
Resumes a parent runtime without automatic savepoints.