pub struct ModelRouteApply {
pub harness: String,
pub profile: Option<String>,
pub provider: Option<String>,
pub base_url: Option<String>,
pub key_env: Option<String>,
pub model: Option<String>,
pub api_mode: Option<String>,
pub plan: bool,
pub homes: HarnessHomes,
}Expand description
One declared model route.
Fields§
§harness: StringHarness the route is applied to.
profile: Option<String>Hermes profile the route belongs to; absent means the root home.
provider: Option<String>Provider kind as the harness names it (Hermes: custom for an
OpenAI-compatible endpoint).
base_url: Option<String>Where model calls go: a URL, or a ${NAME} the harness resolves.
key_env: Option<String>The key, by reference only: an environment variable name.
model: Option<String>The default model.
api_mode: Option<String>The wire the endpoint speaks (Hermes: chat_completions).
plan: boolReport what would run without running it.
homes: HarnessHomesStorage roots.
Trait Implementations§
Source§impl Clone for ModelRouteApply
impl Clone for ModelRouteApply
Source§impl Debug for ModelRouteApply
impl Debug for ModelRouteApply
Source§impl Default for ModelRouteApply
impl Default for ModelRouteApply
Source§impl<'de> Deserialize<'de> for ModelRouteApplywhere
ModelRouteApply: Default,
impl<'de> Deserialize<'de> for ModelRouteApplywhere
ModelRouteApply: Default,
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
Source§impl PartialEq for ModelRouteApply
impl PartialEq for ModelRouteApply
Source§impl Serialize for ModelRouteApply
impl Serialize for ModelRouteApply
impl StructuralPartialEq for ModelRouteApply
Auto Trait Implementations§
impl Freeze for ModelRouteApply
impl RefUnwindSafe for ModelRouteApply
impl Send for ModelRouteApply
impl Sync for ModelRouteApply
impl Unpin for ModelRouteApply
impl UnsafeUnpin for ModelRouteApply
impl UnwindSafe for ModelRouteApply
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