Expand description
Context injection: the configuration shared by the
ContextInjector plugin and the
MemoryManager’s injection, and the crate-internal engine that folds text into the latest
user message before a model call.
Structs§
- Injection
Config - Configuration common to every injection consumer: when to inject (
InjectionConfig). - Injection
Config Builder - Use builder syntax to set the inputs and finish with
build(). - Injection
Context - What an injection consumer receives on each model call (
InjectionContext): passed to the render callback and to a predicate trigger. - Render
Content - The callback that renders the text to inject (
renderContent):Ok(None)or blank text skips the call, and an error fails open (logged, injection skipped).
Enums§
- Injection
Trigger - When injection runs before a model call (
InjectionTrigger, plus the predicate form ofInjectionConfig.trigger).