AIServiceExtensions Class

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Extension methods for IAIService.

C#
public static class AIServiceExtensions
Inheritance
AIServiceExtensions

Properties

ApiVersionKey

Gets the key used to store the API version in the Attributes dictionary.

EndpointKey

Gets the key used to store the endpoint key in the Attributes dictionary.

ModelIdKey

Gets the key used to store the model identifier in the Attributes dictionary.

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.

SelectAIService<T>(IAIServiceSelector, Kernel, KernelFunction, KernelArguments)

Resolves an IAIService and associated PromptExecutionSettings from the specified Kernel based on a KernelFunction and associated KernelArguments.

Applies to

Proizvod Verzije
Semantic Kernel Dotnet Latest