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. |
CancelKernelEventArgs |
Provides an EventArgs for cancelable operations related to Kernel-based operations. |
ChatHistoryExtensions |
Chat history extensions. |
ChatMessageContent |
Represents chat message content return from a IChatCompletionService service. |
FromKernelServicesAttribute |
Specifies that an argument to a KernelFunction should be supplied from the associated Kernel's Services rather than from KernelArguments. |
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. |
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. |
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 with should be included as a KernelFunction. |
KernelFunctionCanceledException |
Provides an OperationCanceledException-derived exception type that's thrown from a KernelFunction invocation when a Kernel event handler (e.g. FunctionInvoked) 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. |
KernelFunctionMarkdown |
Factory methods for creating instances. |
KernelFunctionMetadata |
Provides read-only metadata for a KernelFunction. |
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. |
OpenAIServiceCollectionExtensions |
Provides extension methods for IServiceCollection and related classes to configure OpenAI and Azure OpenAI connectors. |
OutputVariable |
Represents an output variable returned from a prompt function. |
PromptExecutionSettings |
Provides execution settings for an AI request. |
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. |
RestApiOperationResponse |
The REST API operation response. |
RestApiOperationResponseConverter |
Converts a object of RestApiOperationResponse type to string type. |
StreamingChatMessageContent |
Abstraction of chat message content chunks when using streaming from IChatCompletionService interface. |
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. |
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. |
IKernelBuilder |
Provides a builder for constructing instances of Kernel. |
IKernelBuilderPlugins |
Provides a builder for adding plugins as singletons to a service collection. |
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. |