pub struct HttpQueryParser { /* private fields */ }Expand description
Query parser using external HTTP LLM service
Implementations§
Source§impl HttpQueryParser
impl HttpQueryParser
Sourcepub fn from_config(config: LLMServiceConfig) -> Result<Self>
pub fn from_config(config: LLMServiceConfig) -> Result<Self>
Create from configuration
Sourcepub async fn parse(&self, query: &str) -> Result<ParsedQuery>
pub async fn parse(&self, query: &str) -> Result<ParsedQuery>
Parse natural language query
Auto Trait Implementations§
impl Freeze for HttpQueryParser
impl !RefUnwindSafe for HttpQueryParser
impl Send for HttpQueryParser
impl Sync for HttpQueryParser
impl Unpin for HttpQueryParser
impl !UnwindSafe for HttpQueryParser
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