pub struct SessionExportState {
pub system_prompt: String,
pub tools: Vec<ToolInfo>,
}Expand description
Optional live-agent data unavailable when exporting an arbitrary file.
Fields§
§system_prompt: StringSystem prompt active for the session.
tools: Vec<ToolInfo>Tools active for the session.
Implementations§
Source§impl SessionExportState
impl SessionExportState
Sourcepub fn from_agent_state(state: &AgentState) -> Self
pub fn from_agent_state(state: &AgentState) -> Self
Capture the exportable subset of mutable agent state.
Sourcepub fn from_agent_snapshot(state: &AgentStateSnapshot) -> Self
pub fn from_agent_snapshot(state: &AgentStateSnapshot) -> Self
Capture the exportable subset of an immutable state snapshot.
Trait Implementations§
Source§impl Clone for SessionExportState
impl Clone for SessionExportState
Source§fn clone(&self) -> SessionExportState
fn clone(&self) -> SessionExportState
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 SessionExportState
impl Debug for SessionExportState
Source§impl Default for SessionExportState
impl Default for SessionExportState
Source§fn default() -> SessionExportState
fn default() -> SessionExportState
Returns the “default value” for a type. Read more
Source§impl PartialEq for SessionExportState
impl PartialEq for SessionExportState
impl StructuralPartialEq for SessionExportState
Auto Trait Implementations§
impl Freeze for SessionExportState
impl RefUnwindSafe for SessionExportState
impl Send for SessionExportState
impl Sync for SessionExportState
impl Unpin for SessionExportState
impl UnsafeUnpin for SessionExportState
impl UnwindSafe for SessionExportState
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreCreates a shared type from an unshared type.