Registry / llm-agents / fhlmi
library0.46.0pypypiunverified

A Python client library for providing LLM responses to FutureHouse applications. Currently at version 0.46.0, targeting Python >=3.11. Under active development with frequent releases.

pip install fhlmi
INSTALL
IMPORT
SIG · FHLMI
F
fhlmi
llm-agentspythonv0.46.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LLMModel
✓ from fhlmi.lmi import LLMModel
✗ from fhlmi import FHLMIClient
EmbeddingModel
✓ from fhlmi.lmi import EmbeddingModel
✗ from fhlmi import FHLMIClient
LLMResult
✓ from fhlmi.lmi import LLMResult
✗ from fhlmi import FHLMIClient

Initialize client with API key and send a chat message.

from fhlmi import FHLMIClient import os client = FHLMIClient(api_key=os.environ.get('FHLMI_API_KEY', '')) response = client.chat([{"role": "user", "content": "Hello"}]) print(response)
Debug
Known issues
breakingThe `.chat()` method changed from returning plain text to returning a pydantic model in 0.40.0. Access `.content` for the response text.
fix
Use `response.content` instead of treating the response as a string.
affects: <0.40.0
deprecatedThe `model` parameter in `chat()` is deprecated as of 0.45.0. Use `model_name` instead.
fix
Replace `model=` with `model_name=`.
affects: >=0.45.0
gotchaThe client requires Python 3.11 or later. Installing on older Python versions will fail silently or produce cryptic errors.
fix
Ensure your runtime uses Python >=3.11.
affects: all
Upgrade
Version history
0.46.0latest on PyPI · released Apr 24, 2026
Audit
Dependencies
aiohttprequiredHTTP client for async requests
pydanticrequiredData validation and settings
Agent activity
23 hits · last 30 days
node
22
OpenAI (training)
1
Resources
fhlmi — pip install fhlmi · libregistry