Partager via


ITextGenerationService Interface

Definition

Interface for text generation services

public interface ITextGenerationService : Microsoft.SemanticKernel.Services.IAIService
type ITextGenerationService = interface
    interface IAIService
Public Interface ITextGenerationService
Implements IAIService
Derived
Implements

Properties

Attributes

Gets the AI service attributes.

(Inherited from IAIService)

Methods

GetStreamingTextContentsAsync(String, PromptExecutionSettings, Kernel, CancellationToken)

Get streaming results for the prompt using the specified execution settings. Each modality may support for different types of streaming contents.

GetTextContentsAsync(String, PromptExecutionSettings, Kernel, CancellationToken)

Get completion results for the prompt and settings.

Extension Methods

GetApiVersion(IAIService)

Gets the API version from service's Attributes

GetEndpoint(IAIService)

Gets the endpoint from service's Attributes.

GetModelId(IAIService)

Gets the model identifier from service's Attributes.

GetTextContentAsync(ITextGenerationService, String, PromptExecutionSettings, Kernel, CancellationToken)

Get a single text generation result for the prompt and settings.

Applies to