{"id":27825,"library":"ghostos-moss","title":"GhostOS Moss","description":"GhostOS Moss is a code-driven Python interface for LLMs, agents, and the GhostOS project. It provides a functional reactive programming model for building AI agents with Python code. Current version 0.3.7, requires Python >=3.10. This package is part of the GhostOS ecosystem and is under active development, with frequent releases on PyPI.","status":"active","version":"0.3.7","language":"python","source_language":"en","source_url":"https://github.com/ghost-in-moss/GhostOS","tags":["llm","agents","functional-reactive","ghostos"],"install":[{"cmd":"pip install ghostos-moss","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"wrong":"from ghostos.moss import Moss","symbol":"Moss","correct":"from ghostos_moss import Moss"}],"quickstart":{"code":"from ghostos.moss import Moss\nfrom ghostos.agent import MossAgent\n\n# Create a Moss instance\nmoss = Moss()\n\n# Define a simple agent\nclass MyAgent(MossAgent):\n    def respond(self, user_input: str) -> str:\n        return f\"Echo: {user_input}\"\n\n# Instantiate and run\nagent = MyAgent()\nprint(agent.respond(\"Hello\"))","lang":"python","description":"Initialize a Moss instance, create an agent by subclassing MossAgent, and define a respond method."},"warnings":[{"fix":"Ensure all functions decorated with `@moss_function` have a return type annotation, e.g., `def my_action() -> str:`.","message":"In version 0.3.0, the API for defining actions changed: `moss_function` now requires explicit return type annotations. Without them, the function will not be recognized as an action and may silently fail.","severity":"breaking","affected_versions":">=0.3.0"},{"fix":"Replace `class MyAction(MossAction): ...` with `@moss_function` decorator on a function.","message":"The `MossAction` class from `ghostos.moss.actions` is deprecated since 0.2.5 and will be removed in 0.4.0. Use `@moss_function` decorator instead.","severity":"deprecated","affected_versions":">=0.2.5, <0.4.0"},{"fix":"Use `from ghostos.agent import MossAgent`.","message":"Import `MossAgent` from `ghostos.agent`, not from `ghostos.moss`. The agent module is separate and contains the base class for agents.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.3.7':35 '3.10':38 'activ':50 'agent':14,29,58 'ai':28 'build':27 'code':8,32 'code-driven':7 'current':33 'develop':51 'driven':9 'ecosystem':46 'frequent':53 'function':22,60 'functional-react':59 'ghosto':1,3,17,45,62 'interfac':11 'llm':57 'llms':13 'model':25 'moss':2,4 'packag':40 'part':42 'program':24 'project':18 'provid':20 'pypi':56 'python':10,31,37 'reactiv':23,61 'releas':54 'requir':36 'version':34","created_at":"2026-05-09T05:52:17.089959+00:00","updated_at":"2026-05-09T05:52:17.089959+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/ghostos-moss/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["llm-agents","ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}