Metadata-Version: 2.5
Name: carrybrain
Version: 0.1.0
Summary: Python client for the Carrybrain API: memories, rules and skills for AI agents
Project-URL: Homepage, https://carrybrain.org/docs/sdk
Project-URL: Repository, https://github.com/tanishq-khandelwal/carrybrain
License-Expression: MIT
License-File: LICENSE
Classifier: Programming Language :: Python :: 3
Classifier: Typing :: Typed
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# carrybrain

Python client for [Carrybrain](https://carrybrain.org): memories, rules and skills for AI agents. Standard library only, Python 3.10+, type-hinted.

```sh
pip install carrybrain
```

```python
from carrybrain import Carrybrain

# url and api_key default to CARRYBRAIN_URL and CARRYBRAIN_KEY.
cb = Carrybrain(repo="github.com/acme/api")

cb.memories.remember("Staging deploys run from the release branch")
hits = cb.memories.recall("what runs staging deploys?", limit=5)
rules = cb.rules.effective()
skill = cb.skills.get("deploy")
```

| Call | Does |
|---|---|
| `memories.remember(content, visibility=, team_id=, repo=)` | Save a memory (near-duplicates are updated in place) |
| `memories.recall(query, limit=, min_score=, repo=)` / `memories.list(...)` | Search by meaning / newest first |
| `memories.update(id, content=, ...)` / `memories.forget(id)` | Edit or delete |
| `rules.effective(repo=)` | The merged rules that apply to you |
| `rules.set(scope, key, content, team_id=, repo=, locked=)` / `rules.remove(id)` | Write or delete a rule |
| `skills.list()` / `skills.get(name)` / `skills.put(skill_md, scope="user")` / `skills.delete(id)` | Shared `SKILL.md` files |
| `me()` | The signed-in user |

Responses are plain dicts with the API's camelCase keys (see the [API reference](https://carrybrain.org/docs/api)). Errors raise `CarrybrainError` with `.status` and `.message`.
