myself 0.5.0

Myself is a Rust library for building conversational agents powered by OpenAI's language model, providing a simple Agent abstraction to manage interactions and memory.
Documentation
use dotenvy::dotenv;
use myself::sdk::agent::AgentBuilder;

#[tokio::main]
async fn main() {
    // Don't forget to create a .env file with the following content:
    // OPENAI_API_KEY=your_api_key
    dotenv().ok();

    let mut agent = AgentBuilder::new()
        .name("ChatBot".to_string())
        .default_constitution("A talkative chatbot conversation".to_string())
        .build_default()
        .await;

    let message = "Hello World".to_string();
    let (_, output) = agent.interact_default(&message).await.unwrap();

    println!("{}", output.content);
    // Hi there! What can I do for you today?
}