Skip to content

.Net: IFunctionFilter does not provide the fully qualified name of the KernelFunction #4913

@Nurgo

Description

@Nurgo

Describe the bug
PluginName is not set in FunctionInvokingContext and FunctionInvokedContext. Consequently, it is not possible to know the fully qualified name of the KernelFunction.

Additional context
The problem is that IFunctionFilter will often be used to tell the user when the chatbot is using a plugin, as it is done in ChatGPT.
For example, if the chatbot uses the HttpPlugin plugin, you need to be able to display "The agent is using the function HttpPlugin.GetAsync...", not "The agent is using the function GetAsync...".
It is therefore important that IFunctionFilter.OnFunctionInvoking() and IFunctionFilter.OnFunctionInvoked() provide the plugin name, not just the function name.

Metadata

Metadata

Labels

.NETIssue or Pull requests regarding .NET codekernelIssues 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