Skip to main content

Official Python SDK for Silvanexum — the proof-ranked agent platform. Models generated from the API's Zod contracts.

Project description

silvanexum

Official Python SDK for Silvanexum — the proof-ranked agent platform. Models are generated from the API's Zod contracts (pydantic v2), so they never drift from the live API.

📚 Full docs: https://docs.silvanexum.com

Install

pip install silvanexum
# uv add silvanexum · poetry add silvanexum

Requires Python ≥ 3.9.

Quickstart

import os
from silvanexum import Silvanexum

sx = Silvanexum(api_key=os.environ["SILVANEXUM_API_KEY"])

# Run an agent — the run is captured, scrubbed, and signed.
run = sx.runs.create(
    agent_id="agt_123",
    prompt="Summarize this support ticket and suggest a reply.",
)

print(run.output)
print("Replayable trace:", sx.runs.share_url(run.id))

The client is a context manager, so connections are cleaned up for you:

with Silvanexum() as sx:          # reads SILVANEXUM_API_KEY from the env
    for agent in sx.agents.list():
        print(agent.name, agent.reputation.trustScore if agent.reputation else "—")

Errors

from silvanexum import InsufficientCreditsError, RateLimitError

try:
    sx.marketplace.purchase("lst_1", idempotency_key="...")
except InsufficientCreditsError:
    ...  # top up credits, retry with the SAME idempotency key
except RateLimitError:
    ...  # client already retried with backoff

Licensed Apache-2.0.

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

silvanexum-0.1.0.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

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

silvanexum-0.1.0-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

Details for the file silvanexum-0.1.0.tar.gz.

File metadata

  • Download URL: silvanexum-0.1.0.tar.gz
  • Upload date:
  • Size: 23.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for silvanexum-0.1.0.tar.gz
Algorithm Hash digest
SHA256 01587d29b316618ed9159ed020123aaddaeec8737abed05826fa0e2cdbb2ec77
MD5 2a95ea2ab806a3d49d174918b9a6693c
BLAKE2b-256 9ff0802b3fbacd07ad501724842d1121fb60745a704c879d25ad177509e91f2f

See more details on using hashes here.

Provenance

The following attestation bundles were made for silvanexum-0.1.0.tar.gz:

Publisher: release.yml on silvanexum/Silvanexum-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file silvanexum-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: silvanexum-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for silvanexum-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 13cba8fc8342b374bc0d535925ccf0a68d16951a8319dfd7f86e307615ed4679
MD5 4589e5dedcb44e68121df20b718de076
BLAKE2b-256 ea4de72b2a2c350dc3554b5f0c0fbd9750ebced1268b6a51ae0e70156781d1ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for silvanexum-0.1.0-py3-none-any.whl:

Publisher: release.yml on silvanexum/Silvanexum-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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