Agent Prompter calls AI tool with wrong parameter names

Hello,

I’ve created an AI tool that has two input variables:

userQuery

(string) and

number-chunks

(integer). I connected the tool to the “Agent Prompter” node using the “Workflow to Tool” node.

When I execute the Agent Prompter node, I get the following error message:

ERROR CloseablePythonNodeProxy agents._tool:Missing configuration parameters: userQuery-1951, number-chunks-1952

Can someone help with this?