You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

openai-agents-redis

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openai-agents-redis

Session management for OpenAI Agents SDK using Redis.

0.1.0
pipPyPI
Maintainers
1

🤖 OpenAI Agents Redis

Python 3.13+ License: MIT Redis OpenAI

Native OpenAI Agents SDK session management implementation using Redis as the persistence layer.

✨ Features

  • 🧠 Intelligent Agents: Built on OpenAI's powerful Agents SDK
  • Redis Integration: Lightning-fast caching and persistent storage
  • 🔄 Conversation Memory: Maintain context across interactions

🚀 Quick Start

Installation

# Using uv (recommended)
uv add openai-agents-redis

# Using pip
pip install openai-agents-redis

Basic Usage

from agents_redis.session import RedisSession

session = RedisSession(
    session_id=session_id, #Use your own logic to generate a session_id
    redis_url="redis://localhost:6379",
)

# Your code for defining an Agent
# ...

# Starting the runner passing the session

result = Runner.run_streamed(
    starting_agent=current_agent, input=agent_input, context=current_context, session=session
)

Development

Testing Requirements

🐳 Docker ⚡️ uv 🦾 OpenAI Agents SDK (optional) 🔑 OpenAI API Key (optional)

Running Tests

# Run all tests
uv run pytest

# Run with coverage
uv run pytest --cov

📋 Roadmap

  • Storing conversation context
  • Full text search
  • Vector similarity search & Hybrid Search
  • Built-in monitoring dashboard

Made with ❤️ by Rafael

⭐ Star us on GitHub!

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.