pub struct PluginContext {
pub pulse_root: PathBuf,
pub pulse_name: String,
pub provider: Arc<dyn LmProvider>,
}Expand description
Context passed to plugin factories during construction.
Contains everything a plugin needs to initialize: filesystem root, pulse identity, and LLM access.
Fields§
§pulse_root: PathBufRoot directory of the pulse (e.g., /home/synth/pulse-null/synth).
pulse_name: StringPulse name from config (e.g., "Echo").
provider: Arc<dyn LmProvider>LLM provider for plugin use (summarization, analysis, etc.).
Auto Trait Implementations§
impl !RefUnwindSafe for PluginContext
impl !UnwindSafe for PluginContext
impl Freeze for PluginContext
impl Send for PluginContext
impl Sync for PluginContext
impl Unpin for PluginContext
impl UnsafeUnpin for PluginContext
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