alith_client/workflows/nlp/
mod.rs

1pub mod extract;
2
3use alith_interface::{llms::LLMBackend, requests::completion::CompletionRequest};
4use extract::Extract;
5use std::sync::Arc;
6
7pub struct Nlp {
8    pub base_req: CompletionRequest,
9}
10
11impl Nlp {
12    pub fn new(backend: Arc<LLMBackend>) -> Self {
13        Self {
14            base_req: CompletionRequest::new(backend),
15        }
16    }
17
18    pub fn extract(self) -> Extract {
19        Extract::new(self.base_req)
20    }
21}