Unique SDK
API reference and code examples for the Unique SDK module.
Search & chat completion
pythonStandalone script demonstrating the two most fundamental SDK operations: knowledge-base search (Search.create) and LLM chat completion (ChatCompletion.create). Aligned for unique_sdk 0.10.x: temperature is passed via options={...} (top-level was removed in 0.9.10), and the misleading getattr(result, 'score') lookup is replaced with the real title/key fields exposed on Search results.
Webhook server
pythonFlask webhook server that handles unique.chat.user-message.created (logging) and unique.chat.external-module.chosen (search → LLM → reply) events. Verifies HMAC signatures via Webhook.construct_event, drives MessageLog progress, and writes back via Message.modify. Aligned for unique_sdk 0.10.x: ChatCompletion temperature is passed via options={...} (top-level was removed in 0.9.10).
Folder upload into a space chat
pythonEnd-to-end demo for unique_sdk 0.10.x: ships an inline Space.create_chat polyfill (drops once you upgrade), mints a chat via POST /space/chat with no bootstrap message, uploads every file in a local folder inheriting the space's ingestion settings, waits for parallel ingestion, then submits the instruction prompt.