pub struct CustomModelConfig {
pub provider: Provider,
pub display_name: Option<String>,
pub context_window: Option<u32>,
pub max_output_tokens: Option<u32>,
pub vision: Option<bool>,
pub web_search: Option<bool>,
pub call_timeout_secs: Option<u64>,
}Expand description
User-defined model registry entry ([models.<id>] in config.toml or a
mob definition).
Declares an uncatalogued model that an API provider serves so a single
definition feeds provider inference, compaction scaling, capability gates,
and call timeouts through the effective crate::ModelRegistry.
Capability flags are conservative when omitted: an undeclared capability is treated as absent rather than guessed from the model name.
Fields§
§provider: ProviderTyped provider that serves this model. Parsed fail-closed at config ingress: unknown provider names reject the entry.
display_name: Option<String>Human-readable display name. Defaults to the model id.
context_window: Option<u32>Model context window in tokens (drives compaction scaling).
max_output_tokens: Option<u32>Maximum output tokens per call.
vision: Option<bool>Whether the model accepts image input. Conservative default: false.
web_search: Option<bool>Whether the model supports provider-native web search tools. Conservative default: false.
call_timeout_secs: Option<u64>Default call timeout in seconds.
Trait Implementations§
Source§impl Clone for CustomModelConfig
impl Clone for CustomModelConfig
Source§fn clone(&self) -> CustomModelConfig
fn clone(&self) -> CustomModelConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CustomModelConfig
impl Debug for CustomModelConfig
Source§impl<'de> Deserialize<'de> for CustomModelConfig
impl<'de> Deserialize<'de> for CustomModelConfig
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>,
impl Eq for CustomModelConfig
Source§impl JsonSchema for CustomModelConfig
impl JsonSchema for CustomModelConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for CustomModelConfig
impl PartialEq for CustomModelConfig
Source§fn eq(&self, other: &CustomModelConfig) -> bool
fn eq(&self, other: &CustomModelConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for CustomModelConfig
impl Serialize for CustomModelConfig
impl StructuralPartialEq for CustomModelConfig
Auto Trait Implementations§
impl Freeze for CustomModelConfig
impl RefUnwindSafe for CustomModelConfig
impl Send for CustomModelConfig
impl Sync for CustomModelConfig
impl Unpin for CustomModelConfig
impl UnsafeUnpin for CustomModelConfig
impl UnwindSafe for CustomModelConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.