pub struct SessionHistoryIntegration;Implementations§
Source§impl SessionHistoryIntegration
impl SessionHistoryIntegration
pub fn create_session( path: impl AsRef<Path>, metadata: SessionMetadata, ) -> Result<Session>
pub fn open_session( path: impl AsRef<Path>, metadata: SessionMetadata, default_provider_model: Option<&str>, estimator: Option<ProviderCostEstimator>, ) -> Result<Session>
pub fn replay( metadata: SessionMetadata, log: &SessionLog, default_provider_model: Option<&str>, estimator: Option<ProviderCostEstimator>, ) -> Result<Chatend>
pub fn legacy_provider_cost_summary_for_archive( archive: &Value, default_provider_model: Option<&str>, estimator: ProviderCostEstimator, ) -> Result<ProviderCostSummary>
Auto Trait Implementations§
impl Freeze for SessionHistoryIntegration
impl RefUnwindSafe for SessionHistoryIntegration
impl Send for SessionHistoryIntegration
impl Sync for SessionHistoryIntegration
impl Unpin for SessionHistoryIntegration
impl UnsafeUnpin for SessionHistoryIntegration
impl UnwindSafe for SessionHistoryIntegration
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