Skip to content

bindings/python/moraine_conversations/README.md


     1 # moraine-conversations (Python)
     2  
     3 PyO3 + maturin bindings for `moraine-conversations`.
     4  
     5 ## Quick start
     6  
     7 ```bash
     8 cd bindings/python/moraine_conversations
     9 maturin develop
    10 ```
    11  
    12 ```python
    13 from moraine_conversations import ConversationClient
    14  
    15 client = ConversationClient(url="http://127.0.0.1:8123", database="moraine")
    16 print(client.search_conversations_json(query="agent tool use", limit=5))
    17 ```
    18  
    19 ## Smoke test (pytest)
    20  
    21 ```bash
    22 cd bindings/python/moraine_conversations
    23 python3 -m venv .venv
    24 source .venv/bin/activate
    25 pip install maturin pytest
    26 maturin develop
    27 pytest -q tests/test_smoke.py
    28 ```