AIInference
import type { AIInference } from "https://googleapis.deno.dev/v1/pubsub:v1.ts";Configuration for making inference requests against Vertex AI models.
interface AIInference {
endpoint?: string;
serviceAccountEmail?: string;
unstructuredInference?: UnstructuredInference;
}§Properties
§
endpoint?: string
[src]Required. An endpoint to a Vertex AI model of the form
projects/{project}/locations/{location}/endpoints/{endpoint} or
projects/{project}/locations/{location}/publishers/{publisher}/models/{model}.
Vertex AI API requests will be sent to this endpoint.
§
serviceAccountEmail?: string
[src]Optional. The service account to use to make prediction requests against
endpoints. The resource creator or updater that specifies this field must
have iam.serviceAccounts.actAs permission on the service account. If not
specified, the Pub/Sub service
agent,
service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
§
unstructuredInference?: UnstructuredInference
[src]Optional. Requests and responses can be any arbitrary JSON object.