pub struct LlmQuery {
pub id: QueryId,
pub prompt: String,
pub system: Option<String>,
pub max_tokens: u32,
pub grounded: bool,
pub underspecified: bool,
}Expand description
LLM request emitted during execution. Transport-agnostic (no channel, HTTP, or MCP Sampling details).
Fields§
§id: QueryId§prompt: String§system: Option<String>§max_tokens: u32§grounded: boolWhen true, the host should ground the response in external evidence (web search, code reading, documentation, etc.) rather than relying solely on LLM internal knowledge. The host decides the means.
underspecified: boolWhen true, the prompt’s preconditions depend on intent/goal definitions that exist outside the current context and cannot be inferred by the LLM. The host decides the resolution means (user query, RAG, DB lookup, delegated agent, etc.).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LlmQuery
impl<'de> Deserialize<'de> for LlmQuery
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 LlmQuery
impl RefUnwindSafe for LlmQuery
impl Send for LlmQuery
impl Sync for LlmQuery
impl Unpin for LlmQuery
impl UnsafeUnpin for LlmQuery
impl UnwindSafe for LlmQuery
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