Class EndpointsResource
The "endpoints" collection of methods.
Inherited Members
Namespace: Google.Apis.Aiplatform.v1
Assembly: Google.Apis.Aiplatform.v1.dll
Syntax
public class EndpointsResource
Constructors
EndpointsResource(IClientService)
Constructs a new resource.
Declaration
public EndpointsResource(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 EndpointsResource.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 |
---|---|
EndpointsResource.ComputeTokensRequest |
CountTokens(GoogleCloudAiplatformV1CountTokensRequest, string)
Perform a token counting.
Declaration
public virtual EndpointsResource.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 |
---|---|
EndpointsResource.CountTokensRequest |
GenerateContent(GoogleCloudAiplatformV1GenerateContentRequest, string)
Generate content with multimodal inputs.
Declaration
public virtual EndpointsResource.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 |
---|---|
EndpointsResource.GenerateContentRequest |
StreamGenerateContent(GoogleCloudAiplatformV1GenerateContentRequest, string)
Generate content with multimodal inputs with streaming support.
Declaration
public virtual EndpointsResource.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 |
---|---|
EndpointsResource.StreamGenerateContentRequest |