pub struct PluginInput<'a> {
pub original_request: &'a LlmRequest,
pub rewritten_request: &'a LlmRequest,
pub prompt_ir: &'a PromptIR,
pub intent_bundle: &'a OptimizationIntentBundle,
pub agent_identity: &'a AgentIdentity,
}Expand description
Input data provided to a plugin for translation.
All fields are borrowed references to avoid unnecessary cloning.
The lifetime 'a ties the input to the caller’s data.
Fields§
§original_request: &'a LlmRequestThe original (pre-rewrite) request.
rewritten_request: &'a LlmRequestThe rewritten request (may be identical to original in early phases).
prompt_ir: &'a PromptIRThe Prompt IR decomposition of the request.
intent_bundle: &'a OptimizationIntentBundleThe optimization intent bundle from the policy engine.
agent_identity: &'a AgentIdentityThe agent identity for context.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PluginInput<'a>
impl<'a> RefUnwindSafe for PluginInput<'a>
impl<'a> Send for PluginInput<'a>
impl<'a> Sync for PluginInput<'a>
impl<'a> Unpin for PluginInput<'a>
impl<'a> UnsafeUnpin for PluginInput<'a>
impl<'a> UnwindSafe for PluginInput<'a>
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