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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::sdk::interaction::{Interaction, InteractionBlock, WithAgent};
use async_trait::async_trait;

#[async_trait]
pub trait AgentBackend
where
    Self: Sized + Default + Clone,
{
    async fn predict_response(
        &mut self,
        interaction: Interaction<Self, WithAgent>,
        input: &InteractionBlock,
    ) -> InteractionBlock;
}