pub struct ActiveCommandContext<'a> {
pub checkpoints: &'a dyn CheckpointStore,
pub submission_id: &'a str,
pub session_id: &'a str,
pub metadata: &'a BTreeMap<String, Value>,
pub active_turn_id: &'a str,
pub command: &'a str,
pub arguments: &'a str,
pub input: Option<&'a str>,
pub target: Option<MessageTarget>,
pub queued_messages: MessageQueue<'a>,
pub events: &'a mut Vec<EventMsg>,
}Expand description
Mutable turn state exposed to a capability command that can run immediately.
Fields§
§checkpoints: &'a dyn CheckpointStoreThe checkpoints.
submission_id: &'a strThe submission identifier.
session_id: &'a strThe session identifier.
metadata: &'a BTreeMap<String, Value>The metadata.
active_turn_id: &'a strThe active turn identifier.
command: &'a strThe command.
arguments: &'a strThe arguments.
input: Option<&'a str>The input.
target: Option<MessageTarget>The target.
queued_messages: MessageQueue<'a>The queued messages.
events: &'a mut Vec<EventMsg>The events.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ActiveCommandContext<'a>
impl<'a> !UnwindSafe for ActiveCommandContext<'a>
impl<'a> Freeze for ActiveCommandContext<'a>
impl<'a> Send for ActiveCommandContext<'a>
impl<'a> Sync for ActiveCommandContext<'a>
impl<'a> Unpin for ActiveCommandContext<'a>
impl<'a> UnsafeUnpin for ActiveCommandContext<'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