pub struct YamlAgentSessionStore;Expand description
YAML-backed session history shared by the TUI and provider hooks.
Trait Implementations§
Source§impl AgentSessionStore for YamlAgentSessionStore
impl AgentSessionStore for YamlAgentSessionStore
Source§fn sessions(&self) -> Result<Vec<AgentSession>, ConfigError>
fn sessions(&self) -> Result<Vec<AgentSession>, ConfigError>
Loads sessions in history order, oldest first. Read more
Source§fn state_file_path(&self) -> Result<Option<PathBuf>, ConfigError>
fn state_file_path(&self) -> Result<Option<PathBuf>, ConfigError>
Returns the durable state-file location inherited by provider hooks. Read more
Source§fn upsert(&self, session: &AgentSession) -> Result<(), ConfigError>
fn upsert(&self, session: &AgentSession) -> Result<(), ConfigError>
Inserts or replaces a session and makes it the newest history entry. Read more
Source§fn set_state(
&self,
id: &AgentSessionId,
state: AgentSessionState,
) -> Result<(), ConfigError>
fn set_state( &self, id: &AgentSessionId, state: AgentSessionState, ) -> Result<(), ConfigError>
Changes a session’s open/closed state and moves it to the end of history. Read more
Source§fn set_owner_process_id(
&self,
id: &AgentSessionId,
process_id: AgentProcessId,
process_start_token: Option<AgentProcessStartToken>,
wrapper_process_id: Option<AgentProcessId>,
) -> Result<(), ConfigError>
fn set_owner_process_id( &self, id: &AgentSessionId, process_id: AgentProcessId, process_start_token: Option<AgentProcessStartToken>, wrapper_process_id: Option<AgentProcessId>, ) -> Result<(), ConfigError>
Binds a session to the process currently launched on its behalf. Read more
Source§fn capture_native_id(
&self,
id: &AgentSessionId,
provider: AgentTool,
process_id: AgentProcessId,
parent_process_id: Option<AgentProcessId>,
native_id: NativeSessionId,
) -> Result<(), ConfigError>
fn capture_native_id( &self, id: &AgentSessionId, provider: AgentTool, process_id: AgentProcessId, parent_process_id: Option<AgentProcessId>, native_id: NativeSessionId, ) -> Result<(), ConfigError>
Records the latest identity reported by the session’s owning provider.
Same-provider conversation changes replace the previous identity. Read more
Source§impl Default for YamlAgentSessionStore
impl Default for YamlAgentSessionStore
Source§fn default() -> YamlAgentSessionStore
fn default() -> YamlAgentSessionStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for YamlAgentSessionStore
impl RefUnwindSafe for YamlAgentSessionStore
impl Send for YamlAgentSessionStore
impl Sync for YamlAgentSessionStore
impl Unpin for YamlAgentSessionStore
impl UnsafeUnpin for YamlAgentSessionStore
impl UnwindSafe for YamlAgentSessionStore
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more