Skip to content

.Net: Parity between kernel.CreateFunctionFromPrompt( and KernelFunctionFactory.CreateFromPrompt( #4647

@joslat

Description

@joslat

the kernel "seems" to expose a lot of functionality, and some of its functions are "almost" on par with the ones provided by KernelFunctionFactory and also some from KernelPluginFactory, but not all. For example, KernelPluginFactory.CreateFromFunctions( is missing on the kernel. At least when I go to use it, see picture:
image

Also one of the methods of KernelFunctionFactory.cs is not exposed by the kernel, but it might be getting deprecated:

public static KernelFunction CreateFromPrompt(
    IPromptTemplate promptTemplate,
    PromptTemplateConfig promptConfig,
    ILoggerFactory? loggerFactory = null)

I find this a bit confusing, not having this parity.

Metadata

Metadata

Labels

kernelIssues or pull requests impacting the core kernelstaleIssue is stale because it has been open for a while and has no activity

Type

No type

Projects

Status

Sprint: Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions