Metadata-Version: 2.4
Name: mimori-sdk
Version: 0.1.0
Summary: Python SDK for sending AI agent telemetry to MIMORI
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.31.0
Provides-Extra: langchain
Requires-Dist: langchain-core>=0.2.0; extra == "langchain"
Provides-Extra: dev
Requires-Dist: black>=24.0.0; extra == "dev"
Requires-Dist: pytest>=8.0.0; extra == "dev"
Requires-Dist: responses>=0.25.0; extra == "dev"

# MIMORI SDK

Python package for sending LangChain and manual agent telemetry to MIMORI.

## LangChain

```python
from MIMORI import MIMORIHandler

handler = MIMORIHandler(
    api_key="sx_live_...",
    agent_name="customer-support-bot",
    api_url="http://localhost:3000",
)

agent_executor = AgentExecutor(agent=agent, tools=tools, callbacks=[handler])
```

## Manual Logging

```python
from MIMORI import log_event

log_event(
    api_key="sx_live_...",
    agent_name="custom-agent",
    event_type="manual",
    payload={"message": "agent started"},
    api_url="http://localhost:3000",
)
```

The SDK batches telemetry in a background thread and fails open if MIMORI is unreachable.
