pub struct ResolvedExecutableModel { /* private fields */ }Expand description
Exact executable model behavior retained by one runtime publication.
Implementations§
Source§impl ResolvedExecutableModel
impl ResolvedExecutableModel
pub fn selection(&self) -> &ModelSelection
pub fn model(&self) -> &Arc<dyn LanguageModel>
pub fn behavior_fingerprint(&self) -> &Sha256Digest
pub const fn adapter_family(&self) -> OvenAdapterFamily
pub fn prepare_request(&self, request: Request) -> Request
pub fn prepare_request_with_cache_strategy( &self, request: Request, strategy: Option<&CacheStrategyConfig>, ) -> Request
Sourcepub fn prepare_request_before_cache_strategy(
&self,
request: Request,
strategy: Option<&CacheStrategyConfig>,
) -> Request
pub fn prepare_request_before_cache_strategy( &self, request: Request, strategy: Option<&CacheStrategyConfig>, ) -> Request
Applies model defaults while deferring prompt-cache placement until interception completes.
Sourcepub fn apply_prompt_cache_strategy(
&self,
request: Request,
strategy: Option<&CacheStrategyConfig>,
) -> Request
pub fn apply_prompt_cache_strategy( &self, request: Request, strategy: Option<&CacheStrategyConfig>, ) -> Request
Applies prompt-cache placement once to an authoritative intercepted request.
Sourcepub fn provider_request_payload(
&self,
request: &Request,
) -> Result<Value, Box<ModelError>>
pub fn provider_request_payload( &self, request: &Request, ) -> Result<Value, Box<ModelError>>
Serializes the prepared provider request at the engine interception boundary.
Sourcepub fn request_from_provider_payload(
&self,
payload: Value,
) -> Result<Request, Box<ModelError>>
pub fn request_from_provider_payload( &self, payload: Value, ) -> Result<Request, Box<ModelError>>
Rebuilds and validates a plugin-replaced request payload before provider execution.
Trait Implementations§
Source§impl Clone for ResolvedExecutableModel
impl Clone for ResolvedExecutableModel
Source§fn clone(&self) -> ResolvedExecutableModel
fn clone(&self) -> ResolvedExecutableModel
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 ResolvedExecutableModel
impl !UnwindSafe for ResolvedExecutableModel
impl Freeze for ResolvedExecutableModel
impl Send for ResolvedExecutableModel
impl Sync for ResolvedExecutableModel
impl Unpin for ResolvedExecutableModel
impl UnsafeUnpin for ResolvedExecutableModel
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