pub struct SessionToolContext {
pub session: SessionId,
/* private fields */
}Fields§
§session: SessionIdImplementations§
Source§impl SessionToolContext
impl SessionToolContext
pub const fn new(session: SessionId) -> Self
Sourcepub fn prompt_delegate_targets(
&self,
) -> Option<impl ExactSizeIterator<Item = (&AgentId, &str)>>
pub fn prompt_delegate_targets( &self, ) -> Option<impl ExactSizeIterator<Item = (&AgentId, &str)>>
Delegate targets frozen for the run currently composing its prompt.
Trait Implementations§
Source§impl Clone for SessionToolContext
impl Clone for SessionToolContext
Source§fn clone(&self) -> SessionToolContext
fn clone(&self) -> SessionToolContext
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 Debug for SessionToolContext
impl Debug for SessionToolContext
Source§impl<'de> Deserialize<'de> for SessionToolContext
impl<'de> Deserialize<'de> for SessionToolContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SessionToolContext
impl RefUnwindSafe for SessionToolContext
impl Send for SessionToolContext
impl Sync for SessionToolContext
impl Unpin for SessionToolContext
impl UnsafeUnpin for SessionToolContext
impl UnwindSafe for SessionToolContext
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