pub struct ExtractRequest {
pub urls: Vec<String>,
pub prompt: Option<String>,
pub schema: Option<Value>,
pub llm_api_key: Option<String>,
pub llm_provider: Option<String>,
pub llm_model: Option<String>,
pub base_url: Option<String>,
pub basis: Option<bool>,
}Expand description
Native extract request. camelCase like every other v1 public type.
NOTE: no #[derive(Debug)] — llm_api_key is a secret and must never land
in a {:?} log line.
Fields§
§urls: Vec<String>§prompt: Option<String>Free-text extraction objective (LLM infers the shape). Wired into the
extractor’s extract.prompt slot — the field JSON extraction actually
reads (NOT summary_prompt, which only drives the summary format).
schema: Option<Value>JSON Schema constraining the output.
llm_api_key: Option<String>§llm_provider: Option<String>§llm_model: Option<String>§base_url: Option<String>§basis: Option<bool>Per-field attribution (Phase 2b). Parsed now; until 2b ships, true is
rejected so callers never believe an inert flag is honored.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ExtractRequest
impl<'de> Deserialize<'de> for ExtractRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExtractRequest
impl RefUnwindSafe for ExtractRequest
impl Send for ExtractRequest
impl Sync for ExtractRequest
impl Unpin for ExtractRequest
impl UnsafeUnpin for ExtractRequest
impl UnwindSafe for ExtractRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more