Available on crate feature
models only.Expand description
Scripted LLM test double with per-call replies and request capture.
A scripted Llm for tests: one scripted reply per call, with every request recorded.
Structs§
- Scripted
Llm - A test double for
Llmthat answers each call with the next scripted reply and records every request. - Scripted
Response - What a
ScriptedLlmanswers to onegenerate_contentcall.
Constants§
- SCRIPT_
EXHAUSTED_ CODE - The error code
ScriptedLlmfails a call with once its script is used up.