Skip to content

Using FunctionChoiceBehavior auto function calling filters to exclude functions #7600

Answered by moonbox3
ColtonBehannon asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ColtonBehannon, thanks for the question. If you want to exclude a function via the filters dictionary, you'll need to make sure you're supplying the correct fully qualified name. We use a hyphen ("-") to separate plugin names and function names. Therefore if you're hoping to exclude the plugin GeneralWebSearch with the function name ReliableSources, it should be written as GeneralWebSearch-ReliableSources.

This is the code that is being called to filter out plugins or functions:

https://github.com/microsoft/semantic-kernel/blob/a53b96a1ae066160872b3cad65387442995a788d/python/semantic_kernel/functions/kernel_function_extension.py#L368C5-L410C22

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ColtonBehannon
Comment options

Answer selected by ColtonBehannon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants