promptune 0.1.2

A tiny tool to auto-augment prompts programmatically
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use promptune::{Config, Prompter};

#[tokio::main]
async fn main() -> promptune::Result<()> {
    let config = Config::from_env()?;

    let instruction = "you are a rust instructor";
    let prompter = Prompter::new(instruction, "Rust_signature", &config).await?;

    println!("Initial prompt: {}", instruction);
    println!("Augmented prompt: {}", prompter.get());

    Ok(())
}