Metadata-Version: 2.4
Name: agentmuru
Version: 0.1.0
Summary: A Python-native runtime and workspace for observable, human-governed AI applications.
Project-URL: Homepage, https://github.com/AjayAJ2000/AgentMuru
Project-URL: Documentation, https://ajayaj2000.github.io/AgentMuru/
Project-URL: Repository, https://github.com/AjayAJ2000/AgentMuru
Project-URL: Issues, https://github.com/AjayAJ2000/AgentMuru/issues
Author: AgentMuru Contributors
License: MIT License
        
        Copyright (c) 2026 AgentMuru Contributors
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: agents,ai,human-in-the-loop,observability,runtime,tools,workflows
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Requires-Python: >=3.10
Requires-Dist: fastapi>=0.110.0
Requires-Dist: python-dotenv>=1.2.2
Requires-Dist: pyyaml>=6.0.0
Requires-Dist: starlette>=0.37.0
Requires-Dist: typer>=0.12.0
Requires-Dist: uvicorn[standard]>=0.29.0
Requires-Dist: websockets>=12.0
Provides-Extra: all
Requires-Dist: databricks-sdk>=0.20.0; extra == 'all'
Requires-Dist: databricks-sql-connector>=3.0.0; extra == 'all'
Requires-Dist: httpx>=0.27.0; extra == 'all'
Requires-Dist: mkdocs-material>=9.6.0; extra == 'all'
Requires-Dist: mkdocs>=1.6.0; extra == 'all'
Requires-Dist: mypy>=1.10.0; extra == 'all'
Requires-Dist: pandas>=2.0.0; extra == 'all'
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'all'
Requires-Dist: pytest>=9.0.3; extra == 'all'
Requires-Dist: ruff>=0.4.0; extra == 'all'
Requires-Dist: tomli>=2.0.0; (python_version < '3.11') and extra == 'all'
Provides-Extra: databricks
Requires-Dist: databricks-sdk>=0.20.0; extra == 'databricks'
Requires-Dist: databricks-sql-connector>=3.0.0; extra == 'databricks'
Requires-Dist: pandas>=2.0.0; extra == 'databricks'
Provides-Extra: dev
Requires-Dist: httpx>=0.27.0; extra == 'dev'
Requires-Dist: mypy>=1.10.0; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
Requires-Dist: pytest>=9.0.3; extra == 'dev'
Requires-Dist: ruff>=0.4.0; extra == 'dev'
Requires-Dist: tomli>=2.0.0; (python_version < '3.11') and extra == 'dev'
Provides-Extra: docs
Requires-Dist: mkdocs-material>=9.6.0; extra == 'docs'
Requires-Dist: mkdocs>=1.6.0; extra == 'docs'
Description-Content-Type: text/markdown

# AgentMuru

[![PyPI](https://img.shields.io/pypi/v/agentmuru?label=PyPI)](https://pypi.org/project/agentmuru/)
[![Python](https://img.shields.io/pypi/pyversions/agentmuru)](https://pypi.org/project/agentmuru/)
[![CI](https://github.com/AjayAJ2000/AgentMuru/actions/workflows/ci.yml/badge.svg)](https://github.com/AjayAJ2000/AgentMuru/actions/workflows/ci.yml)
[![Documentation](https://img.shields.io/badge/docs-online-5b5bd6)](https://ajayaj2000.github.io/AgentMuru/)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

AgentMuru is a Python-native runtime and workspace for building observable,
human-governed AI applications. Agents, tools, events, sessions, approvals,
artifacts, workflows, and traces are the application. Muru Workspace is their UI.

```python
from agentmuru import Agent, Application, FakeModel, tool

@tool(permission="customer.read")
def lookup_customer(customer_id: str) -> dict[str, str]:
    return {"customer_id": customer_id, "status": "active"}

agent = Agent(
    name="customer-intelligence",
    instructions="Investigate customer questions using approved tools.",
    model=FakeModel.responses("The customer is active."),
    tools=(lookup_customer,),
    permissions=frozenset({"customer.read"}),
)

application = Application(agent=agent, title="Customer Intelligence")

if __name__ == "__main__":
    application.run()
```

Open `http://127.0.0.1:8000` to use Muru Workspace.

## Why AgentMuru

- Provider-neutral streaming model interface with a deterministic fake provider.
- Typed, ordered runtime events with replay and reconnect cursors.
- Explicit sessions, messages, runs, artifacts, approvals, usage, and traces.
- Type-derived tools with permissions, risk, timeout, retries, and redaction.
- Resumable human approval before dangerous tool execution.
- Deterministic workflows and typed agent handoffs without orchestration theater.
- FastAPI HTTP/WebSocket protocol and a purpose-built React workspace.
- Optional Databricks adapters without Databricks coupling in the runtime core.

## Install and run

```powershell
python -m pip install agentmuru
muru doctor
```

Create and run a project:

```powershell
muru init my-agent --name "My Agent"
cd my-agent
muru dev app:application
```

Open `http://127.0.0.1:8000` to use Muru Workspace. Read the complete
[AgentMuru documentation](https://ajayaj2000.github.io/AgentMuru/) for runtime,
tool, approval, integration, and deployment guides.

For source development:

```powershell
git clone https://github.com/AjayAJ2000/AgentMuru.git
cd AgentMuru
python -m pip install -e ".[dev,docs]"
muru run examples.hello_agent:application
```

## Runtime flow

```text
User objective
  -> AgentMuru Runtime
  -> model stream / tool request
  -> permission and optional approval
  -> tool result / artifact
  -> ordered events and trace
  -> Muru Workspace projection
```

## Security defaults

Tool permissions are deny-by-default when a capability is declared but not granted.
High-risk and explicitly gated tools pause before execution. Sensitive arguments are
redacted from public events. The server enforces session ownership, payload limits,
trusted hosts, optional origin allowlists, and safe error payloads. Application owners
remain responsible for provider credentials, durable store encryption, deployment auth,
and sandboxing untrusted tool code.

## Commands

```powershell
python -m pytest -q
python -m ruff check agentmuru tests
python -m mypy agentmuru
cd frontend
npm test -- --run
npm run typecheck
npm run lint
npm run build
```

See [https://ajayaj2000.github.io/AgentMuru/](https://ajayaj2000.github.io/AgentMuru/),
the [architecture](docs/architecture/target-state.md), and the
[migration guide](docs/migration-from-legacy-ui.md).

## Status

AgentMuru is an alpha release. The in-memory stores and `FakeModel` are complete local
implementations. Durable stores, production model providers, MCP clients, and remote
workflow workers are extension interfaces until concrete adapters are added and verified.

License: MIT.
