pub type MockCompletionModel = Model<MockScript, MockRuntime>;Available on crate feature
test-utils only.Expand description
A cloneable scripted completion model for tests: the scripted wire over its runtime. Clones share the script and the recorded requests.
Aliased Type§
pub struct MockCompletionModel {
pub wire: MockScript,
pub transport: MockRuntime,
}Fields§
§wire: MockScriptWhat to send and how to read the reply.
transport: MockRuntimeHow the payload travels.