Crates.io | genauai-kernel |
lib.rs | genauai-kernel |
version | 0.0.2 |
source | src |
created_at | 2023-04-26 10:06:29.815089 |
updated_at | 2023-04-26 10:29:59.276321 |
description | Kernel library for Genau AI |
homepage | |
repository | https://github.com/genauai/kernel |
max_upload_size | |
id | 849247 |
size | 7,677 |
genauai-kernel
is a Rust library for building generative AI tools based on human feedback . It provides a set of APIs for managing conversations, saving and loading plans, and more.
Add genauai-kernel
to your project's Cargo.toml file:
[dependencies]
genauai-kernel = "0.0.1"
use genauai_kernel::{get_db, get_plan, reset_database, save_message, save_plan};
use rusqlite::Connection;
fn main() {
let conn = get_db();
let plan = get_plan(&conn).unwrap();
let message = "Hello, world!";
save_message(&conn, 1, "user", &message).unwrap();
let new_plan = Plan::default();
save_plan(&conn, 1, &new_plan).unwrap();
reset_database(&conn).unwrap();
}
Contributions are welcome! If you find a bug or want to suggest a new feature, please open an issue or submit a pull request.
genauai-kernel
is licensed under the MIT License. See LICENSE for details.