Build Information
Successful build of AnthropicSwiftSDK, reference 0.10.0 (3fbc81
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 19:05:25 UTC.
Swift 6 data race errors: 3
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fumito-ito/AnthropicSwiftSDK.git
Reference: 0.10.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fumito-ito/AnthropicSwiftSDK
* tag 0.10.0 -> FETCH_HEAD
HEAD is now at 3fbc81a Merge pull request #62 from fumito-ito/feature/pdf
Cloned https://github.com/fumito-ito/AnthropicSwiftSDK.git
Revision (git rev-parse @):
3fbc81a4345b582c56e011df11d0107196aaec24
SUCCESS checkout https://github.com/fumito-ito/AnthropicSwiftSDK.git at 0.10.0
Fetching https://github.com/fumito-ito/SwiftyJSONLines.git
[1/59] Fetching swiftyjsonlines
Fetched https://github.com/fumito-ito/SwiftyJSONLines.git from cache (0.72s)
Computing version for https://github.com/fumito-ito/SwiftyJSONLines.git
Computed https://github.com/fumito-ito/SwiftyJSONLines.git at 0.0.3 (0.54s)
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.3
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "anthropicswiftsdk",
"name": "AnthropicSwiftSDK",
"url": "https://github.com/fumito-ito/AnthropicSwiftSDK.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/AnthropicSwiftSDK",
"dependencies": [
{
"identity": "swiftyjsonlines",
"name": "SwiftyJSONLines",
"url": "https://github.com/fumito-ito/SwiftyJSONLines.git",
"version": "0.0.3",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftyJSONLines",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/fumito-ito/AnthropicSwiftSDK.git
[1/1317] Fetching anthropicswiftsdk
Fetched https://github.com/fumito-ito/AnthropicSwiftSDK.git from cache (0.89s)
Fetching https://github.com/fumito-ito/SwiftyJSONLines.git from cache
Fetched https://github.com/fumito-ito/SwiftyJSONLines.git from cache (0.45s)
Computing version for https://github.com/fumito-ito/SwiftyJSONLines.git
Computed https://github.com/fumito-ito/SwiftyJSONLines.git at 0.0.3 (0.02s)
Creating working copy for https://github.com/fumito-ito/AnthropicSwiftSDK.git
Working copy of https://github.com/fumito-ito/AnthropicSwiftSDK.git resolved at 0.10.0 (3fbc81a)
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.3
warning: '.resolve-product-dependencies': dependency 'anthropicswiftsdk' is not used by any target
Found 1 product dependencies
- SwiftyJSONLines
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/fumito-ito/AnthropicSwiftSDK.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/6] Compiling SwiftyJSONLines SwiftyJSONLines.swift
[6/6] Emitting module SwiftyJSONLines
[7/61] Compiling AnthropicSwiftSDK MessagesRequest.swift
[8/61] Compiling AnthropicSwiftSDK Request.swift
[9/61] Compiling AnthropicSwiftSDK RetrieveMessageBatchResultsRequest.swift
[10/61] Compiling AnthropicSwiftSDK RetrieveMessageBatchesRequest.swift
[11/61] Compiling AnthropicSwiftSDK BatchListResponse.swift
[12/61] Compiling AnthropicSwiftSDK BatchResponse.swift
[13/66] Compiling AnthropicSwiftSDK ImageContent.swift
[14/66] Compiling AnthropicSwiftSDK ToolResultContent.swift
[15/66] Compiling AnthropicSwiftSDK ToolUseContent.swift
[16/66] Compiling AnthropicSwiftSDK Message.swift
[17/66] Compiling AnthropicSwiftSDK MetaData.swift
[18/66] Compiling AnthropicSwiftSDK Model.swift
[19/66] Compiling AnthropicSwiftSDK BatchResultType.swift
[20/66] Compiling AnthropicSwiftSDK BatchType.swift
[21/66] Compiling AnthropicSwiftSDK MessageBatch.swift
[22/66] Compiling AnthropicSwiftSDK ProcessingStatus.swift
[23/66] Compiling AnthropicSwiftSDK Content.swift
[24/66] Compiling AnthropicSwiftSDK DocumentContent.swift
[25/66] 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 'accumulator' which is accessible to code in the current task
57 | }
58 |
[26/66] 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 'accumulator' which is accessible to code in the current task
57 | }
58 |
[27/66] 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 'accumulator' which is accessible to code in the current task
57 | }
58 |
[28/66] Compiling AnthropicSwiftSDK CancelMessageBatchRequest.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 'accumulator' which is accessible to code in the current task
57 | }
58 |
[29/66] Compiling AnthropicSwiftSDK ListMessageBatchesRequest.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 'accumulator' which is accessible to code in the current task
57 | }
58 |
[30/66] Compiling AnthropicSwiftSDK MessageBatchesRequest.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 'accumulator' which is accessible to code in the current task
57 | }
58 |
[31/66] Compiling AnthropicSwiftSDK Anthropic.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)
/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
[32/66] 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)
/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
[33/66] 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)
/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
[34/66] 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)
/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
[35/66] 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)
/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
[36/66] 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)
/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
[37/66] Compiling AnthropicSwiftSDK BatchResultResponse.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)
[38/66] Compiling AnthropicSwiftSDK MessagesResponse.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)
[39/66] Compiling AnthropicSwiftSDK StreamingResponse.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)
[40/66] 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)
[41/66] 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)
[42/66] 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)
[43/66] Compiling AnthropicSwiftSDK Role.swift
[44/66] Compiling AnthropicSwiftSDK StopReason.swift
[45/66] Compiling AnthropicSwiftSDK ContentBlockDelta.swift
[46/66] Compiling AnthropicSwiftSDK ContentBlockDeltaType.swift
[47/66] Compiling AnthropicSwiftSDK MessageDelta.swift
[48/66] Compiling AnthropicSwiftSDK StreamingError.swift
[49/66] Compiling AnthropicSwiftSDK StreamingEvent.swift
[50/66] Compiling AnthropicSwiftSDK SystemPrompt.swift
[51/66] Compiling AnthropicSwiftSDK TokenUsage.swift
[52/66] Compiling AnthropicSwiftSDK BashTool.swift
[53/66] Compiling AnthropicSwiftSDK ComputerTool.swift
[54/66] Compiling AnthropicSwiftSDK FunctionTool.swift
[55/66] Compiling AnthropicSwiftSDK TextEditorTool.swift
[56/66] Compiling AnthropicSwiftSDK Tool.swift
[57/66] Compiling AnthropicSwiftSDK ToolChoice.swift
[58/66] Compiling AnthropicSwiftSDK MessageBatches.swift
[59/66] Compiling AnthropicSwiftSDK Messages.swift
[60/66] Compiling AnthropicSwiftSDK AnthropicAPIClient.swift
[61/66] Compiling AnthropicSwiftSDK StreamingResponseParser.swift
/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 |
[62/66] Compiling AnthropicSwiftSDK AnthropicJSONDecoder.swift
/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 |
[63/66] Compiling AnthropicSwiftSDK AnthropicJSONEncoder.swift
/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 |
[64/66] Compiling AnthropicSwiftSDK AnyDecodable.swift
/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 |
[65/66] Compiling AnthropicSwiftSDK InputJSONDeltaAccumulator.swift
/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 |
[66/66] 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)
/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
[67/69] 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: annotate 'inspectType' with '@MainActor' if property should only be accessed from the main actor
| `- 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 {
[68/69] Compiling AnthropicSwiftSDK_TestUtils MessagesRequest+Extensions.swift
[69/69] 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: annotate 'inspectType' with '@MainActor' if property should only be accessed from the main actor
| `- 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! (10.78s)
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" : [
"Entity/ContentTests.swift",
"Entity/Streaming/StreamingMessageDeltaResponseTests.swift",
"Entity/SystemPromptTests.swift",
"Entity/Tool/ToolTests.swift",
"Entity/ToolChoiceTests.swift",
"MessageBatchesTests.swift",
"MessagesTests.swift",
"Network/AnthropicAPIClientTests.swift",
"Network/BatchListResponseTests.swift",
"Network/BatchResponseTests.swift",
"Network/BatchResultResponseTests.swift",
"Network/HeaderProvider/APIKeyAuthenticationHeaderProviderTests.swift",
"Network/HeaderProvider/DefaultAnthropicHeaderProviderTests.swift",
"Network/MessagesResponseTests.swift",
"Network/Request/CancelMessageBatchRequestTests.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/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" : [
"Anthropic.swift",
"AnthropicAPIError.swift",
"AnthropicVersion.swift",
"ClientError.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",
"MessageBatches.swift",
"Messages.swift",
"Network/AnthropicAPIClient.swift",
"Network/Extension/StreamingResponse+Extension.swift",
"Network/HeaderProvider/AnthropicHeaderProvider.swift",
"Network/HeaderProvider/AuthenticationHeaderProvider.swift",
"Network/Request/CancelMessageBatchRequest.swift",
"Network/Request/ListMessageBatchesRequest.swift",
"Network/Request/MessageBatchesRequest.swift",
"Network/Request/MessagesRequest.swift",
"Network/Request/Request.swift",
"Network/Request/RetrieveMessageBatchResultsRequest.swift",
"Network/Request/RetrieveMessageBatchesRequest.swift",
"Network/Response/BatchListResponse.swift",
"Network/Response/BatchResponse.swift",
"Network/Response/BatchResultResponse.swift",
"Network/Response/MessagesResponse.swift",
"Network/Response/StreamingResponse.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.