Refactor project structure and remove unused modules
- Removed performance monitoring, tools service, and polyfills modules - Moved formatToolCall helper function to test file - Simplified imports in index.ts by removing polyfills import - Cleaned up unnecessary files and consolidated code structure
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
import { jest, describe, it, expect } from '@jest/globals';
|
||||
import { formatToolCall } from '../src/helpers.js';
|
||||
|
||||
// Helper function moved from src/helpers.ts
|
||||
const formatToolCall = (obj: any, isError: boolean = false) => {
|
||||
return {
|
||||
content: [{ type: "text", text: JSON.stringify(obj, null, 2), isError }],
|
||||
};
|
||||
};
|
||||
|
||||
describe('helpers', () => {
|
||||
describe('formatToolCall', () => {
|
||||
|
||||
Reference in New Issue
Block a user