Skip to main content

MockCompletionModel

Type Alias MockCompletionModel 

Source
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,
    /* private fields */
}

Fields§

§wire: MockScript

What to send and how to read the reply.

§transport: MockRuntime

How the payload travels.