For developers
One API, six languages.
Client libraries for the UARP API in TypeScript, Python, Rust, Kotlin, Swift and Ada, generated from the platform's public API document and released together under one version number. Open source under the MIT licence.
AvailableTypeScript, Python, Rust, Kotlin and Swift at the current version; Alire still has an earlier Ada release
Barista
Brings your tools into the conversation.
Typed models
Use named types for requests and responses described in the API specification. Other responses are returned as JSON.
A key, and nothing else
Pass an API key, or let the SDK read it from UARP_API_KEY or SNAGA_API_KEY.
Safe write retries
Write requests carry a unique request key to prevent duplicate operations when a request is retried.
Automatic retries
Temporary failures are retried with a delay. Read requests can be retried automatically; write requests are retried when it is safe to do so.
Errors you can read
A refusal arrives as a structured error with the status, the detail, the correlation id and any field that failed validation.
Live events as a stream
Event streams arrive as your language's own async stream and reconnect where they left off.
Install
TypeScript
npm i uarp-sdkPython
pip install uarp-sdkRust
cargo add uarp-sdkKotlin
implementation("ai.snaga:uarp-sdk:0.12.0")Swift
.package(url: "https://github.com/Snaga-AI/uarp-swift", from: "0.12.0")Ada
alr with uarp_sdkAlire carries an earlier Ada release; the current one builds from the source repository.
What to know before you build on it
The SDKs are at version 0.x, so a minor release may change an interface. Each release follows the API document it was generated from: routes added to the platform later reach the SDK in the next release, and calls whose response the document does not describe return plain JSON.