Skip to content

Python: FunctionCallingStepwisePlanner ignoring passed excluded_functions #9284

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

You must be logged in to vote

Hi @ColtonBehannon, that line you pointed to in _generate_plan does look indeed to be an issue. We should be concatenating the hard-coded excluded plugin with whatever else is included in self.options.excluded_plugins.

The only thing I can think of to immediately unblock you, unless you want to raise a PR to fix the issue, is to override the generate plan method, and tailor it to work as you expect. Something like this:

    async def _new_generate_plan(
        self,
        question: str,
        kernel: Kernel,
        arguments: KernelArguments,
    ) -> str:
        """Generate the plan for the given question using the kernel."""
        generate_plan_function = self._create_config_fr…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@moonbox3
Comment options

Answer selected by ColtonBehannon
@ColtonBehannon
Comment options

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