Open svandenhoven opened 5 months ago
I have introduced a new parameter called input. This is per action in the actionplan. In the Action Handler the input is used instead of the whole sentence.
For instance if the user input is: "give me detail company info for Apple and summarize https://www.cbc.ca/lite/story/1.7276177"
the action plan is:
{
"type": "plan",
"commands": [
{
"type": "SAY",
"response": {
"content": "Absolutely! Please wait while I'm retrieving the financial details about Apple and summarizing the provided webpage.",
"role": "assistant"
}
},
{
"type": "DO",
"action": "getCompanyDetails",
"parameters": {
"entity": "Apple",
"input": "Give me the detailed information for Apple"
},
"parallelActions": []
},
{
"type": "DO",
"action": "webRetrieval",
"parameters": {
"entity": "https://www.cbc.ca/lite/story/1.7276177",
"input": "Summarize https://www.cbc.ca/lite/story/1.7276177"
}
}
]
}
The parameter.input is used to execute the action. This does result in the correct execution of the action as only the input that is applicable for the action is used.
When the command is "give me details about Microsoft and summarize https://en.wikipedia.org/wiki/Earth"
The action plan is
However the input in Webretrieval get the wrong command: "give me details about Microsoft and summarize \r\n ".
This results in the wrong answer