Skip to main content

Connect your agents

Beta
Check each hand-off in your workflow for changes in how a person is described. Works alongside the tracing and evaluation tools you already use.

Choose how to connect

  • REST API

    Available

    Send an input and output after any agent step.

  • Python SDK

    Under development

    Wrap a hand-off in one line inside your agent code.

  • OpenTelemetry traces

    Under development

    Read steps from traces you already export.

  • Tracing tools

    Under development

    Add drift findings next to your existing traces and evaluations.

1. Your API key

Loading your API access…

2. Check a hand-off

curl https://affectivehalo.ai/api/v1/checks \
  -H "x-api-key: $AFFECTIVEHALO_KEY" \
  -H "content-type: application/json" \
  -d '{
  "source": "I sometimes feel low in the evenings, mostly when I am on my own. My sister visits on Sundays and that helps.",
  "output": "Patient reports persistent low mood and is socially isolated."
}'

Send what the step received (source) and what it passed on (output). The texts here are synthetic; optional fields (profile, domain, register, offsets, return) are in the docs. Tagging a check with its run and step, so findings line up across a workflow, is under development.

3. Read the findings

{
  "flags": [
    {
      "id": "F001",
      "label": "to_fix",
      "dimension": "scope",
      "direction": "toward-more-frequent",
      "basis": null,
      "severity": 0.825,
      "harm_category": "Proportionality",
      "source": {
        "start": 0,
        "end": 65,
        "text": "I sometimes feel low in the evenings, mostly when I am on my own."
      },
      "output": {
        "start": 0,
        "end": 61,
        "text": "Patient reports persistent low mood and is socially isolated."
      },
      "display": {
        "plain_title": "Once became always",
        "plain_explanation": "The original describes one time. The AI makes it a pattern.",
        "priority": "review_first",
        "label_table_version": "labels-1.2"
      }
    }
  ],
  "counts": {
    "to_fix": 1,
    "to_check": 0,
    "wording": 0
  },
  "context": {
    "domain": "mental_health",
    "register": "auto",
    "register_used": "review_note",
    "offsets": "code_points"
  },
  "calibration_status": "calibrated",
  "profile": {
    "id": "standard",
    "name": "Standard profile",
    "version": "1.0"
  },
  "profile_version": "1.0",
  "ontology_version": "v2",
  "method_version": "v2.69-e9e8",
  "configuration": "d19e5d1c16e5f55d36832477039603c2147c7a34e50d7d832277aa1993426295",
  "sandbox": false,
  "elapsed_ms": 98,
  "summary": {
    "mode": "compare",
    "finding_count": 1,
    "headline": "1 place where the meaning about a person changed",
    "not_checked": [
      "dates",
      "doses",
      "numbers",
      "other facts"
    ],
    "processing_seconds": 0.1
  },
  "statement": "Flags are evidence aligned to the profile named. They are not a compliance determination and do not replace professional review.",
  "request_id": "req_1PXMx4A9hRPV"
}

The response the API returned for this request on 22 November 2026. request_id and elapsed_ms differ on every call. Next: the quick start and the sandbox.