AgentCompliant

SDK (Python)

Generating a Python client from the gateway OpenAPI spec.

Generate

bash
npx @openapitools/openapi-generator-cli generate \
  -i docs/openapi/gateway.yaml \
  -g python \
  -o ./sdk/python

Usage

Install the generated package in your service environment. Prefer short-lived tokens or API keys with minimal scopes. Never embed long-lived secrets in notebooks shared outside your org.

Async and streaming

Where the API exposes streaming responses, use the generated client’s streaming helpers or fall back to raw HTTP if the generator’s surface is thin.