Fhaviary
raw JSON → 0.35.0 verified Sat May 09 auth: no python
A Gymnasium-based framework for training language model agents on constructive tasks. Version 0.35.0 provides environments, wrappers, and utilities for agent-environment interaction. Released monthly; supports Python >=3.11.
pip install fhaviary Common errors
error gymnasium.error.UnregisteredEnv: Environment `fhaviary-v0` not found. ↓
cause Environment ID was renamed to 'FHAviary-v0' in version 0.35.0.
fix
Replace env_id 'fhaviary-v0' with 'FHAviary-v0'.
error AttributeError: module 'fhaviary.env' has no attribute 'FHAviaryEnv' ↓
cause Import path changed; FHAviaryEnv is now at top-level fhaviary.
fix
Use 'from fhaviary import FHAviaryEnv' instead.
Warnings
breaking In version 0.35.0, the environment ID changed from 'fhaviary-v0' to 'FHAviary-v0'. Old IDs will raise a gymnasium error. ↓
fix Use env_id='FHAviary-v0' when calling make().
deprecated The function 'FHAviaryEnv.from_config' is deprecated in 0.35.0. Use 'make' with config dict instead. ↓
fix env = make('FHAviary-v0', config=config_dict)
gotcha doctest mode is not supported; attempting to run doctests will break. ↓
fix Use pytest instead of doctest for testing.
Imports
- FHAviaryEnv wrong
from fhaviary.env import FHAviaryEnvcorrectfrom fhaviary import FHAviaryEnv - make wrong
import gymnasium.makecorrectfrom fhaviary import make
Quickstart
from fhaviary import make
env = make('FHAviary-v0', api_key=os.environ.get('OPENAI_API_KEY', ''))
obs, info = env.reset()
print(obs)
env.close()