fix(core): Use the correct docs URL for regular nodes when used as tools (#11529)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-11-04 12:31:17 +01:00
committed by GitHub
parent 097c2542d0
commit a092b8e972
2 changed files with 10 additions and 0 deletions

View File

@@ -432,12 +432,15 @@ export function convertNodeToAiTool<
}
}
const resources = item.description.codex?.resources ?? {};
item.description.codex = {
categories: ['AI'],
subcategories: {
AI: ['Tools'],
Tools: ['Other Tools'],
},
resources,
};
return item;
}