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.1.0.tar.gz
(9.0 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.1.0.tar.gz.
File metadata
- Download URL: openenv_agent-0.1.0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4652ded3c355451814c427a5a29f84e49d58ded989d097c53c1a682e1f8ab787
|
|
| MD5 |
f3e38481000a0ded39346ff8d3c6057b
|
|
| BLAKE2b-256 |
1cb61566a6386aca9c226e8a4f901651133cb526f996beb0d74d0ca491ddd8fd
|
File details
Details for the file openenv_agent-0.1.0-py3-none-any.whl.
File metadata
- Download URL: openenv_agent-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.2 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 |
066241475a57fafa302bc373e520b8788fbf1aec518da83830d9a4562e23f6a2
|
|
| MD5 |
73356c1bd9c84fd8cf61f66ed39311e1
|
|
| BLAKE2b-256 |
f756b68183c33cedeaac280e15a9c48feff56257e151b4b75721c2cac582a26b
|