Table of Contents

Class GenerativeModelTasks

Namespace
GenerativeAI
Assembly
GenerativeAI.dll

The GenerativeModelTasks class defines a set of constant task names used to interact with generative AI models. These tasks are used across various operations for processing and generating content, embeddings, and token analysis.

public static class GenerativeModelTasks
Inheritance
GenerativeModelTasks
Inherited Members

Remarks

The constants in this class represent specific actions that can be performed using generative AI models. They are typically utilized in constructing API endpoints or specifying desired operations.

Fields

BatchEmbedContents

Task used to generate embeddings for multiple pieces of content in a batch.

public const string BatchEmbedContents = "batchEmbedContents"

Field Value

string

CountTokens

Task used to count the number of tokens in a given input.

public const string CountTokens = "countTokens"

Field Value

string

EmbedContent

Task used to generate an embedding for a single piece of content.

public const string EmbedContent = "embedContent"

Field Value

string

GenerateAnswer

Task used to generate a textual answer to a given question or query.

public const string GenerateAnswer = "generateAnswer"

Field Value

string

GenerateContent

Task used to generate content using a generative AI model.

public const string GenerateContent = "generateContent"

Field Value

string

StreamGenerateContent

Task used to stream content generation from a generative AI model.

public const string StreamGenerateContent = "streamGenerateContent"

Field Value

string