pub struct ModelRestriction {
pub requested_model: String,
pub effective_model: String,
pub at: Option<String>,
}Expand description
InformationalMessage::model_restriction: a requested model was
refused and the session uses another. Both names are cleaned as they
are in content (model-id characters only, cut to 128 with a trailing
…, or (unrecognized model name) when none are left) but are still
untrusted text: render them as plain text (CLI 2.1.317+).
Fields§
§requested_model: StringThe refused model as it was asked for, or the id that a refused Default pick stood for.
effective_model: StringThe model in use when the line was built; a later switch can outdate it.
at: Option<String>start for the model the process chose when it started (from
--model, the environment, settings or --agent’s frontmatter);
switch for anything later. The CLI reads an unknown value as
absent, so treat one that way too.
Trait Implementations§
Source§impl Clone for ModelRestriction
impl Clone for ModelRestriction
Source§impl Debug for ModelRestriction
impl Debug for ModelRestriction
Source§impl<'de> Deserialize<'de> for ModelRestriction
impl<'de> Deserialize<'de> for ModelRestriction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ModelRestriction
Source§impl PartialEq for ModelRestriction
impl PartialEq for ModelRestriction
Source§impl Serialize for ModelRestriction
impl Serialize for ModelRestriction
impl StructuralPartialEq for ModelRestriction
Auto Trait Implementations§
impl Forget for ModelRestriction
impl Freeze for ModelRestriction
impl RefUnwindSafe for ModelRestriction
impl Send for ModelRestriction
impl Sync for ModelRestriction
impl Unpin for ModelRestriction
impl UnsafeUnpin for ModelRestriction
impl UnwindSafe for ModelRestriction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more