{"id":27128,"library":"mack","title":"mack","description":"mack is a Python library for building and managing AI agents. The current version is 0.5.0, with a pre-1.0 release cadence indicating rapid development.","status":"active","version":"0.5.0","language":"python","source_language":"en","source_url":"https://github.com/mack-ai/mack","tags":["ai","agents","llm","mack"],"install":[{"cmd":"pip install mack","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"The correct top-level import is 'from mack import Agent'.","wrong":"from mack.agent import Agent","symbol":"Agent","correct":"from mack import Agent"},{"note":"Tools are imported directly from mack, not a submodule.","wrong":"from mack.tools import Tool","symbol":"Tool","correct":"from mack import Tool"}],"quickstart":{"code":"from mack import Agent\nimport os\n\nagent = Agent(\n    api_key=os.environ.get('MACK_API_KEY', ''),\n    model='gpt-4'\n)\nresponse = agent.run('Hello, who are you?')\nprint(response)","lang":"python","description":"Basic usage of mack: create an Agent with an API key and run a prompt."},"warnings":[{"fix":"Set MACK_API_KEY environment variable or pass api_key parameter.","message":"API key is required; will raise error if not set.","severity":"breaking","affected_versions":"0.x"},{"fix":"Use Agent class with run method instead.","message":"The old 'mack.run' function is deprecated in favor of Agent.run.","severity":"deprecated","affected_versions":"<0.5.0"},{"fix":"Use 'from mack import Agent' instead of 'from mack.agent import Agent'.","message":"Imports changed from submodules to top-level in 0.5.0.","severity":"gotcha","affected_versions":">=0.5.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Upgrade to 0.5.0+ with 'pip install --upgrade mack'.","cause":"Version <0.5.0 where Agent was not exported at top level.","error":"ImportError: cannot import name 'Agent' from 'mack'"},{"fix":"Set MACK_API_KEY environment variable or pass api_key to Agent constructor.","cause":"Missing or empty API key.","error":"mack.exceptions.AuthenticationError: API key not provided"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}