Skip to content

Support Swift6 #83

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 16, 2025
Merged

Support Swift6 #83

merged 4 commits into from
Jul 16, 2025

Conversation

fumito-ito
Copy link
Owner

No description provided.

@fumito-ito fumito-ito requested a review from Copilot July 16, 2025 13:28
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the AnthropicSwiftSDK to support Swift 6 by adding Sendable conformance to types used in concurrent contexts and fixing compilation issues. The changes include adding Sendable conformance to various data structures, protocol constraints, and error types while also correcting spelling errors in test files.

  • Adds Sendable conformance to numerous data structures and enums throughout the SDK
  • Updates protocol constraints and generic parameters to support Swift 6 concurrency
  • Fixes spelling errors in test files from "succeeeded" to "succeeded"

Reviewed Changes

Copilot reviewed 31 out of 32 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
Package.swift Updates Swift tools version to 6.0 and minimum platform versions
Multiple entity files Adds Sendable conformance to data structures and enums
StreamingResponse.swift Adds Sendable conformance to protocol
AnthropicStreamingParser.swift Adds Sendable constraint to generic parameter
InputJSONDeltaAccumulator.swift Adds @unchecked Sendable conformance and improves error handling
StreamingResponse+Extension.swift Adds @Sendable annotation to Task closure
Multiple test files Corrects spelling from "succeeeded" to "succeeded"
BatchRequestCounts.swift Fixes property name spelling
HTTPMock.swift Adds nonisolated(unsafe) annotation
Example.swiftpm files Updates iOS version requirement and dependencies

@@ -19,7 +19,7 @@ final class ObjectListResponseTests: XCTestCase {
"processing_status": "ended",
"request_counts": {
"processing": 0,
"succeeeded": 95,
"succeeded": 95,
Copy link
Preview

Copilot AI Jul 16, 2025

Choose a reason for hiding this comment

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

Fixed spelling correction from "succeeeded" to "succeeded".

Copilot uses AI. Check for mistakes.

@@ -17,7 +17,7 @@ final class BatchResponseTests: XCTestCase {
"processing_status": "ended",
"request_counts": {
"processing": 0,
"succeeeded": 95,
"succeeded": 95,
Copy link
Preview

Copilot AI Jul 16, 2025

Choose a reason for hiding this comment

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

Fixed spelling correction from "succeeeded" to "succeeded".

Copilot uses AI. Check for mistakes.

@@ -34,7 +34,7 @@ final class MessageBatchesTests: XCTestCase {
"processing_status": "ended",
"request_counts": {
"processing": 0,
"succeeeded": 95,
"succeeded": 95,
Copy link
Preview

Copilot AI Jul 16, 2025

Choose a reason for hiding this comment

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

Fixed spelling correction from "succeeeded" to "succeeded".

Copilot uses AI. Check for mistakes.

@@ -12,7 +12,7 @@ public struct BatchRequestCounts: Decodable {
/// Number of requests in the Message Batch that have completed successfully.
///
/// This is zero until processing of the entire Message Batch has ended.
let succeeeded: Int
let succeeded: Int
Copy link
Preview

Copilot AI Jul 16, 2025

Choose a reason for hiding this comment

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

Fixed spelling correction from "succeeeded" to "succeeded".

Copilot uses AI. Check for mistakes.

@fumito-ito fumito-ito merged commit 1646098 into main Jul 16, 2025
2 checks passed
@fumito-ito fumito-ito deleted the feature/swift6 branch July 16, 2025 13:31
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.

1 participant