The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-ai-sdk, reference main (d8d108), with Swift 6.4 for Wasm on 26 Sep 2026 21:04:15 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/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:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1

Build Log

325 |     ) {
326 |         self.http = OpenAIHTTP(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIPlatformClients.swift:375:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
373 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
374 |         headers: [String: String] = [:],
375 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
376 |     ) {
377 |         self.http = OpenAIHTTP(
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/OpenAIPlatformClients.swift:375:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
373 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
374 |         headers: [String: String] = [:],
375 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
376 |     ) {
377 |         self.http = OpenAIHTTP(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIPlatformClients.swift:375:35: error: value of type '_' expected to be instance of class or class-constrained type
373 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
374 |         headers: [String: String] = [:],
375 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
376 |     ) {
377 |         self.http = OpenAIHTTP(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIPlatformClients.swift:431:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
429 |         pollTimeout: Duration = .seconds(900),
430 |         headers: [String: String] = [:],
431 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
432 |     ) {
433 |         self.modelID = modelID
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/OpenAIPlatformClients.swift:431:35: error: value of type '_' expected to be instance of class or class-constrained type
429 |         pollTimeout: Duration = .seconds(900),
430 |         headers: [String: String] = [:],
431 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
432 |     ) {
433 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIPlatformClients.swift:431:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
429 |         pollTimeout: Duration = .seconds(900),
430 |         headers: [String: String] = [:],
431 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
432 |     ) {
433 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesClient.swift:10:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |     private let baseURL: URL
  9 |     private let headers: [String: String]
 10 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |
 12 |     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/OpenAIResponsesClient.swift:16:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
 15 |         headers: [String: String] = [:],
 16 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |     ) {
 18 |         self.apiKey = apiKey ?? ProcessInfo.processInfo.environment["OPENAI_API_KEY"] ?? ""
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/OpenAIResponsesClient.swift:16:35: error: value of type '_' expected to be instance of class or class-constrained type
 14 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
 15 |         headers: [String: String] = [:],
 16 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 17 |     ) {
 18 |         self.apiKey = apiKey ?? ProcessInfo.processInfo.environment["OPENAI_API_KEY"] ?? ""
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesClient.swift:16:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 14 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
 15 |         headers: [String: String] = [:],
 16 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 17 |     ) {
 18 |         self.apiKey = apiKey ?? ProcessInfo.processInfo.environment["OPENAI_API_KEY"] ?? ""
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesClient.swift:10:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAIResponsesClient' has non-Sendable type 'AnyObject'
  8 |     private let baseURL: URL
  9 |     private let headers: [String: String]
 10 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAIResponsesClient' has non-Sendable type 'AnyObject'
 11 |
 12 |     public init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:39:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |         var baseURL: URL
 38 |         var headers: [String: String]
 39 |         var urlSession: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         var multiAgent: MultiAgent? = nil
 41 |         var dialect: ResponsesDialect = .openai
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/OpenAIResponsesModel.swift:39:13: error: stored property 'urlSession' of 'Sendable'-conforming struct 'ResponsesConfig' has non-Sendable type 'AnyObject'
 37 |         var baseURL: URL
 38 |         var headers: [String: String]
 39 |         var urlSession: URLSession
    |             `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'ResponsesConfig' has non-Sendable type 'AnyObject'
 40 |         var multiAgent: MultiAgent? = nil
 41 |         var dialect: ResponsesDialect = .openai
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:68:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         multiAgent: MultiAgent? = nil,
 67 |         headers: [String: String] = [:],
 68 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     ) {
 70 |         self.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/OpenAIResponsesModel.swift:68:35: error: value of type '_' expected to be instance of class or class-constrained type
 66 |         multiAgent: MultiAgent? = nil,
 67 |         headers: [String: String] = [:],
 68 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 69 |     ) {
 70 |         self.init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:68:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 66 |         multiAgent: MultiAgent? = nil,
 67 |         headers: [String: String] = [:],
 68 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 69 |     ) {
 70 |         self.init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:89:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 87 |         multiAgent: MultiAgent? = nil,
 88 |         headers: [String: String],
 89 |         urlSession: URLSession,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 90 |         providerName: String,
 91 |         dialect: ResponsesDialect = .openai
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/OpenAIResponsesModel.swift:112:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |         project: String? = nil,
111 |         headers: [String: String] = [:],
112 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |     ) -> OpenAIModel {
114 |         OpenAIModel(modelID: modelID, chatEngine: OpenAIChatModel(
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/OpenAIResponsesModel.swift:112:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
110 |         project: String? = nil,
111 |         headers: [String: String] = [:],
112 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
113 |     ) -> OpenAIModel {
114 |         OpenAIModel(modelID: modelID, chatEngine: OpenAIChatModel(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:112:35: error: value of type '_' expected to be instance of class or class-constrained type
110 |         project: String? = nil,
111 |         headers: [String: String] = [:],
112 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
113 |     ) -> OpenAIModel {
114 |         OpenAIModel(modelID: modelID, chatEngine: OpenAIChatModel(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift:459:17: error: cannot find type 'URLRequest' in scope
457 |         modelID: String,
458 |         request: LanguageModelRequest
459 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
460 |         var urlRequest = URLRequest(url: config.baseURL.appendingPathComponent("responses"))
461 |         urlRequest.httpMethod = "POST"
/host/spi-builder-workspace/Sources/AI/Providers/OpenAISpeechModel.swift:13:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let baseURL: URL
 12 |     private let headers: [String: String]
 13 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     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/OpenAISpeechModel.swift:20:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
 19 |         headers: [String: String] = [:],
 20 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |     ) {
 22 |         self.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/OpenAISpeechModel.swift:20:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 18 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
 19 |         headers: [String: String] = [:],
 20 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 21 |     ) {
 22 |         self.init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAISpeechModel.swift:20:35: error: value of type '_' expected to be instance of class or class-constrained type
 18 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
 19 |         headers: [String: String] = [:],
 20 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 21 |     ) {
 22 |         self.init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAISpeechModel.swift:37:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |         baseURL: URL,
 36 |         headers: [String: String],
 37 |         urlSession: URLSession,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |         providerName: String
 39 |     ) {
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/OpenAISpeechModel.swift:58:67: error: cannot find type 'URLRequest' in scope
 56 |     }
 57 |
 58 |     func buildURLRequest(_ request: SpeechModelRequest) throws -> URLRequest {
    |                                                                   `- error: cannot find type 'URLRequest' in scope
 59 |         var body: [String: JSONValue] = [
 60 |             "model": .string(modelID),
/host/spi-builder-workspace/Sources/AI/Providers/OpenAISpeechModel.swift:13:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAISpeechModel' has non-Sendable type 'AnyObject'
 11 |     private let baseURL: URL
 12 |     private let headers: [String: String]
 13 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAISpeechModel' has non-Sendable type 'AnyObject'
 14 |
 15 |     public init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAITranscriptionModel.swift:13:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let baseURL: URL
 12 |     private let headers: [String: String]
 13 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     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/OpenAITranscriptionModel.swift:20:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
 19 |         headers: [String: String] = [:],
 20 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |     ) {
 22 |         self.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/OpenAITranscriptionModel.swift:20:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 18 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
 19 |         headers: [String: String] = [:],
 20 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 21 |     ) {
 22 |         self.init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAITranscriptionModel.swift:20:35: error: value of type '_' expected to be instance of class or class-constrained type
 18 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
 19 |         headers: [String: String] = [:],
 20 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 21 |     ) {
 22 |         self.init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAITranscriptionModel.swift:37:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |         baseURL: URL,
 36 |         headers: [String: String],
 37 |         urlSession: URLSession,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |         providerName: String
 39 |     ) {
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/OpenAITranscriptionModel.swift:69:74: error: cannot find type 'URLRequest' in scope
 67 |     }
 68 |
 69 |     func buildURLRequest(_ request: TranscriptionModelRequest) throws -> URLRequest {
    |                                                                          `- error: cannot find type 'URLRequest' in scope
 70 |         let boundary = "swift-ai-sdk-\(UUID().uuidString)"
 71 |         var body = Data()
/host/spi-builder-workspace/Sources/AI/Providers/OpenAITranscriptionModel.swift:13:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAITranscriptionModel' has non-Sendable type 'AnyObject'
 11 |     private let baseURL: URL
 12 |     private let headers: [String: String]
 13 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAITranscriptionModel' has non-Sendable type 'AnyObject'
 14 |
 15 |     public init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenRouterModel.swift:19:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
18 |         headers: [String: String] = [:], queryParams: [String: String] = [:],
19 |         urlSession: URLSession = .shared
   |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |     ) {
21 |         engine = openRouterConfiguration.makeModel(
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/OpenRouterModel.swift:19:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 |         _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
18 |         headers: [String: String] = [:], queryParams: [String: String] = [:],
19 |         urlSession: URLSession = .shared
   |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 |     ) {
21 |         engine = openRouterConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/OpenRouterModel.swift:19:35: error: value of type '_' expected to be instance of class or class-constrained type
17 |         _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
18 |         headers: [String: String] = [:], queryParams: [String: String] = [:],
19 |         urlSession: URLSession = .shared
   |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
20 |     ) {
21 |         engine = openRouterConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/PerplexityModel.swift:19:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
18 |         headers: [String: String] = [:], queryParams: [String: String] = [:],
19 |         urlSession: URLSession = .shared
   |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |     ) {
21 |         engine = perplexityConfiguration.makeModel(
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/PerplexityModel.swift:19:35: error: value of type '_' expected to be instance of class or class-constrained type
17 |         _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
18 |         headers: [String: String] = [:], queryParams: [String: String] = [:],
19 |         urlSession: URLSession = .shared
   |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
20 |     ) {
21 |         engine = perplexityConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/PerplexityModel.swift:19:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 |         _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
18 |         headers: [String: String] = [:], queryParams: [String: String] = [:],
19 |         urlSession: URLSession = .shared
   |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 |     ) {
21 |         engine = perplexityConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/ProdiaModel.swift:14:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |     private let accept: String
 13 |     private let headers: [String: String]
 14 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |
 16 |     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/ProdiaModel.swift:22:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |         baseURL: URL = URL(string: "https://inference.prodia.com/v2")!,
 21 |         headers: [String: String] = [:],
 22 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     ) {
 24 |         self.modelID = modelID
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/ProdiaModel.swift:22:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 20 |         baseURL: URL = URL(string: "https://inference.prodia.com/v2")!,
 21 |         headers: [String: String] = [:],
 22 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 23 |     ) {
 24 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/ProdiaModel.swift:22:35: error: value of type '_' expected to be instance of class or class-constrained type
 20 |         baseURL: URL = URL(string: "https://inference.prodia.com/v2")!,
 21 |         headers: [String: String] = [:],
 22 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 23 |     ) {
 24 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/ProdiaModel.swift:44:66: error: cannot find type 'URLRequest' in scope
 42 |     }
 43 |
 44 |     func buildURLRequest(_ request: ImageModelRequest) throws -> URLRequest {
    |                                                                  `- error: cannot find type 'URLRequest' in scope
 45 |         var config: [String: JSONValue] = ["prompt": .string(request.prompt)]
 46 |         if let seed = request.seed { config["seed"] = .number(Double(seed)) }
/host/spi-builder-workspace/Sources/AI/Providers/ProdiaModel.swift:14:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'ProdiaImageModel' has non-Sendable type 'AnyObject'
 12 |     private let accept: String
 13 |     private let headers: [String: String]
 14 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'ProdiaImageModel' has non-Sendable type 'AnyObject'
 15 |
 16 |     public init(
/host/spi-builder-workspace/Sources/AI/Providers/ProdiaModel.swift:73:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 |     private let baseURL: URL
 72 |     private let headers: [String: String]
 73 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |
 75 |     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/ProdiaModel.swift:80:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |         baseURL: URL = URL(string: "https://api.quiver.ai/v1")!,
 79 |         headers: [String: String] = [:],
 80 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |     ) {
 82 |         self.modelID = modelID
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/ProdiaModel.swift:80:35: error: value of type '_' expected to be instance of class or class-constrained type
 78 |         baseURL: URL = URL(string: "https://api.quiver.ai/v1")!,
 79 |         headers: [String: String] = [:],
 80 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 81 |     ) {
 82 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/ProdiaModel.swift:80:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 78 |         baseURL: URL = URL(string: "https://api.quiver.ai/v1")!,
 79 |         headers: [String: String] = [:],
 80 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 81 |     ) {
 82 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/ProdiaModel.swift:108:66: error: cannot find type 'URLRequest' in scope
106 |     }
107 |
108 |     func buildURLRequest(_ request: ImageModelRequest) throws -> URLRequest {
    |                                                                  `- error: cannot find type 'URLRequest' in scope
109 |         var body: [String: JSONValue] = [
110 |             "model": .string(modelID),
/host/spi-builder-workspace/Sources/AI/Providers/ProdiaModel.swift:73:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'QuiverAIImageModel' has non-Sendable type 'AnyObject'
 71 |     private let baseURL: URL
 72 |     private let headers: [String: String]
 73 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'QuiverAIImageModel' has non-Sendable type 'AnyObject'
 74 |
 75 |     public init(
/host/spi-builder-workspace/Sources/AI/Providers/SarvamModel.swift:19:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
18 |         headers: [String: String] = [:], queryParams: [String: String] = [:],
19 |         urlSession: URLSession = .shared
   |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |     ) {
21 |         engine = sarvamConfiguration.makeModel(
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/SarvamModel.swift:19:35: error: value of type '_' expected to be instance of class or class-constrained type
17 |         _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
18 |         headers: [String: String] = [:], queryParams: [String: String] = [:],
19 |         urlSession: URLSession = .shared
   |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
20 |     ) {
21 |         engine = sarvamConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/SarvamModel.swift:19:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 |         _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
18 |         headers: [String: String] = [:], queryParams: [String: String] = [:],
19 |         urlSession: URLSession = .shared
   |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 |     ) {
21 |         engine = sarvamConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:13:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let baseURL: URL
 12 |     private let headers: [String: String]
 13 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     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/SpeechProviderPacks.swift:20:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |         baseURL: URL = URL(string: "https://api.lmnt.com")!,
 19 |         headers: [String: String] = [:],
 20 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |     ) {
 22 |         self.modelID = modelID
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/SpeechProviderPacks.swift:20:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 18 |         baseURL: URL = URL(string: "https://api.lmnt.com")!,
 19 |         headers: [String: String] = [:],
 20 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 21 |     ) {
 22 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:20:35: error: value of type '_' expected to be instance of class or class-constrained type
 18 |         baseURL: URL = URL(string: "https://api.lmnt.com")!,
 19 |         headers: [String: String] = [:],
 20 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 21 |     ) {
 22 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:41:67: error: cannot find type 'URLRequest' in scope
 39 |     }
 40 |
 41 |     func buildURLRequest(_ request: SpeechModelRequest) throws -> URLRequest {
    |                                                                   `- error: cannot find type 'URLRequest' in scope
 42 |         var body: [String: JSONValue] = [
 43 |             "model": .string(modelID),
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:13:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'LMNTSpeechModel' has non-Sendable type 'AnyObject'
 11 |     private let baseURL: URL
 12 |     private let headers: [String: String]
 13 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'LMNTSpeechModel' has non-Sendable type 'AnyObject'
 14 |
 15 |     public init(
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:71:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     private let targetLanguage: String
 70 |     private let headers: [String: String]
 71 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |
 73 |     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/SpeechProviderPacks.swift:79:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |         baseURL: URL = URL(string: "https://api.sarvam.ai")!,
 78 |         headers: [String: String] = [:],
 79 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |     ) {
 81 |         self.modelID = modelID
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/SpeechProviderPacks.swift:79:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 77 |         baseURL: URL = URL(string: "https://api.sarvam.ai")!,
 78 |         headers: [String: String] = [:],
 79 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 80 |     ) {
 81 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:79:35: error: value of type '_' expected to be instance of class or class-constrained type
 77 |         baseURL: URL = URL(string: "https://api.sarvam.ai")!,
 78 |         headers: [String: String] = [:],
 79 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 80 |     ) {
 81 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:115:67: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     func buildURLRequest(_ request: SpeechModelRequest) throws -> URLRequest {
    |                                                                   `- error: cannot find type 'URLRequest' in scope
116 |         var body: [String: JSONValue] = [
117 |             "model": .string(modelID),
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:71:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'SarvamSpeechModel' has non-Sendable type 'AnyObject'
 69 |     private let targetLanguage: String
 70 |     private let headers: [String: String]
 71 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'SarvamSpeechModel' has non-Sendable type 'AnyObject'
 72 |
 73 |     public init(
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:148:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 |     private let language: String
147 |     private let headers: [String: String]
148 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
149 |
150 |     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/SpeechProviderPacks.swift:156:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
155 |         headers: [String: String] = [:],
156 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |     ) {
158 |         self.modelID = modelID
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/SpeechProviderPacks.swift:156:35: error: value of type '_' expected to be instance of class or class-constrained type
154 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
155 |         headers: [String: String] = [:],
156 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
157 |     ) {
158 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:156:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
154 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
155 |         headers: [String: String] = [:],
156 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
157 |     ) {
158 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:186:67: error: cannot find type 'URLRequest' in scope
184 |     }
185 |
186 |     func buildURLRequest(_ request: SpeechModelRequest) throws -> URLRequest {
    |                                                                   `- error: cannot find type 'URLRequest' in scope
187 |         var body: [String: JSONValue] = [
188 |             "model": .string(modelID),
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:148:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'XaiSpeechModel' has non-Sendable type 'AnyObject'
146 |     private let language: String
147 |     private let headers: [String: String]
148 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'XaiSpeechModel' has non-Sendable type 'AnyObject'
149 |
150 |     public init(
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:219:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |     private let baseURL: URL
218 |     private let headers: [String: String]
219 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 |
221 |     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/SpeechProviderPacks.swift:226:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 |         baseURL: URL = URL(string: "https://api.hume.ai")!,
225 |         headers: [String: String] = [:],
226 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
227 |     ) {
228 |         self.modelID = modelID
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/SpeechProviderPacks.swift:226:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
224 |         baseURL: URL = URL(string: "https://api.hume.ai")!,
225 |         headers: [String: String] = [:],
226 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
227 |     ) {
228 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:226:35: error: value of type '_' expected to be instance of class or class-constrained type
224 |         baseURL: URL = URL(string: "https://api.hume.ai")!,
225 |         headers: [String: String] = [:],
226 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
227 |     ) {
228 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:247:67: error: cannot find type 'URLRequest' in scope
245 |     }
246 |
247 |     func buildURLRequest(_ request: SpeechModelRequest) throws -> URLRequest {
    |                                                                   `- error: cannot find type 'URLRequest' in scope
248 |         var utterance: [String: JSONValue] = ["text": .string(request.text)]
249 |         if let voice = request.voice {
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:219:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'HumeSpeechModel' has non-Sendable type 'AnyObject'
217 |     private let baseURL: URL
218 |     private let headers: [String: String]
219 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'HumeSpeechModel' has non-Sendable type 'AnyObject'
220 |
221 |     public init(
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:282:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
280 |     private let baseURL: URL
281 |     private let headers: [String: String]
282 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
283 |
284 |     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/SpeechProviderPacks.swift:289:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
287 |         baseURL: URL = URL(string: "https://api.deepgram.com")!,
288 |         headers: [String: String] = [:],
289 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
290 |     ) {
291 |         self.modelID = modelID
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/SpeechProviderPacks.swift:289:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
287 |         baseURL: URL = URL(string: "https://api.deepgram.com")!,
288 |         headers: [String: String] = [:],
289 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
290 |     ) {
291 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:289:35: error: value of type '_' expected to be instance of class or class-constrained type
287 |         baseURL: URL = URL(string: "https://api.deepgram.com")!,
288 |         headers: [String: String] = [:],
289 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
290 |     ) {
291 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:306:67: error: cannot find type 'URLRequest' in scope
304 |     }
305 |
306 |     func buildURLRequest(_ request: SpeechModelRequest) throws -> URLRequest {
    |                                                                   `- error: cannot find type 'URLRequest' in scope
307 |         var components = URLComponents(
308 |             url: baseURL.appendingPathComponent("v1/speak"), resolvingAgainstBaseURL: false
/host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift:282:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'DeepgramSpeechModel' has non-Sendable type 'AnyObject'
280 |     private let baseURL: URL
281 |     private let headers: [String: String]
282 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'DeepgramSpeechModel' has non-Sendable type 'AnyObject'
283 |
284 |     public init(
/host/spi-builder-workspace/Sources/AI/Providers/TogetherAIModel.swift:19:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
18 |         headers: [String: String] = [:], queryParams: [String: String] = [:],
19 |         urlSession: URLSession = .shared
   |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |     ) {
21 |         engine = togetherAIConfiguration.makeModel(
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/TogetherAIModel.swift:19:35: error: value of type '_' expected to be instance of class or class-constrained type
17 |         _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
18 |         headers: [String: String] = [:], queryParams: [String: String] = [:],
19 |         urlSession: URLSession = .shared
   |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
20 |     ) {
21 |         engine = togetherAIConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/TogetherAIModel.swift:19:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 |         _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
18 |         headers: [String: String] = [:], queryParams: [String: String] = [:],
19 |         urlSession: URLSession = .shared
   |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 |     ) {
21 |         engine = togetherAIConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/TogetherAIModel.swift:33:54: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |     public init(
32 |         _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
33 |         headers: [String: String] = [:], urlSession: URLSession = .shared
   |                                                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |     ) {
35 |         engine = togetherAIConfiguration.makeEmbeddingModel(
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/TogetherAIModel.swift:33:68: error: value of type '_' expected to be instance of class or class-constrained type
31 |     public init(
32 |         _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
33 |         headers: [String: String] = [:], urlSession: URLSession = .shared
   |                                                                    `- error: value of type '_' expected to be instance of class or class-constrained type
34 |     ) {
35 |         engine = togetherAIConfiguration.makeEmbeddingModel(
/host/spi-builder-workspace/Sources/AI/Providers/TogetherAIModel.swift:33:68: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
31 |     public init(
32 |         _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
33 |         headers: [String: String] = [:], urlSession: URLSession = .shared
   |                                                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
34 |     ) {
35 |         engine = togetherAIConfiguration.makeEmbeddingModel(
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:18:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     let baseURL: URL
 17 |     let headers: [String: String]
 18 |     let urlSession: URLSession
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |
 20 |     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/TranscriptionProviderPacks.swift:25:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |         baseURL: URL = URL(string: "https://api.deepgram.com")!,
 24 |         headers: [String: String] = [:],
 25 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     ) {
 27 |         self.modelID = modelID
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/TranscriptionProviderPacks.swift:25:35: error: value of type '_' expected to be instance of class or class-constrained type
 23 |         baseURL: URL = URL(string: "https://api.deepgram.com")!,
 24 |         headers: [String: String] = [:],
 25 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 26 |     ) {
 27 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:25:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 23 |         baseURL: URL = URL(string: "https://api.deepgram.com")!,
 24 |         headers: [String: String] = [:],
 25 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 26 |     ) {
 27 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:58:67: error: cannot find type 'URLRequest' in scope
 56 |     }
 57 |
 58 |     func buildURLRequest(_ request: TranscriptionModelRequest) -> URLRequest {
    |                                                                   `- error: cannot find type 'URLRequest' in scope
 59 |         var components = URLComponents(
 60 |             url: baseURL.appendingPathComponent("v1/listen"), resolvingAgainstBaseURL: false
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:18:9: error: stored property 'urlSession' of 'Sendable'-conforming struct 'DeepgramTranscriptionModel' has non-Sendable type 'AnyObject'
 16 |     let baseURL: URL
 17 |     let headers: [String: String]
 18 |     let urlSession: URLSession
    |         `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'DeepgramTranscriptionModel' has non-Sendable type 'AnyObject'
 19 |
 20 |     public init(
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:84:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |     private let baseURL: URL
 83 |     private let headers: [String: String]
 84 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |
 86 |     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/TranscriptionProviderPacks.swift:91:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |         baseURL: URL = URL(string: "https://api.sarvam.ai")!,
 90 |         headers: [String: String] = [:],
 91 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 92 |     ) {
 93 |         self.modelID = modelID
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/TranscriptionProviderPacks.swift:91:35: error: value of type '_' expected to be instance of class or class-constrained type
 89 |         baseURL: URL = URL(string: "https://api.sarvam.ai")!,
 90 |         headers: [String: String] = [:],
 91 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 92 |     ) {
 93 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:91:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 89 |         baseURL: URL = URL(string: "https://api.sarvam.ai")!,
 90 |         headers: [String: String] = [:],
 91 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 92 |     ) {
 93 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:112:67: error: cannot find type 'URLRequest' in scope
110 |     }
111 |
112 |     func buildURLRequest(_ request: TranscriptionModelRequest) -> URLRequest {
    |                                                                   `- error: cannot find type 'URLRequest' in scope
113 |         var form = MultipartForm(boundary: "swift-ai-sdk-sarvam")
114 |         form.addField(name: "model", value: modelID)
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:84:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'SarvamTranscriptionModel' has non-Sendable type 'AnyObject'
 82 |     private let baseURL: URL
 83 |     private let headers: [String: String]
 84 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'SarvamTranscriptionModel' has non-Sendable type 'AnyObject'
 85 |
 86 |     public init(
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:157:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |     private let baseURL: URL
156 |     private let headers: [String: String]
157 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 |
159 |     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/TranscriptionProviderPacks.swift:164:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
163 |         headers: [String: String] = [:],
164 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
165 |     ) {
166 |         self.modelID = modelID
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/TranscriptionProviderPacks.swift:164:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
162 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
163 |         headers: [String: String] = [:],
164 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
165 |     ) {
166 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:164:35: error: value of type '_' expected to be instance of class or class-constrained type
162 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
163 |         headers: [String: String] = [:],
164 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
165 |     ) {
166 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:198:67: error: cannot find type 'URLRequest' in scope
196 |     }
197 |
198 |     func buildURLRequest(_ request: TranscriptionModelRequest) -> URLRequest {
    |                                                                   `- error: cannot find type 'URLRequest' in scope
199 |         var form = MultipartForm(boundary: "swift-ai-sdk-xai-stt")
200 |         form.addField(name: "model", value: modelID)
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:157:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'XaiTranscriptionModel' has non-Sendable type 'AnyObject'
155 |     private let baseURL: URL
156 |     private let headers: [String: String]
157 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'XaiTranscriptionModel' has non-Sendable type 'AnyObject'
158 |
159 |     public init(
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:238:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
236 |     private let baseURL: URL
237 |     private let headers: [String: String]
238 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
239 |     private let pollInterval: TimeInterval
240 |     private let pollTimeout: TimeInterval
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/TranscriptionProviderPacks.swift:249:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
247 |         pollInterval: TimeInterval = 1,
248 |         pollTimeout: TimeInterval = 300,
249 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
250 |     ) {
251 |         self.modelID = modelID
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/TranscriptionProviderPacks.swift:249:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
247 |         pollInterval: TimeInterval = 1,
248 |         pollTimeout: TimeInterval = 300,
249 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
250 |     ) {
251 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:249:35: error: value of type '_' expected to be instance of class or class-constrained type
247 |         pollInterval: TimeInterval = 1,
248 |         pollTimeout: TimeInterval = 300,
249 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
250 |     ) {
251 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:238:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'AssemblyAITranscriptionModel' has non-Sendable type 'AnyObject'
236 |     private let baseURL: URL
237 |     private let headers: [String: String]
238 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'AssemblyAITranscriptionModel' has non-Sendable type 'AnyObject'
239 |     private let pollInterval: TimeInterval
240 |     private let pollTimeout: TimeInterval
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:340:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 |     private let baseURL: URL
339 |     private let headers: [String: String]
340 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 |     private let pollInterval: TimeInterval
342 |     private let pollTimeout: TimeInterval
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/TranscriptionProviderPacks.swift:351:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
349 |         pollInterval: TimeInterval = 2,
350 |         pollTimeout: TimeInterval = 600,
351 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
352 |     ) {
353 |         self.modelID = modelID
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/TranscriptionProviderPacks.swift:351:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
349 |         pollInterval: TimeInterval = 2,
350 |         pollTimeout: TimeInterval = 600,
351 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
352 |     ) {
353 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:351:35: error: value of type '_' expected to be instance of class or class-constrained type
349 |         pollInterval: TimeInterval = 2,
350 |         pollTimeout: TimeInterval = 600,
351 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
352 |     ) {
353 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:340:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'RevAITranscriptionModel' has non-Sendable type 'AnyObject'
338 |     private let baseURL: URL
339 |     private let headers: [String: String]
340 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'RevAITranscriptionModel' has non-Sendable type 'AnyObject'
341 |     private let pollInterval: TimeInterval
342 |     private let pollTimeout: TimeInterval
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:445:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
443 |     private let baseURL: URL
444 |     private let headers: [String: String]
445 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
446 |     private let pollInterval: TimeInterval
447 |     private let pollTimeout: TimeInterval
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/TranscriptionProviderPacks.swift:456:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
454 |         pollInterval: TimeInterval = 1,
455 |         pollTimeout: TimeInterval = 300,
456 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
457 |     ) {
458 |         self.modelID = modelID
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/TranscriptionProviderPacks.swift:456:35: error: value of type '_' expected to be instance of class or class-constrained type
454 |         pollInterval: TimeInterval = 1,
455 |         pollTimeout: TimeInterval = 300,
456 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
457 |     ) {
458 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:456:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
454 |         pollInterval: TimeInterval = 1,
455 |         pollTimeout: TimeInterval = 300,
456 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
457 |     ) {
458 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift:445:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'GladiaTranscriptionModel' has non-Sendable type 'AnyObject'
443 |     private let baseURL: URL
444 |     private let headers: [String: String]
445 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'GladiaTranscriptionModel' has non-Sendable type 'AnyObject'
446 |     private let pollInterval: TimeInterval
447 |     private let pollTimeout: TimeInterval
/host/spi-builder-workspace/Sources/AI/Providers/VercelModel.swift:19:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
18 |         headers: [String: String] = [:], queryParams: [String: String] = [:],
19 |         urlSession: URLSession = .shared
   |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |     ) {
21 |         engine = vercelConfiguration.makeModel(
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/VercelModel.swift:19:35: error: value of type '_' expected to be instance of class or class-constrained type
17 |         _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
18 |         headers: [String: String] = [:], queryParams: [String: String] = [:],
19 |         urlSession: URLSession = .shared
   |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
20 |     ) {
21 |         engine = vercelConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/VercelModel.swift:19:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 |         _ modelID: String, apiKey: String? = nil, baseURL: URL? = nil,
18 |         headers: [String: String] = [:], queryParams: [String: String] = [:],
19 |         urlSession: URLSession = .shared
   |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 |     ) {
21 |         engine = vercelConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/VoyageModel.swift:20:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |     private let outputDimension: Int?
 19 |     private let headers: [String: String]
 20 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |
 22 |     static let maxTextsPerCall = 128
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/VoyageModel.swift:31:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |         outputDimension: Int? = nil,
 30 |         headers: [String: String] = [:],
 31 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |     ) {
 33 |         self.modelID = modelID
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/VoyageModel.swift:31:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 29 |         outputDimension: Int? = nil,
 30 |         headers: [String: String] = [:],
 31 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 32 |     ) {
 33 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/VoyageModel.swift:31:35: error: value of type '_' expected to be instance of class or class-constrained type
 29 |         outputDimension: Int? = nil,
 30 |         headers: [String: String] = [:],
 31 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 32 |     ) {
 33 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/VoyageModel.swift:62:55: error: cannot find type 'URLRequest' in scope
 60 |     }
 61 |
 62 |     func buildURLRequest(_ texts: [String]) throws -> URLRequest {
    |                                                       `- error: cannot find type 'URLRequest' in scope
 63 |         var body: [String: JSONValue] = [
 64 |             "model": .string(modelID),
/host/spi-builder-workspace/Sources/AI/Providers/VoyageModel.swift:20:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'VoyageEmbeddingModel' has non-Sendable type 'AnyObject'
 18 |     private let outputDimension: Int?
 19 |     private let headers: [String: String]
 20 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'VoyageEmbeddingModel' has non-Sendable type 'AnyObject'
 21 |
 22 |     static let maxTextsPerCall = 128
/host/spi-builder-workspace/Sources/AI/Providers/VoyageModel.swift:87:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |     private let baseURL: URL
 86 |     private let headers: [String: String]
 87 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |
 89 |     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/VoyageModel.swift:94:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 92 |         baseURL: URL = URL(string: "https://api.voyageai.com/v1")!,
 93 |         headers: [String: String] = [:],
 94 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |     ) {
 96 |         self.modelID = modelID
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/VoyageModel.swift:94:35: error: value of type '_' expected to be instance of class or class-constrained type
 92 |         baseURL: URL = URL(string: "https://api.voyageai.com/v1")!,
 93 |         headers: [String: String] = [:],
 94 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 95 |     ) {
 96 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/VoyageModel.swift:94:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 92 |         baseURL: URL = URL(string: "https://api.voyageai.com/v1")!,
 93 |         headers: [String: String] = [:],
 94 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 95 |     ) {
 96 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/VoyageModel.swift:124:17: error: cannot find type 'URLRequest' in scope
122 |     func buildURLRequest(
123 |         query: String, documents: [String], topN: Int?
124 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
125 |         var body: [String: JSONValue] = [
126 |             "model": .string(modelID),
/host/spi-builder-workspace/Sources/AI/Providers/VoyageModel.swift:87:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'VoyageRerankingModel' has non-Sendable type 'AnyObject'
 85 |     private let baseURL: URL
 86 |     private let headers: [String: String]
 87 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'VoyageRerankingModel' has non-Sendable type 'AnyObject'
 88 |
 89 |     public init(
/host/spi-builder-workspace/Sources/AI/Providers/XaiImageModel.swift:13:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let baseURL: URL
 12 |     private let headers: [String: String]
 13 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     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/XaiImageModel.swift:20:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
 19 |         headers: [String: String] = [:],
 20 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |     ) {
 22 |         self.modelID = modelID
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/XaiImageModel.swift:20:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 18 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
 19 |         headers: [String: String] = [:],
 20 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 21 |     ) {
 22 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/XaiImageModel.swift:20:35: error: value of type '_' expected to be instance of class or class-constrained type
 18 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
 19 |         headers: [String: String] = [:],
 20 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 21 |     ) {
 22 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/XaiImageModel.swift:52:66: error: cannot find type 'URLRequest' in scope
 50 |     }
 51 |
 52 |     func buildURLRequest(_ request: ImageModelRequest) throws -> URLRequest {
    |                                                                  `- error: cannot find type 'URLRequest' in scope
 53 |         if !request.images.isEmpty {
 54 |             return try buildBody(request, path: "images/edits", includeInputImages: true)
/host/spi-builder-workspace/Sources/AI/Providers/XaiImageModel.swift:61:17: error: cannot find type 'URLRequest' in scope
 59 |     private func buildBody(
 60 |         _ request: ImageModelRequest, path: String, includeInputImages: Bool
 61 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 62 |         var body: [String: JSONValue] = [
 63 |             "model": .string(modelID),
/host/spi-builder-workspace/Sources/AI/Providers/XaiImageModel.swift:13:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'XaiImageModel' has non-Sendable type 'AnyObject'
 11 |     private let baseURL: URL
 12 |     private let headers: [String: String]
 13 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'XaiImageModel' has non-Sendable type 'AnyObject'
 14 |
 15 |     public init(
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:19:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |         var baseURL: URL
 18 |         var headers: [String: String]
 19 |         var urlSession: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |     }
 21 |
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/XaiModel.swift:19:13: error: stored property 'urlSession' of 'Sendable'-conforming struct 'ResponsesConfig' has non-Sendable type 'AnyObject'
 17 |         var baseURL: URL
 18 |         var headers: [String: String]
 19 |         var urlSession: URLSession
    |             `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'ResponsesConfig' has non-Sendable type 'AnyObject'
 20 |     }
 21 |
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:29:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
 28 |         headers: [String: String] = [:],
 29 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     ) {
 31 |         self.modelID = modelID
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/XaiModel.swift:29:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 27 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
 28 |         headers: [String: String] = [:],
 29 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 30 |     ) {
 31 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:29:35: error: value of type '_' expected to be instance of class or class-constrained type
 27 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
 28 |         headers: [String: String] = [:],
 29 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 30 |     ) {
 31 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:45:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
 44 |         headers: [String: String] = [:],
 45 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |     ) -> XaiModel {
 47 |         let key = apiKey ?? ProcessInfo.processInfo.environment["XAI_API_KEY"] ?? ""
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/XaiModel.swift:45:35: error: value of type '_' expected to be instance of class or class-constrained type
 43 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
 44 |         headers: [String: String] = [:],
 45 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 46 |     ) -> XaiModel {
 47 |         let key = apiKey ?? ProcessInfo.processInfo.environment["XAI_API_KEY"] ?? ""
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:45:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 43 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
 44 |         headers: [String: String] = [:],
 45 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 46 |     ) -> XaiModel {
 47 |         let key = apiKey ?? ProcessInfo.processInfo.environment["XAI_API_KEY"] ?? ""
/host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift:530:17: error: cannot find type 'URLRequest' in scope
528 |         modelID: String,
529 |         request: LanguageModelRequest
530 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
531 |         var urlRequest = URLRequest(url: config.baseURL.appendingPathComponent("responses"))
532 |         urlRequest.httpMethod = "POST"
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:10:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |     var baseURL: URL
  9 |     var headers: [String: String]
 10 |     var urlSession: URLSession
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |
 12 |     init(apiKey: String?, baseURL: URL, headers: [String: String], urlSession: URLSession) {
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/XaiPlatformClients.swift:12:80: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |     var urlSession: URLSession
 11 |
 12 |     init(apiKey: String?, baseURL: URL, headers: [String: String], urlSession: URLSession) {
    |                                                                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |         self.apiKey = apiKey ?? ProcessInfo.processInfo.environment["XAI_API_KEY"] ?? ""
 14 |         self.baseURL = baseURL
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/XaiPlatformClients.swift:19:45: error: cannot find type 'URLRequest' in scope
 17 |     }
 18 |
 19 |     private func authorize(_ request: inout URLRequest) {
    |                                             `- error: cannot find type 'URLRequest' in scope
 20 |         if !apiKey.isEmpty {
 21 |             request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:75:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |     }
 74 |
 75 |     static func check(_ response: URLResponse, _ data: Data) throws {
    |                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 77 |             throw AIError.http(status: http.statusCode, body: String(decoding: data, as: UTF8.self))
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:10:9: error: stored property 'urlSession' of 'Sendable'-conforming struct 'XaiHTTP' has non-Sendable type 'AnyObject'
  8 |     var baseURL: URL
  9 |     var headers: [String: String]
 10 |     var urlSession: URLSession
    |         `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'XaiHTTP' has non-Sendable type 'AnyObject'
 11 |
 12 |     init(apiKey: String?, baseURL: URL, headers: [String: String], urlSession: URLSession) {
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:110:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
109 |         headers: [String: String] = [:],
110 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |     ) {
112 |         self.http = XaiHTTP(apiKey: apiKey, baseURL: baseURL, headers: headers, urlSession: urlSession)
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/XaiPlatformClients.swift:110:35: error: value of type '_' expected to be instance of class or class-constrained type
108 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
109 |         headers: [String: String] = [:],
110 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
111 |     ) {
112 |         self.http = XaiHTTP(apiKey: apiKey, baseURL: baseURL, headers: headers, urlSession: urlSession)
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:110:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
108 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
109 |         headers: [String: String] = [:],
110 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
111 |     ) {
112 |         self.http = XaiHTTP(apiKey: apiKey, baseURL: baseURL, headers: headers, urlSession: urlSession)
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:205:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
204 |         headers: [String: String] = [:],
205 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 |     ) {
207 |         self.http = XaiHTTP(apiKey: apiKey, baseURL: baseURL, headers: headers, urlSession: urlSession)
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/XaiPlatformClients.swift:205:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
203 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
204 |         headers: [String: String] = [:],
205 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
206 |     ) {
207 |         self.http = XaiHTTP(apiKey: apiKey, baseURL: baseURL, headers: headers, urlSession: urlSession)
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:205:35: error: value of type '_' expected to be instance of class or class-constrained type
203 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
204 |         headers: [String: String] = [:],
205 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
206 |     ) {
207 |         self.http = XaiHTTP(apiKey: apiKey, baseURL: baseURL, headers: headers, urlSession: urlSession)
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:259:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
257 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
258 |         headers: [String: String] = [:],
259 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
260 |     ) {
261 |         self.http = XaiHTTP(apiKey: apiKey, baseURL: baseURL, headers: headers, urlSession: urlSession)
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/XaiPlatformClients.swift:259:35: error: value of type '_' expected to be instance of class or class-constrained type
257 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
258 |         headers: [String: String] = [:],
259 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
260 |     ) {
261 |         self.http = XaiHTTP(apiKey: apiKey, baseURL: baseURL, headers: headers, urlSession: urlSession)
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:259:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
257 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
258 |         headers: [String: String] = [:],
259 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
260 |     ) {
261 |         self.http = XaiHTTP(apiKey: apiKey, baseURL: baseURL, headers: headers, urlSession: urlSession)
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:306:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
304 |         voiceBaseURL: URL = URL(string: "https://api.x.ai/v2")!,
305 |         headers: [String: String] = [:],
306 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
307 |     ) {
308 |         self.http = XaiHTTP(apiKey: apiKey, baseURL: baseURL, headers: headers, urlSession: urlSession)
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/XaiPlatformClients.swift:306:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
304 |         voiceBaseURL: URL = URL(string: "https://api.x.ai/v2")!,
305 |         headers: [String: String] = [:],
306 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
307 |     ) {
308 |         self.http = XaiHTTP(apiKey: apiKey, baseURL: baseURL, headers: headers, urlSession: urlSession)
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:306:35: error: value of type '_' expected to be instance of class or class-constrained type
304 |         voiceBaseURL: URL = URL(string: "https://api.x.ai/v2")!,
305 |         headers: [String: String] = [:],
306 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
307 |     ) {
308 |         self.http = XaiHTTP(apiKey: apiKey, baseURL: baseURL, headers: headers, urlSession: urlSession)
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:379:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
377 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
378 |         headers: [String: String] = [:],
379 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
380 |     ) {
381 |         let resolvedManagementKey = managementAPIKey
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/XaiPlatformClients.swift:379:35: error: value of type '_' expected to be instance of class or class-constrained type
377 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
378 |         headers: [String: String] = [:],
379 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
380 |     ) {
381 |         let resolvedManagementKey = managementAPIKey
/host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift:379:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
377 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
378 |         headers: [String: String] = [:],
379 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
380 |     ) {
381 |         let resolvedManagementKey = managementAPIKey
/host/spi-builder-workspace/Sources/AI/Providers/XaiVideoModel.swift:13:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let baseURL: URL
 12 |     private let headers: [String: String]
 13 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |     private let pollInterval: TimeInterval
 15 |     private let pollTimeout: TimeInterval
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/XaiVideoModel.swift:24:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |         pollInterval: TimeInterval = 5,
 23 |         pollTimeout: TimeInterval = 600,
 24 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |     ) {
 26 |         self.modelID = modelID
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/XaiVideoModel.swift:24:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |         pollInterval: TimeInterval = 5,
 23 |         pollTimeout: TimeInterval = 600,
 24 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 25 |     ) {
 26 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/XaiVideoModel.swift:24:35: error: value of type '_' expected to be instance of class or class-constrained type
 22 |         pollInterval: TimeInterval = 5,
 23 |         pollTimeout: TimeInterval = 600,
 24 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 25 |     ) {
 26 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/XaiVideoModel.swift:71:50: error: cannot find type 'URLRequest' in scope
 69 |     }
 70 |
 71 |     private func submitAndAwait(_ createRequest: URLRequest) async throws -> VideoModelResponse {
    |                                                  `- error: cannot find type 'URLRequest' in scope
 72 |         let (createData, createResponse) = try await urlSession.data(for: createRequest)
 73 |         if let http = createResponse as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
/host/spi-builder-workspace/Sources/AI/Providers/XaiVideoModel.swift:118:78: error: cannot find type 'URLRequest' in scope
116 |     }
117 |
118 |     func buildJSONRequest(path: String, body: [String: JSONValue]) throws -> URLRequest {
    |                                                                              `- error: cannot find type 'URLRequest' in scope
119 |         var urlRequest = URLRequest(url: baseURL.appendingPathComponent(path))
120 |         urlRequest.httpMethod = "POST"
/host/spi-builder-workspace/Sources/AI/Providers/XaiVideoModel.swift:154:69: error: cannot find type 'URLRequest' in scope
152 |     }
153 |
154 |     func buildCreateRequest(_ request: VideoModelRequest) throws -> URLRequest {
    |                                                                     `- error: cannot find type 'URLRequest' in scope
155 |         var body: [String: JSONValue] = [
156 |             "model": .string(modelID),
/host/spi-builder-workspace/Sources/AI/Providers/XaiVideoModel.swift:189:51: error: cannot find type 'URLRequest' in scope
187 |     }
188 |
189 |     func buildStatusRequest(requestID: String) -> URLRequest {
    |                                                   `- error: cannot find type 'URLRequest' in scope
190 |         var urlRequest = URLRequest(url: baseURL.appendingPathComponent("videos/\(requestID)"))
191 |         urlRequest.httpMethod = "GET"
/host/spi-builder-workspace/Sources/AI/Providers/XaiVideoModel.swift:13:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'XaiVideoModel' has non-Sendable type 'AnyObject'
 11 |     private let baseURL: URL
 12 |     private let headers: [String: String]
 13 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'XaiVideoModel' has non-Sendable type 'AnyObject'
 14 |     private let pollInterval: TimeInterval
 15 |     private let pollTimeout: TimeInterval
/host/spi-builder-workspace/Sources/AI/Realtime/GoogleRealtimeModel.swift:13:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let baseURL: URL
 12 |     private let headers: [String: String]
 13 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |     private let mapper = Mapper()
 15 |
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/Realtime/GoogleRealtimeModel.swift:21:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |         baseURL: URL = URL(string: "https://generativelanguage.googleapis.com/v1beta")!,
 20 |         headers: [String: String] = [:],
 21 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     ) {
 23 |         self.modelID = modelID
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/Realtime/GoogleRealtimeModel.swift:21:35: error: value of type '_' expected to be instance of class or class-constrained type
 19 |         baseURL: URL = URL(string: "https://generativelanguage.googleapis.com/v1beta")!,
 20 |         headers: [String: String] = [:],
 21 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 22 |     ) {
 23 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Realtime/GoogleRealtimeModel.swift:21:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 19 |         baseURL: URL = URL(string: "https://generativelanguage.googleapis.com/v1beta")!,
 20 |         headers: [String: String] = [:],
 21 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |     ) {
 23 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Realtime/GoogleRealtimeModel.swift:13:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'GoogleRealtimeModel' has non-Sendable type 'AnyObject'
 11 |     private let baseURL: URL
 12 |     private let headers: [String: String]
 13 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'GoogleRealtimeModel' has non-Sendable type 'AnyObject'
 14 |     private let mapper = Mapper()
 15 |
/host/spi-builder-workspace/Sources/AI/Realtime/OpenAIRealtimeModel.swift:13:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let baseURL: URL
 12 |     private let headers: [String: String]
 13 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     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/Realtime/OpenAIRealtimeModel.swift:20:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
 19 |         headers: [String: String] = [:],
 20 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |     ) {
 22 |         self.modelID = modelID
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/Realtime/OpenAIRealtimeModel.swift:20:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 18 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
 19 |         headers: [String: String] = [:],
 20 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 21 |     ) {
 22 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Realtime/OpenAIRealtimeModel.swift:20:35: error: value of type '_' expected to be instance of class or class-constrained type
 18 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
 19 |         headers: [String: String] = [:],
 20 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 21 |     ) {
 22 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Realtime/OpenAIRealtimeModel.swift:13:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAIRealtimeModel' has non-Sendable type 'AnyObject'
 11 |     private let baseURL: URL
 12 |     private let headers: [String: String]
 13 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAIRealtimeModel' has non-Sendable type 'AnyObject'
 14 |
 15 |     public init(
/host/spi-builder-workspace/Sources/AI/Realtime/RealtimeSession.swift:198:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 | final class RealtimeTransport: @unchecked Sendable {
197 |     private let model: any RealtimeModel
198 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |     private let lock = NSLock()
200 |     private var task: URLSessionWebSocketTask?
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/Realtime/RealtimeSession.swift:200:23: error: cannot find type 'URLSessionWebSocketTask' in scope
198 |     private let urlSession: URLSession
199 |     private let lock = NSLock()
200 |     private var task: URLSessionWebSocketTask?
    |                       `- error: cannot find type 'URLSessionWebSocketTask' in scope
201 |     private var receiveLoop: Task<Void, Never>?
202 |
/host/spi-builder-workspace/Sources/AI/Realtime/RealtimeSession.swift:203:48: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
201 |     private var receiveLoop: Task<Void, Never>?
202 |
203 |     init(model: any RealtimeModel, urlSession: URLSession = .shared) {
    |                                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
204 |         self.model = model
205 |         self.urlSession = urlSession
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/Realtime/RealtimeSession.swift:203:62: error: value of type '_' expected to be instance of class or class-constrained type
201 |     private var receiveLoop: Task<Void, Never>?
202 |
203 |     init(model: any RealtimeModel, urlSession: URLSession = .shared) {
    |                                                              `- error: value of type '_' expected to be instance of class or class-constrained type
204 |         self.model = model
205 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/AI/Realtime/RealtimeSession.swift:203:62: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
201 |     private var receiveLoop: Task<Void, Never>?
202 |
203 |     init(model: any RealtimeModel, urlSession: URLSession = .shared) {
    |                                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
204 |         self.model = model
205 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/AI/Realtime/RealtimeSession.swift:318:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
316 |         sessionConfig: RealtimeSessionConfig = RealtimeSessionConfig(),
317 |         maxEvents: Int = 500,
318 |         urlSession: URLSession = .shared,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
319 |         onToolCall: (@Sendable (ToolCall) async throws -> JSONValue?)? = nil
320 |     ) {
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/Realtime/RealtimeSession.swift:318:35: error: value of type '_' expected to be instance of class or class-constrained type
316 |         sessionConfig: RealtimeSessionConfig = RealtimeSessionConfig(),
317 |         maxEvents: Int = 500,
318 |         urlSession: URLSession = .shared,
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
319 |         onToolCall: (@Sendable (ToolCall) async throws -> JSONValue?)? = nil
320 |     ) {
/host/spi-builder-workspace/Sources/AI/Realtime/RealtimeSession.swift:318:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
316 |         sessionConfig: RealtimeSessionConfig = RealtimeSessionConfig(),
317 |         maxEvents: Int = 500,
318 |         urlSession: URLSession = .shared,
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
319 |         onToolCall: (@Sendable (ToolCall) async throws -> JSONValue?)? = nil
320 |     ) {
/host/spi-builder-workspace/Sources/AI/Realtime/RealtimeSession.swift:359:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
357 |
358 |     public func connect(
359 |         tokenEndpoint: URL, urlSession: URLSession = .shared
    |                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
360 |     ) async throws {
361 |         status = .connecting
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/Realtime/RealtimeSession.swift:359:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
357 |
358 |     public func connect(
359 |         tokenEndpoint: URL, urlSession: URLSession = .shared
    |                                                       `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
360 |     ) async throws {
361 |         status = .connecting
/host/spi-builder-workspace/Sources/AI/Realtime/RealtimeSession.swift:359:55: error: value of type '_' expected to be instance of class or class-constrained type
357 |
358 |     public func connect(
359 |         tokenEndpoint: URL, urlSession: URLSession = .shared
    |                                                       `- error: value of type '_' expected to be instance of class or class-constrained type
360 |     ) async throws {
361 |         status = .connecting
/host/spi-builder-workspace/Sources/AI/Realtime/XaiRealtimeModel.swift:13:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let baseURL: URL
 12 |     private let headers: [String: String]
 13 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     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/Realtime/XaiRealtimeModel.swift:20:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
 19 |         headers: [String: String] = [:],
 20 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |     ) {
 22 |         self.modelID = modelID
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/Realtime/XaiRealtimeModel.swift:20:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 18 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
 19 |         headers: [String: String] = [:],
 20 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 21 |     ) {
 22 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Realtime/XaiRealtimeModel.swift:20:35: error: value of type '_' expected to be instance of class or class-constrained type
 18 |         baseURL: URL = URL(string: "https://api.x.ai/v1")!,
 19 |         headers: [String: String] = [:],
 20 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 21 |     ) {
 22 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Realtime/XaiRealtimeModel.swift:13:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'XaiRealtimeModel' has non-Sendable type 'AnyObject'
 11 |     private let baseURL: URL
 12 |     private let headers: [String: String]
 13 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'XaiRealtimeModel' has non-Sendable type 'AnyObject'
 14 |
 15 |     public init(
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:30:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     public var prepareReconnectToStreamRequest:
 29 |         (@Sendable (String) async throws -> PreparedChatRequest)?
 30 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |
 32 |     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/Transport/HTTPChatTransport.swift:40:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |         prepareReconnectToStreamRequest:
 39 |             (@Sendable (String) async throws -> PreparedChatRequest)? = nil,
 40 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     ) {
 42 |         self.api = api
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/Transport/HTTPChatTransport.swift:40:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 38 |         prepareReconnectToStreamRequest:
 39 |             (@Sendable (String) async throws -> PreparedChatRequest)? = nil,
 40 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 41 |     ) {
 42 |         self.api = api
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:40:35: error: value of type '_' expected to be instance of class or class-constrained type
 38 |         prepareReconnectToStreamRequest:
 39 |             (@Sendable (String) async throws -> PreparedChatRequest)? = nil,
 40 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 41 |     ) {
 42 |         self.api = api
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
115 |
116 |     static func chunkStream(
117 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
118 |     ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 |         AsyncThrowingStream { continuation in
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:30:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'HTTPChatTransport' has non-Sendable type 'AnyObject'
 28 |     public var prepareReconnectToStreamRequest:
 29 |         (@Sendable (String) async throws -> PreparedChatRequest)?
 30 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'HTTPChatTransport' has non-Sendable type 'AnyObject'
 31 |
 32 |     public init(
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:10:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |     public var headers: [String: String]
  9 |     public var body: JSONValue?
 10 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |
 12 |     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/Transport/TextStreamChatTransport.swift:16:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         headers: [String: String] = [:],
 15 |         body: JSONValue? = nil,
 16 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |     ) {
 18 |         self.api = api
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/Transport/TextStreamChatTransport.swift:16:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 14 |         headers: [String: String] = [:],
 15 |         body: JSONValue? = nil,
 16 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 17 |     ) {
 18 |         self.api = api
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:16:35: error: value of type '_' expected to be instance of class or class-constrained type
 14 |         headers: [String: String] = [:],
 15 |         body: JSONValue? = nil,
 16 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 17 |     ) {
 18 |         self.api = api
/host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift:10:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'TextStreamChatTransport' has non-Sendable type 'AnyObject'
  8 |     public var headers: [String: String]
  9 |     public var body: JSONValue?
 10 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'TextStreamChatTransport' has non-Sendable type 'AnyObject'
 11 |
 12 |     public init(
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:76:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |     public var headers: [String: String]
 75 |     public var body: JSONValue?
 76 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |
 78 |     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/UI/CompletionSession.swift:82:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |         headers: [String: String] = [:],
 81 |         body: JSONValue? = nil,
 82 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |     ) {
 84 |         self.api = api
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/UI/CompletionSession.swift:82:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 80 |         headers: [String: String] = [:],
 81 |         body: JSONValue? = nil,
 82 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 83 |     ) {
 84 |         self.api = api
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:82:35: error: value of type '_' expected to be instance of class or class-constrained type
 80 |         headers: [String: String] = [:],
 81 |         body: JSONValue? = nil,
 82 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 83 |     ) {
 84 |         self.api = api
/host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift:76:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'HTTPCompletionTransport' has non-Sendable type 'AnyObject'
 74 |     public var headers: [String: String]
 75 |     public var body: JSONValue?
 76 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'HTTPCompletionTransport' has non-Sendable type 'AnyObject'
 77 |
 78 |     public init(
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:91:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |     public var api: URL
 90 |     public var headers: [String: String]
 91 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 92 |
 93 |     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/UI/ObjectSession.swift:96:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |         api: URL,
 95 |         headers: [String: String] = [:],
 96 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |     ) {
 98 |         self.api = api
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/UI/ObjectSession.swift:96:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 94 |         api: URL,
 95 |         headers: [String: String] = [:],
 96 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 97 |     ) {
 98 |         self.api = api
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:96:35: error: value of type '_' expected to be instance of class or class-constrained type
 94 |         api: URL,
 95 |         headers: [String: String] = [:],
 96 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 97 |     ) {
 98 |         self.api = api
/host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift:91:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'HTTPObjectTransport' has non-Sendable type 'AnyObject'
 89 |     public var api: URL
 90 |     public var headers: [String: String]
 91 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'HTTPObjectTransport' has non-Sendable type 'AnyObject'
 92 |
 93 |     public init(
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/AI/Core/AIError.swift /host/spi-builder-workspace/Sources/AI/Core/Agent.swift /host/spi-builder-workspace/Sources/AI/Core/Compaction.swift /host/spi-builder-workspace/Sources/AI/Core/Embeddings.swift /host/spi-builder-workspace/Sources/AI/Core/GenerateObject.swift /host/spi-builder-workspace/Sources/AI/Core/GenerateText.swift /host/spi-builder-workspace/Sources/AI/Core/ImageGeneration.swift /host/spi-builder-workspace/Sources/AI/Core/LanguageModel.swift /host/spi-builder-workspace/Sources/AI/Core/Message.swift /host/spi-builder-workspace/Sources/AI/Core/Middleware.swift /host/spi-builder-workspace/Sources/AI/Core/ModelContextWindows.swift /host/spi-builder-workspace/Sources/AI/Core/ModelMiddleware.swift /host/spi-builder-workspace/Sources/AI/Core/ProviderDefinedTool.swift /host/spi-builder-workspace/Sources/AI/Core/ProviderRegistry.swift /host/spi-builder-workspace/Sources/AI/Core/PruneMessages.swift /host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift /host/spi-builder-workspace/Sources/AI/Core/Reranking.swift /host/spi-builder-workspace/Sources/AI/Core/Retry.swift /host/spi-builder-workspace/Sources/AI/Core/RuntimeContext.swift /host/spi-builder-workspace/Sources/AI/Core/Schema.swift /host/spi-builder-workspace/Sources/AI/Core/SpeechGeneration.swift /host/spi-builder-workspace/Sources/AI/Core/StepControl.swift /host/spi-builder-workspace/Sources/AI/Core/StepRequest.swift /host/spi-builder-workspace/Sources/AI/Core/StreamSmoothing.swift /host/spi-builder-workspace/Sources/AI/Core/StreamText.swift /host/spi-builder-workspace/Sources/AI/Core/StreamTranscription.swift /host/spi-builder-workspace/Sources/AI/Core/Telemetry.swift /host/spi-builder-workspace/Sources/AI/Core/Timeouts.swift /host/spi-builder-workspace/Sources/AI/Core/Tool.swift /host/spi-builder-workspace/Sources/AI/Core/ToolApproval.swift /host/spi-builder-workspace/Sources/AI/Core/Transcription.swift /host/spi-builder-workspace/Sources/AI/Core/VideoGeneration.swift /host/spi-builder-workspace/Sources/AI/MCP/MCPClient.swift /host/spi-builder-workspace/Sources/AI/MCP/MCPOAuth.swift /host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift /host/spi-builder-workspace/Sources/AI/MCP/MCPStdioTransport.swift /host/spi-builder-workspace/Sources/AI/MCP/MCPToolDrift.swift /host/spi-builder-workspace/Sources/AI/Providers/AIGatewayModel.swift /host/spi-builder-workspace/Sources/AI/Providers/AlibabaModel.swift /host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift /host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift /host/spi-builder-workspace/Sources/AI/Providers/AzureOpenAIProvider.swift /host/spi-builder-workspace/Sources/AI/Providers/BasetenModel.swift /host/spi-builder-workspace/Sources/AI/Providers/BedrockMantleProvider.swift /host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift /host/spi-builder-workspace/Sources/AI/Providers/BlackForestLabsModel.swift /host/spi-builder-workspace/Sources/AI/Providers/ByteDanceModel.swift /host/spi-builder-workspace/Sources/AI/Providers/CartesiaModel.swift /host/spi-builder-workspace/Sources/AI/Providers/CerebrasModel.swift /host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift /host/spi-builder-workspace/Sources/AI/Providers/CohereRerankingModel.swift /host/spi-builder-workspace/Sources/AI/Providers/DeepInfraModel.swift /host/spi-builder-workspace/Sources/AI/Providers/DeepSeekModel.swift /host/spi-builder-workspace/Sources/AI/Providers/DeepgramStreamingTranscription.swift /host/spi-builder-workspace/Sources/AI/Providers/ElevenLabsModels.swift /host/spi-builder-workspace/Sources/AI/Providers/FileUploads.swift /host/spi-builder-workspace/Sources/AI/Providers/FireworksModel.swift /host/spi-builder-workspace/Sources/AI/Providers/FoundationModelsModel.swift /host/spi-builder-workspace/Sources/AI/Providers/GoogleEmbeddingModel.swift /host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift /host/spi-builder-workspace/Sources/AI/Providers/GoogleMediaModels.swift /host/spi-builder-workspace/Sources/AI/Providers/GoogleModel.swift /host/spi-builder-workspace/Sources/AI/Providers/GooglePlatformClients.swift /host/spi-builder-workspace/Sources/AI/Providers/GoogleVertexModel.swift /host/spi-builder-workspace/Sources/AI/Providers/GroqModel.swift /host/spi-builder-workspace/Sources/AI/Providers/HuggingFaceModel.swift /host/spi-builder-workspace/Sources/AI/Providers/KlingVideoModel.swift /host/spi-builder-workspace/Sources/AI/Providers/LMStudioModel.swift /host/spi-builder-workspace/Sources/AI/Providers/MediaGenerationPacks.swift /host/spi-builder-workspace/Sources/AI/Providers/MetaModel.swift /host/spi-builder-workspace/Sources/AI/Providers/MistralModel.swift /host/spi-builder-workspace/Sources/AI/Providers/MoonshotModel.swift /host/spi-builder-workspace/Sources/AI/Providers/OllamaModel.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleModelSupport.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAIEmbeddingModel.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAIImageModel.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAIModel.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAIPlatformClients.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesClient.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAISpeechModel.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAITranscriptionModel.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenRouterModel.swift /host/spi-builder-workspace/Sources/AI/Providers/PerplexityModel.swift /host/spi-builder-workspace/Sources/AI/Providers/ProdiaModel.swift /host/spi-builder-workspace/Sources/AI/Providers/SarvamModel.swift /host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift /host/spi-builder-workspace/Sources/AI/Providers/TogetherAIModel.swift /host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift /host/spi-builder-workspace/Sources/AI/Providers/VercelModel.swift /host/spi-builder-workspace/Sources/AI/Providers/VoyageModel.swift /host/spi-builder-workspace/Sources/AI/Providers/XaiImageModel.swift /host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift /host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift /host/spi-builder-workspace/Sources/AI/Providers/XaiVideoModel.swift /host/spi-builder-workspace/Sources/AI/Realtime/AudioResampling.swift /host/spi-builder-workspace/Sources/AI/Realtime/GoogleRealtimeModel.swift /host/spi-builder-workspace/Sources/AI/Realtime/OpenAIRealtimeModel.swift /host/spi-builder-workspace/Sources/AI/Realtime/RealtimeModel.swift /host/spi-builder-workspace/Sources/AI/Realtime/RealtimeSession.swift /host/spi-builder-workspace/Sources/AI/Realtime/XaiRealtimeModel.swift /host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift /host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift /host/spi-builder-workspace/Sources/AI/Transport/ChatTransport.swift /host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift /host/spi-builder-workspace/Sources/AI/Transport/LocalChatTransport.swift /host/spi-builder-workspace/Sources/AI/Transport/StreamBridge.swift /host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift /host/spi-builder-workspace/Sources/AI/Transport/UIMessage.swift /host/spi-builder-workspace/Sources/AI/Transport/UIMessageChunk.swift /host/spi-builder-workspace/Sources/AI/Transport/UIMessageReducer.swift /host/spi-builder-workspace/Sources/AI/Transport/UIMessageStreamBuilder.swift /host/spi-builder-workspace/Sources/AI/UI/ChatSession.swift /host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift /host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift /host/spi-builder-workspace/Sources/AI/Util/JSONValue.swift /host/spi-builder-workspace/Sources/AI/Util/MultipartForm.swift /host/spi-builder-workspace/Sources/AI/Util/PartialJSON.swift /host/spi-builder-workspace/Sources/AI/Util/ResponseURL.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-upcoming-feature StrictConcurrency -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-webassembly-wasm32/AI-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-webassembly-wasm32/AI-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-webassembly-wasm32/AI-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name AI -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-webassembly-wasm32/AI-t.build/Objects-normal/wasm32/AI_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-webassembly-wasm32/AI-t.build/Objects-normal/wasm32/Modules/AI.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-webassembly-wasm32/AI-t.build/Objects-normal/wasm32/Modules/AI.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-webassembly-wasm32/AI-t.build/Objects-normal/wasm32/AI-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-webassembly-wasm32/AI-t.build/Objects-normal/wasm32/AI-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-webassembly-wasm32/AI-t.build/Objects-normal/wasm32/AI-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-webassembly-wasm32/AI-t.build/Objects-normal/wasm32/Modules/AI.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm