Skip to main content

AI Response Ops — Python SDK

Python SDK for the AI Response Ops API. Process security questionnaires through AI — KB matching + DeepSeek generation.

Install

pip install ai-response-ops

Quick start

from ai_response_ops import AIResponseOps

client = AIResponseOps(api_key="your-api-key")

result = client.process([
    "Do you support SSO?",
    {"question": "How often do you run penetration tests?", "id": "q2"},
])

for a in result.results:
    print(f"[{a.source}] {a.question} -> {a.answer} (confidence: {a.confidence}%)")

Async

from ai_response_ops import AsyncAIResponseOps

async with AsyncAIResponseOps(api_key="your-api-key") as client:
    result = await client.process(["Do you encrypt data at rest?"])

API

AIResponseOps(api_key, *, base_url, timeout, max_retries)

Param Default
api_key Your workspace API key
base_url https://...public-api API base URL
timeout 60.0 Request timeout in seconds
max_retries 0 Retry on network errors (exponential backoff)

.process(questions)ProcessResponse

  • Max 100 questions per request
  • Questions can be str, dict(question, id?), or Question object

.health()HealthResponse

Errors

Error class HTTP
AuthenticationError 401
PlanGateError 402
RateLimitError 429
ValidationError 400
ServerError 500
AIServiceError 502

Release files for ai-response-ops 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ai-response-ops 1.0.0
File Size Uploaded
ai_response_ops-1.0.0.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ai-response-ops 1.0.0
File Interpreter ABI Platform
ai_response_ops-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.7 kB

Release files / ai_response_ops-1.0.0.tar.gz

Download URL ai_response_ops-1.0.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
45048c69016d48ae944ddb2af25972eaa5b317208019fc55535ea10669fdf211
BLAKE2b-256 checksum
How to use checksums
e555a614505c9bc88cf60c4039c47739fd23526f7352636e0c7aadf3eed4b966
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Release files / ai_response_ops-1.0.0-py3-none-any.whl

Download URL ai_response_ops-1.0.0-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6aad1b381118c7534da862bb62e66d0cf67c1fc2cfeb5e96dc29417b79aa8b9c
BLAKE2b-256 checksum
How to use checksums
69895ecdea9de05587ea7cef0e9db5e012ccce616db1c65e26a98d5b9d99331a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page