Skip to main content

Module handle

Module handle 

Source
Expand description

Serializable model labels resolved to live handles by a runtime.

use rig_core::completion::ModelRef;

let model = ModelRef::new("assistant");
assert_eq!(model.as_str(), "assistant");

Structs§

ModelRef
Model label serialized as a string. Equality compares labels without provider interpretation; resolving a label to a live handle is the runtime’s responsibility.