Skip to main content

Module testing

Module testing 

Source
Expand description

Test doubles: a scripted model, a scripted approver and closure-backed tools. Enabled in this crate’s tests and, for downstream crates, with the testing feature.

Structs§

FnTool
A tool backed by closures.
ScriptedApprover
Answers approval cards from a queue (then denies) and records every prompt.
ScriptedModel
Returns pre-written turns in order, streaming each turn’s text word by word. Once the script runs out it returns empty turns.

Functions§

call
Shorthand for a model tool call.