llms.sgit.ai / documents / samples

Code Samples: Adding An LLM Chat Pane

Eight samples and a pre-ship checklist: the minimum viable pane, cancel, a cost meter that does not lie, a model picker that cannot be wrong, image attachment, voice input, and a file-grounded pane that copies the host panel's three honesty mechanisms. In these samples the sg.llm.* calls are the shipped contract and the surrounding UI was written for the pack.

Document
code__chat-pane-samples.md
Kind
Runnable samples
Length
about 1.4k words
Pack
llms.sgit.ai brief pack v0.33.62, 24 August 2026
Licence
CC BY 4.0, Dinis Cruz, with AI co-authorship
Raw
briefs/code__chat-pane-samples.md is the source of truth

What it produced on this site

The document, in full

Rendered from the raw file below. The raw markdown is the source of truth: this page is presentation, and nothing here is edited.

Open the raw markdown