pub struct LlmPrompt {
pub system_text: String,
pub user_text: String,
pub smiles_analysis: Option<SmilesClassification>,
}Expand description
Input passed to LlmClassifier::classify.
Contains pre-built prompt text as well as structured SMILES analysis for implementations that want to build a custom prompt.
Fields§
§system_text: StringPre-built system prompt (role + format instructions + confidence guide).
user_text: StringPre-built user message (all product identifiers, physical description, and SMILES functional-group hints if available).
smiles_analysis: Option<SmilesClassification>SMILES-based pre-classification, if a SMILES string was available. Useful for building custom prompts or for post-call chapter validation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LlmPrompt
impl RefUnwindSafe for LlmPrompt
impl Send for LlmPrompt
impl Sync for LlmPrompt
impl Unpin for LlmPrompt
impl UnsafeUnpin for LlmPrompt
impl UnwindSafe for LlmPrompt
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