syni 0.1.0
syni: ^0.1.0 copied to clipboard
Flutter SDK for Syni — adaptive on-device LLM inference with hybrid local/cloud chat, structured persona conditioning, and a streaming chat API designed for the UI thread.
0.1.0 #
First public release.
Agent layer (package:syni/agent.dart) #
SyniAgent— install lifecycle, model catalog, persona binding, chat / chatStream orchestration, hybrid local/cloud routing viaSyniExecutionMode.SyniInstaller— model download, tokenizer fetch, SHA-256 verification, cold-start restore from disk.SyniCloudClient— HTTP + SSE client for the Syni cloud chat endpoint, sticky session id, HSI forwarded as requestcontext.SyniSpecPersona.load(id)— resolves persona JSON from the bundled spec assets so the same persona id consistently produces the same behavior on both client and server.
Runtime layer (package:syni/runtime.dart) #
SyniRuntime— worker-isolate wrapper over the on-device inference engine. Engine load + token generation run on a worker so the UI thread is free.SyniRuntimeRequest/SyniRuntimeResponsefor direct inference.
Models #
SyniModelscatalog with two pre-pinned entries:qwen25_15bInstructQ4(Qwen 2.5 1.5B Instruct Q4_K_M, ~1.1 GB).gemma3_1bInstructQ4(Gemma 3 1B Instruct Q4_K_M, ~770 MB, Synheart-hosted mirror).
- Both ship with pinned SHA-256 verified by
SyniInstallerat install time.
Personas (bundled assets) #
Five spec personas mirrored from syni-spec and bundled under
assets/personas/prod/:
focus.coach.v1stress.coach.v1cognitive.companion.v1performance.coach.v1wellness.guide.v1
Refresh via tool/sync_personas.sh.
Notes #
- The legacy
Syni.initialize/Syni.generateplatform-channel API remains exported for backwards compatibility but new code should use the agent layer.