pub struct ToolContext {
pub user_id: Option<String>,
pub timezone: Option<String>,
pub telegram_id: Option<String>,
pub family: Option<FamilyContext>,
pub families: Vec<FamilyContext>,
pub conversation_id: Option<String>,
pub run_id: Option<Uuid>,
}Expand description
Trusted execution metadata supplied by the platform, never by the model.
Fields§
§user_id: Option<String>Persistent EME user identifier resolved from the authenticated platform identity.
timezone: Option<String>IANA timezone configured in the authenticated user’s platform profile.
telegram_id: Option<String>Host-resolved Telegram user ID linked to the authenticated conversation owner; never model-controlled.
family: Option<FamilyContext>Family selected for this run and verified for this user.
families: Vec<FamilyContext>Family rosters the host authorizes this run to use. The host may scope this to a selected family even when the user belongs to additional families. Telegram recipient authorization is checked against these trusted rosters.
conversation_id: Option<String>Conversation whose turn caused this tool invocation.
run_id: Option<Uuid>Stable identifier of the enclosing agent run.
Implementations§
Trait Implementations§
Source§impl Clone for ToolContext
impl Clone for ToolContext
Source§impl Debug for ToolContext
impl Debug for ToolContext
Source§impl Default for ToolContext
impl Default for ToolContext
impl Eq for ToolContext
Source§impl PartialEq for ToolContext
impl PartialEq for ToolContext
impl StructuralPartialEq for ToolContext
Auto Trait Implementations§
impl Freeze for ToolContext
impl RefUnwindSafe for ToolContext
impl Send for ToolContext
impl Sync for ToolContext
impl Unpin for ToolContext
impl UnsafeUnpin for ToolContext
impl UnwindSafe for ToolContext
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.