pub struct ResolvedModel {
pub provider: Arc<dyn LlmProvider>,
pub model: String,
pub context_window: Option<usize>,
}Expand description
解析后的模型 — 从 Registry 中解析 RouteEntry 得到
Fields§
§provider: Arc<dyn LlmProvider>§model: String§context_window: Option<usize>模型上下文窗口大小(Token),用于 v0.2 自动推导 ContextBudget
若未知则设为 None,使用 ContextBudget 的固定默认值
Trait Implementations§
Source§impl Clone for ResolvedModel
impl Clone for ResolvedModel
Source§fn clone(&self) -> ResolvedModel
fn clone(&self) -> ResolvedModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ResolvedModel
impl !UnwindSafe for ResolvedModel
impl Freeze for ResolvedModel
impl Send for ResolvedModel
impl Sync for ResolvedModel
impl Unpin for ResolvedModel
impl UnsafeUnpin for ResolvedModel
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