Skip to content

feat!: introduce Claude 4 Sonnet#83

Merged
adi-wan-askui merged 11 commits intomainfrom
feat/introduce-claude-4
Jun 26, 2025
Merged

feat!: introduce Claude 4 Sonnet#83
adi-wan-askui merged 11 commits intomainfrom
feat/introduce-claude-4

Conversation

@onur-askui
Copy link
Contributor

  • Updated model references in the documentation and codebase from anthropic-claude-3-5-sonnet-20241022 to claude-sonnet-4-20250514.
  • Added support for stop_reason to the BaseAgent class to manage stop reasons and raise appropriate exceptions.
  • Added new exceptions MaxTokensExceededError and ModelRefusalError to handle specific model response scenarios via stop_reason on act().
  • Added support for thinking and tool choice via AskUiComputerAgentSettings and ClaudeComputerAgentSettings.
  • Updated tests to reflect the new model references.

@onur-askui onur-askui marked this pull request as ready for review June 24, 2025 06:37
- Updated model references in the documentation and codebase from `anthropic-claude-3-5-sonnet-20241022` to `claude-sonnet-4-20250514`.
- Added support for `stop_reason` to the `BaseAgent` class to manage stop reasons and raise appropriate exceptions.
- Added new exceptions `MaxTokensExceededError` and `ModelRefusalError` to handle specific model response scenarios via `stop_reason` on `act()`.
- Added support for thinking and tool choice via `AskUiComputerAgentSettings` and `ClaudeComputerAgentSettings`.
- Updated tests to reflect the new model references.
@onur-askui onur-askui force-pushed the feat/introduce-claude-4 branch from b529d1a to c71b89e Compare June 24, 2025 06:50
@onur-askui onur-askui requested a review from adi-wan-askui June 24, 2025 06:52
Copy link
Contributor

@adi-wan-askui adi-wan-askui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general, good job. Looking forward to Claude 4 and thinking etc. support :)

- no error thrown in telemetry because of serialization hiding other exceptions
- forward body of httpx.HTTPStatusError as ValueError
- otherwise validation fails
- allows retrying requests
@adi-wan-askui adi-wan-askui merged commit 82afffa into main Jun 26, 2025
1 check passed
@adi-wan-askui adi-wan-askui deleted the feat/introduce-claude-4 branch June 26, 2025 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants