Registry / llm-agents / simile

simile

JSON →
library0.5.4pypypi✓ verified 88d ago

A Python SDK for interfacing with Simile AI agents in simulations. Version 0.5.4, pre-1.0 rapid development.

pip install simile
INSTALL
IMPORT
SIG · SIMILE
S
simile
llm-agentspythonv0.5.4
Install
9.0s avg
Import
745ms
Disk
136MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.5.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.606s · 135.7MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 9.0s · import 0.586s · 131MB
136MB installed
● package 136MB
Code
Verified usage

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

Agent
✓ from simile import Agent
✗ from simile.agent import Agent
Top-level import changed in 0.4.0; submodule import no longer works.
Simulation
✓ from simile import Simulation
✗ from simile.simulation import Simulation
Simulation is now exported at package level.
AgentConfig
✓ from simile import AgentConfig
Used to configure agent personality and knowledge base.

Initialize a Simile agent and run a simple simulation.

from simile import Agent, Simulation # Create an agent agent = Agent( name="CustomerBot", api_key=os.environ.get("SIMILE_API_KEY", ""), model="gpt-4" ) # Create a simulation sim = Simulation(agents=[agent]) # Run a conversation response = sim.run("Hello, how are you?") print(response)
Debug
Known issues
breakingIn v0.5.0, the import paths were flattened. `from simile import Agent` replaces `from simile.agent import Agent`. Old imports will break.
fix
Use top-level imports: `from simile import Agent, Simulation`.
affects: >=0.5.0
gotchaAPI key must be set; either via `SIMILE_API_KEY` environment variable or `api_key` parameter. If missing, SDK will raise an `AuthError`.
fix
Set `SIMILE_API_KEY` env var or pass `api_key` explicitly.
affects: >=0.4.0
deprecatedThe `model` parameter in `Agent` is deprecated since 0.5.2. Use `agent_config` with `AgentConfig` instead.
fix
Use `AgentConfig(model='gpt-4')` and pass it to `Agent(config=...)`.
affects: >=0.5.0
Errors
Common errors & fixes
ImportError: cannot import name 'Agent' from 'simile.agent'
Import path changed in v0.5.0.
fix
Use `from simile import Agent`.
AuthError: No API key provided
Missing or empty SIMILE_API_KEY environment variable.
fix
Set the environment variable `SIMILE_API_KEY` or pass `api_key` to Agent constructor.
TypeError: Agent.__init__() got an unexpected keyword argument 'model'
`model` parameter removed in 0.6.0 (future).
fix
Use `AgentConfig(model='gpt-4')` and pass as `config` to Agent.
Upgrade
Version history
0.5.4latest on PyPI · released Jan 22, 2026
Audit
Dependencies
httpxrequiredHTTP client for API calls
pydanticrequiredData validation
Agent activity
29 hits · last 30 days
node
26
OpenAI (training)
1
Resources
simile — pip install simile · libregistry