Function cli_chatbot
Source pub async fn cli_chatbot(chatbot: impl Chat) -> Result<(), PromptError>
Expand description
Utility function to create a simple REPL CLI chatbot from a type that implements the
Chat
trait.
Where the Chatbot type takes an agent, this takes any type that implements the Chat trait.