feat: add render_mindmap a2ui tool with d3-hierarchy layout

This commit is contained in:
2026-03-01 22:09:17 +01:00
parent 3addd92728
commit 71d05a0fa5
13 changed files with 683 additions and 7 deletions

View File

@@ -22,10 +22,11 @@ describe('A2UI Tools — createA2UITools', () => {
'render_metric',
'render_list',
'render_tabs',
'render_mindmap',
];
it('returns all 7 tools', () => {
expect(Object.keys(tools)).toHaveLength(7);
it('returns all 8 tools', () => {
expect(Object.keys(tools)).toHaveLength(8);
for (const name of expectedToolNames) {
expect(tools).toHaveProperty(name);
}
@@ -54,6 +55,9 @@ describe('A2UI Tools — createA2UITools', () => {
title: 'Test',
tabs: [{ label: 'Tab1', content: [{ type: 'text', data: 'Hello' }] }],
},
render_mindmap: {
nodes: [{ id: 'root', label: 'Topic' }],
},
};
const result = await tool.execute!(