pub struct LLMContextResponse {
pub query: String,
pub chunks: Vec<ContextChunk>,
pub sources: Vec<String>,
}Expand description
LLM-optimised context response from web search.
Unlike SearchContextResponse, this returns simple string sources
and is the type returned by the Go SDK’s SearchContext method.
Fields§
§query: StringOriginal search query.
chunks: Vec<ContextChunk>Content chunks suitable for LLM consumption.
sources: Vec<String>Source URLs used.
Trait Implementations§
Source§impl Clone for LLMContextResponse
impl Clone for LLMContextResponse
Source§fn clone(&self) -> LLMContextResponse
fn clone(&self) -> LLMContextResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LLMContextResponse
impl Debug for LLMContextResponse
Source§impl<'de> Deserialize<'de> for LLMContextResponse
impl<'de> Deserialize<'de> for LLMContextResponse
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 LLMContextResponse
impl RefUnwindSafe for LLMContextResponse
impl Send for LLMContextResponse
impl Sync for LLMContextResponse
impl Unpin for LLMContextResponse
impl UnsafeUnpin for LLMContextResponse
impl UnwindSafe for LLMContextResponse
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