mini_langchain_core 0.1.0

A low-cost, cross-language LangChain implementation
Documentation
1
2
3
4
5
6
7
8
use async_trait::async_trait;
use anyhow::Result;

#[async_trait]
pub trait LLM: Send + Sync {
    /// Generate a response solely based on the prompt.
    async fn generate(&self, prompt: &str) -> Result<String>;
}