Skip to main content

Model

Type Alias Model 

Source
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: CompletionWire

What to send and how to read the reply.

§transport: Runtime

How the payload travels.