Struct ResolvedModelAccess
pub struct ResolvedModelAccess<'a> {
pub model_provider: &'a dyn ModelProvider,
pub provider_name: &'a str,
pub model: &'a str,
pub dispatch_model: &'a str,
pub temperature: Option<f64>,
}Expand description
The resolved model binding: which provider, model, and temperature a turn
uses. The base layer any LLM call needs; ResolvedAgentExecution composes
it. Field names mirror the engine’s former flat fields so the loop body is
unchanged after destructuring.
Fields§
§model_provider: &'a dyn ModelProvider§provider_name: &'a strProvider profile that actually serves this request.
model: &'a strModel that actually serves this request.
dispatch_model: &'a strSelector sent to model_provider. Routed providers may require a
hint:<name> selector even though model records the resolved model.
temperature: Option<f64>Implementations§
Source§impl ResolvedModelAccess<'_>
impl ResolvedModelAccess<'_>
pub async fn run_model_query( &self, request: ChatRequest<'_>, settled_out: &mut Vec<SettledAttemptSummary>, ) -> Result<ChatResponse>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ResolvedModelAccess<'a>
impl<'a> !UnwindSafe for ResolvedModelAccess<'a>
impl<'a> Freeze for ResolvedModelAccess<'a>
impl<'a> Send for ResolvedModelAccess<'a>
impl<'a> Sync for ResolvedModelAccess<'a>
impl<'a> Unpin for ResolvedModelAccess<'a>
impl<'a> UnsafeUnpin for ResolvedModelAccess<'a>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more