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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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.3-py3-none-any.whl.
File metadata
- Download URL: anchor_sdk-0.1.3-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd197b9d1640f6743071eb8551e0bbf39604f4fed6e932df66cdc50759a74282
|
|
| MD5 |
ab1e2cd3a9a7b566190028098cbb6ba9
|
|
| BLAKE2b-256 |
450a8719932da227d02260ab20ba34f5c967cb8d7c8eceb63d033b1fd48b372f
|