mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 19:29:26 +00:00
fix(agent): set empty details in asset tool results to avoid data duplication (#370)
This commit is contained in:
@@ -83,7 +83,13 @@ describe('createCreateVersionTool', () => {
|
||||
metadata: undefined,
|
||||
})
|
||||
|
||||
expect(result.details).toEqual({ id: 'file-1', name: 'v2', type: 'file', size: 100 })
|
||||
expect(result.details).toEqual({})
|
||||
expect(JSON.parse((result.content[0] as { text: string }).text)).toEqual({
|
||||
id: 'file-1',
|
||||
name: 'v2',
|
||||
type: 'file',
|
||||
size: 100,
|
||||
})
|
||||
})
|
||||
|
||||
it('should forward the metadata to assetService.createVersion when provided', async () => {
|
||||
|
||||
Reference in New Issue
Block a user