Skip to main content

A beautiful terminal chat interface for OpenAI agents

Project description

repl-chat

A beautiful terminal chat interface for OpenAI agents with rich markdown support and an elegant UI.

Installation

Install in development mode using uv:

uv pip install -e .

Usage

from repl_chat import start_chat
from agents import Agent

# Create your agent
agent = Agent(
    name="My Assistant",
    instructions="You are a helpful assistant that provides clear and concise answers.",
    model="gpt-4"
)

# Start the chat interface
start_chat(agent)

Features

  • 🎨 Beautiful terminal interface with rich markdown rendering
  • 🔄 Conversation continuity with response threading
  • ⌨️ Interactive commands:
    • q, quit, or exit - Quit the chat
    • n or new - Start a new conversation
  • 🤖 Works with any OpenAI Agent configuration
  • ⚡ Async support for responsive interactions

Requirements

  • Python 3.11+
  • openai-agents
  • prompt-toolkit
  • rich

Development

The package follows Python packaging best practices with a src/ layout for clean imports and development workflows.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_repl_chat-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_repl_chat-0.1.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file agent_repl_chat-0.1.0.tar.gz.

File metadata

  • Download URL: agent_repl_chat-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for agent_repl_chat-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7aa375670da33c21a04773593c0ec46f54254b6461ffa873c834bf074e96bf1a
MD5 09278d68f194c466a30f6aba47bdf61a
BLAKE2b-256 504849c9074cc5b88f286e9b806a53696f3b191436fb36ad142a6895e0981a4e

See more details on using hashes here.

File details

Details for the file agent_repl_chat-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_repl_chat-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9dddc2a82ff4f67d3a29feed4aaac16abc6a76b7d441f16481f102271c80bdcd
MD5 5bb10a5ccd5aee963702ec8cee5d7d05
BLAKE2b-256 887fa7f6e96892d8ca1bea482cf76f534a1a526d5a35463e4dc17a64ff8e83bb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page