diff options
Diffstat (limited to 'packages/core/src/tools/tool-registry.test.ts')
| -rw-r--r-- | packages/core/src/tools/tool-registry.test.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/core/src/tools/tool-registry.test.ts b/packages/core/src/tools/tool-registry.test.ts index cccf011f..6db60377 100644 --- a/packages/core/src/tools/tool-registry.test.ts +++ b/packages/core/src/tools/tool-registry.test.ts @@ -332,4 +332,14 @@ describe('ToolRegistry', () => { expect(discoverSpy).toHaveBeenCalled(); }); }); + + describe('DiscoveredToolInvocation', () => { + it('should return the stringified params from getDescription', () => { + const tool = new DiscoveredTool(config, 'test-tool', 'A test tool', {}); + const params = { param: 'testValue' }; + const invocation = tool.build(params); + const description = invocation.getDescription(); + expect(description).toBe(JSON.stringify(params)); + }); + }); }); |
