Agent client for OpenEnv environments - connects RL agents to OpenEnv servers for inference and training
Project description
OpenEnv Agent
Python client library for connecting RL agents to OpenEnv servers.
Installation
pip install openenv-agent
Quick Start
from openenv_agent import OpenEnvClient, ModerationAgent
# Connect to an OpenEnv server
client = OpenEnvClient(base_url="http://localhost:8000")
# Reset environment
obs = client.reset()
# Use the moderation agent
agent = ModerationAgent()
action = agent.predict(obs)
# Step the environment
next_obs, reward, done, info = client.step(action)
CLI Usage
# Run agent against a server
openenv-agent run http://localhost:8000
# Interactive mode
openenv-agent interactive http://localhost:8000
# Evaluate on a dataset
openenv-agent eval http://localhost:8000 --dataset ./data.json
Features
- Async/sync OpenEnv client with Gymnasium-style API
- Built-in ModerationAgent for content moderation environments
- Environment loader from openenv.yaml configs
- CLI tool for easy server interaction
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
openenv_agent-0.2.0.tar.gz
(9.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openenv_agent-0.2.0.tar.gz.
File metadata
- Download URL: openenv_agent-0.2.0.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84b962c1e2161b544df1f5de302f33bb0e3e0d83f9201a3a4fc1daf49eee7819
|
|
| MD5 |
d8a3af4cd3b4fa630d7d07288f327d71
|
|
| BLAKE2b-256 |
fd6ce955e2047349e540a58967ba7e06c703380f3d504cbd7f0e8d3637df1541
|
File details
Details for the file openenv_agent-0.2.0-py3-none-any.whl.
File metadata
- Download URL: openenv_agent-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d47db61f6f622e267893a6a60c31d7f1f002e58596d3098afadaaa105f8d62d
|
|
| MD5 |
eb56f39160b15cbf1cce0c6a553029e9
|
|
| BLAKE2b-256 |
7f192bb95d73730e7ef42ce4019012dd6323aadfce095cbe103d13e1e7071d63
|