mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat: Add nodeAsTool description overrides for tool version (no-changelog) (#14048)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user