Anteroom
raw JSON → 1.174.0 verified Fri May 01 auth: no python
Anteroom is a Python library for managing AI conversations, providing a unified interface for streaming, history, and tool calls. Current version is 1.174.0, with frequent releases.
pip install anteroom Common errors
error AttributeError: module 'anteroom' has no attribute 'Anteroom' ↓
cause You imported the package with `import anteroom` but tried to use `anteroom.Anteroom` without the correct from import.
fix
Use
from anteroom import Anteroom. error AttributeError: 'Anteroom' object has no attribute 'send' ↓
cause You are using `send()` method which was renamed to `chat()` in version 1.170.0.
fix
Use
anteroom.chat("your message"). Warnings
breaking In version 1.170.0, the `send` method was renamed to `chat`. Using `send` will raise AttributeError. ↓
fix Use `anteroom.chat("Hello")` instead of `anteroom.send("Hello")`.
gotcha API keys are not automatically loaded; you must set `ANTEROOM_API_KEY` environment variable or pass it to the constructor. ↓
fix Set `os.environ['ANTEROOM_API_KEY'] = '...'` or pass `api_key='...'` to `Anteroom()`.
deprecated The `async` mode is deprecated as of 1.165.0 and will be removed in a future release. ↓
fix Use synchronous calls; for async, consider using `asyncio.to_thread`.
Imports
- Anteroom wrong
import anteroomcorrectfrom anteroom import Anteroom
Quickstart
from anteroom import Anteroom
import os
os.environ.setdefault('ANTEROOM_API_KEY', 'your-api-key')
anteroom = Anteroom()
response = anteroom.send("Hello, world!")
print(response.text)