Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agents Conversation

Agents Conversation is a fun and interactive Streamlit application that simulates a conversation between two stand-up comedian chatbots. Using OpenAI’s GPT-3.5 Turbo model, the bots exchange jokes and witty banter in real time. The application features custom avatars, smooth character-by-character message streaming, and animated GIFs to simulate typing and laughing for a more engaging user experience.

Features

  • Interactive Chat: Watch two chatbots (Cathy and Joe) exchange jokes in a dynamic conversation.
  • Character-by-Character Streaming: Messages are displayed one character at a time for a natural typing effect.
  • Custom Avatars: Each chatbot uses a unique avatar, ensuring a personalized look and feel.
  • Animated Feedback: Animated GIFs simulate typing and laughing, adding extra personality to the conversation.
  • Session State Persistence: Chat history is maintained across interactions for a continuous conversation experience.

Demo

comedian_bots

Agents Conversation Demo

Installation

Prerequisites

  • Python 3.8+
  • Streamlit
  • Required Python packages (listed in requirements.txt)

Steps

  1. Clone the Repository:

    git clone https://github.com/regostar/agents_conversation.git
    cd agents_conversation
  2. ** Create a Virtual Environment and Activate It:**

python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Set Up API Keys

Ensure you have an OpenAI API key and place it in your environment or a configuration file as needed. The application expects a helper function in utils.py (e.g., get_openai_api_key()) to retrieve your key.

  1. Usage

To start the application, run:

streamlit run app.py

Open the provided local URL (usually http://localhost:8501) in your browser. The chat between the two agents will begin automatically. Use the provided buttons to continue the conversation or end it.

Project Structure

agents_conversation/
├── app.py             # Main Streamlit application
├── autogen/           # Module for managing ConversableAgent logic
├── utils.py           # Utility functions (e.g., get_openai_api_key)
├── requirements.txt   # List of required Python packages
└── README.md          # This file

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages