prompty 2.0.0-beta.3

Prompty is an asset class and format for LLM prompts
Documentation
// <auto-generated by typra-emitter>
// Code generated by Typra emitter; DO NOT EDIT.

#![allow(
    unused_imports,
    dead_code,
    non_camel_case_types,
    unused_variables,
    clippy::all
)]

use super::super::events::session_event::SessionEvent;

use super::super::events::session_summary::SessionSummary;

use super::super::events::turn_event::TurnEvent;

/// Persists typed events to a durable replay journal.
#[async_trait::async_trait]
pub trait EventJournalWriter: Send + Sync {
    /// Append a turn event to a durable replay journal
    fn append_turn(&self, turn_event: &TurnEvent) -> bool;
    /// Append a session event to a durable replay journal
    fn append_session(&self, session_event: &SessionEvent) -> bool;
    /// Finalize the journal with an optional session summary
    fn close(&self, summary: &Option<SessionSummary>) -> bool;
}