feat: Add option to returnIntermediateSteps for AI agents (#8113)

## Summary
![CleanShot 2023-12-21 at 08 30
16](https://github.com/n8n-io/n8n/assets/12657221/66b0de47-80cd-41f9-940e-6cacc2c940a9)

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
This commit is contained in:
oleg
2023-12-21 10:27:49 +01:00
committed by GitHub
parent 6580b927b3
commit 7806a65229
7 changed files with 37 additions and 2 deletions

View File

@@ -43,8 +43,13 @@ export class ToolWikipedia implements INodeType {
};
async supplyData(this: IExecuteFunctions): Promise<SupplyData> {
const WikiTool = new WikipediaQueryRun();
WikiTool.description =
'A tool for interacting with and fetching data from the Wikipedia API. The input should always be a string query.';
return {
response: logWrapper(new WikipediaQueryRun(), this),
response: logWrapper(WikiTool, this),
};
}
}