Raindrop integration for Strands Agents
Project description
raindrop-strands
Raindrop integration for Strands Agents (Python). Automatically captures agent invocations, model calls, tool usage, and token metrics via the Strands hook system.
Installation
pip install raindrop-strands strands-agents
strands-agents is a required dependency.
Usage
import os
from strands import Agent
from raindrop_strands import create_raindrop_strands
raindrop = create_raindrop_strands(
api_key=os.environ.get("RAINDROP_API_KEY"),
user_id="user_123",
convo_id="session_456",
)
agent = Agent(
model="us.amazon.nova-lite-v1:0",
system_prompt="You are a helpful assistant.",
)
raindrop["handler"].register_hooks(agent)
result = agent("What is the capital of France?")
print(result)
raindrop["flush"]()
Omitting api_key disables telemetry shipping (a warning is emitted) but does not crash your application.
API
create_raindrop_strands(api_key, user_id, convo_id)
Returns a dict with:
"handler"—RaindropStrandsHandlerinstance to register on agents"flush"— flush pending telemetry"shutdown"— flush and release resources
Testing
cd packages/strands-python
poetry install --with dev
pytest
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file raindrop_strands-0.0.1.tar.gz.
File metadata
- Download URL: raindrop_strands-0.0.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f186c1511070fee532507ab58e35587076ce0a9363884092d9594ee8c2fbad47
|
|
| MD5 |
9bf9579e64b082ffe19b2b64d261292c
|
|
| BLAKE2b-256 |
f28517733d66ac4411a08793a0220bda5a6278566dafaf927a90600867562f82
|
File details
Details for the file raindrop_strands-0.0.1-py3-none-any.whl.
File metadata
- Download URL: raindrop_strands-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d35964639fdd75d8fcbb808c5372b5c2a4e4522ef0b1e1d2a4704e2b8ac3cca7
|
|
| MD5 |
22eb96b7c958a61b158ddfcfe665a708
|
|
| BLAKE2b-256 |
5a3a76880aa396bbe415f12f55af1aed35d86e1f7f4acb2b56c11924f1654d84
|