pub struct ResolvedModel {
pub provider: Arc<dyn ModelProvider>,
pub model_id: String,
pub context_window: usize,
pub supports_image_input: bool,
}Expand description
The model a thread will use for one completion round.
Fields§
§provider: Arc<dyn ModelProvider>§model_id: String§context_window: usizeContext window size in tokens. Used for the auto-compaction threshold;
0 disables it.
supports_image_input: boolWhether the model accepts image inputs. When false, image tool
results are replaced with a text placeholder before invocation.
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