Microsoft.SemanticKernel Namespace
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.
Classes
AggregatorPromptTemplateFactory |
Provides a IPromptTemplateFactory which aggregates multiple prompt template factories. |
AIFunctionExtensions |
Provides extension methods for AIFunction. |
ApiManifestKernelExtensions |
Provides extension methods for the Kernel class related to OpenAPI functionality. |
AudioContent |
Represents audio content. |
AutoFunctionChoiceBehavior |
Represents a FunctionChoiceBehavior that provides either all of the Kernel's plugins' functions to AI model to call or specified ones. This behavior allows the model to decide whether to call the functions and, if so, which ones to call. |
AutoFunctionInvocationContext |
Class with data related to automatic function invocation. |
AzureAIInferenceKernelBuilderExtensions |
Provides extension methods for IKernelBuilder to configure Azure AI Inference connectors. |
AzureAIInferenceServiceCollectionExtensions |
Provides extension methods for IServiceCollection to configure Azure AI Inference connectors. |
AzureAISearchKernelBuilderExtensions |
Extension methods to register Azure AI Search IVectorStore instances on the IKernelBuilder. |
AzureAISearchServiceCollectionExtensions |
Extension methods to register Azure AI Search IVectorStore instances on an IServiceCollection. |
AzureCosmosDBMongoDBKernelBuilderExtensions |
Extension methods to register Azure CosmosDB MongoDB IVectorStore instances on the IKernelBuilder. |
AzureCosmosDBMongoDBServiceCollectionExtensions |
Extension methods to register Azure CosmosDB MongoDB IVectorStore instances on an IServiceCollection. |
AzureCosmosDBNoSQLKernelBuilderExtensions |
Extension methods to register Azure CosmosDB NoSQL IVectorStore instances on the IKernelBuilder. |
AzureCosmosDBNoSQLServiceCollectionExtensions |
Extension methods to register Azure CosmosDB NoSQL IVectorStore instances on an IServiceCollection. |
AzureOpenAIKernelBuilderExtensions |
Provides extension methods for IKernelBuilder to configure Azure OpenAI connectors. |
AzureOpenAIServiceCollectionExtensions |
Provides extension methods for IServiceCollection to configure Azure OpenAI connectors. |
BinaryContent |
Provides access to binary content. |
BinaryContentExtensions |
Provides extension methods for interacting with BinaryContent. |
CancelKernelEventArgs |
Provides an EventArgs for cancelable operations related to Kernel-based operations. |
ChatMessageContent |
Represents chat message content return from a IChatCompletionService service. |
CopilotAgentPluginKernelExtensions |
Provides extension methods for the Kernel class related to OpenAPI functionality. |
DeclarativeAgentExtensions |
Provides extension methods for loading and managing declarative agents and their Copilot Agent Plugins. |
EchoPromptTemplateFactory |
Provides an implementation of IPromptTemplateFactory which creates no operation instances of IPromptTemplate. |
FileReferenceContent |
Content type to support file references. |
FromKernelServicesAttribute |
Specifies that an argument to a KernelFunction should be supplied from the associated Kernel's Services rather than from KernelArguments. |
FunctionCallContent |
Represents a function call requested by AI model. |
FunctionCallContentBuilder |
A builder class for creating FunctionCallContent objects from incremental function call updates represented by StreamingFunctionCallUpdateContent. |
FunctionChoiceBehavior |
Represents the base class for different function choice behaviors. These behaviors define the way functions are chosen by AI model and various aspects of their invocation by AI connectors. |
FunctionChoiceBehaviorConfiguration |
Represents function choice behavior configuration produced by a FunctionChoiceBehavior. |
FunctionChoiceBehaviorConfigurationContext |
The context is to be provided by the choice behavior consumer – AI connector in order to obtain the choice behavior configuration. |
FunctionChoiceBehaviorOptions |
Represents the options for a function choice behavior. |
FunctionInvocationContext |
Class with data related to function invocation. |
FunctionInvokedEventArgs |
Provides a CancelKernelEventArgs used in events just after a function is invoked. |
FunctionInvokingEventArgs |
Provides a CancelKernelEventArgs used in events just before a function is invoked. |
FunctionResult |
Represents the result of a KernelFunction invocation. |
FunctionResultContent |
Represents the result of a function call. |
GoogleAIKernelBuilderExtensions |
Extensions for adding GoogleAI generation services to the application. |
GoogleAIMemoryBuilderExtensions |
Provides extension methods for the MemoryBuilder class to configure GoogleAI connector. |
GoogleAIServiceCollectionExtensions |
Extensions for adding GoogleAI generation services to the application. |
HandlebarsKernelExtensions |
Provides Kernel extensions methods for Handlebars functionality. |
HttpOperationException |
Represents an exception specific to HTTP operations. |
HuggingFaceKernelBuilderExtensions |
Provides extension methods for the IKernelBuilder class to configure Hugging Face connectors. |
HuggingFaceServiceCollectionExtensions |
Provides extension methods for the IServiceCollection interface to configure Hugging Face connectors. |
ImageContent |
Represents image content. |
InputVariable |
Represents an input variable for prompt functions. |
Kernel |
Provides state for use throughout a Semantic Kernel workload. |
KernelArguments |
Provides a collection of arguments for operations such as KernelFunction's InvokeAsync and IPromptTemplate's RenderAsync. |
KernelContent |
Base class for all AI non-streaming results |
KernelEventArgs |
Provides an EventArgs for operations related to Kernel-based operations. |
KernelException |
Represents the base exception from which all Semantic Kernel exceptions derive. |
KernelExtensions |
Provides extension methods for interacting with Kernel and related types. |
KernelFunction |
Represents a function that can be invoked as part of a Semantic Kernel workload. |
KernelFunctionAttribute |
Specifies that a method on a class imported as a plugin should be included as a KernelFunction in the resulting KernelPlugin. |
KernelFunctionCanceledException |
Provides an OperationCanceledException-derived exception type that's thrown from a KernelFunction invocation when a Kernel function filter (e.g. FunctionInvocationFilters) requests cancellation. |
KernelFunctionFactory |
Provides factory methods for creating commonly-used implementations of KernelFunction, such as those backed by a prompt to be submitted to an LLM or those backed by a .NET method. |
KernelFunctionFromMethodOptions |
Optional options that can be provided when creating a KernelFunction from a method. |
KernelFunctionMarkdown |
Factory methods for creating instances. |
KernelFunctionMetadata |
Provides read-only metadata for a KernelFunction. |
KernelFunctionMetadataFactory |
Provides factory methods for creating collections of KernelFunctionMetadata, such as those backed by a prompt to be submitted to an LLM or those backed by a .NET method. |
KernelFunctionYaml |
Factory methods for creating instances. |
KernelJsonSchema |
Represents JSON Schema for describing types used in KernelFunctions. |
KernelJsonSchema.JsonConverter |
Converter for reading/writing the schema. |
KernelParameterMetadata |
Provides read-only metadata for a KernelFunction parameter. |
KernelPlugin |
Represents a plugin that may be registered with a Kernel. |
KernelPluginCollection |
Provides a collection of KernelPlugins. |
KernelPluginExtensions |
Provides extension methods for working with KernelPlugins and collections of them. |
KernelPluginFactory |
Provides static factory methods for creating commonly-used plugin implementations. |
KernelPromptTemplateFactory |
Provides an implementation of IPromptTemplateFactory for the SemanticKernelTemplateFormat template format. |
KernelReturnParameterMetadata |
Provides read-only metadata for a KernelFunction's return parameter. |
MarkdownKernelExtensions |
Class for extensions methods to define functions using prompt markdown format. |
MistralAIKernelBuilderExtensions |
Provides extension methods for the IKernelBuilder class to configure Mistral connectors. |
MistralAIServiceCollectionExtensions |
Provides extension methods for the IServiceCollection interface to configure Mistral connectors. |
MongoDBServiceCollectionExtensions |
Extension methods to register MongoDB IVectorStore instances on an IServiceCollection. |
NoneFunctionChoiceBehavior |
Represents FunctionChoiceBehavior that provides either all of the Kernel's plugins' functions to AI model to call or specified ones but instructs it not to call any of them. The model may use the provided function in the response it generates. E.g. the model may describe which functions it would call and with what parameter values. This response is useful if the user should first validate what functions the model will use. |
OllamaKernelBuilderExtensions |
Extension methods for adding Ollama Text Generation service to the kernel builder. |
OllamaServiceCollectionExtensions |
Extension methods for adding Ollama Text Generation service to the kernel builder. |
OnnxKernelBuilderExtensions |
Provides extension methods for the IKernelBuilder class to configure ONNX connectors. |
OnnxServiceCollectionExtensions |
Provides extension methods for the IServiceCollection interface to configure ONNX connectors. |
OpenAIChatHistoryExtensions |
Chat history extensions. |
OpenAIKernelBuilderExtensions |
Sponsor extensions class for IKernelBuilder. |
OpenAIServiceCollectionExtensions |
Sponsor extensions class for IServiceCollection. |
OpenApiKernelExtensions |
Extension methods for Kernel to create and import plugins from OpenAPI specifications. |
OutputVariable |
Represents an output variable returned from a prompt function. |
PineconeKernelBuilderExtensions |
Extension methods to register Pinecone IVectorStore instances on the IKernelBuilder. |
PineconeServiceCollectionExtensions |
Extension methods to register Pinecone IVectorStore instances on an IServiceCollection. |
PostgresServiceCollectionExtensions |
Extension methods to register Postgres IVectorStore instances on an IServiceCollection. |
PromptExecutionSettings |
Provides execution settings for an AI request. |
PromptRenderContext |
Class with data related to prompt rendering. |
PromptRenderedEventArgs |
Provides a CancelKernelEventArgs used in events raised just after a prompt has been rendered. |
PromptRenderingEventArgs |
Provides a KernelEventArgs used in events raised just before a prompt is rendered. |
PromptTemplateConfig |
Provides the configuration information necessary to create a prompt template. |
PromptTemplateFactoryExtensions |
Provides extension methods for operating on IPromptTemplateFactory instances. |
PromptYamlKernelExtensions |
Class for extensions methods to define functions using prompt YAML format. |
PromptyKernelExtensions |
Provides extension methods for creating KernelFunctions from the Prompty template format. |
QdrantKernelBuilderExtensions |
Extension methods to register Qdrant IVectorStore instances on the IKernelBuilder. |
QdrantServiceCollectionExtensions |
Extension methods to register Qdrant IVectorStore instances on an IServiceCollection. |
RedisKernelBuilderExtensions |
Extension methods to register Redis IVectorStore instances on the IKernelBuilder. |
RedisServiceCollectionExtensions |
Extension methods to register Redis IVectorStore instances on an IServiceCollection. |
RequiredFunctionChoiceBehavior |
Represents FunctionChoiceBehavior that provides either all of the Kernel's plugins' functions to AI model to call or specified ones. This behavior forces the model to always call one or more functions. |
RestApiOperationResponse |
The REST API operation response. |
RestApiOperationResponseConverter |
Converts a object of RestApiOperationResponse type to string type. |
RestApiOperationResponseExtensions |
Class for extensions methods for the RestApiOperationResponse class. |
SqliteServiceCollectionExtensions |
Extension methods to register SQLite IVectorStore instances on an IServiceCollection. |
StreamingChatMessageContent |
Abstraction of chat message content chunks when using streaming from IChatCompletionService interface. |
StreamingFileReferenceContent |
Content type to support file references. |
StreamingFunctionCallUpdateContent |
Represents a function streaming call requested by LLM. |
StreamingKernelContent |
Represents a single update to a streaming content. |
StreamingMethodContent |
Represents a manufactured streaming content from a single function result. |
StreamingTextContent |
Abstraction of text content chunks when using streaming from ITextGenerationService interface. |
TextContent |
Represents text content return from a ITextGenerationService service. |
TextSearchKernelBuilderExtensions |
Extension methods to register ITextSearch for use with Microsoft.SemanticKernel.KernelBuilder. |
TextSearchServiceCollectionExtensions |
Extension methods to register ITextSearch for use with IServiceCollection. |
VertexAIKernelBuilderExtensions |
Extensions for adding VertexAI generation services to the application. |
VertexAIMemoryBuilderExtensions |
Provides extension methods for the MemoryBuilder class to configure VertexAI connector. |
VertexAIServiceCollectionExtensions |
Extensions for adding VertexAI generation services to the application. |
WeaviateKernelBuilderExtensions |
Extension methods to register Weaviate IVectorStore instances on the IKernelBuilder. |
WeaviateServiceCollectionExtensions |
Extension methods to register Weaviate IVectorStore instances on an IServiceCollection |
WebKernelBuilderExtensions |
Extension methods to register ITextSearch for use with IKernelBuilder. |
WebServiceCollectionExtensions |
Extension methods to register ITextSearch for use with IServiceCollection. |
Structs
FunctionChoice |
Represents an AI model's decision-making strategy for calling functions, offering predefined choices: Auto, Required, and None. Auto allows the model to decide if and which functions to call, Required enforces calling one or more functions, and None prevents any function calls, generating only a user-facing message. |
Interfaces
IAIServiceSelector |
Represents a selector which will return a tuple containing instances of IAIService and PromptExecutionSettings from the specified provider based on the model settings. |
IAutoFunctionInvocationFilter |
Interface for filtering actions during automatic function invocation. |
IFunctionInvocationFilter |
Interface for filtering actions during function invocation. |
IKernelBuilder |
Provides a builder for constructing instances of Kernel. |
IKernelBuilderPlugins |
Provides a builder for adding plugins as singletons to a service collection. |
IPromptRenderFilter |
Interface for filtering actions during prompt rendering. |
IPromptTemplate |
Represents a prompt template that can be rendered to a string. |
IPromptTemplateFactory |
Represents a factory for prompt templates for one or more prompt template formats. |
IReadOnlyKernelPluginCollection |
Provides a read-only collection of KernelPlugins. |