pub struct SessionRpcLimitPrediction<'a> { /* private fields */ }Expand description
session.limitPrediction.* RPCs.
Implementations§
Source§impl<'a> SessionRpcLimitPrediction<'a>
impl<'a> SessionRpcLimitPrediction<'a>
Sourcepub async fn predict(&self) -> Result<SessionLimitPredictionResult, Error>
pub async fn predict(&self) -> Result<SessionLimitPredictionResult, Error>
Predicts an AI-credit session limit for the session’s resolved model. Returns an unavailable result instead of falling back when the current model is unresolved auto.
Wire method: session.limitPrediction.predict.
§Returns
Prediction result. Available results include prediction details; unavailable results include an explicit reason.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Sourcepub async fn predict_with_params(
&self,
params: SessionLimitPredictionRequest,
) -> Result<SessionLimitPredictionResult, Error>
pub async fn predict_with_params( &self, params: SessionLimitPredictionRequest, ) -> Result<SessionLimitPredictionResult, Error>
Predicts an AI-credit session limit for the session’s resolved model. Returns an unavailable result instead of falling back when the current model is unresolved auto.
Wire method: session.limitPrediction.predict.
§Parameters
params- Parameters for predicting an AI-credit session limit. OmittingmodelIduses the session’s currently selected model.
§Returns
Prediction result. Available results include prediction details; unavailable results include an explicit reason.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Trait Implementations§
Source§impl<'a> Clone for SessionRpcLimitPrediction<'a>
impl<'a> Clone for SessionRpcLimitPrediction<'a>
Source§fn clone(&self) -> SessionRpcLimitPrediction<'a>
fn clone(&self) -> SessionRpcLimitPrediction<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more