Skip to main content

Roboto SAI python SDK

Project description

roboto-sai-sdk

Python SDK for the Roboto SAI platform — the canonical client and source of truth for public model names, runtime profiles, and the frozen runtime contract.

Install

pip install roboto-sai-sdk

Requires Python 3.10+.

Quick Start

from roboto_sai_sdk import RobotoSAI

client = RobotoSAI()  # uses SAI_API_KEY from env
result = client.send_message("Review this repository and propose the next refactor.")

print(result["model"])      # "roboto-sai"
print(result["subtitle"])   # "Core runtime"
print(result["text"])       # assistant reply

Stream mode:

from roboto_sai_sdk import RobotoSAI

client = RobotoSAI(model="roboto-sai")
for event in client.stream("List five things to test in a new SDK release."):
    delta = ""
    if isinstance(event.data, dict) and event.data.get("type") == "response.output_text.delta":
        delta = event.data.get("delta") or ""
    print(delta, end="", flush=True)

Public Model Surface

The SDK exposes four canonical models:

Model Mode Use
roboto-sai single-agent Core general intelligence
roboto-sai-code-x single-agent Code generation, debugging, architecture
roboto-sai-cortex multi-agent Deep orchestration with research capabilities
roboto-sai-rovox single-agent (audio) Voice/audio I/O — separate realtime path

Use only canonical roboto-sai-* names. Legacy aliases (e.g. roboto-sai-lightning, -heavy, -flex) were removed in 0.2.0.

Inspect Runtime Profiles

from roboto_sai_sdk import (
    DEFAULT_PUBLIC_MODEL,
    PUBLIC_MODEL_NAMES,
    get_runtime_profile,
)

print(DEFAULT_PUBLIC_MODEL)             # "roboto-sai"
print(sorted(PUBLIC_MODEL_NAMES))       # all 4 names
print(get_runtime_profile("roboto-sai"))

Key Precedence

The SDK resolves API keys in this order:

  1. Explicit api_key=... argument
  2. SAI_API_KEY environment variable

Set SAI_API_BASE_URL to override the default base URL (https://api.roboto-sai.com/v1).

Public API

The stable surface is roboto_sai_sdk.__all__ (15 names; client, keys, and MCP are lazy-loaded on first access):

RobotoSAI, SendMessageResult, DEFAULT_PUBLIC_MODEL, PUBLIC_MODEL_NAMES, RuntimeProfile, get_runtime_profile, normalize_public_model, get_public_runtime_contract, CONTRACT_VERSION, CONTRACT_LAST_UPDATED, get_mcp_config, SAI_API_KEY, resolve_api_keys, resolve_provider_api_key, hash_key

import roboto_sai_sdk

assert roboto_sai_sdk.__all__ == [
    "RobotoSAI",
    "SendMessageResult",
    "DEFAULT_PUBLIC_MODEL",
    "PUBLIC_MODEL_NAMES",
    "RuntimeProfile",
    "get_runtime_profile",
    "normalize_public_model",
    "get_mcp_config",
    "get_public_runtime_contract",
    "CONTRACT_VERSION",
    "CONTRACT_LAST_UPDATED",
    "SAI_API_KEY",
    "resolve_api_keys",
    "resolve_provider_api_key",
    "hash_key",
]

Voice/audio (roboto-sai-rovox) requires the realtime integration — send_message and stream raise NotImplementedError for that model. A future RobotoSAIVoice client will land in a separate release.

Repository

Source code, examples, and full release notes: https://github.com/Roboto-SAI-LLC/roboto-sai-sdk

License

Proprietary. See LICENSE in the repository.

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

roboto_sai_sdk-0.6.0.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

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

roboto_sai_sdk-0.6.0-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file roboto_sai_sdk-0.6.0.tar.gz.

File metadata

  • Download URL: roboto_sai_sdk-0.6.0.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for roboto_sai_sdk-0.6.0.tar.gz
Algorithm Hash digest
SHA256 bcab70cd3e3ba0ec51ccf97ba475b6d6b7181bc76bf257f274596ddec5d3a5b7
MD5 d9fe4c68d597acffd44c03c4f878175a
BLAKE2b-256 baf4ece79265e16e6d6e549623203790a2d68cf8253bec5fdd2c94f7ce6e289a

See more details on using hashes here.

File details

Details for the file roboto_sai_sdk-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: roboto_sai_sdk-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for roboto_sai_sdk-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62cd4a1146c4c31564f201892425dfdc4a63cb20ab17850d10aee74a6189d286
MD5 cba23d6c1205aefc46f46107c7452585
BLAKE2b-256 509a421b82d3d5e707a1a6842e152c8b7af5a6e51534f519a4ac48f8c96aca7e

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