INNER CODE UNIT · JavaScript

finalMessage

serverless/examples · aws-bedrock-agentcore/javascript/langgraph-basic/index.js:141

      const finalMessage = result.messages[result.messages.length - 1]
      const response = finalMessage.content

      console.log(`Responding with: ${response}`)

      // Return the response (non-streaming)
      return response
    },
  },
})

// Start the AgentCore application
// This starts an HTTP server on port 8080 (default)
app.run()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…