pub struct ScoreRequest { /* private fields */ }Expand description
Scores a query against candidates. Build with Client::score.
Implementations§
Source§impl ScoreRequest
impl ScoreRequest
Sourcepub fn gpu(self, gpu: impl Into<String>) -> Self
pub fn gpu(self, gpu: impl Into<String>) -> Self
Route to a machine profile, optionally pool-qualified as "pool/profile".
Sourcepub fn wait_for_capacity(self, wait: bool) -> Self
pub fn wait_for_capacity(self, wait: bool) -> Self
Whether to wait out provisioning and model loading, or fail fast.
Sourcepub fn provision_timeout(self, timeout: Duration) -> Self
pub fn provision_timeout(self, timeout: Duration) -> Self
Total wall-clock budget for this call, retries included.
Sourcepub fn max_oom_retries(self, retries: u32) -> Self
pub fn max_oom_retries(self, retries: u32) -> Self
Cap on RESOURCE_EXHAUSTED retries. Zero fails fast.
Sourcepub fn instruction(self, instruction: impl Into<String>) -> Self
pub fn instruction(self, instruction: impl Into<String>) -> Self
Task instruction prepended by instruction-tuned rerankers.
Sourcepub fn options(self, options: Value) -> Self
pub fn options(self, options: Value) -> Self
Adapter-specific runtime options, merged over the client defaults.
Sourcepub async fn send(self) -> Result<ScoreResult>
pub async fn send(self) -> Result<ScoreResult>
Send the request.
Auto Trait Implementations§
impl !RefUnwindSafe for ScoreRequest
impl !UnwindSafe for ScoreRequest
impl Freeze for ScoreRequest
impl Send for ScoreRequest
impl Sync for ScoreRequest
impl Unpin for ScoreRequest
impl UnsafeUnpin for ScoreRequest
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