Financial markets wrapped up the trading week with cautious optimism. Traders navigated between robust artificial intelligence sector momentum and headwinds from elevated borrowing costs and commodity prices.