Class SessionLimitPredictionApi
java.lang.Object
com.github.copilot.generated.rpc.SessionLimitPredictionApi
API methods for the
limitPrediction namespace.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionpredict()Predicts an AI-credit session limit for the session's resolved model.Predicts an AI-credit session limit for the session's resolved model.
-
Method Details
-
predict
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.Invokes the method with no params, applying the runtime defaults.
- Since:
- 1.0.0
-
predict
@CopilotExperimental public CompletableFuture<SessionLimitPredictionResult> predict(SessionLimitPredictionPredictParams params) 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.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-