Partager via


AIServiceExtensions Class

Definition

Extension methods for IAIService.

public static class AIServiceExtensions
type AIServiceExtensions = class
Public Module 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