You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AdditionalParams passed on to processRequest method is not being passed on to the toolHandler. This should be passedon, to allow additional logic to be executed in the handler
Current Behaviour
AdditionalParams are not being passed on the tool handler by the agent.
Expected Behaviour
Orchestrator routeRequest() method has four parameters:
_userInput: string, userId: string, sessionId: string, additionalParams?: Record<string, string>_
But in the toolHandler method invoked by inbuilt agents, only two arguments are being passed: The below snippet is from Anthropic agent.
Process request method of the agent signature:
_async processRequest(inputText, userId, sessionId, chatHistory, _additionalParams) {_
And tool invocation is being done as given below:
const toolResponse = await this.toolConfig.useToolHandler(response, messages);
AdditionalParams passed on to processRequest method is not being passed on to the toolHandler. This should be passedon, to allow additional logic to be executed in the handler
Current Behaviour
AdditionalParams are not being passed on the tool handler by the agent.
Code snippet
Possible Solution
Pass the additionalParams as well, as extra parameter to the tool handler method
const toolResponse = await this.toolConfig.useToolHandler(response, messages,_additionalParams );
Steps to Reproduce
The text was updated successfully, but these errors were encountered: