Skip to main content

Module scripted

Module scripted 

Source
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§

ScriptedLlm
A test double for Llm that answers each call with the next scripted reply and records every request.
ScriptedResponse
What a ScriptedLlm answers to one generate_content call.

Constants§

SCRIPT_EXHAUSTED_CODE
The error code ScriptedLlm fails a call with once its script is used up.