pub type Model = Model<CompletionWire, Runtime>;Expand description
A loaded model as Rig drives it: CompletionWire over Runtime.
Obtained via Client::completion_model.
Call it directly (model.call(request), model.stream(request)), or hand
it to anything that takes impl Into<DynModel<Completion>>, such as
rig_agent::AgentBuilder::new. Clones share the loaded model.
Aliased Type§
pub struct Model {
pub wire: CompletionWire,
pub transport: Runtime,
}Fields§
§wire: CompletionWireWhat to send and how to read the reply.
transport: RuntimeHow the payload travels.