pub struct AgentSessionContext {
pub user: Option<HashMap<String, Value>>,
pub current_organization: Option<Option<HashMap<String, Value>>>,
pub current_workspace: Option<Option<HashMap<String, Value>>>,
pub connected_accounts: Option<Vec<HashMap<String, Value>>>,
}Expand description
AgentSessionContext : Identity bundle returned to the agent at SessionStart. One round-trip provides user + current org/workspace + connected accounts so the agent doesn’t fish on its first turn.
Fields§
§user: Option<HashMap<String, Value>>§current_organization: Option<Option<HashMap<String, Value>>>§current_workspace: Option<Option<HashMap<String, Value>>>§connected_accounts: Option<Vec<HashMap<String, Value>>>Implementations§
Source§impl AgentSessionContext
impl AgentSessionContext
Sourcepub fn new() -> AgentSessionContext
pub fn new() -> AgentSessionContext
Identity bundle returned to the agent at SessionStart. One round-trip provides user + current org/workspace + connected accounts so the agent doesn’t fish on its first turn.
Trait Implementations§
Source§impl Clone for AgentSessionContext
impl Clone for AgentSessionContext
Source§fn clone(&self) -> AgentSessionContext
fn clone(&self) -> AgentSessionContext
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 AgentSessionContext
impl Debug for AgentSessionContext
Source§impl Default for AgentSessionContext
impl Default for AgentSessionContext
Source§fn default() -> AgentSessionContext
fn default() -> AgentSessionContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentSessionContext
impl<'de> Deserialize<'de> for AgentSessionContext
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
Source§impl PartialEq for AgentSessionContext
impl PartialEq for AgentSessionContext
Source§fn eq(&self, other: &AgentSessionContext) -> bool
fn eq(&self, other: &AgentSessionContext) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AgentSessionContext
impl Serialize for AgentSessionContext
impl StructuralPartialEq for AgentSessionContext
Auto Trait Implementations§
impl Freeze for AgentSessionContext
impl RefUnwindSafe for AgentSessionContext
impl Send for AgentSessionContext
impl Sync for AgentSessionContext
impl Unpin for AgentSessionContext
impl UnsafeUnpin for AgentSessionContext
impl UnwindSafe for AgentSessionContext
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