pub struct CommandChat<'a> {
pub session_id: Option<&'a str>,
pub cwd: Option<&'a Path>,
pub memory_backend: &'a MemoryBinding,
pub env: Option<&'a ToolEnv>,
}Expand description
The chat a slash command is run for: whose command it is, and that
chat’s own folder, memory binding and environment. A runtime hands out
its own (crate::Runtime::command_chat); under the daemon the
process’s folder, project and environment are the daemon’s, never a
chat’s.
Fields§
§session_id: Option<&'a str>The chat the command was typed in. None = no conversation.
cwd: Option<&'a Path>The folder that chat runs in. None = the process folder.
memory_backend: &'a MemoryBindingThe chat’s memory binding. Required: a tool the command runs is never left to work one out from the process folder.
env: Option<&'a ToolEnv>The environment the chat’s tools spawn with. None = the process
environment (in-process hosts, where that is the chat’s).
Trait Implementations§
Source§impl<'a> Clone for CommandChat<'a>
impl<'a> Clone for CommandChat<'a>
Source§fn clone(&self) -> CommandChat<'a>
fn clone(&self) -> CommandChat<'a>
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 moreimpl<'a> Copy for CommandChat<'a>
Auto Trait Implementations§
impl<'a> Forget for CommandChat<'a>
impl<'a> Freeze for CommandChat<'a>
impl<'a> Move for CommandChat<'a>
impl<'a> RefUnwindSafe for CommandChat<'a>
impl<'a> Send for CommandChat<'a>
impl<'a> Sync for CommandChat<'a>
impl<'a> Unpin for CommandChat<'a>
impl<'a> UnsafeUnpin for CommandChat<'a>
impl<'a> UnwindSafe for CommandChat<'a>
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,
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>
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.Source§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.Source§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.Source§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.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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> ⓘ
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