pub struct ExtractionRequest {
pub content: String,
pub targets: Vec<String>,
pub pedagogical_context: Option<String>,
pub skill_path: Option<String>,
pub learner_ui_language: String,
pub linguistic_background: Vec<LanguageLevel>,
pub user_prompt: Option<String>,
}Expand description
Generic extraction request
Fields§
§content: StringThe text/card JSON to extract features from.
targets: Vec<String>Target words to focus extraction on.
pedagogical_context: Option<String>Optional pedagogical context (replaces skill node instructions).
skill_path: Option<String>Optional skill/topic path for context.
learner_ui_language: StringLearner’s UI language (for pedagogical explanation).
linguistic_background: Vec<LanguageLevel>Learner’s linguistic background.
user_prompt: Option<String>Optional user-provided context.
Implementations§
Source§impl ExtractionRequest
impl ExtractionRequest
Sourcepub fn builder() -> ExtractionRequestBuilder
pub fn builder() -> ExtractionRequestBuilder
Create an instance of ExtractionRequest using the builder syntax
Auto Trait Implementations§
impl Freeze for ExtractionRequest
impl RefUnwindSafe for ExtractionRequest
impl Send for ExtractionRequest
impl Sync for ExtractionRequest
impl Unpin for ExtractionRequest
impl UnsafeUnpin for ExtractionRequest
impl UnwindSafe for ExtractionRequest
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