Skip to main content

Python SDK for AI Response Ops — automate security questionnaire answers

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_response_ops-1.0.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_response_ops-1.0.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file ai_response_ops-1.0.0.tar.gz.

File metadata

  • Download URL: ai_response_ops-1.0.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for ai_response_ops-1.0.0.tar.gz
Algorithm Hash digest
SHA256 45048c69016d48ae944ddb2af25972eaa5b317208019fc55535ea10669fdf211
MD5 4ab21bbb21cca0438f4d0c5a33b2099c
BLAKE2b-256 e555a614505c9bc88cf60c4039c47739fd23526f7352636e0c7aadf3eed4b966

See more details on using hashes here.

File details

Details for the file ai_response_ops-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_response_ops-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6aad1b381118c7534da862bb62e66d0cf67c1fc2cfeb5e96dc29417b79aa8b9c
MD5 5f0577137cd3df9555eb0de3f148275c
BLAKE2b-256 69895ecdea9de05587ea7cef0e9db5e012ccce616db1c65e26a98d5b9d99331a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page