Registry / llm-agents / amplifier-core

amplifier-core

JSON →
library1.4.1pypypi✓ verified 47d ago

A Rust kernel with Python bindings for the Amplifier modular AI agent framework, providing high-performance agent execution, tool management, and memory systems. Current version: 1.4.1, requires Python >=3.11. Release cadence is irregular, primarily driven by Microsoft Research.

llm-agentsai-ml
pip install amplifier-core
Install & Compatibility
Where this runs
tested against v1.6.0 · 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
glibc
py 3.10
✕ build_error
✕ build_error
py 3.11
✕ build_error
✓ 4.45s
py 3.12
✕ build_error
✓ 3.95s
py 3.13
✕ build_error
✓ 3.3s
py 3.9
✕ build_error
✕ build_error
54MB installed
● package 54MB
Code
Verified usage

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

AmplifierSession
from amplifier_core import AmplifierSession
from amplifier import Agent
ChatRequest
from amplifier_core import ChatRequest
ChatResponse
from amplifier_core import ChatResponse

Demonstrates setting up a basic agent with a custom tool and memory system.

import os from amplifier import Agent, Tool from amplifier.tools import Tool from amplifier.memory import MemorySystem # Define a custom tool def search(query: str) -> str: return f"Search result for {query}" search_tool = Tool(name="search", func=search) # Initialize agent agent = Agent( name="my_agent", system_prompt="You are a helpful assistant.", tools=[search_tool], memory=MemorySystem() ) # Run the agent response = agent.run("What is the weather?") print(response)
Debug
Known issues
breakingIn version 1.0.0, the import path changed from 'amplifier_core' to 'amplifier'. All code using 'amplifier_core' will break.
fix
Replace all 'import amplifier_core' with 'import amplifier' and adjust submodule imports accordingly.
affects: <1.0.0
gotchaThe library uses Rust for performance; on some platforms (e.g., M1/M2 Macs) you may need to install Rust toolchain or use pre-built wheels. If installation fails, ensure you have the latest pip and setuptools.
fix
Run 'pip install --upgrade pip setuptools' and consider installing 'maturin' if building from source.
affects: all
deprecatedThe 'AsyncAgent' class is deprecated in version 1.4.0 and may be removed in future releases. Use 'Agent' with async methods instead.
fix
Replace 'AsyncAgent' with 'Agent' and call agent.run_async() if needed.
affects: >=1.4.0
Upgrade
Version history
1.6.0latest on PyPI
Audit
Dependencies
numpyrequiredRequired for tensor/matrix operations in agent memory and embeddings.
pyo3optionalRust-Python bridge, but installed automatically with the package.
Agent activity
97 hits · last 30 days
node
18
bytedance
4
ahrefsbot
3
bingbot
1
amazonbot
1
Resources