()
| 92 | } |
| 93 | |
| 94 | async function main() { |
| 95 | console.log('LangGraph Agent Test Suite') |
| 96 | console.log('='.repeat(50) + '\n') |
| 97 | |
| 98 | // Test 1: Simple calculation |
| 99 | console.log('Test 1: Calculator\n') |
| 100 | await invokeAgent('What is 25 multiplied by 4?') |
| 101 | |
| 102 | console.log('='.repeat(50)) |
| 103 | |
| 104 | // Test 2: Time query |
| 105 | console.log('\nTest 2: Time query\n') |
| 106 | await invokeAgent('What is the current time?') |
| 107 | |
| 108 | console.log('='.repeat(50)) |
| 109 | console.log('All tests completed!') |
| 110 | } |
| 111 | |
| 112 | main().catch((err) => { |
| 113 | console.error('Test failed:', err) |
no test coverage detected