Build Information
Successful build of AnthropicSwiftSDK, reference 0.13.0 (30e7e3
), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 03:20:35 UTC.
Swift 6 data race errors: 5
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.61.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fumito-ito/AnthropicSwiftSDK.git
Reference: 0.13.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fumito-ito/AnthropicSwiftSDK
* tag 0.13.0 -> FETCH_HEAD
HEAD is now at 30e7e34 Merge pull request #68 from fumito-ito/feature/admin-api
Cloned https://github.com/fumito-ito/AnthropicSwiftSDK.git
Revision (git rev-parse @):
30e7e34db3660dafabed22c1b1f0ec5b915d86e5
SUCCESS checkout https://github.com/fumito-ito/AnthropicSwiftSDK.git at 0.13.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/fumito-ito/AnthropicSwiftSDK.git
https://github.com/fumito-ito/AnthropicSwiftSDK.git
{
"dependencies" : [
{
"identity" : "swiftyjsonlines",
"requirement" : {
"range" : [
{
"lower_bound" : "0.0.3",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/fumito-ito/SwiftyJSONLines.git"
}
],
"manifest_display_name" : "AnthropicSwiftSDK",
"name" : "AnthropicSwiftSDK",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "17.0"
},
{
"name" : "macos",
"version" : "14.0"
}
],
"products" : [
{
"name" : "AnthropicSwiftSDK",
"targets" : [
"AnthropicSwiftSDK"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AnthropicSwiftSDKTests",
"module_type" : "SwiftTarget",
"name" : "AnthropicSwiftSDKTests",
"path" : "Tests/AnthropicSwiftSDKTests",
"sources" : [
"API/APIKeysTests.swift",
"API/MessageBatchesTests.swift",
"API/MessagesTests.swift",
"API/OrganizationInvitesTests.swift",
"API/OrganizationMembersTests.swift",
"API/WorkspaceMembersTests.swift",
"API/WorkspacesTests.swift",
"Entity/ContentTests.swift",
"Entity/ModelTests.swift",
"Entity/Streaming/StreamingMessageDeltaResponseTests.swift",
"Entity/SystemPromptTests.swift",
"Entity/Tool/ToolTests.swift",
"Entity/ToolChoiceTests.swift",
"Network/AnthropicAPIClientTests.swift",
"Network/HeaderProvider/APIKeyAuthenticationHeaderProviderTests.swift",
"Network/HeaderProvider/DefaultAnthropicHeaderProviderTests.swift",
"Network/Request/Admin/ArchiveWorkspaceRequestTests.swift",
"Network/Request/Admin/CreateOrganizationInviteRequestTests.swift",
"Network/Request/Admin/CreateWorkspaceMemberRequestTests.swift",
"Network/Request/Admin/CreateWorkspaceRequestTests.swift",
"Network/Request/Admin/DeleteOrganizationInviteRequestTests.swift",
"Network/Request/Admin/DeleteWorkspaceMemberRequestTests.swift",
"Network/Request/Admin/GetAPIKeyRequestTests.swift",
"Network/Request/Admin/GetOrganizationInviteRequestTests.swift",
"Network/Request/Admin/GetOrganizationMemberRequestTests.swift",
"Network/Request/Admin/GetWorkspaceMemberRequestTests.swift",
"Network/Request/Admin/GetWorkspaceRequestTests.swift",
"Network/Request/Admin/RemoveOrganizationMemberRequestTests.swift",
"Network/Request/Admin/UpdateAPIKeyRequestTests.swift",
"Network/Request/Admin/UpdateOrganizationMemberRequestTests.swift",
"Network/Request/Admin/UpdateWorkspaceMemberRequestTests.swift",
"Network/Request/Admin/UpdateWorkspaceRequestTests.swift",
"Network/Request/CancelMessageBatchRequestTests.swift",
"Network/Request/CountTokenRequestTests.swift",
"Network/Request/ListMessageBatchesRequestTests.swift",
"Network/Request/MessageBatchesRequestTests.swift",
"Network/Request/MessagesRequestTests.swift",
"Network/Request/RequestTests.swift",
"Network/Request/RetrieveMessageBatchResultsRequestTests.swift",
"Network/Request/RetrieveMessageBatchesRequestTests.swift",
"Network/Response/APIKeyResponseTests.swift",
"Network/Response/BatchResponseTests.swift",
"Network/Response/BatchResultResponseTests.swift",
"Network/Response/MessagesResponseTests.swift",
"Network/Response/ObjectListResponseTests.swift",
"Network/Response/OrganizationInviteResponseTests.swift",
"Network/Response/OrganizationMemberResponseTests.swift",
"Network/Response/WorkspaceMemberResponseTests.swift",
"Network/Response/WorkspaceResponseTests.swift",
"Network/StreamingParser/StreamingDataLineParserTests.swift",
"Network/StreamingParser/StreamingEventLineParserTests.swift",
"Network/StreamingParser/StreamingResponseParserTests.swift",
"Util/InputJSONDeltaAccumulatorTests.swift"
],
"target_dependencies" : [
"AnthropicSwiftSDK",
"AnthropicSwiftSDK-TestUtils"
],
"type" : "test"
},
{
"c99name" : "AnthropicSwiftSDK_TestUtils",
"module_type" : "SwiftTarget",
"name" : "AnthropicSwiftSDK-TestUtils",
"path" : "Sources/AnthropicSwiftSDK-TestUtils",
"sources" : [
"HTTPMock.swift",
"MessagesRequest+Extensions.swift"
],
"target_dependencies" : [
"AnthropicSwiftSDK"
],
"type" : "library"
},
{
"c99name" : "AnthropicSwiftSDK",
"module_type" : "SwiftTarget",
"name" : "AnthropicSwiftSDK",
"path" : "Sources/AnthropicSwiftSDK",
"product_dependencies" : [
"SwiftyJSONLines"
],
"product_memberships" : [
"AnthropicSwiftSDK"
],
"sources" : [
"API/Admin/APIKeys.swift",
"API/Admin/Admin.swift",
"API/Admin/OrganizationInvites.swift",
"API/Admin/OrganizationMembers.swift",
"API/Admin/WorkspaceMembers.swift",
"API/Admin/Workspaces.swift",
"API/CountTokens.swift",
"API/MessageBatches.swift",
"API/Messages.swift",
"Anthropic.swift",
"AnthropicAPIError.swift",
"AnthropicVersion.swift",
"ClientError.swift",
"Entity/Admin/Invitation.swift",
"Entity/Admin/OrganizationRole.swift",
"Entity/Admin/Registration.swift",
"Entity/Admin/WorkspaceRole.swift",
"Entity/Batch/BatchParameter.swift",
"Entity/Batch/BatchRequestCounts.swift",
"Entity/Batch/BatchResultType.swift",
"Entity/Batch/BatchType.swift",
"Entity/Batch/MessageBatch.swift",
"Entity/Batch/ProcessingStatus.swift",
"Entity/Content/Content.swift",
"Entity/Content/DocumentContent.swift",
"Entity/Content/ImageContent.swift",
"Entity/Content/ToolResultContent.swift",
"Entity/Content/ToolUseContent.swift",
"Entity/Message.swift",
"Entity/MetaData.swift",
"Entity/Model.swift",
"Entity/Role.swift",
"Entity/StopReason.swift",
"Entity/Streaming/ContentBlockDelta.swift",
"Entity/Streaming/ContentBlockDeltaType.swift",
"Entity/Streaming/MessageDelta.swift",
"Entity/Streaming/StreamingError.swift",
"Entity/Streaming/StreamingEvent.swift",
"Entity/SystemPrompt.swift",
"Entity/TokenUsage.swift",
"Entity/Tool/BashTool.swift",
"Entity/Tool/ComputerTool.swift",
"Entity/Tool/FunctionTool.swift",
"Entity/Tool/TextEditorTool.swift",
"Entity/Tool/Tool.swift",
"Entity/ToolChoice.swift",
"Network/AnthropicAPIClient.swift",
"Network/Extension/StreamingResponse+Extension.swift",
"Network/HeaderProvider/AnthropicHeaderProvider.swift",
"Network/HeaderProvider/AuthenticationHeaderProvider.swift",
"Network/ObjectListable.swift",
"Network/Request/APIKeys/GetAPIKeyRequest.swift",
"Network/Request/APIKeys/UpdateAPIKeyRequest.swift",
"Network/Request/CountTokenRequest.swift",
"Network/Request/ListObjectRequest.swift",
"Network/Request/MessageBatches/CancelMessageBatchRequest.swift",
"Network/Request/MessageBatches/MessageBatchesRequest.swift",
"Network/Request/MessageBatches/RetrieveMessageBatchResultsRequest.swift",
"Network/Request/MessageBatches/RetrieveMessageBatchesRequest.swift",
"Network/Request/MessagesRequest.swift",
"Network/Request/OrganizationInvites/CreateOrganizationInviteRequest.swift",
"Network/Request/OrganizationInvites/DeleteOrganizationInviteRequest.swift",
"Network/Request/OrganizationInvites/GetOrganizationInviteRequest.swift",
"Network/Request/OrganizationMembers/GetOrganizationMemberRequest.swift",
"Network/Request/OrganizationMembers/RemoveOrganizationMemberRequest.swift",
"Network/Request/OrganizationMembers/UpdateOrganizationMemberRequest.swift",
"Network/Request/Request.swift",
"Network/Request/WorkspaceMembers/CreateWorkspaceMemberRequest.swift",
"Network/Request/WorkspaceMembers/DeleteWorkspaceMemberRequest.swift",
"Network/Request/WorkspaceMembers/GetWorkspaceMemberRequest.swift",
"Network/Request/WorkspaceMembers/UpdateWorkspaceMemberRequest.swift",
"Network/Request/Workspaces/ArchiveWorkspaceRequest.swift",
"Network/Request/Workspaces/CreateWorkspaceRequest.swift",
"Network/Request/Workspaces/GetWorkspaceRequest.swift",
"Network/Request/Workspaces/UpdateWorkspaceRequest.swift",
"Network/Response/APIKeyResponse.swift",
"Network/Response/BatchResponse.swift",
"Network/Response/BatchResultResponse.swift",
"Network/Response/CountTokenResponse.swift",
"Network/Response/InvitationRemoveResponse.swift",
"Network/Response/InvitationResponse.swift",
"Network/Response/MessagesResponse.swift",
"Network/Response/ObjectListResponse.swift",
"Network/Response/OrganizationMemberRemoveResponse.swift",
"Network/Response/OrganizationMemberResponse.swift",
"Network/Response/StreamingResponse.swift",
"Network/Response/WorkspaceMemberRemoveResponse.swift",
"Network/Response/WorkspaceMemberResponse.swift",
"Network/Response/WorkspaceResponse.swift",
"Network/StreamingParser/AnthropicStreamingParser.swift",
"Network/StreamingParser/StreamingDataLineParser.swift",
"Network/StreamingParser/StreamingEventLineParser.swift",
"Network/StreamingParser/StreamingResponseParser.swift",
"Util/AnthropicJSONDecoder.swift",
"Util/AnthropicJSONEncoder.swift",
"Util/AnyDecodable.swift",
"Util/InputJSONDeltaAccumulator.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-2F0A5646E1D333AE.txt
[5/6] Compiling SwiftyJSONLines SwiftyJSONLines.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[6/6] Emitting module SwiftyJSONLines
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[7/95] Compiling AnthropicSwiftSDK Model.swift
[8/95] Compiling AnthropicSwiftSDK Role.swift
[9/95] Compiling AnthropicSwiftSDK StopReason.swift
[10/95] Compiling AnthropicSwiftSDK ContentBlockDelta.swift
[11/95] Compiling AnthropicSwiftSDK ContentBlockDeltaType.swift
[12/95] Compiling AnthropicSwiftSDK MessageDelta.swift
[13/95] Compiling AnthropicSwiftSDK StreamingError.swift
[14/95] Compiling AnthropicSwiftSDK StreamingEvent.swift
[15/95] Compiling AnthropicSwiftSDK SystemPrompt.swift
[16/95] Compiling AnthropicSwiftSDK TokenUsage.swift
[17/104] Emitting module AnthropicSwiftSDK
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:25:10: warning: associated value 'cannotFindToolUseContentFromResponse' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'MessagesResponse'; this is an error in the Swift 6 language mode
23 | case anyToolsAreDefined
24 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in response
25 | case cannotFindToolUseContentFromResponse(MessagesResponse)
| `- warning: associated value 'cannotFindToolUseContentFromResponse' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'MessagesResponse'; this is an error in the Swift 6 language mode
26 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in content_block_start chunk
27 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/MessagesResponse.swift:18:15: note: consider making struct 'MessagesResponse' conform to the 'Sendable' protocol
16 |
17 | /// Messages API response
18 | public struct MessagesResponse: Decodable {
| `- note: consider making struct 'MessagesResponse' conform to the 'Sendable' protocol
19 | /// Unique object identifier.
20 | public let id: String
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:28:10: warning: associated value 'cannotFindToolUseContentFromContentBlockStart' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Content'; this is an error in the Swift 6 language mode
26 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in content_block_start chunk
27 | // swiftlint:disable:next identifier_name
28 | case cannotFindToolUseContentFromContentBlockStart(Content?)
| `- warning: associated value 'cannotFindToolUseContentFromContentBlockStart' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Content'; this is an error in the Swift 6 language mode
29 | /// SDK tries to aggregate partial json string into JSON object but failed
30 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Content/Content.swift:29:13: note: consider making enum 'Content' conform to the 'Sendable' protocol
27 | ///
28 | /// Starting with Claude 3 models, you can also send `image` content blocks.
29 | public enum Content {
| `- note: consider making enum 'Content' conform to the 'Sendable' protocol
30 | /// a single string
31 | case text(String, cacheControl: CacheControl? = nil)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:35:10: warning: associated value 'failedToMakeEncodableToolUseInput' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
33 | case failedToDecodeToolUseContent
34 | /// SDK failed to make `ToolUse.input` encodable
35 | case failedToMakeEncodableToolUseInput([String: Any])
| `- warning: associated value 'failedToMakeEncodableToolUseInput' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
36 | /// SDK failed to encode `SystemPrompt` object
37 | case failedToEncodeSystemPrompt
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:39:10: warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Model'; this is an error in the Swift 6 language mode
37 | case failedToEncodeSystemPrompt
38 | /// These messages are not supported by the model.
39 | case unsupportedMessageContentContained(model: Model, messages: [Message])
| `- warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Model'; this is an error in the Swift 6 language mode
40 | /// Some unsupported features are used.
41 | case unsupportedFeatureUsed(description: String)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Model.swift:13:13: note: consider making enum 'Model' conform to the 'Sendable' protocol
11 | ///
12 | /// See [models](https://docs.anthropic.com/claude/docs/models-overview) for additional details and options.
13 | public enum Model {
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
14 | /// Most powerful model for highly complex tasks
15 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:39:10: warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Message'; this is an error in the Swift 6 language mode
37 | case failedToEncodeSystemPrompt
38 | /// These messages are not supported by the model.
39 | case unsupportedMessageContentContained(model: Model, messages: [Message])
| `- warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Message'; this is an error in the Swift 6 language mode
40 | /// Some unsupported features are used.
41 | case unsupportedFeatureUsed(description: String)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Message.swift:17:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
15 | ///
16 | /// If the final message uses the `assistant` role, the response content will continue immediately from the content in that message. This can be used to constrain part of the model's response.
17 | public struct Message: Codable {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
18 | /// role of the message
19 | public let role: Role
[18/104] Compiling AnthropicSwiftSDK CreateOrganizationInviteRequest.swift
[19/104] Compiling AnthropicSwiftSDK DeleteOrganizationInviteRequest.swift
[20/104] Compiling AnthropicSwiftSDK GetOrganizationInviteRequest.swift
[21/104] Compiling AnthropicSwiftSDK GetOrganizationMemberRequest.swift
[22/104] Compiling AnthropicSwiftSDK RemoveOrganizationMemberRequest.swift
[23/104] Compiling AnthropicSwiftSDK UpdateOrganizationMemberRequest.swift
[24/104] Compiling AnthropicSwiftSDK Request.swift
[25/104] Compiling AnthropicSwiftSDK CreateWorkspaceMemberRequest.swift
[26/104] Compiling AnthropicSwiftSDK DeleteWorkspaceMemberRequest.swift
[27/104] Compiling AnthropicSwiftSDK GetWorkspaceMemberRequest.swift
[28/104] Compiling AnthropicSwiftSDK BatchType.swift
[29/104] Compiling AnthropicSwiftSDK MessageBatch.swift
[30/104] Compiling AnthropicSwiftSDK ProcessingStatus.swift
[31/104] Compiling AnthropicSwiftSDK Content.swift
[32/104] Compiling AnthropicSwiftSDK DocumentContent.swift
[33/104] Compiling AnthropicSwiftSDK ImageContent.swift
[34/104] Compiling AnthropicSwiftSDK ToolResultContent.swift
[35/104] Compiling AnthropicSwiftSDK ToolUseContent.swift
[36/104] Compiling AnthropicSwiftSDK Message.swift
[37/104] Compiling AnthropicSwiftSDK MetaData.swift
[38/104] Compiling AnthropicSwiftSDK AnthropicAPIError.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:25:10: warning: associated value 'cannotFindToolUseContentFromResponse' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'MessagesResponse'; this is an error in the Swift 6 language mode
23 | case anyToolsAreDefined
24 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in response
25 | case cannotFindToolUseContentFromResponse(MessagesResponse)
| `- warning: associated value 'cannotFindToolUseContentFromResponse' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'MessagesResponse'; this is an error in the Swift 6 language mode
26 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in content_block_start chunk
27 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/MessagesResponse.swift:18:15: note: consider making struct 'MessagesResponse' conform to the 'Sendable' protocol
16 |
17 | /// Messages API response
18 | public struct MessagesResponse: Decodable {
| `- note: consider making struct 'MessagesResponse' conform to the 'Sendable' protocol
19 | /// Unique object identifier.
20 | public let id: String
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:28:10: warning: associated value 'cannotFindToolUseContentFromContentBlockStart' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Content'; this is an error in the Swift 6 language mode
26 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in content_block_start chunk
27 | // swiftlint:disable:next identifier_name
28 | case cannotFindToolUseContentFromContentBlockStart(Content?)
| `- warning: associated value 'cannotFindToolUseContentFromContentBlockStart' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Content'; this is an error in the Swift 6 language mode
29 | /// SDK tries to aggregate partial json string into JSON object but failed
30 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Content/Content.swift:29:13: note: consider making enum 'Content' conform to the 'Sendable' protocol
27 | ///
28 | /// Starting with Claude 3 models, you can also send `image` content blocks.
29 | public enum Content {
| `- note: consider making enum 'Content' conform to the 'Sendable' protocol
30 | /// a single string
31 | case text(String, cacheControl: CacheControl? = nil)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:35:10: warning: associated value 'failedToMakeEncodableToolUseInput' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
33 | case failedToDecodeToolUseContent
34 | /// SDK failed to make `ToolUse.input` encodable
35 | case failedToMakeEncodableToolUseInput([String: Any])
| `- warning: associated value 'failedToMakeEncodableToolUseInput' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
36 | /// SDK failed to encode `SystemPrompt` object
37 | case failedToEncodeSystemPrompt
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:39:10: warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Model'; this is an error in the Swift 6 language mode
37 | case failedToEncodeSystemPrompt
38 | /// These messages are not supported by the model.
39 | case unsupportedMessageContentContained(model: Model, messages: [Message])
| `- warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Model'; this is an error in the Swift 6 language mode
40 | /// Some unsupported features are used.
41 | case unsupportedFeatureUsed(description: String)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Model.swift:13:13: note: consider making enum 'Model' conform to the 'Sendable' protocol
11 | ///
12 | /// See [models](https://docs.anthropic.com/claude/docs/models-overview) for additional details and options.
13 | public enum Model {
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
14 | /// Most powerful model for highly complex tasks
15 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:39:10: warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Message'; this is an error in the Swift 6 language mode
37 | case failedToEncodeSystemPrompt
38 | /// These messages are not supported by the model.
39 | case unsupportedMessageContentContained(model: Model, messages: [Message])
| `- warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Message'; this is an error in the Swift 6 language mode
40 | /// Some unsupported features are used.
41 | case unsupportedFeatureUsed(description: String)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Message.swift:17:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
15 | ///
16 | /// If the final message uses the `assistant` role, the response content will continue immediately from the content in that message. This can be used to constrain part of the model's response.
17 | public struct Message: Codable {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
18 | /// role of the message
19 | public let role: Role
[39/104] Compiling AnthropicSwiftSDK AnthropicVersion.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:25:10: warning: associated value 'cannotFindToolUseContentFromResponse' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'MessagesResponse'; this is an error in the Swift 6 language mode
23 | case anyToolsAreDefined
24 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in response
25 | case cannotFindToolUseContentFromResponse(MessagesResponse)
| `- warning: associated value 'cannotFindToolUseContentFromResponse' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'MessagesResponse'; this is an error in the Swift 6 language mode
26 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in content_block_start chunk
27 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/MessagesResponse.swift:18:15: note: consider making struct 'MessagesResponse' conform to the 'Sendable' protocol
16 |
17 | /// Messages API response
18 | public struct MessagesResponse: Decodable {
| `- note: consider making struct 'MessagesResponse' conform to the 'Sendable' protocol
19 | /// Unique object identifier.
20 | public let id: String
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:28:10: warning: associated value 'cannotFindToolUseContentFromContentBlockStart' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Content'; this is an error in the Swift 6 language mode
26 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in content_block_start chunk
27 | // swiftlint:disable:next identifier_name
28 | case cannotFindToolUseContentFromContentBlockStart(Content?)
| `- warning: associated value 'cannotFindToolUseContentFromContentBlockStart' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Content'; this is an error in the Swift 6 language mode
29 | /// SDK tries to aggregate partial json string into JSON object but failed
30 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Content/Content.swift:29:13: note: consider making enum 'Content' conform to the 'Sendable' protocol
27 | ///
28 | /// Starting with Claude 3 models, you can also send `image` content blocks.
29 | public enum Content {
| `- note: consider making enum 'Content' conform to the 'Sendable' protocol
30 | /// a single string
31 | case text(String, cacheControl: CacheControl? = nil)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:35:10: warning: associated value 'failedToMakeEncodableToolUseInput' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
33 | case failedToDecodeToolUseContent
34 | /// SDK failed to make `ToolUse.input` encodable
35 | case failedToMakeEncodableToolUseInput([String: Any])
| `- warning: associated value 'failedToMakeEncodableToolUseInput' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
36 | /// SDK failed to encode `SystemPrompt` object
37 | case failedToEncodeSystemPrompt
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:39:10: warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Model'; this is an error in the Swift 6 language mode
37 | case failedToEncodeSystemPrompt
38 | /// These messages are not supported by the model.
39 | case unsupportedMessageContentContained(model: Model, messages: [Message])
| `- warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Model'; this is an error in the Swift 6 language mode
40 | /// Some unsupported features are used.
41 | case unsupportedFeatureUsed(description: String)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Model.swift:13:13: note: consider making enum 'Model' conform to the 'Sendable' protocol
11 | ///
12 | /// See [models](https://docs.anthropic.com/claude/docs/models-overview) for additional details and options.
13 | public enum Model {
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
14 | /// Most powerful model for highly complex tasks
15 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:39:10: warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Message'; this is an error in the Swift 6 language mode
37 | case failedToEncodeSystemPrompt
38 | /// These messages are not supported by the model.
39 | case unsupportedMessageContentContained(model: Model, messages: [Message])
| `- warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Message'; this is an error in the Swift 6 language mode
40 | /// Some unsupported features are used.
41 | case unsupportedFeatureUsed(description: String)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Message.swift:17:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
15 | ///
16 | /// If the final message uses the `assistant` role, the response content will continue immediately from the content in that message. This can be used to constrain part of the model's response.
17 | public struct Message: Codable {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
18 | /// role of the message
19 | public let role: Role
[40/104] Compiling AnthropicSwiftSDK ClientError.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:25:10: warning: associated value 'cannotFindToolUseContentFromResponse' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'MessagesResponse'; this is an error in the Swift 6 language mode
23 | case anyToolsAreDefined
24 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in response
25 | case cannotFindToolUseContentFromResponse(MessagesResponse)
| `- warning: associated value 'cannotFindToolUseContentFromResponse' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'MessagesResponse'; this is an error in the Swift 6 language mode
26 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in content_block_start chunk
27 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/MessagesResponse.swift:18:15: note: consider making struct 'MessagesResponse' conform to the 'Sendable' protocol
16 |
17 | /// Messages API response
18 | public struct MessagesResponse: Decodable {
| `- note: consider making struct 'MessagesResponse' conform to the 'Sendable' protocol
19 | /// Unique object identifier.
20 | public let id: String
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:28:10: warning: associated value 'cannotFindToolUseContentFromContentBlockStart' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Content'; this is an error in the Swift 6 language mode
26 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in content_block_start chunk
27 | // swiftlint:disable:next identifier_name
28 | case cannotFindToolUseContentFromContentBlockStart(Content?)
| `- warning: associated value 'cannotFindToolUseContentFromContentBlockStart' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Content'; this is an error in the Swift 6 language mode
29 | /// SDK tries to aggregate partial json string into JSON object but failed
30 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Content/Content.swift:29:13: note: consider making enum 'Content' conform to the 'Sendable' protocol
27 | ///
28 | /// Starting with Claude 3 models, you can also send `image` content blocks.
29 | public enum Content {
| `- note: consider making enum 'Content' conform to the 'Sendable' protocol
30 | /// a single string
31 | case text(String, cacheControl: CacheControl? = nil)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:35:10: warning: associated value 'failedToMakeEncodableToolUseInput' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
33 | case failedToDecodeToolUseContent
34 | /// SDK failed to make `ToolUse.input` encodable
35 | case failedToMakeEncodableToolUseInput([String: Any])
| `- warning: associated value 'failedToMakeEncodableToolUseInput' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
36 | /// SDK failed to encode `SystemPrompt` object
37 | case failedToEncodeSystemPrompt
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:39:10: warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Model'; this is an error in the Swift 6 language mode
37 | case failedToEncodeSystemPrompt
38 | /// These messages are not supported by the model.
39 | case unsupportedMessageContentContained(model: Model, messages: [Message])
| `- warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Model'; this is an error in the Swift 6 language mode
40 | /// Some unsupported features are used.
41 | case unsupportedFeatureUsed(description: String)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Model.swift:13:13: note: consider making enum 'Model' conform to the 'Sendable' protocol
11 | ///
12 | /// See [models](https://docs.anthropic.com/claude/docs/models-overview) for additional details and options.
13 | public enum Model {
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
14 | /// Most powerful model for highly complex tasks
15 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:39:10: warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Message'; this is an error in the Swift 6 language mode
37 | case failedToEncodeSystemPrompt
38 | /// These messages are not supported by the model.
39 | case unsupportedMessageContentContained(model: Model, messages: [Message])
| `- warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Message'; this is an error in the Swift 6 language mode
40 | /// Some unsupported features are used.
41 | case unsupportedFeatureUsed(description: String)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Message.swift:17:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
15 | ///
16 | /// If the final message uses the `assistant` role, the response content will continue immediately from the content in that message. This can be used to constrain part of the model's response.
17 | public struct Message: Codable {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
18 | /// role of the message
19 | public let role: Role
[41/104] Compiling AnthropicSwiftSDK Invitation.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:25:10: warning: associated value 'cannotFindToolUseContentFromResponse' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'MessagesResponse'; this is an error in the Swift 6 language mode
23 | case anyToolsAreDefined
24 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in response
25 | case cannotFindToolUseContentFromResponse(MessagesResponse)
| `- warning: associated value 'cannotFindToolUseContentFromResponse' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'MessagesResponse'; this is an error in the Swift 6 language mode
26 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in content_block_start chunk
27 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/MessagesResponse.swift:18:15: note: consider making struct 'MessagesResponse' conform to the 'Sendable' protocol
16 |
17 | /// Messages API response
18 | public struct MessagesResponse: Decodable {
| `- note: consider making struct 'MessagesResponse' conform to the 'Sendable' protocol
19 | /// Unique object identifier.
20 | public let id: String
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:28:10: warning: associated value 'cannotFindToolUseContentFromContentBlockStart' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Content'; this is an error in the Swift 6 language mode
26 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in content_block_start chunk
27 | // swiftlint:disable:next identifier_name
28 | case cannotFindToolUseContentFromContentBlockStart(Content?)
| `- warning: associated value 'cannotFindToolUseContentFromContentBlockStart' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Content'; this is an error in the Swift 6 language mode
29 | /// SDK tries to aggregate partial json string into JSON object but failed
30 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Content/Content.swift:29:13: note: consider making enum 'Content' conform to the 'Sendable' protocol
27 | ///
28 | /// Starting with Claude 3 models, you can also send `image` content blocks.
29 | public enum Content {
| `- note: consider making enum 'Content' conform to the 'Sendable' protocol
30 | /// a single string
31 | case text(String, cacheControl: CacheControl? = nil)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:35:10: warning: associated value 'failedToMakeEncodableToolUseInput' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
33 | case failedToDecodeToolUseContent
34 | /// SDK failed to make `ToolUse.input` encodable
35 | case failedToMakeEncodableToolUseInput([String: Any])
| `- warning: associated value 'failedToMakeEncodableToolUseInput' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
36 | /// SDK failed to encode `SystemPrompt` object
37 | case failedToEncodeSystemPrompt
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:39:10: warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Model'; this is an error in the Swift 6 language mode
37 | case failedToEncodeSystemPrompt
38 | /// These messages are not supported by the model.
39 | case unsupportedMessageContentContained(model: Model, messages: [Message])
| `- warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Model'; this is an error in the Swift 6 language mode
40 | /// Some unsupported features are used.
41 | case unsupportedFeatureUsed(description: String)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Model.swift:13:13: note: consider making enum 'Model' conform to the 'Sendable' protocol
11 | ///
12 | /// See [models](https://docs.anthropic.com/claude/docs/models-overview) for additional details and options.
13 | public enum Model {
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
14 | /// Most powerful model for highly complex tasks
15 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:39:10: warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Message'; this is an error in the Swift 6 language mode
37 | case failedToEncodeSystemPrompt
38 | /// These messages are not supported by the model.
39 | case unsupportedMessageContentContained(model: Model, messages: [Message])
| `- warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Message'; this is an error in the Swift 6 language mode
40 | /// Some unsupported features are used.
41 | case unsupportedFeatureUsed(description: String)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Message.swift:17:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
15 | ///
16 | /// If the final message uses the `assistant` role, the response content will continue immediately from the content in that message. This can be used to constrain part of the model's response.
17 | public struct Message: Codable {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
18 | /// role of the message
19 | public let role: Role
[42/104] Compiling AnthropicSwiftSDK OrganizationRole.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:25:10: warning: associated value 'cannotFindToolUseContentFromResponse' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'MessagesResponse'; this is an error in the Swift 6 language mode
23 | case anyToolsAreDefined
24 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in response
25 | case cannotFindToolUseContentFromResponse(MessagesResponse)
| `- warning: associated value 'cannotFindToolUseContentFromResponse' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'MessagesResponse'; this is an error in the Swift 6 language mode
26 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in content_block_start chunk
27 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/MessagesResponse.swift:18:15: note: consider making struct 'MessagesResponse' conform to the 'Sendable' protocol
16 |
17 | /// Messages API response
18 | public struct MessagesResponse: Decodable {
| `- note: consider making struct 'MessagesResponse' conform to the 'Sendable' protocol
19 | /// Unique object identifier.
20 | public let id: String
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:28:10: warning: associated value 'cannotFindToolUseContentFromContentBlockStart' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Content'; this is an error in the Swift 6 language mode
26 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in content_block_start chunk
27 | // swiftlint:disable:next identifier_name
28 | case cannotFindToolUseContentFromContentBlockStart(Content?)
| `- warning: associated value 'cannotFindToolUseContentFromContentBlockStart' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Content'; this is an error in the Swift 6 language mode
29 | /// SDK tries to aggregate partial json string into JSON object but failed
30 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Content/Content.swift:29:13: note: consider making enum 'Content' conform to the 'Sendable' protocol
27 | ///
28 | /// Starting with Claude 3 models, you can also send `image` content blocks.
29 | public enum Content {
| `- note: consider making enum 'Content' conform to the 'Sendable' protocol
30 | /// a single string
31 | case text(String, cacheControl: CacheControl? = nil)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:35:10: warning: associated value 'failedToMakeEncodableToolUseInput' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
33 | case failedToDecodeToolUseContent
34 | /// SDK failed to make `ToolUse.input` encodable
35 | case failedToMakeEncodableToolUseInput([String: Any])
| `- warning: associated value 'failedToMakeEncodableToolUseInput' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
36 | /// SDK failed to encode `SystemPrompt` object
37 | case failedToEncodeSystemPrompt
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:39:10: warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Model'; this is an error in the Swift 6 language mode
37 | case failedToEncodeSystemPrompt
38 | /// These messages are not supported by the model.
39 | case unsupportedMessageContentContained(model: Model, messages: [Message])
| `- warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Model'; this is an error in the Swift 6 language mode
40 | /// Some unsupported features are used.
41 | case unsupportedFeatureUsed(description: String)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Model.swift:13:13: note: consider making enum 'Model' conform to the 'Sendable' protocol
11 | ///
12 | /// See [models](https://docs.anthropic.com/claude/docs/models-overview) for additional details and options.
13 | public enum Model {
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
14 | /// Most powerful model for highly complex tasks
15 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:39:10: warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Message'; this is an error in the Swift 6 language mode
37 | case failedToEncodeSystemPrompt
38 | /// These messages are not supported by the model.
39 | case unsupportedMessageContentContained(model: Model, messages: [Message])
| `- warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Message'; this is an error in the Swift 6 language mode
40 | /// Some unsupported features are used.
41 | case unsupportedFeatureUsed(description: String)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Message.swift:17:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
15 | ///
16 | /// If the final message uses the `assistant` role, the response content will continue immediately from the content in that message. This can be used to constrain part of the model's response.
17 | public struct Message: Codable {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
18 | /// role of the message
19 | public let role: Role
[43/104] Compiling AnthropicSwiftSDK Registration.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:25:10: warning: associated value 'cannotFindToolUseContentFromResponse' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'MessagesResponse'; this is an error in the Swift 6 language mode
23 | case anyToolsAreDefined
24 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in response
25 | case cannotFindToolUseContentFromResponse(MessagesResponse)
| `- warning: associated value 'cannotFindToolUseContentFromResponse' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'MessagesResponse'; this is an error in the Swift 6 language mode
26 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in content_block_start chunk
27 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/MessagesResponse.swift:18:15: note: consider making struct 'MessagesResponse' conform to the 'Sendable' protocol
16 |
17 | /// Messages API response
18 | public struct MessagesResponse: Decodable {
| `- note: consider making struct 'MessagesResponse' conform to the 'Sendable' protocol
19 | /// Unique object identifier.
20 | public let id: String
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:28:10: warning: associated value 'cannotFindToolUseContentFromContentBlockStart' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Content'; this is an error in the Swift 6 language mode
26 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in content_block_start chunk
27 | // swiftlint:disable:next identifier_name
28 | case cannotFindToolUseContentFromContentBlockStart(Content?)
| `- warning: associated value 'cannotFindToolUseContentFromContentBlockStart' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Content'; this is an error in the Swift 6 language mode
29 | /// SDK tries to aggregate partial json string into JSON object but failed
30 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Content/Content.swift:29:13: note: consider making enum 'Content' conform to the 'Sendable' protocol
27 | ///
28 | /// Starting with Claude 3 models, you can also send `image` content blocks.
29 | public enum Content {
| `- note: consider making enum 'Content' conform to the 'Sendable' protocol
30 | /// a single string
31 | case text(String, cacheControl: CacheControl? = nil)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:35:10: warning: associated value 'failedToMakeEncodableToolUseInput' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
33 | case failedToDecodeToolUseContent
34 | /// SDK failed to make `ToolUse.input` encodable
35 | case failedToMakeEncodableToolUseInput([String: Any])
| `- warning: associated value 'failedToMakeEncodableToolUseInput' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
36 | /// SDK failed to encode `SystemPrompt` object
37 | case failedToEncodeSystemPrompt
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:39:10: warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Model'; this is an error in the Swift 6 language mode
37 | case failedToEncodeSystemPrompt
38 | /// These messages are not supported by the model.
39 | case unsupportedMessageContentContained(model: Model, messages: [Message])
| `- warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Model'; this is an error in the Swift 6 language mode
40 | /// Some unsupported features are used.
41 | case unsupportedFeatureUsed(description: String)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Model.swift:13:13: note: consider making enum 'Model' conform to the 'Sendable' protocol
11 | ///
12 | /// See [models](https://docs.anthropic.com/claude/docs/models-overview) for additional details and options.
13 | public enum Model {
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
14 | /// Most powerful model for highly complex tasks
15 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:39:10: warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Message'; this is an error in the Swift 6 language mode
37 | case failedToEncodeSystemPrompt
38 | /// These messages are not supported by the model.
39 | case unsupportedMessageContentContained(model: Model, messages: [Message])
| `- warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Message'; this is an error in the Swift 6 language mode
40 | /// Some unsupported features are used.
41 | case unsupportedFeatureUsed(description: String)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Message.swift:17:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
15 | ///
16 | /// If the final message uses the `assistant` role, the response content will continue immediately from the content in that message. This can be used to constrain part of the model's response.
17 | public struct Message: Codable {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
18 | /// role of the message
19 | public let role: Role
[44/104] Compiling AnthropicSwiftSDK WorkspaceRole.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:25:10: warning: associated value 'cannotFindToolUseContentFromResponse' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'MessagesResponse'; this is an error in the Swift 6 language mode
23 | case anyToolsAreDefined
24 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in response
25 | case cannotFindToolUseContentFromResponse(MessagesResponse)
| `- warning: associated value 'cannotFindToolUseContentFromResponse' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'MessagesResponse'; this is an error in the Swift 6 language mode
26 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in content_block_start chunk
27 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/MessagesResponse.swift:18:15: note: consider making struct 'MessagesResponse' conform to the 'Sendable' protocol
16 |
17 | /// Messages API response
18 | public struct MessagesResponse: Decodable {
| `- note: consider making struct 'MessagesResponse' conform to the 'Sendable' protocol
19 | /// Unique object identifier.
20 | public let id: String
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:28:10: warning: associated value 'cannotFindToolUseContentFromContentBlockStart' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Content'; this is an error in the Swift 6 language mode
26 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in content_block_start chunk
27 | // swiftlint:disable:next identifier_name
28 | case cannotFindToolUseContentFromContentBlockStart(Content?)
| `- warning: associated value 'cannotFindToolUseContentFromContentBlockStart' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Content'; this is an error in the Swift 6 language mode
29 | /// SDK tries to aggregate partial json string into JSON object but failed
30 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Content/Content.swift:29:13: note: consider making enum 'Content' conform to the 'Sendable' protocol
27 | ///
28 | /// Starting with Claude 3 models, you can also send `image` content blocks.
29 | public enum Content {
| `- note: consider making enum 'Content' conform to the 'Sendable' protocol
30 | /// a single string
31 | case text(String, cacheControl: CacheControl? = nil)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:35:10: warning: associated value 'failedToMakeEncodableToolUseInput' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
33 | case failedToDecodeToolUseContent
34 | /// SDK failed to make `ToolUse.input` encodable
35 | case failedToMakeEncodableToolUseInput([String: Any])
| `- warning: associated value 'failedToMakeEncodableToolUseInput' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
36 | /// SDK failed to encode `SystemPrompt` object
37 | case failedToEncodeSystemPrompt
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:39:10: warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Model'; this is an error in the Swift 6 language mode
37 | case failedToEncodeSystemPrompt
38 | /// These messages are not supported by the model.
39 | case unsupportedMessageContentContained(model: Model, messages: [Message])
| `- warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Model'; this is an error in the Swift 6 language mode
40 | /// Some unsupported features are used.
41 | case unsupportedFeatureUsed(description: String)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Model.swift:13:13: note: consider making enum 'Model' conform to the 'Sendable' protocol
11 | ///
12 | /// See [models](https://docs.anthropic.com/claude/docs/models-overview) for additional details and options.
13 | public enum Model {
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
14 | /// Most powerful model for highly complex tasks
15 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:39:10: warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Message'; this is an error in the Swift 6 language mode
37 | case failedToEncodeSystemPrompt
38 | /// These messages are not supported by the model.
39 | case unsupportedMessageContentContained(model: Model, messages: [Message])
| `- warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Message'; this is an error in the Swift 6 language mode
40 | /// Some unsupported features are used.
41 | case unsupportedFeatureUsed(description: String)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Message.swift:17:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
15 | ///
16 | /// If the final message uses the `assistant` role, the response content will continue immediately from the content in that message. This can be used to constrain part of the model's response.
17 | public struct Message: Codable {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
18 | /// role of the message
19 | public let role: Role
[45/104] Compiling AnthropicSwiftSDK BatchParameter.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:25:10: warning: associated value 'cannotFindToolUseContentFromResponse' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'MessagesResponse'; this is an error in the Swift 6 language mode
23 | case anyToolsAreDefined
24 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in response
25 | case cannotFindToolUseContentFromResponse(MessagesResponse)
| `- warning: associated value 'cannotFindToolUseContentFromResponse' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'MessagesResponse'; this is an error in the Swift 6 language mode
26 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in content_block_start chunk
27 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/MessagesResponse.swift:18:15: note: consider making struct 'MessagesResponse' conform to the 'Sendable' protocol
16 |
17 | /// Messages API response
18 | public struct MessagesResponse: Decodable {
| `- note: consider making struct 'MessagesResponse' conform to the 'Sendable' protocol
19 | /// Unique object identifier.
20 | public let id: String
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:28:10: warning: associated value 'cannotFindToolUseContentFromContentBlockStart' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Content'; this is an error in the Swift 6 language mode
26 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in content_block_start chunk
27 | // swiftlint:disable:next identifier_name
28 | case cannotFindToolUseContentFromContentBlockStart(Content?)
| `- warning: associated value 'cannotFindToolUseContentFromContentBlockStart' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Content'; this is an error in the Swift 6 language mode
29 | /// SDK tries to aggregate partial json string into JSON object but failed
30 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Content/Content.swift:29:13: note: consider making enum 'Content' conform to the 'Sendable' protocol
27 | ///
28 | /// Starting with Claude 3 models, you can also send `image` content blocks.
29 | public enum Content {
| `- note: consider making enum 'Content' conform to the 'Sendable' protocol
30 | /// a single string
31 | case text(String, cacheControl: CacheControl? = nil)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:35:10: warning: associated value 'failedToMakeEncodableToolUseInput' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
33 | case failedToDecodeToolUseContent
34 | /// SDK failed to make `ToolUse.input` encodable
35 | case failedToMakeEncodableToolUseInput([String: Any])
| `- warning: associated value 'failedToMakeEncodableToolUseInput' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
36 | /// SDK failed to encode `SystemPrompt` object
37 | case failedToEncodeSystemPrompt
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:39:10: warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Model'; this is an error in the Swift 6 language mode
37 | case failedToEncodeSystemPrompt
38 | /// These messages are not supported by the model.
39 | case unsupportedMessageContentContained(model: Model, messages: [Message])
| `- warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Model'; this is an error in the Swift 6 language mode
40 | /// Some unsupported features are used.
41 | case unsupportedFeatureUsed(description: String)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Model.swift:13:13: note: consider making enum 'Model' conform to the 'Sendable' protocol
11 | ///
12 | /// See [models](https://docs.anthropic.com/claude/docs/models-overview) for additional details and options.
13 | public enum Model {
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
14 | /// Most powerful model for highly complex tasks
15 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:39:10: warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Message'; this is an error in the Swift 6 language mode
37 | case failedToEncodeSystemPrompt
38 | /// These messages are not supported by the model.
39 | case unsupportedMessageContentContained(model: Model, messages: [Message])
| `- warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Message'; this is an error in the Swift 6 language mode
40 | /// Some unsupported features are used.
41 | case unsupportedFeatureUsed(description: String)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Message.swift:17:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
15 | ///
16 | /// If the final message uses the `assistant` role, the response content will continue immediately from the content in that message. This can be used to constrain part of the model's response.
17 | public struct Message: Codable {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
18 | /// role of the message
19 | public let role: Role
[46/104] Compiling AnthropicSwiftSDK BatchRequestCounts.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:25:10: warning: associated value 'cannotFindToolUseContentFromResponse' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'MessagesResponse'; this is an error in the Swift 6 language mode
23 | case anyToolsAreDefined
24 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in response
25 | case cannotFindToolUseContentFromResponse(MessagesResponse)
| `- warning: associated value 'cannotFindToolUseContentFromResponse' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'MessagesResponse'; this is an error in the Swift 6 language mode
26 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in content_block_start chunk
27 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/MessagesResponse.swift:18:15: note: consider making struct 'MessagesResponse' conform to the 'Sendable' protocol
16 |
17 | /// Messages API response
18 | public struct MessagesResponse: Decodable {
| `- note: consider making struct 'MessagesResponse' conform to the 'Sendable' protocol
19 | /// Unique object identifier.
20 | public let id: String
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:28:10: warning: associated value 'cannotFindToolUseContentFromContentBlockStart' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Content'; this is an error in the Swift 6 language mode
26 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in content_block_start chunk
27 | // swiftlint:disable:next identifier_name
28 | case cannotFindToolUseContentFromContentBlockStart(Content?)
| `- warning: associated value 'cannotFindToolUseContentFromContentBlockStart' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Content'; this is an error in the Swift 6 language mode
29 | /// SDK tries to aggregate partial json string into JSON object but failed
30 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Content/Content.swift:29:13: note: consider making enum 'Content' conform to the 'Sendable' protocol
27 | ///
28 | /// Starting with Claude 3 models, you can also send `image` content blocks.
29 | public enum Content {
| `- note: consider making enum 'Content' conform to the 'Sendable' protocol
30 | /// a single string
31 | case text(String, cacheControl: CacheControl? = nil)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:35:10: warning: associated value 'failedToMakeEncodableToolUseInput' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
33 | case failedToDecodeToolUseContent
34 | /// SDK failed to make `ToolUse.input` encodable
35 | case failedToMakeEncodableToolUseInput([String: Any])
| `- warning: associated value 'failedToMakeEncodableToolUseInput' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
36 | /// SDK failed to encode `SystemPrompt` object
37 | case failedToEncodeSystemPrompt
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:39:10: warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Model'; this is an error in the Swift 6 language mode
37 | case failedToEncodeSystemPrompt
38 | /// These messages are not supported by the model.
39 | case unsupportedMessageContentContained(model: Model, messages: [Message])
| `- warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Model'; this is an error in the Swift 6 language mode
40 | /// Some unsupported features are used.
41 | case unsupportedFeatureUsed(description: String)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Model.swift:13:13: note: consider making enum 'Model' conform to the 'Sendable' protocol
11 | ///
12 | /// See [models](https://docs.anthropic.com/claude/docs/models-overview) for additional details and options.
13 | public enum Model {
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
14 | /// Most powerful model for highly complex tasks
15 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:39:10: warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Message'; this is an error in the Swift 6 language mode
37 | case failedToEncodeSystemPrompt
38 | /// These messages are not supported by the model.
39 | case unsupportedMessageContentContained(model: Model, messages: [Message])
| `- warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Message'; this is an error in the Swift 6 language mode
40 | /// Some unsupported features are used.
41 | case unsupportedFeatureUsed(description: String)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Message.swift:17:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
15 | ///
16 | /// If the final message uses the `assistant` role, the response content will continue immediately from the content in that message. This can be used to constrain part of the model's response.
17 | public struct Message: Codable {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
18 | /// role of the message
19 | public let role: Role
[47/104] Compiling AnthropicSwiftSDK BatchResultType.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:25:10: warning: associated value 'cannotFindToolUseContentFromResponse' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'MessagesResponse'; this is an error in the Swift 6 language mode
23 | case anyToolsAreDefined
24 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in response
25 | case cannotFindToolUseContentFromResponse(MessagesResponse)
| `- warning: associated value 'cannotFindToolUseContentFromResponse' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'MessagesResponse'; this is an error in the Swift 6 language mode
26 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in content_block_start chunk
27 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/MessagesResponse.swift:18:15: note: consider making struct 'MessagesResponse' conform to the 'Sendable' protocol
16 |
17 | /// Messages API response
18 | public struct MessagesResponse: Decodable {
| `- note: consider making struct 'MessagesResponse' conform to the 'Sendable' protocol
19 | /// Unique object identifier.
20 | public let id: String
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:28:10: warning: associated value 'cannotFindToolUseContentFromContentBlockStart' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Content'; this is an error in the Swift 6 language mode
26 | /// Claude API returns `tool_use` response but any tool_use contents are not defined in content_block_start chunk
27 | // swiftlint:disable:next identifier_name
28 | case cannotFindToolUseContentFromContentBlockStart(Content?)
| `- warning: associated value 'cannotFindToolUseContentFromContentBlockStart' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Content'; this is an error in the Swift 6 language mode
29 | /// SDK tries to aggregate partial json string into JSON object but failed
30 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Content/Content.swift:29:13: note: consider making enum 'Content' conform to the 'Sendable' protocol
27 | ///
28 | /// Starting with Claude 3 models, you can also send `image` content blocks.
29 | public enum Content {
| `- note: consider making enum 'Content' conform to the 'Sendable' protocol
30 | /// a single string
31 | case text(String, cacheControl: CacheControl? = nil)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:35:10: warning: associated value 'failedToMakeEncodableToolUseInput' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
33 | case failedToDecodeToolUseContent
34 | /// SDK failed to make `ToolUse.input` encodable
35 | case failedToMakeEncodableToolUseInput([String: Any])
| `- warning: associated value 'failedToMakeEncodableToolUseInput' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
36 | /// SDK failed to encode `SystemPrompt` object
37 | case failedToEncodeSystemPrompt
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:39:10: warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Model'; this is an error in the Swift 6 language mode
37 | case failedToEncodeSystemPrompt
38 | /// These messages are not supported by the model.
39 | case unsupportedMessageContentContained(model: Model, messages: [Message])
| `- warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Model'; this is an error in the Swift 6 language mode
40 | /// Some unsupported features are used.
41 | case unsupportedFeatureUsed(description: String)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Model.swift:13:13: note: consider making enum 'Model' conform to the 'Sendable' protocol
11 | ///
12 | /// See [models](https://docs.anthropic.com/claude/docs/models-overview) for additional details and options.
13 | public enum Model {
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
14 | /// Most powerful model for highly complex tasks
15 | // swiftlint:disable:next identifier_name
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:39:10: warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Message'; this is an error in the Swift 6 language mode
37 | case failedToEncodeSystemPrompt
38 | /// These messages are not supported by the model.
39 | case unsupportedMessageContentContained(model: Model, messages: [Message])
| `- warning: associated value 'unsupportedMessageContentContained(model:messages:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type 'Message'; this is an error in the Swift 6 language mode
40 | /// Some unsupported features are used.
41 | case unsupportedFeatureUsed(description: String)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Message.swift:17:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
15 | ///
16 | /// If the final message uses the `assistant` role, the response content will continue immediately from the content in that message. This can be used to constrain part of the model's response.
17 | public struct Message: Codable {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
18 | /// role of the message
19 | public let role: Role
[48/104] Compiling AnthropicSwiftSDK WorkspaceResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/AnthropicStreamingParser.swift:14:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
12 | public static func parse<T: AsyncSequence>(stream: T) async throws -> AsyncThrowingStream<StreamingResponse, Error> where T.Element == String {
13 | return AsyncThrowingStream.init { continuation in
14 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
15 | var currentEvent: StreamingEvent?
16 | for try await line in stream {
| `- note: closure captures 'stream' which is accessible to code in the current task
17 | do {
18 | let lineType = try StreamingResponseParser.parse(line: line)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Util/InputJSONDeltaAccumulator.swift:38:29: warning: sending 'modifiedResponse' risks causing data races; this is an error in the Swift 6 language mode
36 | }
37 |
38 | accumulativeStream?.yield(modifiedResponse)
| |- warning: sending 'modifiedResponse' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'modifiedResponse' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
39 | }
40 |
[49/104] Compiling AnthropicSwiftSDK AnthropicStreamingParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/AnthropicStreamingParser.swift:14:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
12 | public static func parse<T: AsyncSequence>(stream: T) async throws -> AsyncThrowingStream<StreamingResponse, Error> where T.Element == String {
13 | return AsyncThrowingStream.init { continuation in
14 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
15 | var currentEvent: StreamingEvent?
16 | for try await line in stream {
| `- note: closure captures 'stream' which is accessible to code in the current task
17 | do {
18 | let lineType = try StreamingResponseParser.parse(line: line)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Util/InputJSONDeltaAccumulator.swift:38:29: warning: sending 'modifiedResponse' risks causing data races; this is an error in the Swift 6 language mode
36 | }
37 |
38 | accumulativeStream?.yield(modifiedResponse)
| |- warning: sending 'modifiedResponse' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'modifiedResponse' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
39 | }
40 |
[50/104] Compiling AnthropicSwiftSDK StreamingDataLineParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/AnthropicStreamingParser.swift:14:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
12 | public static func parse<T: AsyncSequence>(stream: T) async throws -> AsyncThrowingStream<StreamingResponse, Error> where T.Element == String {
13 | return AsyncThrowingStream.init { continuation in
14 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
15 | var currentEvent: StreamingEvent?
16 | for try await line in stream {
| `- note: closure captures 'stream' which is accessible to code in the current task
17 | do {
18 | let lineType = try StreamingResponseParser.parse(line: line)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Util/InputJSONDeltaAccumulator.swift:38:29: warning: sending 'modifiedResponse' risks causing data races; this is an error in the Swift 6 language mode
36 | }
37 |
38 | accumulativeStream?.yield(modifiedResponse)
| |- warning: sending 'modifiedResponse' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'modifiedResponse' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
39 | }
40 |
[51/104] Compiling AnthropicSwiftSDK StreamingEventLineParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/AnthropicStreamingParser.swift:14:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
12 | public static func parse<T: AsyncSequence>(stream: T) async throws -> AsyncThrowingStream<StreamingResponse, Error> where T.Element == String {
13 | return AsyncThrowingStream.init { continuation in
14 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
15 | var currentEvent: StreamingEvent?
16 | for try await line in stream {
| `- note: closure captures 'stream' which is accessible to code in the current task
17 | do {
18 | let lineType = try StreamingResponseParser.parse(line: line)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Util/InputJSONDeltaAccumulator.swift:38:29: warning: sending 'modifiedResponse' risks causing data races; this is an error in the Swift 6 language mode
36 | }
37 |
38 | accumulativeStream?.yield(modifiedResponse)
| |- warning: sending 'modifiedResponse' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'modifiedResponse' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
39 | }
40 |
[52/104] Compiling AnthropicSwiftSDK StreamingResponseParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/AnthropicStreamingParser.swift:14:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
12 | public static func parse<T: AsyncSequence>(stream: T) async throws -> AsyncThrowingStream<StreamingResponse, Error> where T.Element == String {
13 | return AsyncThrowingStream.init { continuation in
14 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
15 | var currentEvent: StreamingEvent?
16 | for try await line in stream {
| `- note: closure captures 'stream' which is accessible to code in the current task
17 | do {
18 | let lineType = try StreamingResponseParser.parse(line: line)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Util/InputJSONDeltaAccumulator.swift:38:29: warning: sending 'modifiedResponse' risks causing data races; this is an error in the Swift 6 language mode
36 | }
37 |
38 | accumulativeStream?.yield(modifiedResponse)
| |- warning: sending 'modifiedResponse' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'modifiedResponse' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
39 | }
40 |
[53/104] Compiling AnthropicSwiftSDK AnthropicJSONDecoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/AnthropicStreamingParser.swift:14:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
12 | public static func parse<T: AsyncSequence>(stream: T) async throws -> AsyncThrowingStream<StreamingResponse, Error> where T.Element == String {
13 | return AsyncThrowingStream.init { continuation in
14 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
15 | var currentEvent: StreamingEvent?
16 | for try await line in stream {
| `- note: closure captures 'stream' which is accessible to code in the current task
17 | do {
18 | let lineType = try StreamingResponseParser.parse(line: line)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Util/InputJSONDeltaAccumulator.swift:38:29: warning: sending 'modifiedResponse' risks causing data races; this is an error in the Swift 6 language mode
36 | }
37 |
38 | accumulativeStream?.yield(modifiedResponse)
| |- warning: sending 'modifiedResponse' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'modifiedResponse' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
39 | }
40 |
[54/104] Compiling AnthropicSwiftSDK AnthropicJSONEncoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/AnthropicStreamingParser.swift:14:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
12 | public static func parse<T: AsyncSequence>(stream: T) async throws -> AsyncThrowingStream<StreamingResponse, Error> where T.Element == String {
13 | return AsyncThrowingStream.init { continuation in
14 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
15 | var currentEvent: StreamingEvent?
16 | for try await line in stream {
| `- note: closure captures 'stream' which is accessible to code in the current task
17 | do {
18 | let lineType = try StreamingResponseParser.parse(line: line)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Util/InputJSONDeltaAccumulator.swift:38:29: warning: sending 'modifiedResponse' risks causing data races; this is an error in the Swift 6 language mode
36 | }
37 |
38 | accumulativeStream?.yield(modifiedResponse)
| |- warning: sending 'modifiedResponse' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'modifiedResponse' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
39 | }
40 |
[55/104] Compiling AnthropicSwiftSDK AnyDecodable.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/AnthropicStreamingParser.swift:14:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
12 | public static func parse<T: AsyncSequence>(stream: T) async throws -> AsyncThrowingStream<StreamingResponse, Error> where T.Element == String {
13 | return AsyncThrowingStream.init { continuation in
14 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
15 | var currentEvent: StreamingEvent?
16 | for try await line in stream {
| `- note: closure captures 'stream' which is accessible to code in the current task
17 | do {
18 | let lineType = try StreamingResponseParser.parse(line: line)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Util/InputJSONDeltaAccumulator.swift:38:29: warning: sending 'modifiedResponse' risks causing data races; this is an error in the Swift 6 language mode
36 | }
37 |
38 | accumulativeStream?.yield(modifiedResponse)
| |- warning: sending 'modifiedResponse' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'modifiedResponse' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
39 | }
40 |
[56/104] Compiling AnthropicSwiftSDK InputJSONDeltaAccumulator.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/AnthropicStreamingParser.swift:14:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
12 | public static func parse<T: AsyncSequence>(stream: T) async throws -> AsyncThrowingStream<StreamingResponse, Error> where T.Element == String {
13 | return AsyncThrowingStream.init { continuation in
14 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
15 | var currentEvent: StreamingEvent?
16 | for try await line in stream {
| `- note: closure captures 'stream' which is accessible to code in the current task
17 | do {
18 | let lineType = try StreamingResponseParser.parse(line: line)
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Util/InputJSONDeltaAccumulator.swift:38:29: warning: sending 'modifiedResponse' risks causing data races; this is an error in the Swift 6 language mode
36 | }
37 |
38 | accumulativeStream?.yield(modifiedResponse)
| |- warning: sending 'modifiedResponse' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'modifiedResponse' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
39 | }
40 |
[57/104] Compiling AnthropicSwiftSDK BashTool.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Extension/StreamingResponse+Extension.swift:53:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
51 | let accumulativeStream = accumulator.createAccumulativeStream()
52 |
53 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
54 | do {
55 | defer {
56 | accumulator.finish()
| `- note: closure captures non-Sendable 'accumulator'
57 | }
58 |
59 | for try await value in self {
| `- note: closure captures non-Sendable 'self'
60 | try accumulator.accumulateIfNeeded(value)
61 | }
[58/104] Compiling AnthropicSwiftSDK ComputerTool.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Extension/StreamingResponse+Extension.swift:53:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
51 | let accumulativeStream = accumulator.createAccumulativeStream()
52 |
53 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
54 | do {
55 | defer {
56 | accumulator.finish()
| `- note: closure captures non-Sendable 'accumulator'
57 | }
58 |
59 | for try await value in self {
| `- note: closure captures non-Sendable 'self'
60 | try accumulator.accumulateIfNeeded(value)
61 | }
[59/104] Compiling AnthropicSwiftSDK FunctionTool.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Extension/StreamingResponse+Extension.swift:53:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
51 | let accumulativeStream = accumulator.createAccumulativeStream()
52 |
53 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
54 | do {
55 | defer {
56 | accumulator.finish()
| `- note: closure captures non-Sendable 'accumulator'
57 | }
58 |
59 | for try await value in self {
| `- note: closure captures non-Sendable 'self'
60 | try accumulator.accumulateIfNeeded(value)
61 | }
[60/104] Compiling AnthropicSwiftSDK TextEditorTool.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Extension/StreamingResponse+Extension.swift:53:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
51 | let accumulativeStream = accumulator.createAccumulativeStream()
52 |
53 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
54 | do {
55 | defer {
56 | accumulator.finish()
| `- note: closure captures non-Sendable 'accumulator'
57 | }
58 |
59 | for try await value in self {
| `- note: closure captures non-Sendable 'self'
60 | try accumulator.accumulateIfNeeded(value)
61 | }
[61/104] Compiling AnthropicSwiftSDK Tool.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Extension/StreamingResponse+Extension.swift:53:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
51 | let accumulativeStream = accumulator.createAccumulativeStream()
52 |
53 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
54 | do {
55 | defer {
56 | accumulator.finish()
| `- note: closure captures non-Sendable 'accumulator'
57 | }
58 |
59 | for try await value in self {
| `- note: closure captures non-Sendable 'self'
60 | try accumulator.accumulateIfNeeded(value)
61 | }
[62/104] Compiling AnthropicSwiftSDK ToolChoice.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Extension/StreamingResponse+Extension.swift:53:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
51 | let accumulativeStream = accumulator.createAccumulativeStream()
52 |
53 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
54 | do {
55 | defer {
56 | accumulator.finish()
| `- note: closure captures non-Sendable 'accumulator'
57 | }
58 |
59 | for try await value in self {
| `- note: closure captures non-Sendable 'self'
60 | try accumulator.accumulateIfNeeded(value)
61 | }
[63/104] Compiling AnthropicSwiftSDK AnthropicAPIClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Extension/StreamingResponse+Extension.swift:53:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
51 | let accumulativeStream = accumulator.createAccumulativeStream()
52 |
53 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
54 | do {
55 | defer {
56 | accumulator.finish()
| `- note: closure captures non-Sendable 'accumulator'
57 | }
58 |
59 | for try await value in self {
| `- note: closure captures non-Sendable 'self'
60 | try accumulator.accumulateIfNeeded(value)
61 | }
[64/104] Compiling AnthropicSwiftSDK StreamingResponse+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Extension/StreamingResponse+Extension.swift:53:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
51 | let accumulativeStream = accumulator.createAccumulativeStream()
52 |
53 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
54 | do {
55 | defer {
56 | accumulator.finish()
| `- note: closure captures non-Sendable 'accumulator'
57 | }
58 |
59 | for try await value in self {
| `- note: closure captures non-Sendable 'self'
60 | try accumulator.accumulateIfNeeded(value)
61 | }
[65/104] Compiling AnthropicSwiftSDK AnthropicHeaderProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Extension/StreamingResponse+Extension.swift:53:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
51 | let accumulativeStream = accumulator.createAccumulativeStream()
52 |
53 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
54 | do {
55 | defer {
56 | accumulator.finish()
| `- note: closure captures non-Sendable 'accumulator'
57 | }
58 |
59 | for try await value in self {
| `- note: closure captures non-Sendable 'self'
60 | try accumulator.accumulateIfNeeded(value)
61 | }
[66/104] Compiling AnthropicSwiftSDK AuthenticationHeaderProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Extension/StreamingResponse+Extension.swift:53:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
51 | let accumulativeStream = accumulator.createAccumulativeStream()
52 |
53 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
54 | do {
55 | defer {
56 | accumulator.finish()
| `- note: closure captures non-Sendable 'accumulator'
57 | }
58 |
59 | for try await value in self {
| `- note: closure captures non-Sendable 'self'
60 | try accumulator.accumulateIfNeeded(value)
61 | }
[67/104] Compiling AnthropicSwiftSDK InvitationRemoveResponse.swift
[68/104] Compiling AnthropicSwiftSDK InvitationResponse.swift
[69/104] Compiling AnthropicSwiftSDK MessagesResponse.swift
[70/104] Compiling AnthropicSwiftSDK ObjectListResponse.swift
[71/104] Compiling AnthropicSwiftSDK OrganizationMemberRemoveResponse.swift
[72/104] Compiling AnthropicSwiftSDK OrganizationMemberResponse.swift
[73/104] Compiling AnthropicSwiftSDK StreamingResponse.swift
[74/104] Compiling AnthropicSwiftSDK WorkspaceMemberRemoveResponse.swift
[75/104] Compiling AnthropicSwiftSDK WorkspaceMemberResponse.swift
[76/104] Compiling AnthropicSwiftSDK ObjectListable.swift
[77/104] Compiling AnthropicSwiftSDK GetAPIKeyRequest.swift
[78/104] Compiling AnthropicSwiftSDK UpdateAPIKeyRequest.swift
[79/104] Compiling AnthropicSwiftSDK CountTokenRequest.swift
[80/104] Compiling AnthropicSwiftSDK ListObjectRequest.swift
[81/104] Compiling AnthropicSwiftSDK CancelMessageBatchRequest.swift
[82/104] Compiling AnthropicSwiftSDK MessageBatchesRequest.swift
[83/104] Compiling AnthropicSwiftSDK RetrieveMessageBatchResultsRequest.swift
[84/104] Compiling AnthropicSwiftSDK RetrieveMessageBatchesRequest.swift
[85/104] Compiling AnthropicSwiftSDK MessagesRequest.swift
[86/104] Compiling AnthropicSwiftSDK UpdateWorkspaceMemberRequest.swift
[87/104] Compiling AnthropicSwiftSDK ArchiveWorkspaceRequest.swift
[88/104] Compiling AnthropicSwiftSDK CreateWorkspaceRequest.swift
[89/104] Compiling AnthropicSwiftSDK GetWorkspaceRequest.swift
[90/104] Compiling AnthropicSwiftSDK UpdateWorkspaceRequest.swift
[91/104] Compiling AnthropicSwiftSDK APIKeyResponse.swift
[92/104] Compiling AnthropicSwiftSDK BatchResponse.swift
[93/104] Compiling AnthropicSwiftSDK BatchResultResponse.swift
[94/104] Compiling AnthropicSwiftSDK CountTokenResponse.swift
[95/104] Compiling AnthropicSwiftSDK APIKeys.swift
[96/104] Compiling AnthropicSwiftSDK Admin.swift
[97/104] Compiling AnthropicSwiftSDK OrganizationInvites.swift
[98/104] Compiling AnthropicSwiftSDK OrganizationMembers.swift
[99/104] Compiling AnthropicSwiftSDK WorkspaceMembers.swift
[100/104] Compiling AnthropicSwiftSDK Workspaces.swift
[101/104] Compiling AnthropicSwiftSDK CountTokens.swift
[102/104] Compiling AnthropicSwiftSDK MessageBatches.swift
[103/104] Compiling AnthropicSwiftSDK Messages.swift
[104/104] Compiling AnthropicSwiftSDK Anthropic.swift
[105/107] Compiling AnthropicSwiftSDK_TestUtils MessagesRequest+Extensions.swift
[106/107] Emitting module AnthropicSwiftSDK_TestUtils
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK-TestUtils/HTTPMock.swift:19:23: warning: static property 'inspectType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | public class HTTPMock: URLProtocol {
19 | public static var inspectType: MockInspectType = .none
| |- warning: static property 'inspectType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'inspectType' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'inspectType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | public override class func canInit(with request: URLRequest) -> Bool {
[107/107] Compiling AnthropicSwiftSDK_TestUtils HTTPMock.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnthropicSwiftSDK-TestUtils/HTTPMock.swift:19:23: warning: static property 'inspectType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | public class HTTPMock: URLProtocol {
19 | public static var inspectType: MockInspectType = .none
| |- warning: static property 'inspectType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'inspectType' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'inspectType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | public override class func canInit(with request: URLRequest) -> Bool {
Build complete! (9.82s)
Fetching https://github.com/fumito-ito/SwiftyJSONLines.git
[1/64] Fetching swiftyjsonlines
Fetched https://github.com/fumito-ito/SwiftyJSONLines.git from cache (0.63s)
Computing version for https://github.com/fumito-ito/SwiftyJSONLines.git
Computed https://github.com/fumito-ito/SwiftyJSONLines.git at 0.0.4 (1.13s)
Creating working copy for https://github.com/fumito-ito/SwiftyJSONLines.git
Working copy of https://github.com/fumito-ito/SwiftyJSONLines.git resolved at 0.0.4
Build complete.
{
"dependencies" : [
{
"identity" : "swiftyjsonlines",
"requirement" : {
"range" : [
{
"lower_bound" : "0.0.3",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/fumito-ito/SwiftyJSONLines.git"
}
],
"manifest_display_name" : "AnthropicSwiftSDK",
"name" : "AnthropicSwiftSDK",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "17.0"
},
{
"name" : "macos",
"version" : "14.0"
}
],
"products" : [
{
"name" : "AnthropicSwiftSDK",
"targets" : [
"AnthropicSwiftSDK"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AnthropicSwiftSDKTests",
"module_type" : "SwiftTarget",
"name" : "AnthropicSwiftSDKTests",
"path" : "Tests/AnthropicSwiftSDKTests",
"sources" : [
"API/APIKeysTests.swift",
"API/MessageBatchesTests.swift",
"API/MessagesTests.swift",
"API/OrganizationInvitesTests.swift",
"API/OrganizationMembersTests.swift",
"API/WorkspaceMembersTests.swift",
"API/WorkspacesTests.swift",
"Entity/ContentTests.swift",
"Entity/ModelTests.swift",
"Entity/Streaming/StreamingMessageDeltaResponseTests.swift",
"Entity/SystemPromptTests.swift",
"Entity/Tool/ToolTests.swift",
"Entity/ToolChoiceTests.swift",
"Network/AnthropicAPIClientTests.swift",
"Network/HeaderProvider/APIKeyAuthenticationHeaderProviderTests.swift",
"Network/HeaderProvider/DefaultAnthropicHeaderProviderTests.swift",
"Network/Request/Admin/ArchiveWorkspaceRequestTests.swift",
"Network/Request/Admin/CreateOrganizationInviteRequestTests.swift",
"Network/Request/Admin/CreateWorkspaceMemberRequestTests.swift",
"Network/Request/Admin/CreateWorkspaceRequestTests.swift",
"Network/Request/Admin/DeleteOrganizationInviteRequestTests.swift",
"Network/Request/Admin/DeleteWorkspaceMemberRequestTests.swift",
"Network/Request/Admin/GetAPIKeyRequestTests.swift",
"Network/Request/Admin/GetOrganizationInviteRequestTests.swift",
"Network/Request/Admin/GetOrganizationMemberRequestTests.swift",
"Network/Request/Admin/GetWorkspaceMemberRequestTests.swift",
"Network/Request/Admin/GetWorkspaceRequestTests.swift",
"Network/Request/Admin/RemoveOrganizationMemberRequestTests.swift",
"Network/Request/Admin/UpdateAPIKeyRequestTests.swift",
"Network/Request/Admin/UpdateOrganizationMemberRequestTests.swift",
"Network/Request/Admin/UpdateWorkspaceMemberRequestTests.swift",
"Network/Request/Admin/UpdateWorkspaceRequestTests.swift",
"Network/Request/CancelMessageBatchRequestTests.swift",
"Network/Request/CountTokenRequestTests.swift",
"Network/Request/ListMessageBatchesRequestTests.swift",
"Network/Request/MessageBatchesRequestTests.swift",
"Network/Request/MessagesRequestTests.swift",
"Network/Request/RequestTests.swift",
"Network/Request/RetrieveMessageBatchResultsRequestTests.swift",
"Network/Request/RetrieveMessageBatchesRequestTests.swift",
"Network/Response/APIKeyResponseTests.swift",
"Network/Response/BatchResponseTests.swift",
"Network/Response/BatchResultResponseTests.swift",
"Network/Response/MessagesResponseTests.swift",
"Network/Response/ObjectListResponseTests.swift",
"Network/Response/OrganizationInviteResponseTests.swift",
"Network/Response/OrganizationMemberResponseTests.swift",
"Network/Response/WorkspaceMemberResponseTests.swift",
"Network/Response/WorkspaceResponseTests.swift",
"Network/StreamingParser/StreamingDataLineParserTests.swift",
"Network/StreamingParser/StreamingEventLineParserTests.swift",
"Network/StreamingParser/StreamingResponseParserTests.swift",
"Util/InputJSONDeltaAccumulatorTests.swift"
],
"target_dependencies" : [
"AnthropicSwiftSDK",
"AnthropicSwiftSDK-TestUtils"
],
"type" : "test"
},
{
"c99name" : "AnthropicSwiftSDK_TestUtils",
"module_type" : "SwiftTarget",
"name" : "AnthropicSwiftSDK-TestUtils",
"path" : "Sources/AnthropicSwiftSDK-TestUtils",
"sources" : [
"HTTPMock.swift",
"MessagesRequest+Extensions.swift"
],
"target_dependencies" : [
"AnthropicSwiftSDK"
],
"type" : "library"
},
{
"c99name" : "AnthropicSwiftSDK",
"module_type" : "SwiftTarget",
"name" : "AnthropicSwiftSDK",
"path" : "Sources/AnthropicSwiftSDK",
"product_dependencies" : [
"SwiftyJSONLines"
],
"product_memberships" : [
"AnthropicSwiftSDK"
],
"sources" : [
"API/Admin/APIKeys.swift",
"API/Admin/Admin.swift",
"API/Admin/OrganizationInvites.swift",
"API/Admin/OrganizationMembers.swift",
"API/Admin/WorkspaceMembers.swift",
"API/Admin/Workspaces.swift",
"API/CountTokens.swift",
"API/MessageBatches.swift",
"API/Messages.swift",
"Anthropic.swift",
"AnthropicAPIError.swift",
"AnthropicVersion.swift",
"ClientError.swift",
"Entity/Admin/Invitation.swift",
"Entity/Admin/OrganizationRole.swift",
"Entity/Admin/Registration.swift",
"Entity/Admin/WorkspaceRole.swift",
"Entity/Batch/BatchParameter.swift",
"Entity/Batch/BatchRequestCounts.swift",
"Entity/Batch/BatchResultType.swift",
"Entity/Batch/BatchType.swift",
"Entity/Batch/MessageBatch.swift",
"Entity/Batch/ProcessingStatus.swift",
"Entity/Content/Content.swift",
"Entity/Content/DocumentContent.swift",
"Entity/Content/ImageContent.swift",
"Entity/Content/ToolResultContent.swift",
"Entity/Content/ToolUseContent.swift",
"Entity/Message.swift",
"Entity/MetaData.swift",
"Entity/Model.swift",
"Entity/Role.swift",
"Entity/StopReason.swift",
"Entity/Streaming/ContentBlockDelta.swift",
"Entity/Streaming/ContentBlockDeltaType.swift",
"Entity/Streaming/MessageDelta.swift",
"Entity/Streaming/StreamingError.swift",
"Entity/Streaming/StreamingEvent.swift",
"Entity/SystemPrompt.swift",
"Entity/TokenUsage.swift",
"Entity/Tool/BashTool.swift",
"Entity/Tool/ComputerTool.swift",
"Entity/Tool/FunctionTool.swift",
"Entity/Tool/TextEditorTool.swift",
"Entity/Tool/Tool.swift",
"Entity/ToolChoice.swift",
"Network/AnthropicAPIClient.swift",
"Network/Extension/StreamingResponse+Extension.swift",
"Network/HeaderProvider/AnthropicHeaderProvider.swift",
"Network/HeaderProvider/AuthenticationHeaderProvider.swift",
"Network/ObjectListable.swift",
"Network/Request/APIKeys/GetAPIKeyRequest.swift",
"Network/Request/APIKeys/UpdateAPIKeyRequest.swift",
"Network/Request/CountTokenRequest.swift",
"Network/Request/ListObjectRequest.swift",
"Network/Request/MessageBatches/CancelMessageBatchRequest.swift",
"Network/Request/MessageBatches/MessageBatchesRequest.swift",
"Network/Request/MessageBatches/RetrieveMessageBatchResultsRequest.swift",
"Network/Request/MessageBatches/RetrieveMessageBatchesRequest.swift",
"Network/Request/MessagesRequest.swift",
"Network/Request/OrganizationInvites/CreateOrganizationInviteRequest.swift",
"Network/Request/OrganizationInvites/DeleteOrganizationInviteRequest.swift",
"Network/Request/OrganizationInvites/GetOrganizationInviteRequest.swift",
"Network/Request/OrganizationMembers/GetOrganizationMemberRequest.swift",
"Network/Request/OrganizationMembers/RemoveOrganizationMemberRequest.swift",
"Network/Request/OrganizationMembers/UpdateOrganizationMemberRequest.swift",
"Network/Request/Request.swift",
"Network/Request/WorkspaceMembers/CreateWorkspaceMemberRequest.swift",
"Network/Request/WorkspaceMembers/DeleteWorkspaceMemberRequest.swift",
"Network/Request/WorkspaceMembers/GetWorkspaceMemberRequest.swift",
"Network/Request/WorkspaceMembers/UpdateWorkspaceMemberRequest.swift",
"Network/Request/Workspaces/ArchiveWorkspaceRequest.swift",
"Network/Request/Workspaces/CreateWorkspaceRequest.swift",
"Network/Request/Workspaces/GetWorkspaceRequest.swift",
"Network/Request/Workspaces/UpdateWorkspaceRequest.swift",
"Network/Response/APIKeyResponse.swift",
"Network/Response/BatchResponse.swift",
"Network/Response/BatchResultResponse.swift",
"Network/Response/CountTokenResponse.swift",
"Network/Response/InvitationRemoveResponse.swift",
"Network/Response/InvitationResponse.swift",
"Network/Response/MessagesResponse.swift",
"Network/Response/ObjectListResponse.swift",
"Network/Response/OrganizationMemberRemoveResponse.swift",
"Network/Response/OrganizationMemberResponse.swift",
"Network/Response/StreamingResponse.swift",
"Network/Response/WorkspaceMemberRemoveResponse.swift",
"Network/Response/WorkspaceMemberResponse.swift",
"Network/Response/WorkspaceResponse.swift",
"Network/StreamingParser/AnthropicStreamingParser.swift",
"Network/StreamingParser/StreamingDataLineParser.swift",
"Network/StreamingParser/StreamingEventLineParser.swift",
"Network/StreamingParser/StreamingResponseParser.swift",
"Util/AnthropicJSONDecoder.swift",
"Util/AnthropicJSONEncoder.swift",
"Util/AnyDecodable.swift",
"Util/InputJSONDeltaAccumulator.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.