pub struct AskQuery {Show 14 fields
pub explain: bool,
pub question: String,
pub question_param: Option<usize>,
pub provider: Option<String>,
pub model: Option<String>,
pub depth: Option<usize>,
pub limit: Option<usize>,
pub min_score: Option<f32>,
pub collection: Option<String>,
pub temperature: Option<f32>,
pub seed: Option<u64>,
pub strict: bool,
pub stream: bool,
pub cache: AskCacheClause,
}Expand description
ASK ‘question’ [USING provider] [MODEL ‘model’] [DEPTH n] [LIMIT n] [MIN_SCORE x] [COLLECTION col] [TEMPERATURE x] [SEED n] [STRICT ON|OFF] [STREAM] [CACHE TTL ‘5m’ | NOCACHE]
temperature and seed are per-query overrides resolved by the
DeterminismDecider (issue #400). The parser merely surfaces the
requested values; capability-based dropping happens at decide time.
Fields§
§explain: boolEXPLAIN ASK '...' returns the retrieval/provider/cost plan
without making the LLM call.
question: String§question_param: Option<usize>Optional $N / ? parameter slot for the question text.
provider: Option<String>§model: Option<String>§depth: Option<usize>§limit: Option<usize>§min_score: Option<f32>§collection: Option<String>§temperature: Option<f32>Per-query temperature override (ASK '...' TEMPERATURE 0.7).
None means fall back to ask.default_temperature.
seed: Option<u64>Per-query seed override (ASK '...' SEED 42). None means the
decider derives one from hash(question + sources_fingerprint).
strict: boolStrict citation validation is on by default. STRICT OFF keeps
citation diagnostics as warnings and skips retry/error handling.
stream: boolHTTP-only SSE response requested via ASK '...' STREAM.
cache: AskCacheClausePer-query answer-cache override.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AskQuery
impl RefUnwindSafe for AskQuery
impl Send for AskQuery
impl Sync for AskQuery
impl Unpin for AskQuery
impl UnsafeUnpin for AskQuery
impl UnwindSafe for AskQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request