pub struct Reviver { /* private fields */ }Expand description
Reviver for JSON objects.
The Reviver is responsible for transforming serialized LangChain objects back into their original form. It handles:
- Secret resolution (from secrets_map or environment)
- Namespace validation
- Type mapping (for backwards compatibility)
Implementations§
Source§impl Reviver
impl Reviver
Sourcepub fn new(config: ReviverConfig) -> Self
pub fn new(config: ReviverConfig) -> Self
Create a new Reviver with the given configuration.
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Create a new Reviver with default configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Reviver
impl RefUnwindSafe for Reviver
impl Send for Reviver
impl Sync for Reviver
impl Unpin for Reviver
impl UnwindSafe for Reviver
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