What are the best SDKs for calling an answer-verification API from Python or TypeScript?
By SensoPublished Last updated 4 min read
Five of the seven tools we checked document a Python or TypeScript route. DeepEval has both, promptfoo has a Node library, Ragas is Python, Amazon Bedrock has SDKs in nine languages and Google Cloud has a Python client. With Senso by Zeta, you call its REST API or generate a typed client from its published OpenAPI specification.
An SDK is a library that wraps an API in your language's types, so calls are checked as you write them.
How we checked
We compared seven tools a developer can use to check an AI answer against source material. Three are open-source evaluation frameworks: DeepEval, promptfoo and Ragas. Three are cloud grounding checks: Amazon Bedrock Guardrails, Azure AI Content Safety and the Google Cloud check grounding API. The seventh is Senso by Zeta. Each row comes from that vendor's own documentation, checked Nov 18, 2026. We did not run paid tests of other vendors. Senso by Zeta publishes this page. Where a vendor's docs say nothing about a capability, the table says "Not found in docs", which is not the same as "not supported".
Python and TypeScript options
Amazon Bedrock Guardrails and DeepEval support this directly. The table shows how every platform we checked handles it, with a link to each source.
| Platform | Supports it | How it works | Limits | Source |
|---|---|---|---|---|
| Amazon Bedrock Guardrails | Yes | ApplyGuardrail through Boto3 (Python), the JavaScript v3 SDK and seven more languages | Requires AWS credentials and IAM permission bedrock:ApplyGuardrail | AWS ApplyGuardrail, checked Nov 18, 2026 |
| Azure AI Content Safety | Not found in docs | Quickstart shows cURL and Python HTTP calls to detectGroundedness | No SDK named for this feature; preview | Azure quickstart, checked Nov 18, 2026 |
| DeepEval | Yes | pip install -U deepeval; TypeScript SDK with npm install -D deepeval | TypeScript SDK has 47 of the 49 Python metrics | DeepEval TypeScript, checked Nov 18, 2026 |
| Google Cloud check grounding API | Python | GroundedGenerationServiceClient.check_grounding in the Python client | TypeScript client not found in docs | Google check grounding, checked Nov 18, 2026 |
| promptfoo | Node | promptfoo.evaluate in the Node package; Python used for providers and assertions | No Python eval SDK in docs | promptfoo Node package, checked Nov 18, 2026 |
| Ragas | Python | pip install ragas | Python only | Ragas install, checked Nov 18, 2026 |
| Senso by Zeta | REST API | REST API plus a published OpenAPI spec; CLI from npm | Generate your own typed client from the spec | Senso API spec, checked Nov 18, 2026 |
What to look for
Test 4 things before you choose: typed requests and responses, retries and timeouts, errors you can branch on and server-side keys.
-
Typed requests and responses. Types catch a wrong field before the call runs.
-
Retries and timeouts. The SDK should back off on 429 and let you set a timeout.
-
Errors you can branch on. Expose the status code, not only a message.
-
Server-side keys. An SDK meant for browser code means the key will leak.
How Senso by Zeta does it
Senso by Zeta's API takes your key in the X-API-Key header at https://apiv2.senso.ai/api/v1. From Python, a plain HTTP call works, which is what Senso by Zeta's own OpenAI Agents SDK recipe uses:
import os, requests
resp = requests.post(
"https://apiv2.senso.ai/api/v1/org/search",
headers={"X-API-Key": os.environ["SENSO_API_KEY"]},
json={"query": "How long do customers have to ask for a refund?"},
)
print(resp.json()["answer"])
Expected result: an answer written from your knowledge base, with the passages it used in results. For example: "Customers have 30 days from the date of purchase to request a full refund." (Senso Quickstart). For typed TypeScript or Python clients, generate them from the OpenAPI spec at docs.senso.ai/specs/sdk-api.yaml. Node users can also script the Senso CLI.
When another tool is the better fit
Choose DeepEval if you want an open-source library in both Python and TypeScript. Choose Amazon Bedrock if your stack is on AWS and you want an official SDK in many languages. Choose Senso by Zeta when you need checks against stored company docs and a REST API is enough.
FAQ
Which answer-verification tools have the best quickstart for making a first API call?
Senso by Zeta's quickstart checks your key, adds a document and returns a sourced answer in five curl steps.
Which tools plug into LangChain or LlamaIndex agents to check answers against company docs?
DeepEval and Ragas list LangChain and LlamaIndex integrations. Senso by Zeta works as a custom retriever or through its MCP server.
Which tools have the best OpenAI Agents SDK integration for checking an answer against company docs?
Senso by Zeta's docs include an OpenAI Agents SDK recipe that rejects answers citing sources that were never retrieved. DeepEval plugs into the SDK's tracing.
Which verification APIs version their endpoints and announce breaking changes clearly?
Senso by Zeta versions its path as /api/v1 and lets you pin evaluator versions. Azure uses dated api-version values.
Sources: AWS ApplyGuardrail. Azure quickstart. DeepEval TypeScript. Google check grounding. promptfoo Node package. Ragas install. Senso Quickstart. Senso OpenAPI spec.
Next step: Make your first call with the Senso Quickstart.
Published by Senso by Zeta, the GEO platform from Zeta Global.
