The library documents itself · Web & app server
stzLlmSandbox
21 own methods · 5 forms written with extensions, listed under their method
the source: base/service/stzLlmPort.ring(opens in a new tab) · All classes · The area reference: Web & app server
Under each method, its extensions (Q CS XT Z ZZ IB W U): bold and ticked, it exists; struck, it does not. The extensions and what they mean
No method of this class is run on this page: the class reaches files, the network, processes, the clock, chance or sound, and an example run here would only be an example of its effects. Each method carries the explanation the library gives of itself.
Method
Explanation, as the source carries it
init
(no comment in the source: the name reads as a sentence) initno extension
IsSandbox
a double declares itself -- see stzServiceRegistryno extension
SeedAnswer
REPLAY: an exact answer for an exact prompt ----------------------- Keyed by a hash of the prompt, exactly as stzLLMFunction keys its cache. The same prompt always gets the same answer, which is what makes a test a test.QCSXTZZZIBWU
RecordFrom
Call a real model ONCE and keep what it said. poClient is any object with Complete(prompt) -- so the recording path is testable with no key and no network, by handing in any conforming stand-in.no extension
PromptKey
(no comment in the source: the name reads as a sentence) prompt keyno extension
HasAnswerFor
(no comment in the source: the name reads as a sentence) has answer forno extension
NumberOfSeededAnswers
(no comment in the source: the name reads as a sentence) number of seeded answersno extension
WhenPromptContains
SCRIPTED: a rule for a family of prompts -------------------------- Match on a fragment of the prompt, so one rule covers a whole family ("anything asking for a summary"). First matching rule wins.QCSXTZZZIBWU
NumberOfRules
(no comment in the source: the name reads as a sentence) number of rulesno extension
SetFallback
A catch-all answer, for pipelines where the text does not matter and only the SHAPE does. Setting one turns strictness off for unmatched prompts.QCSXTZZZIBWU
Fallback
(no comment in the source: the name reads as a sentence) fallbackno extension
Complete
the PORT contract ------------------------------------------------ -> [ :ok, :text, :from ] where :from is :replay, :scripted or :fallback. A SEEDED answer wins over a rule: a recording is what a model actually said, and that beats a rule someone wrote.no extension
SetStrict
(no comment in the source: the name reads as a sentence) set strictQCSXTZZZIBWU
IsStrict
(no comment in the source: the name reads as a sentence) is strictno extension
NumberOfCalls
COST: the fee-free promise, made measurableno extension
ApproximateTokensSent
Approximate tokens, the conventional ~4 characters each. APPROXIMATE on purpose: it is for asserting a BUDGET ("this feature must not send more than ~2000 tokens"), not for billing.no extension
Prompts
(no comment in the source: the name reads as a sentence) promptsno extension
LastPrompt
(no comment in the source: the name reads as a sentence) last promptno extension
WasAskedAbout
was a given thing ever asked about? -- assert on what the pipeline SENT, which is where prompt-assembly bugs actually live.no extension
ClearCalls
(no comment in the source: the name reads as a sentence) clear callsQCSXTZZZIBWU
Show
(no comment in the source: the name reads as a sentence) showno extension

