Struct ResolvedModelAccess
pub struct ResolvedModelAccess<'a> {
pub model_provider: &'a dyn ModelProvider,
pub provider_name: &'a str,
pub 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 str§model: &'a str§temperature: Option<f64>Implementations§
Source§impl ResolvedModelAccess<'_>
impl ResolvedModelAccess<'_>
pub async fn run_model_query( &self, request: ChatRequest<'_>, ) -> Result<ChatResponse, Error>
Auto Trait Implementations§
impl<'a> Freeze for ResolvedModelAccess<'a>
impl<'a> !RefUnwindSafe 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>
impl<'a> !UnwindSafe for ResolvedModelAccess<'a>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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