Skip to main content

gtwy-sdk

Official Python client for the GTWY API — build and call agentic AI, RAG, and LLM-powered agents.

pip install gtwy-sdk
from gtwy import Gtwy

client = Gtwy(auth_key="<authKey>")

response = client.chat.completions.create(
    agent_id="my-agent-id",
    user="What's the capital of France?",
)
print(response.content)

auth_key is the key you get from the GTWY platform (labeled authkey there). It can also come from the GTWY_AUTH_KEY environment variable. base_url defaults to https://api.gtwy.ai; override it (constructor arg or GTWY_BASE_URL) to point at a different environment.

See gtwy/SKILLS.md for the full reference: every resource (chat, batch, rerun), every request field, response shapes, delivery modes (sync/webhook), and error handling. This file ships inside the installed package (not just this repo) — after pip install gtwy-sdk it's reachable at gtwy.SKILLS_PATH / gtwy.get_skills_doc(), so an AI agent (e.g. Claude) can read it and use this SDK correctly without ever cloning this repo.

Development

cd python
pip install -e .

Download files

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

Source Distribution

gtwy_sdk-0.2.0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

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

gtwy_sdk-0.2.0-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file gtwy_sdk-0.2.0.tar.gz.

File metadata

  • Download URL: gtwy_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.0

File hashes

Hashes for gtwy_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e133c20e73a094ee7de5731b865d134df152c7a9fb5a84d535a1c1d2f857cfeb
MD5 122bb203d10715949d1c868ac53a8939
BLAKE2b-256 26c0bd657fc25553b4965e50b4d98eab32ef217abae96425a1b981d229d5b911

See more details on using hashes here.

File details

Details for the file gtwy_sdk-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: gtwy_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.0

File hashes

Hashes for gtwy_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f98faf1641a1d85179bd3c85fe057f4ac09f5fdda311b8e56d568075b64f8105
MD5 ebc1298c5c2bbbd70fe457662ba04392
BLAKE2b-256 0eb19766976a80d9692dd6259ec6efbc06155991f8b7c46124bfe09d25daac03

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 Sentry Error logging StatusPage Status page