Skip to main content

HistoryProvider

Trait HistoryProvider 

Source
pub trait HistoryProvider: ContextProvider { }
Expand description

A ContextProvider that also manages conversation history.

This is a marker trait (over and above ContextProvider::is_history_provider, which drives runtime detection via trait objects): implementing it documents that a type’s before_run/after_run are the ones responsible for a session’s conversation history, distinguishing it from a generic memory/RAG provider.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§