v0.39.0
🎉 Overview
v0.39.0 adds support for the latest Anthropic models via adaptive thinking, so agents automatically use the right thinking configuration (budget_tokens vs. {"type": "adaptive"} + effort) for whichever model generation they run on — including Sonnet 5, Opus 4.6/4.7/4.8, and Fable 5. WebAgent gains multi-tab support with tools to list, switch, and close tabs plus configurable auto-following of newly opened tabs, and browser downloads are now reliably completed before teardown. The release also trims several unused runtime dependencies to slim the installation.
✨ New Features
- Adaptive thinking support for the latest Anthropic models —
make_thinking_settings()picks the correct thinking configuration per model generation, using a fixedbudget_tokensfor older models (Sonnet 4/4.5, Opus 4.1/4.5, Haiku 4.5) and{"type": "adaptive"}with aneffortsetting for newer ones (Sonnet 4.6/5, Opus 4.6/4.7/4.8, Fable 5); agents enable thinking by default without needing to know which generation they run on by @philipph-askui in #292 - Multi-tab support for
WebAgent— newlist_tabs,switch_tab, andclose_tabtools letact()manage browser tabs, and the newauto_follow_new_tabparameter (defaultTrue) controls whether tabs opened viatarget="_blank"/window.open()automatically become active;agent.os.switch_tab()allows manual switching by @philipph-askui in #294 WebAgent.wait_until_downloads_complete()— blocks until all downloads started so far are fully saved todownload_dirand returns their absolute paths, raisingDownloadErrorif any could not be saved by @philipph-askui in #293
🐛 Bug Fixes
- Browser downloads are now completed before browser teardown instead of being truncated, so files triggered late in a run are saved intact by @philipph-askui in #293
- Reliably flushed new-tab events before taking a screenshot and corrected auto-follow-new-tab behavior for the Playwright sync API by @philipph-askui in #294
🔧 Improvements
- Removed unused runtime dependencies (
apscheduler,sqlalchemy,aiofiles,requests,python-dateutil) and their dev type stubs to slim the installation by @philipph-askui in #294
Full Changelog: v0.38.0...v0.39.0