Smarter SDKs
The Smarter SDKs give your own software typed, complete access to a Smarter platform, yours or
platform.smarter.sh, on your laptop or on
Kubernetes. Each one covers every resource kind
through the same manifest API as the
Smarter CLI, prompts and streamed chats with
LLMClients, each resource’s own actions, and typed
models of every manifest kind.
SDK |
What it is |
|---|---|
A Python library, |
|
A TypeScript library for Node.js, |
|
A Go module, |
The SDKs follow the same design, whatever their language. The Python SDK was the first of them, and is the reference implementation: the Node.js and Go SDKs have its features, resources, verbs and errors, number their architecture decisions as it does, and are tested against the same recorded responses of the platform. Each is a client of the OpenAPI contract, and nothing else, so none of them has access to the platform that your own software doesn’t have.
They authenticate with a Smarter API key, and read the CLI’s configuration file,
~/.smarter/config.yaml, and the same SMARTER_API_KEY and SMARTER_BASE_URL environment
variables, so a developer who has run smarter configure needs no other setup. The design goals
that they share with the Smarter API, and how to write an SDK for another language, are in
Smarter APIs, SDKs and Integrations.