pub struct SessionOptions {
pub config: AgentConfig,
pub policy: Option<RuntimePolicy>,
pub tool_audience: Option<ToolAudience>,
pub project_id: Option<String>,
pub runtime_identifier: Option<Arc<str>>,
}Expand description
How a session is configured, scoped, and tagged in the store.
Fields§
§config: AgentConfig§policy: Option<RuntimePolicy>Complete runtime policy for this live session and its descendants.
None inherits the policy installed on RuntimeBuilder. Some
replaces that policy wholesale for this session; the two policies are
not merged or intersected. The attachment is live-only and is not
persisted in AgentConfig, so a resumed session must receive its
current policy again through SessionResumeOptions.
Like every RuntimePolicy, this governs Mentra’s builtin file and
command paths but is not an OS filesystem or network sandbox.
tool_audience: Option<ToolAudience>Ephemeral tool audience for this live session and its descendants.
project_id: Option<String>Scopes this session’s permission rules to a project.
runtime_identifier: Option<Arc<str>>The runtime identifier this session’s persisted rows are tagged with.
None uses the runtime’s own, which is what every session got before:
one tag for every session on a runtime, and a
list_persisted_agents that cannot
separate one workspace’s sessions from another’s.
Trait Implementations§
Source§impl Clone for SessionOptions
impl Clone for SessionOptions
Source§fn clone(&self) -> SessionOptions
fn clone(&self) -> SessionOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more