ANCHOR SDK — monitor and self-correct your AI agents in 2 lines
Project description
ANCHOR SDK
Monitor and self-correct your AI agents in 2 lines of code.
Install
pip install anchor-sdk
Quick start
import anchor_sdk as anchor
anchor.init(
url="https://api.anchormonitor.com",
agent_id="my-agent",
task="Describe what your agent does",
sdk_key="sk-...", # from your ANCHOR dashboard
)
# Your existing agent code — unchanged.
# ANCHOR auto-monitors every OpenAI / Anthropic / LangChain call.
Get your SDK key at anchormonitor.com.
What it does
- Detects drift — vocabulary, semantic, latency, refusal, tool-call, and input distribution
- Self-corrects — injects a correction system message before the next LLM call
- Escalates — emails + Slack + PagerDuty when correction fails after 3 attempts
- Zero code changes — patches OpenAI, Anthropic, and LangChain automatically
Manual usage
# If you prefer explicit control:
result = anchor.watch("The agent's latest response text")
if result["correction_required"]:
print(result["correction_prompt"]) # inject this as a system message
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
anchor_sdk-0.1.2.tar.gz
(8.0 kB
view details)
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 anchor_sdk-0.1.2.tar.gz.
File metadata
- Download URL: anchor_sdk-0.1.2.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fabaea120faadfdaf9b1abbd33e1c56ec8962d90d95ee584482dd70051c170d5
|
|
| MD5 |
871dfad5d742aaffac4eeee7ae22f025
|
|
| BLAKE2b-256 |
2432a1dc8364363997179d3e6f7265013373ee5b330a0ddbfa1e4d8b7fabd92b
|
File details
Details for the file anchor_sdk-0.1.2-py3-none-any.whl.
File metadata
- Download URL: anchor_sdk-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be3833827e7bfed93661f310217fc43d2e470e1df9f43a2367923a320fdf124f
|
|
| MD5 |
38217ce4af3025285a4ccf006b875059
|
|
| BLAKE2b-256 |
d24c12e4e20f1530d6693983016d56a7fedef3f2d55ec210f388c12e5f747611
|