tempfile is already imported at module level (line 3). The local
imports inside set_default_downloads_path() and _extract_extension()
were shadowing the module-level import with no effect.
Refs: browser-use/browser-use#4242
- Refactored CodeAgent to utilize CodeAgentTools instead of the generic Tools class for enhanced functionality.
- Introduced custom pricing for 'bu-latest' and 'smart' models, specifying input and output costs per token, along with cache read costs.
This update improves the agent's tool capabilities and introduces new pricing structures for better cost management.