Class Handler (2.0.0)
Stay organized with collections
Save and categorize content based on your preferences.
Handler(
artifacts_uri: str,
predictor: typing.Optional[
typing.Type[google.cloud.aiplatform.prediction.predictor.Predictor]
] = None,
)
Interface for Handler class to handle prediction requests.
Methods
Handler(
artifacts_uri: str,
predictor: typing.Optional[
typing.Type[google.cloud.aiplatform.prediction.predictor.Predictor]
] = None,
)
Initializes a Handler instance.
| Parameters |
| Name |
Description |
artifacts_uri |
str
Required. The value of the environment variable AIP_STORAGE_URI.
|
predictor |
Type[Predictor]
Optional. The Predictor class this handler uses to initiate predictor instance if given.
|
handle(request: starlette.requests.Request) -> starlette.responses.Response
Handles a prediction request.
| Parameter |
| Name |
Description |
request |
Request
The request sent to the application.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-08-01 UTC.
[null,null,["Last updated 2026-08-01 UTC."],[],[]]