pub struct ContainerAdapter { /* private fields */ }Expand description
An agent in a Docker container, one docker exec per turn.
Implementations§
Source§impl ContainerAdapter
impl ContainerAdapter
pub fn with_launch(launch: ContainerLaunch) -> Self
Trait Implementations§
Source§impl Clone for ContainerAdapter
impl Clone for ContainerAdapter
Source§fn clone(&self) -> ContainerAdapter
fn clone(&self) -> ContainerAdapter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ContainerAdapter
impl Default for ContainerAdapter
Source§fn default() -> ContainerAdapter
fn default() -> ContainerAdapter
Returns the “default value” for a type. Read more
Source§impl RuntimeAdapter for ContainerAdapter
impl RuntimeAdapter for ContainerAdapter
Source§fn srv_endpoint(&self, local_url: &str) -> String
fn srv_endpoint(&self, local_url: &str) -> String
A container can’t reach the loopback address srv sees.
Source§fn accepts_persistent_controller(&self) -> bool
fn accepts_persistent_controller(&self) -> bool
A container turn is one docker exec; a long-lived stdin has nothing to attach to.
Source§fn can_host(&self, controller: ControllerType) -> bool
fn can_host(&self, controller: ControllerType) -> bool
A terminal or an MSP session runs on the host.
Source§fn controller_type_for_open(
&self,
_provider_default: &'static str,
) -> &'static str
fn controller_type_for_open( &self, _provider_default: &'static str, ) -> &'static str
Per-turn docker exec needs the subprocess controller, whatever the provider defaults to (Claude’s
is persistent, which would skip the container exec path).
fn kind(&self) -> RuntimeKind
Source§fn credentials(
&self,
block_id: &str,
env: &HashMap<String, String>,
) -> Vec<(String, String)>
fn credentials( &self, block_id: &str, env: &HashMap<String, String>, ) -> Vec<(String, String)>
The env a turn’s process is given, from the env the block resolved.
block_id names whose
scoped token a runtime that uses one hands out.Source§fn map_mount(&self, role: MountRole, host_path: &str) -> String
fn map_mount(&self, role: MountRole, host_path: &str) -> String
Where
host_path, the folder of role, appears in the runtime.Source§fn tool_path(&self, tool: ToolId) -> String
fn tool_path(&self, tool: ToolId) -> String
How
tool is named in the config files written for the agent.Source§fn materialize(&self, ctrl: &SubprocessController)
fn materialize(&self, ctrl: &SubprocessController)
What a turn does before it runs. Call before
launch.Source§fn launch(
&self,
ctrl: &SubprocessController,
config: SubprocessSpawnConfig,
) -> Result<(), String>
fn launch( &self, ctrl: &SubprocessController, config: SubprocessSpawnConfig, ) -> Result<(), String>
Start one turn.
config is in the host’s shape (cli_command, cli_args, working_dir);
a runtime that runs the CLI elsewhere turns that into its own.Source§fn carries_signing_keys(&self) -> bool
fn carries_signing_keys(&self) -> bool
Whether the
.mcp.json written for the agent carries its signing keys. A runtime that mounts
the file where other code reads it does not.Source§fn accepts_attachments(&self) -> bool
fn accepts_attachments(&self) -> bool
Whether an attachment’s host path means anything to the agent.
Auto Trait Implementations§
impl !RefUnwindSafe for ContainerAdapter
impl !UnwindSafe for ContainerAdapter
impl Freeze for ContainerAdapter
impl Send for ContainerAdapter
impl Sync for ContainerAdapter
impl Unpin for ContainerAdapter
impl UnsafeUnpin for ContainerAdapter
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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.§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.§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.§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.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
Converts
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> ⓘ
Converts
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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.