Skip to main content

LoadedSession

Struct LoadedSession 

Source
pub struct LoadedSession { /* private fields */ }
Expand description

A validated persisted session loaded once before runtime construction.

The runtime owns the complete session state. Surface adapters may load and validate a session before transferring this handle into crate::RuntimeBuilder without loading the session a second time.

Implementations§

Source§

impl LoadedSession

Source

pub async fn load( store: &FileSessionStore, session_id: &SessionId, ) -> Result<Self, RuntimeError>

Loads and validates one session from the supplied store.

Auto Trait Implementations§

§

impl Forget for LoadedSession

§

impl Freeze for LoadedSession
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze, *const LeafNode<MemoryId, MemoryItem> is !null: Freeze, PhantomData<(Owned, LeafOrInternal)>: Freeze, PhantomData<Box<(MemoryId, MemoryItem)>>: Freeze, PhantomData<SkillMetadata>: Freeze, PhantomData<SkillLoadWarning>: Freeze, PhantomData<CheckpointRef>: Freeze, PhantomData<ContextEntry>: Freeze, *const LeafNode<String, SetValZST> is !null: Freeze, PhantomData<Box<(String, SetValZST)>>: Freeze, PhantomData<ActivatedMemory>: Freeze, PhantomData<PlanDocumentSummary>: Freeze, *const LeafNode<PlanId, String> is !null: Freeze, PhantomData<Box<(PlanId, String)>>: Freeze, PhantomData<TodoItem>: Freeze, PhantomData<TranscriptItem>: Freeze, *const LeafNode<ToolCallId, usize> is !null: Freeze, PhantomData<Box<(ToolCallId, usize)>>: Freeze, *const LeafNode<ModelTurnId, ModelTurnStatus> is !null: Freeze, PhantomData<Box<(ModelTurnId, ModelTurnStatus)>>: Freeze, *const LeafNode<ModelTurnId, u64> is !null: Freeze, PhantomData<Box<(ModelTurnId, u64)>>: Freeze, PhantomData<PendingToolCall>: Freeze, *const LeafNode<ToolCallId, SetValZST> is !null: Freeze, PhantomData<Box<(ToolCallId, SetValZST)>>: Freeze, NonZero<u64>: Freeze, PhantomData<SessionToolCatalogEntry>: Freeze, *const ArcInner<TreeNode> is !null: Freeze, PhantomData<ArcInner<TreeNode>>: Freeze, *const Header is !null: Freeze, PhantomData<()>: Freeze, PhantomData<PersistedSubagentRecord>: Freeze, *const LeafNode<u64, SetValZST> is !null: Freeze, PhantomData<Box<(u64, SetValZST)>>: Freeze, PhantomData<JournalContextEntry>: Freeze, *const LeafNode<ModelTurnId, FlushedModelTurn> is !null: Freeze, PhantomData<Box<(ModelTurnId, FlushedModelTurn)>>: Freeze,

§

impl Move for LoadedSession

§

impl RefUnwindSafe for LoadedSession

§

impl Send for LoadedSession
where RawVecInner: Send, NodeRef<Owned, MemoryId, MemoryItem, LeafOrInternal>: Send, BoxRaw<(MemoryId, MemoryItem)>: Send, &'static str: Send, NodeRef<Owned, String, SetValZST, LeafOrInternal>: Send, BoxRaw<(String, SetValZST)>: Send, NodeRef<Owned, PlanId, String, LeafOrInternal>: Send, BoxRaw<(PlanId, String)>: Send, Arc<str>: Send, Arc<[u8]>: Send, NodeRef<Owned, String, Value, LeafOrInternal>: Send, BoxRaw<(String, Value)>: Send, Arc<ToolOutput>: Send, NodeRef<Owned, ToolCallId, usize, LeafOrInternal>: Send, BoxRaw<(ToolCallId, usize)>: Send, NodeRef<Owned, ModelTurnId, ModelTurnStatus, LeafOrInternal>: Send, BoxRaw<(ModelTurnId, ModelTurnStatus)>: Send, NodeRef<Owned, ModelTurnId, u64, LeafOrInternal>: Send, BoxRaw<(ModelTurnId, u64)>: Send, NodeRef<Owned, ToolCallId, SetValZST, LeafOrInternal>: Send, BoxRaw<(ToolCallId, SetValZST)>: Send, NonZero<u64>: Send, Arc<TreeNode>: Send, JoinHandle<()>: Send, NodeRef<Owned, u64, SetValZST, LeafOrInternal>: Send, BoxRaw<(u64, SetValZST)>: Send, NodeRef<Owned, ModelTurnId, FlushedModelTurn, LeafOrInternal>: Send, BoxRaw<(ModelTurnId, FlushedModelTurn)>: Send,

§

impl Sync for LoadedSession
where RawVecInner: Sync, NodeRef<Owned, MemoryId, MemoryItem, LeafOrInternal>: Sync, BoxRaw<(MemoryId, MemoryItem)>: Sync, NodeRef<Owned, String, SetValZST, LeafOrInternal>: Sync, BoxRaw<(String, SetValZST)>: Sync, NodeRef<Owned, PlanId, String, LeafOrInternal>: Sync, BoxRaw<(PlanId, String)>: Sync, Arc<str>: Sync, Arc<[u8]>: Sync, NodeRef<Owned, String, Value, LeafOrInternal>: Sync, BoxRaw<(String, Value)>: Sync, Arc<ToolOutput>: Sync, NodeRef<Owned, ToolCallId, usize, LeafOrInternal>: Sync, BoxRaw<(ToolCallId, usize)>: Sync, NodeRef<Owned, ModelTurnId, ModelTurnStatus, LeafOrInternal>: Sync, BoxRaw<(ModelTurnId, ModelTurnStatus)>: Sync, NodeRef<Owned, ModelTurnId, u64, LeafOrInternal>: Sync, BoxRaw<(ModelTurnId, u64)>: Sync, NodeRef<Owned, ToolCallId, SetValZST, LeafOrInternal>: Sync, BoxRaw<(ToolCallId, SetValZST)>: Sync, NonZero<u64>: Sync, Arc<TreeNode>: Sync, JoinHandle<()>: Sync, NodeRef<Owned, u64, SetValZST, LeafOrInternal>: Sync, BoxRaw<(u64, SetValZST)>: Sync, NodeRef<Owned, ModelTurnId, FlushedModelTurn, LeafOrInternal>: Sync, BoxRaw<(ModelTurnId, FlushedModelTurn)>: Sync,

§

impl Unpin for LoadedSession
where *const u8 is !null: Unpin, *const LeafNode<MemoryId, MemoryItem> is !null: Unpin, Box<(MemoryId, MemoryItem)>: Unpin, &'static str: Unpin, *const LeafNode<String, SetValZST> is !null: Unpin, Box<(String, SetValZST)>: Unpin, *const LeafNode<PlanId, String> is !null: Unpin, Box<(PlanId, String)>: Unpin, Arc<str>: Unpin, Arc<[u8]>: Unpin, *const LeafNode<String, Value> is !null: Unpin, Box<(String, Value)>: Unpin, Arc<ToolOutput>: Unpin, *const LeafNode<ToolCallId, usize> is !null: Unpin, Box<(ToolCallId, usize)>: Unpin, *const LeafNode<ModelTurnId, ModelTurnStatus> is !null: Unpin, Box<(ModelTurnId, ModelTurnStatus)>: Unpin, *const LeafNode<ModelTurnId, u64> is !null: Unpin, Box<(ModelTurnId, u64)>: Unpin, *const LeafNode<ToolCallId, SetValZST> is !null: Unpin, Box<(ToolCallId, SetValZST)>: Unpin, NonZero<u64>: Unpin, Arc<TreeNode>: Unpin, JoinHandle<()>: Unpin, *const LeafNode<u64, SetValZST> is !null: Unpin, Box<(u64, SetValZST)>: Unpin, *const LeafNode<ModelTurnId, FlushedModelTurn> is !null: Unpin, Box<(ModelTurnId, FlushedModelTurn)>: Unpin,

§

impl UnsafeUnpin for LoadedSession
where *const u8 is !null: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, *const LeafNode<MemoryId, MemoryItem> is !null: UnsafeUnpin, PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin, PhantomData<Box<(MemoryId, MemoryItem)>>: UnsafeUnpin, PhantomData<SkillMetadata>: UnsafeUnpin, PhantomData<SkillLoadWarning>: UnsafeUnpin, PhantomData<CheckpointRef>: UnsafeUnpin, PhantomData<ContextEntry>: UnsafeUnpin, *const LeafNode<String, SetValZST> is !null: UnsafeUnpin, PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin, PhantomData<ActivatedMemory>: UnsafeUnpin, PhantomData<PlanDocumentSummary>: UnsafeUnpin, *const LeafNode<PlanId, String> is !null: UnsafeUnpin, PhantomData<Box<(PlanId, String)>>: UnsafeUnpin, PhantomData<TodoItem>: UnsafeUnpin, PhantomData<TranscriptItem>: UnsafeUnpin, *const LeafNode<ToolCallId, usize> is !null: UnsafeUnpin, PhantomData<Box<(ToolCallId, usize)>>: UnsafeUnpin, *const LeafNode<ModelTurnId, ModelTurnStatus> is !null: UnsafeUnpin, PhantomData<Box<(ModelTurnId, ModelTurnStatus)>>: UnsafeUnpin, *const LeafNode<ModelTurnId, u64> is !null: UnsafeUnpin, PhantomData<Box<(ModelTurnId, u64)>>: UnsafeUnpin, PhantomData<PendingToolCall>: UnsafeUnpin, *const LeafNode<ToolCallId, SetValZST> is !null: UnsafeUnpin, PhantomData<Box<(ToolCallId, SetValZST)>>: UnsafeUnpin, NonZeroU64Inner: UnsafeUnpin, PhantomData<SessionToolCatalogEntry>: UnsafeUnpin, *const ArcInner<TreeNode> is !null: UnsafeUnpin, PhantomData<ArcInner<TreeNode>>: UnsafeUnpin, *const Header is !null: UnsafeUnpin, PhantomData<()>: UnsafeUnpin, PhantomData<PersistedSubagentRecord>: UnsafeUnpin, *const LeafNode<u64, SetValZST> is !null: UnsafeUnpin, PhantomData<Box<(u64, SetValZST)>>: UnsafeUnpin, PhantomData<JournalContextEntry>: UnsafeUnpin, *const LeafNode<ModelTurnId, FlushedModelTurn> is !null: UnsafeUnpin, PhantomData<Box<(ModelTurnId, FlushedModelTurn)>>: UnsafeUnpin,

§

impl UnwindSafe for LoadedSession
where RawVecInner: UnwindSafe, BTreeMap<MemoryId, MemoryItem>: UnwindSafe, &'static str: UnwindSafe, BTreeMap<String, SetValZST>: UnwindSafe, BTreeMap<PlanId, String>: UnwindSafe, Arc<str>: UnwindSafe, Arc<[u8]>: UnwindSafe, BTreeMap<String, Value>: UnwindSafe, Arc<ToolOutput>: UnwindSafe, BTreeMap<ToolCallId, usize>: UnwindSafe, BTreeMap<ModelTurnId, ModelTurnStatus>: UnwindSafe, BTreeMap<ModelTurnId, u64>: UnwindSafe, BTreeMap<ToolCallId, SetValZST>: UnwindSafe, NonZero<u64>: UnwindSafe, CancellationToken: UnwindSafe, JoinHandle<()>: UnwindSafe, BTreeMap<u64, SetValZST>: UnwindSafe, BTreeMap<ModelTurnId, FlushedModelTurn>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more