Class PublishersResource.ModelsResource
The "models" collection of methods.
Inherited Members
Namespace: Google.Apis.Aiplatform.v1beta1
Assembly: Google.Apis.Aiplatform.v1beta1.dll
Syntax
public class PublishersResource.ModelsResource
Constructors
ModelsResource(IClientService)
Constructs a new resource.
Declaration
public ModelsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
ComputeTokens(GoogleCloudAiplatformV1beta1ComputeTokensRequest, string)
Return a list of tokens based on the input text.
Declaration
public virtual PublishersResource.ModelsResource.ComputeTokensRequest ComputeTokens(GoogleCloudAiplatformV1beta1ComputeTokensRequest body, string endpoint)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudAiplatformV1beta1ComputeTokensRequest | 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 |
---|---|
PublishersResource.ModelsResource.ComputeTokensRequest |
CountTokens(GoogleCloudAiplatformV1beta1CountTokensRequest, string)
Perform a token counting.
Declaration
public virtual PublishersResource.ModelsResource.CountTokensRequest CountTokens(GoogleCloudAiplatformV1beta1CountTokensRequest body, string endpoint)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudAiplatformV1beta1CountTokensRequest | body | The body of the request. |
string | endpoint | Required. The name of the Endpoint requested to perform token counting. Format:
|
Returns
Type | Description |
---|---|
PublishersResource.ModelsResource.CountTokensRequest |
GenerateContent(GoogleCloudAiplatformV1beta1GenerateContentRequest, string)
Generate content with multimodal inputs.
Declaration
public virtual PublishersResource.ModelsResource.GenerateContentRequest GenerateContent(GoogleCloudAiplatformV1beta1GenerateContentRequest body, string model)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudAiplatformV1beta1GenerateContentRequest | 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 |
---|---|
PublishersResource.ModelsResource.GenerateContentRequest |
Get(string)
Gets a Model Garden publisher model.
Declaration
public virtual PublishersResource.ModelsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the PublisherModel resource. Format:
|
Returns
Type | Description |
---|---|
PublishersResource.ModelsResource.GetRequest |
List(string)
Lists publisher models in Model Garden.
Declaration
public virtual PublishersResource.ModelsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The name of the Publisher from which to list the PublisherModels. Format:
|
Returns
Type | Description |
---|---|
PublishersResource.ModelsResource.ListRequest |
StreamGenerateContent(GoogleCloudAiplatformV1beta1GenerateContentRequest, string)
Generate content with multimodal inputs with streaming support.
Declaration
public virtual PublishersResource.ModelsResource.StreamGenerateContentRequest StreamGenerateContent(GoogleCloudAiplatformV1beta1GenerateContentRequest body, string model)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudAiplatformV1beta1GenerateContentRequest | 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 |
---|---|
PublishersResource.ModelsResource.StreamGenerateContentRequest |