feat: Add nodeAsTool description overrides for tool version (no-changelog) (#14048)

This commit is contained in:
Charlie Kolb
2025-03-20 10:09:33 +01:00
committed by GitHub
parent c06ce765f1
commit 996026f358
3 changed files with 47 additions and 5 deletions

View File

@@ -1723,11 +1723,23 @@ export interface INodeTypeBaseDescription {
hidden?: true;
/**
* Whether the node will be wrapped for tool-use by AI Agents
* Whether the node will be wrapped for tool-use by AI Agents,
* optionally replacing provided parts of the description
*/
usableAsTool?: true;
usableAsTool?: true | UsableAsToolDescription;
}
/**
* NodeDescription entries that replace the base node entries when
* the node is used as a tool
*
* Note that the new codex is hardcoded and may not behave as expected
* without additional changes to the implementation.
*/
export type UsableAsToolDescription = {
replacements?: Partial<Omit<INodeTypeBaseDescription, 'usableAsTool'>>;
};
export interface INodePropertyRouting {
operations?: IN8nRequestOperations; // Should be changed, does not sound right
output?: INodeRequestOutput;