{"id":23246,"library":"amplifier-core","title":"Amplifier Core","description":"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.","status":"active","version":"1.4.1","language":"python","source_language":"en","source_url":"https://github.com/microsoft/amplifier-core","tags":["ai","agent-framework","rust","microsof","amplifier"],"install":[{"cmd":"pip install amplifier-core","lang":"bash","label":"Install from PyPI"},{"cmd":"pip install amplifier-core==1.4.1","lang":"bash","label":"Pin specific version"}],"dependencies":[{"reason":"Required for tensor/matrix operations in agent memory and embeddings.","package":"numpy","optional":false},{"reason":"Rust-Python bridge, but installed automatically with the package.","package":"pyo3","optional":true}],"imports":[{"note":"The top-level package is 'amplifier', not 'amplifier_core'.","wrong":"from amplifier_core import Agent","symbol":"Agent","correct":"from amplifier import Agent"},{"note":"Tool class is in the 'tools' submodule.","wrong":"from amplifier import Tool","symbol":"Tool","correct":"from amplifier.tools import Tool"},{"note":"Module is 'amplifier.memory'.","wrong":"from amplifier_core.memory import MemorySystem","symbol":"MemorySystem","correct":"from amplifier.memory import MemorySystem"}],"quickstart":{"code":"import os\nfrom amplifier import Agent, Tool\nfrom amplifier.tools import Tool\nfrom amplifier.memory import MemorySystem\n\n# Define a custom tool\ndef search(query: str) -> str:\n    return f\"Search result for {query}\"\n\nsearch_tool = Tool(name=\"search\", func=search)\n\n# Initialize agent\nagent = Agent(\n    name=\"my_agent\",\n    system_prompt=\"You are a helpful assistant.\",\n    tools=[search_tool],\n    memory=MemorySystem()\n)\n\n# Run the agent\nresponse = agent.run(\"What is the weather?\")\nprint(response)","lang":"python","description":"Demonstrates setting up a basic agent with a custom tool and memory system."},"warnings":[{"fix":"Replace all 'import amplifier_core' with 'import amplifier' and adjust submodule imports accordingly.","message":"In version 1.0.0, the import path changed from 'amplifier_core' to 'amplifier'. All code using 'amplifier_core' will break.","severity":"breaking","affected_versions":"<1.0.0"},{"fix":"Run 'pip install --upgrade pip setuptools' and consider installing 'maturin' if building from source.","message":"The 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.","severity":"gotcha","affected_versions":"all"},{"fix":"Replace 'AsyncAgent' with 'Agent' and call agent.run_async() if needed.","message":"The 'AsyncAgent' class is deprecated in version 1.4.0 and may be removed in future releases. Use 'Agent' with async methods instead.","severity":"deprecated","affected_versions":">=1.4.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Uninstall old package and reinstall: 'pip uninstall amplifier-core && pip install amplifier-core>=1.0.0'.","cause":"Installed the wrong package version (<1.0.0) or import path confusion with old 'amplifier_core' package.","error":"ModuleNotFoundError: No module named 'amplifier'"},{"fix":"Use 'from amplifier.tools import Tool'.","cause":"Tool class is in the 'amplifier.tools' submodule, not top-level.","error":"ImportError: cannot import name 'Tool' from 'amplifier'"},{"fix":"Provide a system prompt string when creating an Agent instance.","cause":"The Agent constructor requires the 'system_prompt' parameter (since v1.2.0).","error":"RuntimeError: Attempting to run an agent without setting system_prompt"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}