pub struct ConversationSession {
pub schema_version: SchemaVersion,
pub id: Uuid,
pub workflow: WorkflowKind,
pub status: SessionStatus,
pub steps: Vec<SessionStep>,
pub decisions: Vec<Decision>,
pub artifact_id: Option<String>,
pub started_at: DateTime<Utc>,
pub completed_at: Option<DateTime<Utc>>,
}Expand description
A conversation session record.
Records the steps, decisions, and context of a conversational artifact creation workflow. Stored for reuse in future generations.
Stored at .lexicon/conversations/<uuid>.json.
Fields§
§schema_version: SchemaVersion§id: Uuid§workflow: WorkflowKind§status: SessionStatus§steps: Vec<SessionStep>§decisions: Vec<Decision>§artifact_id: Option<String>The artifact ID produced by this session, if any.
started_at: DateTime<Utc>§completed_at: Option<DateTime<Utc>>Implementations§
Source§impl ConversationSession
impl ConversationSession
Sourcepub fn new(workflow: WorkflowKind) -> Self
pub fn new(workflow: WorkflowKind) -> Self
Create a new active session for the given workflow.
Trait Implementations§
Source§impl Clone for ConversationSession
impl Clone for ConversationSession
Source§fn clone(&self) -> ConversationSession
fn clone(&self) -> ConversationSession
Returns a duplicate of the value. Read more
1.0.0 · 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 ConversationSession
impl Debug for ConversationSession
Source§impl<'de> Deserialize<'de> for ConversationSession
impl<'de> Deserialize<'de> for ConversationSession
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ConversationSession
impl RefUnwindSafe for ConversationSession
impl Send for ConversationSession
impl Sync for ConversationSession
impl Unpin for ConversationSession
impl UnsafeUnpin for ConversationSession
impl UnwindSafe for ConversationSession
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