pub struct AgentRuntimeContext {
pub tenant_id: String,
pub agent_name: String,
pub workspace_id: Option<String>,
pub user_id: Option<String>,
pub session_id: Option<String>,
pub request_source: String,
}Expand description
Runtime metadata available to managed context providers.
Public ARES treats these fields as caller-supplied metadata. Managed providers must still validate workspace use against their own binding or auth policy before using it for external memory fetches.
Fields§
§tenant_id: StringTenant that owns the agent execution.
agent_name: StringRegistry or tenant-agent name being executed.
workspace_id: Option<String>Optional workspace selected by the authenticated upstream runtime.
user_id: Option<String>Optional end-user identifier for user-scoped products.
session_id: Option<String>Optional session or conversation identifier for this run.
request_source: StringLogical source of the request, such as an API handler name.
Implementations§
Trait Implementations§
Source§impl Clone for AgentRuntimeContext
impl Clone for AgentRuntimeContext
Source§fn clone(&self) -> AgentRuntimeContext
fn clone(&self) -> AgentRuntimeContext
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 AgentRuntimeContext
impl Debug for AgentRuntimeContext
Source§impl Default for AgentRuntimeContext
impl Default for AgentRuntimeContext
Source§fn default() -> AgentRuntimeContext
fn default() -> AgentRuntimeContext
Returns the “default value” for a type. Read more
impl Eq for AgentRuntimeContext
Source§impl PartialEq for AgentRuntimeContext
impl PartialEq for AgentRuntimeContext
impl StructuralPartialEq for AgentRuntimeContext
Auto Trait Implementations§
impl Freeze for AgentRuntimeContext
impl RefUnwindSafe for AgentRuntimeContext
impl Send for AgentRuntimeContext
impl Sync for AgentRuntimeContext
impl Unpin for AgentRuntimeContext
impl UnsafeUnpin for AgentRuntimeContext
impl UnwindSafe for AgentRuntimeContext
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.