Build Information
Successful build of AnthropicSwiftSDK, reference main (bd8749
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 06:01:49 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: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fumito-ito/AnthropicSwiftSDK
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at bd87492 Merge pull request #52 from fumito-ito/feature/support-3-5-haiku
Cloned https://github.com/fumito-ito/AnthropicSwiftSDK.git
Revision (git rev-parse @):
bd87492e1c7bd997681371dba950cb3faaec7f32
SUCCESS checkout https://github.com/fumito-ito/AnthropicSwiftSDK.git at main
Fetching https://github.com/fumito-ito/SwiftyJSONLines.git
[3/59] Fetching swiftyjsonlines
Fetched https://github.com/fumito-ito/SwiftyJSONLines.git from cache (0.65s)
Computing version for https://github.com/fumito-ito/SwiftyJSONLines.git
Computed https://github.com/fumito-ito/SwiftyJSONLines.git at 0.0.3 (0.51s)
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/1285] Fetching anthropicswiftsdk
Fetched https://github.com/fumito-ito/AnthropicSwiftSDK.git from cache (0.87s)
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.03s)
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
Creating working copy for https://github.com/fumito-ito/AnthropicSwiftSDK.git
Working copy of https://github.com/fumito-ito/AnthropicSwiftSDK.git resolved at main (bd87492)
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/60] Compiling AnthropicSwiftSDK Message.swift
[8/60] Compiling AnthropicSwiftSDK MetaData.swift
[9/60] Compiling AnthropicSwiftSDK Model.swift
[10/60] Compiling AnthropicSwiftSDK Role.swift
[11/60] Compiling AnthropicSwiftSDK StopReason.swift
[12/60] Compiling AnthropicSwiftSDK ContentBlockDelta.swift
[13/65] Compiling AnthropicSwiftSDK BatchResultType.swift
[14/65] Compiling AnthropicSwiftSDK BatchType.swift
[15/65] Compiling AnthropicSwiftSDK MessageBatch.swift
[16/65] Compiling AnthropicSwiftSDK ProcessingStatus.swift
[17/65] Compiling AnthropicSwiftSDK Content.swift
[18/65] Compiling AnthropicSwiftSDK ImageContent.swift
[19/65] Compiling AnthropicSwiftSDK Request.swift
[20/65] Compiling AnthropicSwiftSDK RetrieveMessageBatchResultsRequest.swift
[21/65] Compiling AnthropicSwiftSDK RetrieveMessageBatchesRequest.swift
[22/65] Compiling AnthropicSwiftSDK BatchListResponse.swift
[23/65] Compiling AnthropicSwiftSDK BatchResponse.swift
[24/65] Compiling AnthropicSwiftSDK BatchResultResponse.swift
[25/65] 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.swift:27:13: note: consider making enum 'Content' conform to the 'Sendable' protocol
25 | ///
26 | /// Starting with Claude 3 models, you can also send `image` content blocks.
27 | public enum Content {
| `- note: consider making enum 'Content' conform to the 'Sendable' protocol
28 | /// a single string
29 | 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
[26/65] 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.swift:27:13: note: consider making enum 'Content' conform to the 'Sendable' protocol
25 | ///
26 | /// Starting with Claude 3 models, you can also send `image` content blocks.
27 | public enum Content {
| `- note: consider making enum 'Content' conform to the 'Sendable' protocol
28 | /// a single string
29 | 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
[27/65] 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.swift:27:13: note: consider making enum 'Content' conform to the 'Sendable' protocol
25 | ///
26 | /// Starting with Claude 3 models, you can also send `image` content blocks.
27 | public enum Content {
| `- note: consider making enum 'Content' conform to the 'Sendable' protocol
28 | /// a single string
29 | 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
[28/65] 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.swift:27:13: note: consider making enum 'Content' conform to the 'Sendable' protocol
25 | ///
26 | /// Starting with Claude 3 models, you can also send `image` content blocks.
27 | public enum Content {
| `- note: consider making enum 'Content' conform to the 'Sendable' protocol
28 | /// a single string
29 | 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
[29/65] 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.swift:27:13: note: consider making enum 'Content' conform to the 'Sendable' protocol
25 | ///
26 | /// Starting with Claude 3 models, you can also send `image` content blocks.
27 | public enum Content {
| `- note: consider making enum 'Content' conform to the 'Sendable' protocol
28 | /// a single string
29 | 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
[30/65] 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.swift:27:13: note: consider making enum 'Content' conform to the 'Sendable' protocol
25 | ///
26 | /// Starting with Claude 3 models, you can also send `image` content blocks.
27 | public enum Content {
| `- note: consider making enum 'Content' conform to the 'Sendable' protocol
28 | /// a single string
29 | 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
[31/65] Compiling AnthropicSwiftSDK BashTool.swift
[32/65] Compiling AnthropicSwiftSDK ComputerTool.swift
[33/65] Compiling AnthropicSwiftSDK FunctionTool.swift
[34/65] Compiling AnthropicSwiftSDK TextEditorTool.swift
[35/65] Compiling AnthropicSwiftSDK Tool.swift
[36/65] Compiling AnthropicSwiftSDK ToolChoice.swift
[37/65] Compiling AnthropicSwiftSDK ContentBlockDeltaType.swift
[38/65] Compiling AnthropicSwiftSDK MessageDelta.swift
[39/65] Compiling AnthropicSwiftSDK StreamingError.swift
[40/65] Compiling AnthropicSwiftSDK StreamingEvent.swift
[41/65] Compiling AnthropicSwiftSDK SystemPrompt.swift
[42/65] Compiling AnthropicSwiftSDK TokenUsage.swift
[43/65] 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.swift:27:13: note: consider making enum 'Content' conform to the 'Sendable' protocol
25 | ///
26 | /// Starting with Claude 3 models, you can also send `image` content blocks.
27 | public enum Content {
| `- note: consider making enum 'Content' conform to the 'Sendable' protocol
28 | /// a single string
29 | 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
[44/65] 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)
[45/65] 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)
[46/65] 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)
[47/65] 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)
[48/65] 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)
[49/65] Compiling AnthropicSwiftSDK AnthropicHeaderProvider.swift
[50/65] Compiling AnthropicSwiftSDK AuthenticationHeaderProvider.swift
[51/65] Compiling AnthropicSwiftSDK CancelMessageBatchRequest.swift
[52/65] Compiling AnthropicSwiftSDK ListMessageBatchesRequest.swift
[53/65] Compiling AnthropicSwiftSDK MessageBatchesRequest.swift
[54/65] Compiling AnthropicSwiftSDK MessagesRequest.swift
[55/65] Compiling AnthropicSwiftSDK ToolResultContent.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 |
[56/65] Compiling AnthropicSwiftSDK ToolUseContent.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 |
[57/65] Compiling AnthropicSwiftSDK MessageBatches.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 |
[58/65] Compiling AnthropicSwiftSDK Messages.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 |
[59/65] 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 'accumulator' which is accessible to code in the current task
57 | }
58 |
[60/65] 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 |
[61/65] 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/65] 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/65] 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/65] 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/65] 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/68] Compiling AnthropicSwiftSDK_TestUtils MessagesRequest+Extensions.swift
[67/68] 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 {
[68/68] 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 {
Build complete! (11.13s)
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.swift",
"Entity/ImageContent.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",
"Entity/ToolResultContent.swift",
"Entity/ToolUseContent.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.