MCPcopy Create free account
hub / github.com/serverless/examples / main

Function main

aws-bedrock-agentcore/javascript/langgraph-basic/test-invoke.js:94–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92}
93
94async 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
112main().catch((err) => {
113 console.error('Test failed:', err)

Callers 1

test-invoke.jsFile · 0.70

Calls 1

invokeAgentFunction · 0.70

Tested by

no test coverage detected