pub struct Lane {
pub host: Arc<Host>,
pub stack: Arc<Stack>,
pub tool: Arc<Rlm>,
pub events: Arc<RuntimeEvents>,
}Expand description
One session’s root lane: the rlm tool over the “main” REPL lane of the session’s host stack.
Fields§
§host: Arc<Host>The host operations (shell, writes) behind the stack, for host-side commands such as RPC bash.
stack: Arc<Stack>§tool: Arc<Rlm>§events: Arc<RuntimeEvents>Completions of work the session’s runs started (subagents, detached cells), delivered between turns.
Implementations§
Source§impl Lane
impl Lane
Sourcepub fn open(
runtime: &Runtime,
model: &Model,
api_key: Option<String>,
session_id: &str,
) -> Result<Lane, String>
pub fn open( runtime: &Runtime, model: &Model, api_key: Option<String>, session_id: &str, ) -> Result<Lane, String>
Start the root lane (“main”) of session_id over runtime’s host stack.
Sourcepub fn open_with(
runtime: &Runtime,
model: &Model,
api_key: Option<String>,
session_id: &str,
subagents: Option<SubagentHost>,
) -> Result<Lane, String>
pub fn open_with( runtime: &Runtime, model: &Model, api_key: Option<String>, session_id: &str, subagents: Option<SubagentHost>, ) -> Result<Lane, String>
Lane::open whose subagents run as subagents says.
Sourcepub fn system_message(&self, system: &str) -> Option<Message>
pub fn system_message(&self, system: &str) -> Option<Message>
The transcript’s first message: the system prompt and the declared rlm tool.
Sourcepub fn tools(&self) -> Vec<Arc<dyn AgentTool>>
pub fn tools(&self) -> Vec<Arc<dyn AgentTool>>
The model’s tool list: exactly the lane’s rlm tool.
pub fn shutdown(&self)
Auto Trait Implementations§
impl !RefUnwindSafe for Lane
impl !UnwindSafe for Lane
impl Forget for Lane
impl Freeze for Lane
impl Move for Lane
impl Send for Lane
impl Sync for Lane
impl Unpin for Lane
impl UnsafeUnpin for Lane
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