# raindrop-vertex-ai

Raindrop integration for Google Vertex AI / Gen AI (Python). Automatically captures `models.generate_content()` calls.

## Installation

```bash
pip install raindrop-vertex-ai google-genai
```

## Usage

```python
from raindrop_vertex_ai import create_raindrop_vertex_ai
from google import genai

raindrop = create_raindrop_vertex_ai(api_key="rk_...", user_id="user-123")
client = genai.Client(api_key="...")
wrapped = raindrop["wrap"](client)

response = wrapped.models.generate_content(model="gemini-2.0-flash", contents="Hello!")
print(response.text)

raindrop["shutdown"]()
```

## Options

| Option | Type | Default | Description |
|--------|------|---------|-------------|
| `api_key` | `str` | required | Raindrop API key |
| `user_id` | `str` | `None` | Associate all events with a user |
| `convo_id` | `str` | `None` | Group events into a conversation |

## Testing

```bash
cd packages/vertex-ai-python
pip install -e .
python -m pytest tests/ -v
```
