Build Information
Failed to build swift-ai-sdk, reference 0.3.0 (d8d108), with Swift 6.1 for Android on 13 Aug 2026 01:07:40 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
78 | guard !line.isEmpty, let data = line.data(using: .utf8),
| `- error: cannot infer contextual base in reference to member 'utf8'
79 | let value = try? JSONDecoder().decode(JSONValue.self, from: data)
80 | else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
74 |
75 | private static func pumpEvents(
76 | from bytes: URLSession.AsyncBytes,
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
77 | isForcedJSON: Bool,
78 | into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
52 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
53 | let urlRequest = try buildURLRequest(request)
54 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
55 |
56 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[50/130] Compiling AI MCPOAuth.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
93 | request.setValue(header, forHTTPHeaderField: "Authorization")
94 | }
95 | let (bytes, response) = try await urlSession.bytes(for: request)
| `- error: value of type 'URLSession' has no member 'bytes'
96 | if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
97 | let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
66 | _ method: String, _ path: String, beta: [String] = []
67 | ) async throws -> [JSONValue] {
68 | let (bytes, response) = try await urlSession.bytes(
| `- error: value of type 'URLSession' has no member 'bytes'
69 | for: request(method, path, beta: beta)
70 | )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
76 | var results: [JSONValue] = []
77 | for try await line in bytes.lines {
78 | guard !line.isEmpty, let data = line.data(using: .utf8),
| `- error: cannot infer contextual base in reference to member 'utf8'
79 | let value = try? JSONDecoder().decode(JSONValue.self, from: data)
80 | else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
74 |
75 | private static func pumpEvents(
76 | from bytes: URLSession.AsyncBytes,
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
77 | isForcedJSON: Bool,
78 | into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
52 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
53 | let urlRequest = try buildURLRequest(request)
54 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
55 |
56 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[51/130] Compiling AI MCPSSETransport.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
93 | request.setValue(header, forHTTPHeaderField: "Authorization")
94 | }
95 | let (bytes, response) = try await urlSession.bytes(for: request)
| `- error: value of type 'URLSession' has no member 'bytes'
96 | if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
97 | let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
66 | _ method: String, _ path: String, beta: [String] = []
67 | ) async throws -> [JSONValue] {
68 | let (bytes, response) = try await urlSession.bytes(
| `- error: value of type 'URLSession' has no member 'bytes'
69 | for: request(method, path, beta: beta)
70 | )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
76 | var results: [JSONValue] = []
77 | for try await line in bytes.lines {
78 | guard !line.isEmpty, let data = line.data(using: .utf8),
| `- error: cannot infer contextual base in reference to member 'utf8'
79 | let value = try? JSONDecoder().decode(JSONValue.self, from: data)
80 | else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
74 |
75 | private static func pumpEvents(
76 | from bytes: URLSession.AsyncBytes,
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
77 | isForcedJSON: Bool,
78 | into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
52 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
53 | let urlRequest = try buildURLRequest(request)
54 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
55 |
56 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[52/130] Compiling AI MCPStdioTransport.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
93 | request.setValue(header, forHTTPHeaderField: "Authorization")
94 | }
95 | let (bytes, response) = try await urlSession.bytes(for: request)
| `- error: value of type 'URLSession' has no member 'bytes'
96 | if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
97 | let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
66 | _ method: String, _ path: String, beta: [String] = []
67 | ) async throws -> [JSONValue] {
68 | let (bytes, response) = try await urlSession.bytes(
| `- error: value of type 'URLSession' has no member 'bytes'
69 | for: request(method, path, beta: beta)
70 | )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
76 | var results: [JSONValue] = []
77 | for try await line in bytes.lines {
78 | guard !line.isEmpty, let data = line.data(using: .utf8),
| `- error: cannot infer contextual base in reference to member 'utf8'
79 | let value = try? JSONDecoder().decode(JSONValue.self, from: data)
80 | else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
74 |
75 | private static func pumpEvents(
76 | from bytes: URLSession.AsyncBytes,
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
77 | isForcedJSON: Bool,
78 | into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
52 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
53 | let urlRequest = try buildURLRequest(request)
54 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
55 |
56 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[53/130] Compiling AI MCPToolDrift.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
93 | request.setValue(header, forHTTPHeaderField: "Authorization")
94 | }
95 | let (bytes, response) = try await urlSession.bytes(for: request)
| `- error: value of type 'URLSession' has no member 'bytes'
96 | if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
97 | let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
66 | _ method: String, _ path: String, beta: [String] = []
67 | ) async throws -> [JSONValue] {
68 | let (bytes, response) = try await urlSession.bytes(
| `- error: value of type 'URLSession' has no member 'bytes'
69 | for: request(method, path, beta: beta)
70 | )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
76 | var results: [JSONValue] = []
77 | for try await line in bytes.lines {
78 | guard !line.isEmpty, let data = line.data(using: .utf8),
| `- error: cannot infer contextual base in reference to member 'utf8'
79 | let value = try? JSONDecoder().decode(JSONValue.self, from: data)
80 | else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
74 |
75 | private static func pumpEvents(
76 | from bytes: URLSession.AsyncBytes,
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
77 | isForcedJSON: Bool,
78 | into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
52 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
53 | let urlRequest = try buildURLRequest(request)
54 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
55 |
56 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[54/130] Compiling AI AIGatewayModel.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
93 | request.setValue(header, forHTTPHeaderField: "Authorization")
94 | }
95 | let (bytes, response) = try await urlSession.bytes(for: request)
| `- error: value of type 'URLSession' has no member 'bytes'
96 | if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
97 | let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
66 | _ method: String, _ path: String, beta: [String] = []
67 | ) async throws -> [JSONValue] {
68 | let (bytes, response) = try await urlSession.bytes(
| `- error: value of type 'URLSession' has no member 'bytes'
69 | for: request(method, path, beta: beta)
70 | )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
76 | var results: [JSONValue] = []
77 | for try await line in bytes.lines {
78 | guard !line.isEmpty, let data = line.data(using: .utf8),
| `- error: cannot infer contextual base in reference to member 'utf8'
79 | let value = try? JSONDecoder().decode(JSONValue.self, from: data)
80 | else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
74 |
75 | private static func pumpEvents(
76 | from bytes: URLSession.AsyncBytes,
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
77 | isForcedJSON: Bool,
78 | into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
52 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
53 | let urlRequest = try buildURLRequest(request)
54 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
55 |
56 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[55/130] Compiling AI AlibabaModel.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
93 | request.setValue(header, forHTTPHeaderField: "Authorization")
94 | }
95 | let (bytes, response) = try await urlSession.bytes(for: request)
| `- error: value of type 'URLSession' has no member 'bytes'
96 | if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
97 | let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
66 | _ method: String, _ path: String, beta: [String] = []
67 | ) async throws -> [JSONValue] {
68 | let (bytes, response) = try await urlSession.bytes(
| `- error: value of type 'URLSession' has no member 'bytes'
69 | for: request(method, path, beta: beta)
70 | )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
76 | var results: [JSONValue] = []
77 | for try await line in bytes.lines {
78 | guard !line.isEmpty, let data = line.data(using: .utf8),
| `- error: cannot infer contextual base in reference to member 'utf8'
79 | let value = try? JSONDecoder().decode(JSONValue.self, from: data)
80 | else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
74 |
75 | private static func pumpEvents(
76 | from bytes: URLSession.AsyncBytes,
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
77 | isForcedJSON: Bool,
78 | into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
52 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
53 | let urlRequest = try buildURLRequest(request)
54 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
55 |
56 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[56/130] Compiling AI AnthropicModel.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
93 | request.setValue(header, forHTTPHeaderField: "Authorization")
94 | }
95 | let (bytes, response) = try await urlSession.bytes(for: request)
| `- error: value of type 'URLSession' has no member 'bytes'
96 | if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
97 | let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
66 | _ method: String, _ path: String, beta: [String] = []
67 | ) async throws -> [JSONValue] {
68 | let (bytes, response) = try await urlSession.bytes(
| `- error: value of type 'URLSession' has no member 'bytes'
69 | for: request(method, path, beta: beta)
70 | )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
76 | var results: [JSONValue] = []
77 | for try await line in bytes.lines {
78 | guard !line.isEmpty, let data = line.data(using: .utf8),
| `- error: cannot infer contextual base in reference to member 'utf8'
79 | let value = try? JSONDecoder().decode(JSONValue.self, from: data)
80 | else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
74 |
75 | private static func pumpEvents(
76 | from bytes: URLSession.AsyncBytes,
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
77 | isForcedJSON: Bool,
78 | into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
52 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
53 | let urlRequest = try buildURLRequest(request)
54 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
55 |
56 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[57/130] Compiling AI AnthropicPlatformClients.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
93 | request.setValue(header, forHTTPHeaderField: "Authorization")
94 | }
95 | let (bytes, response) = try await urlSession.bytes(for: request)
| `- error: value of type 'URLSession' has no member 'bytes'
96 | if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
97 | let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
66 | _ method: String, _ path: String, beta: [String] = []
67 | ) async throws -> [JSONValue] {
68 | let (bytes, response) = try await urlSession.bytes(
| `- error: value of type 'URLSession' has no member 'bytes'
69 | for: request(method, path, beta: beta)
70 | )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
76 | var results: [JSONValue] = []
77 | for try await line in bytes.lines {
78 | guard !line.isEmpty, let data = line.data(using: .utf8),
| `- error: cannot infer contextual base in reference to member 'utf8'
79 | let value = try? JSONDecoder().decode(JSONValue.self, from: data)
80 | else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
74 |
75 | private static func pumpEvents(
76 | from bytes: URLSession.AsyncBytes,
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
77 | isForcedJSON: Bool,
78 | into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
52 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
53 | let urlRequest = try buildURLRequest(request)
54 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
55 |
56 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[58/130] Compiling AI AzureOpenAIProvider.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
93 | request.setValue(header, forHTTPHeaderField: "Authorization")
94 | }
95 | let (bytes, response) = try await urlSession.bytes(for: request)
| `- error: value of type 'URLSession' has no member 'bytes'
96 | if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
97 | let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
66 | _ method: String, _ path: String, beta: [String] = []
67 | ) async throws -> [JSONValue] {
68 | let (bytes, response) = try await urlSession.bytes(
| `- error: value of type 'URLSession' has no member 'bytes'
69 | for: request(method, path, beta: beta)
70 | )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
76 | var results: [JSONValue] = []
77 | for try await line in bytes.lines {
78 | guard !line.isEmpty, let data = line.data(using: .utf8),
| `- error: cannot infer contextual base in reference to member 'utf8'
79 | let value = try? JSONDecoder().decode(JSONValue.self, from: data)
80 | else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
74 |
75 | private static func pumpEvents(
76 | from bytes: URLSession.AsyncBytes,
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
77 | isForcedJSON: Bool,
78 | into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
52 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
53 | let urlRequest = try buildURLRequest(request)
54 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
55 |
56 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[59/130] Compiling AI BasetenModel.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
93 | request.setValue(header, forHTTPHeaderField: "Authorization")
94 | }
95 | let (bytes, response) = try await urlSession.bytes(for: request)
| `- error: value of type 'URLSession' has no member 'bytes'
96 | if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
97 | let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
66 | _ method: String, _ path: String, beta: [String] = []
67 | ) async throws -> [JSONValue] {
68 | let (bytes, response) = try await urlSession.bytes(
| `- error: value of type 'URLSession' has no member 'bytes'
69 | for: request(method, path, beta: beta)
70 | )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
76 | var results: [JSONValue] = []
77 | for try await line in bytes.lines {
78 | guard !line.isEmpty, let data = line.data(using: .utf8),
| `- error: cannot infer contextual base in reference to member 'utf8'
79 | let value = try? JSONDecoder().decode(JSONValue.self, from: data)
80 | else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
74 |
75 | private static func pumpEvents(
76 | from bytes: URLSession.AsyncBytes,
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
77 | isForcedJSON: Bool,
78 | into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
52 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
53 | let urlRequest = try buildURLRequest(request)
54 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
55 |
56 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[60/130] Compiling AI BedrockMantleProvider.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
93 | request.setValue(header, forHTTPHeaderField: "Authorization")
94 | }
95 | let (bytes, response) = try await urlSession.bytes(for: request)
| `- error: value of type 'URLSession' has no member 'bytes'
96 | if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
97 | let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
66 | _ method: String, _ path: String, beta: [String] = []
67 | ) async throws -> [JSONValue] {
68 | let (bytes, response) = try await urlSession.bytes(
| `- error: value of type 'URLSession' has no member 'bytes'
69 | for: request(method, path, beta: beta)
70 | )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
76 | var results: [JSONValue] = []
77 | for try await line in bytes.lines {
78 | guard !line.isEmpty, let data = line.data(using: .utf8),
| `- error: cannot infer contextual base in reference to member 'utf8'
79 | let value = try? JSONDecoder().decode(JSONValue.self, from: data)
80 | else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
74 |
75 | private static func pumpEvents(
76 | from bytes: URLSession.AsyncBytes,
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
77 | isForcedJSON: Bool,
78 | into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
52 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
53 | let urlRequest = try buildURLRequest(request)
54 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
55 |
56 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[61/130] Compiling AI BedrockModel.swift
/host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift:95:58: error: value of type 'URLSession' has no member 'bytes'
93 | request.setValue(header, forHTTPHeaderField: "Authorization")
94 | }
95 | let (bytes, response) = try await urlSession.bytes(for: request)
| `- error: value of type 'URLSession' has no member 'bytes'
96 | if let http = response as? HTTPURLResponse, http.statusCode == 401, let auth {
97 | let challenge = http.value(forHTTPHeaderField: "WWW-Authenticate")
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift:57:54: error: value of type 'URLSession' has no member 'bytes'
55 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
56 | let urlRequest = try buildURLRequest(request)
57 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
58 |
59 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:68:54: error: value of type 'URLSession' has no member 'bytes'
66 | _ method: String, _ path: String, beta: [String] = []
67 | ) async throws -> [JSONValue] {
68 | let (bytes, response) = try await urlSession.bytes(
| `- error: value of type 'URLSession' has no member 'bytes'
69 | for: request(method, path, beta: beta)
70 | )
/host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift:78:63: error: cannot infer contextual base in reference to member 'utf8'
76 | var results: [JSONValue] = []
77 | for try await line in bytes.lines {
78 | guard !line.isEmpty, let data = line.data(using: .utf8),
| `- error: cannot infer contextual base in reference to member 'utf8'
79 | let value = try? JSONDecoder().decode(JSONValue.self, from: data)
80 | else { continue }
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
74 |
75 | private static func pumpEvents(
76 | from bytes: URLSession.AsyncBytes,
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
77 | isForcedJSON: Bool,
78 | into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:54:54: error: value of type 'URLSession' has no member 'bytes'
52 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
53 | let urlRequest = try buildURLRequest(request)
54 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
55 |
56 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[62/130] Compiling AI VercelModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[63/130] Compiling AI VoyageModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[64/130] Compiling AI XaiImageModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[65/130] Compiling AI XaiModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[66/130] Compiling AI XaiPlatformClients.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[67/130] Compiling AI XaiVideoModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[68/130] Compiling AI AudioResampling.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[69/130] Compiling AI GoogleRealtimeModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[70/130] Compiling AI OpenAIRealtimeModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[71/130] Compiling AI RealtimeModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[72/130] Compiling AI RealtimeSession.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[73/130] Compiling AI XaiRealtimeModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[74/130] Compiling AI AWSEventStream.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[75/130] Compiling AI SSE.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[76/130] Compiling AI ChatTransport.swift
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:392:61: error: value of type 'URLSession' has no member 'bytes'
390 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
391 | let urlRequest = try buildResponsesRequest(config, modelID: modelID, request: request)
392 | let (bytes, response) = try await config.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
393 |
394 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
[77/130] Compiling AI BlackForestLabsModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[78/130] Compiling AI ByteDanceModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[79/130] Compiling AI CartesiaModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[80/130] Compiling AI CerebrasModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[81/130] Compiling AI CohereModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[82/130] Compiling AI CohereRerankingModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[83/130] Compiling AI DeepInfraModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[84/130] Compiling AI DeepSeekModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[85/130] Compiling AI DeepgramStreamingTranscription.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[86/130] Compiling AI ElevenLabsModels.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[87/130] Compiling AI FileUploads.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[88/130] Compiling AI FireworksModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[89/130] Compiling AI FoundationModelsModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[90/130] Compiling AI GoogleEmbeddingModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[91/130] Compiling AI GoogleInteractionsModel.swift
/host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift:33:54: error: value of type 'URLSession' has no member 'bytes'
31 | ) async throws -> AsyncThrowingStream<StreamPart, Error> {
32 | let urlRequest = try buildURLRequest(request)
33 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
34 |
35 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift:103:59: error: value of type 'URLSession' has no member 'bytes'
101 | urlRequest.httpBody = try JSONEncoder().encode(requestBody(for: request, stream: true))
102 |
103 | let (bytes, response) = try await http.urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
104 | if let httpResponse = response as? HTTPURLResponse,
105 | !(200..<300).contains(httpResponse.statusCode) {
[92/130] Compiling AI HTTPChatTransport.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[93/130] Compiling AI LocalChatTransport.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[94/130] Compiling AI StreamBridge.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[95/130] Compiling AI TextStreamChatTransport.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[96/130] Compiling AI UIMessage.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[97/130] Compiling AI UIMessageChunk.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[98/130] Compiling AI UIMessageReducer.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[99/130] Compiling AI UIMessageStreamBuilder.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[100/130] Compiling AI ChatSession.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[101/130] Compiling AI CompletionSession.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[102/130] Compiling AI ObjectSession.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[103/130] Compiling AI JSONValue.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[104/130] Compiling AI MultipartForm.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[105/130] Compiling AI PartialJSON.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[106/130] Compiling AI ResponseURL.swift
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:78:54: error: value of type 'URLSession' has no member 'bytes'
76 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
77 |
78 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
79 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
80 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | }
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse {
106 | if http.statusCode == 204 { return nil }
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:43:54: error: value of type 'URLSession' has no member 'bytes'
41 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
42 |
43 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
44 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
45 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:104:54: error: value of type 'URLSession' has no member 'bytes'
102 | urlRequest.httpBody = try JSONEncoder().encode(JSONValue.object(payload))
103 |
104 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
105 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
106 | var errorBody = ""
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:112:54: error: value of type 'URLSession' has no member 'bytes'
110 | urlRequest.httpBody = try JSONEncoder().encode(input)
111 |
112 | let (bytes, response) = try await urlSession.bytes(for: urlRequest)
| `- error: value of type 'URLSession' has no member 'bytes'
113 | if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
114 | var errorBody = ""
[107/130] Compiling AI AIError.swift
[108/130] Compiling AI Agent.swift
[109/130] Compiling AI Compaction.swift
[110/130] Compiling AI Embeddings.swift
[111/130] Compiling AI GenerateObject.swift
[112/130] Compiling AI GenerateText.swift
[113/130] Compiling AI ImageGeneration.swift
[114/130] Compiling AI LanguageModel.swift
[115/130] Compiling AI Message.swift
[116/130] Compiling AI Middleware.swift
[117/130] Compiling AI ModelContextWindows.swift
[118/130] Compiling AI ModelMiddleware.swift
[119/130] Compiling AI ProviderDefinedTool.swift
[120/130] Compiling AI ProviderRegistry.swift
[121/130] Compiling AI PruneMessages.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[122/130] Emitting module AI
/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
74 |
75 | private static func pumpEvents(
76 | from bytes: URLSession.AsyncBytes,
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
77 | isForcedJSON: Bool,
78 | into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:9:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | public var headers: [String: String]
8 | public var queryParams: [String: String]
9 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | public init(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | headers: [String: String] = [:],
16 | queryParams: [String: String] = [:],
17 | urlSession: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | ) {
19 | self.name = name
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 | headers: [String: String] = [:],
16 | queryParams: [String: String] = [:],
17 | urlSession: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | ) {
19 | self.name = name
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:9:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAICompatibleProvider' has non-sendable type 'URLSession' (aka 'AnyObject')
7 | public var headers: [String: String]
8 | public var queryParams: [String: String]
9 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAICompatibleProvider' has non-sendable type 'URLSession' (aka 'AnyObject')
10 |
11 | public init(
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 | static func messages(
149 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 | ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 | static func events(
45 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 | ) -> AsyncThrowingStream<SSEEvent, Error> {
47 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 | static func chunkStream(
117 | from bytes: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 | ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 | AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
BUILD FAILURE 6.1 android