Class ProjectsResource.LocationsResource.PublishersResource.ModelsResource
The "models" collection of methods.
Inherited Members
Namespace: Google.Apis.Aiplatform.v1
Assembly: Google.Apis.Aiplatform.v1.dll
Syntax
public class ProjectsResource.LocationsResource.PublishersResource.ModelsResource
Constructors
ModelsResource(IClientService)
Constructs a new resource.
Declaration
public ModelsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
ComputeTokens(GoogleCloudAiplatformV1ComputeTokensRequest, string)
Return a list of tokens based on the input text.
Declaration
public virtual ProjectsResource.LocationsResource.PublishersResource.ModelsResource.ComputeTokensRequest ComputeTokens(GoogleCloudAiplatformV1ComputeTokensRequest body, string endpoint)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudAiplatformV1ComputeTokensRequest | body | The body of the request. |
string | endpoint | Required. The name of the Endpoint requested to get lists of tokens and token ids. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.ComputeTokensRequest |
CountTokens(GoogleCloudAiplatformV1CountTokensRequest, string)
Perform a token counting.
Declaration
public virtual ProjectsResource.LocationsResource.PublishersResource.ModelsResource.CountTokensRequest CountTokens(GoogleCloudAiplatformV1CountTokensRequest body, string endpoint)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudAiplatformV1CountTokensRequest | body | The body of the request. |
string | endpoint | Required. The name of the Endpoint requested to perform token counting. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.CountTokensRequest |
FetchPredictOperation(GoogleCloudAiplatformV1FetchPredictOperationRequest, string)
Fetch an asynchronous online prediction operation.
Declaration
public virtual ProjectsResource.LocationsResource.PublishersResource.ModelsResource.FetchPredictOperationRequest FetchPredictOperation(GoogleCloudAiplatformV1FetchPredictOperationRequest body, string endpoint)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudAiplatformV1FetchPredictOperationRequest | body | The body of the request. |
string | endpoint | Required. The name of the Endpoint requested to serve the prediction. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.FetchPredictOperationRequest |
GenerateContent(GoogleCloudAiplatformV1GenerateContentRequest, string)
Generate content with multimodal inputs.
Declaration
public virtual ProjectsResource.LocationsResource.PublishersResource.ModelsResource.GenerateContentRequest GenerateContent(GoogleCloudAiplatformV1GenerateContentRequest body, string model)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudAiplatformV1GenerateContentRequest | body | The body of the request. |
string | model | Required. The fully qualified name of the publisher model or tuned model endpoint to use.
Publisher model format: |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.GenerateContentRequest |
Predict(GoogleCloudAiplatformV1PredictRequest, string)
Perform an online prediction.
Declaration
public virtual ProjectsResource.LocationsResource.PublishersResource.ModelsResource.PredictRequest Predict(GoogleCloudAiplatformV1PredictRequest body, string endpoint)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudAiplatformV1PredictRequest | body | The body of the request. |
string | endpoint | Required. The name of the Endpoint requested to serve the prediction. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.PredictRequest |
PredictLongRunning(GoogleCloudAiplatformV1PredictLongRunningRequest, string)
Declaration
public virtual ProjectsResource.LocationsResource.PublishersResource.ModelsResource.PredictLongRunningRequest PredictLongRunning(GoogleCloudAiplatformV1PredictLongRunningRequest body, string endpoint)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudAiplatformV1PredictLongRunningRequest | body | The body of the request. |
string | endpoint | Required. The name of the Endpoint requested to serve the prediction. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.PredictLongRunningRequest |
RawPredict(GoogleCloudAiplatformV1RawPredictRequest, string)
Perform an online prediction with an arbitrary HTTP payload. The response includes the following
HTTP headers: * X-Vertex-AI-Endpoint-Id
: ID of the Endpoint that served this prediction. *
X-Vertex-AI-Deployed-Model-Id
: ID of the Endpoint's DeployedModel that served this prediction.
Declaration
public virtual ProjectsResource.LocationsResource.PublishersResource.ModelsResource.RawPredictRequest RawPredict(GoogleCloudAiplatformV1RawPredictRequest body, string endpoint)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudAiplatformV1RawPredictRequest | body | The body of the request. |
string | endpoint | Required. The name of the Endpoint requested to serve the prediction. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.RawPredictRequest |
ServerStreamingPredict(GoogleCloudAiplatformV1StreamingPredictRequest, string)
Perform a server-side streaming online prediction request for Vertex LLM streaming.
Declaration
public virtual ProjectsResource.LocationsResource.PublishersResource.ModelsResource.ServerStreamingPredictRequest ServerStreamingPredict(GoogleCloudAiplatformV1StreamingPredictRequest body, string endpoint)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudAiplatformV1StreamingPredictRequest | body | The body of the request. |
string | endpoint | Required. The name of the Endpoint requested to serve the prediction. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.ServerStreamingPredictRequest |
StreamGenerateContent(GoogleCloudAiplatformV1GenerateContentRequest, string)
Generate content with multimodal inputs with streaming support.
Declaration
public virtual ProjectsResource.LocationsResource.PublishersResource.ModelsResource.StreamGenerateContentRequest StreamGenerateContent(GoogleCloudAiplatformV1GenerateContentRequest body, string model)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudAiplatformV1GenerateContentRequest | body | The body of the request. |
string | model | Required. The fully qualified name of the publisher model or tuned model endpoint to use.
Publisher model format: |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.StreamGenerateContentRequest |
StreamRawPredict(GoogleCloudAiplatformV1StreamRawPredictRequest, string)
Perform a streaming online prediction with an arbitrary HTTP payload.
Declaration
public virtual ProjectsResource.LocationsResource.PublishersResource.ModelsResource.StreamRawPredictRequest StreamRawPredict(GoogleCloudAiplatformV1StreamRawPredictRequest body, string endpoint)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudAiplatformV1StreamRawPredictRequest | body | The body of the request. |
string | endpoint | Required. The name of the Endpoint requested to serve the prediction. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.PublishersResource.ModelsResource.StreamRawPredictRequest |