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.
- Scripted
Approver - Answers approval cards from a queue (then denies) and records every prompt.
- Scripted
Model - 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.