The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-ai-sdk, reference main (d8d108), with Swift 6.2 for Wasm on 13 Aug 2026 01:13:56 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1

Build Log

132 |         pollInterval: TimeInterval = 5,
133 |         pollTimeout: TimeInterval = 600,
134 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |     ) {
136 |         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/MediaGenerationPacks.swift:134:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
132 |         pollInterval: TimeInterval = 5,
133 |         pollTimeout: TimeInterval = 600,
134 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
135 |     ) {
136 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/MediaGenerationPacks.swift:134:35: error: value of type '_' expected to be instance of class or class-constrained type
132 |         pollInterval: TimeInterval = 5,
133 |         pollTimeout: TimeInterval = 600,
134 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
135 |     ) {
136 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/MediaGenerationPacks.swift:172:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |     var pollInterval: TimeInterval
171 |     var pollTimeout: TimeInterval
172 |     var urlSession: URLSession
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |
174 |     func generate(
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/MediaGenerationPacks.swift:172:9: error: stored property 'urlSession' of 'Sendable'-conforming struct 'LumaGenerationEngine' has non-Sendable type 'URLSession' (aka 'AnyObject')
170 |     var pollInterval: TimeInterval
171 |     var pollTimeout: TimeInterval
172 |     var urlSession: URLSession
    |         `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'LumaGenerationEngine' has non-Sendable type 'URLSession' (aka 'AnyObject')
173 |
174 |     func generate(
/host/spi-builder-workspace/Sources/AI/Providers/MediaGenerationPacks.swift:236:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 |     private let baseURL: URL
235 |     private let headers: [String: String]
236 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 |
238 |     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/MediaGenerationPacks.swift:243:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 |         baseURL: URL = URL(string: "https://api.replicate.com/v1")!,
242 |         headers: [String: String] = [:],
243 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 |     ) {
245 |         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/MediaGenerationPacks.swift:243:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
241 |         baseURL: URL = URL(string: "https://api.replicate.com/v1")!,
242 |         headers: [String: String] = [:],
243 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
244 |     ) {
245 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/MediaGenerationPacks.swift:243:35: error: value of type '_' expected to be instance of class or class-constrained type
241 |         baseURL: URL = URL(string: "https://api.replicate.com/v1")!,
242 |         headers: [String: String] = [:],
243 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
244 |     ) {
245 |         self.modelID = modelID
/host/spi-builder-workspace/Sources/AI/Providers/MediaGenerationPacks.swift:279:66: error: cannot find type 'URLRequest' in scope
277 |     }
278 |
279 |     func buildURLRequest(_ request: ImageModelRequest) throws -> URLRequest {
    |                                                                  `- error: cannot find type 'URLRequest' in scope
280 |         var input: [String: JSONValue] = ["prompt": .string(request.prompt)]
281 |         if request.n > 1 { input["num_outputs"] = .number(Double(request.n)) }
/host/spi-builder-workspace/Sources/AI/Providers/MediaGenerationPacks.swift:236:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'ReplicateImageModel' has non-Sendable type 'URLSession' (aka 'AnyObject')
234 |     private let baseURL: URL
235 |     private let headers: [String: String]
236 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'ReplicateImageModel' has non-Sendable type 'URLSession' (aka 'AnyObject')
237 |
238 |     public init(
/host/spi-builder-workspace/Sources/AI/Providers/MetaModel.swift:24:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |         baseURL: URL = MetaModel.defaultBaseURL,
 23 |         headers: [String: String] = [:],
 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/MetaModel.swift:24:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |         baseURL: URL = MetaModel.defaultBaseURL,
 23 |         headers: [String: String] = [:],
 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/MetaModel.swift:24:35: error: value of type '_' expected to be instance of class or class-constrained type
 22 |         baseURL: URL = MetaModel.defaultBaseURL,
 23 |         headers: [String: String] = [:],
 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/MetaModel.swift:43:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |         baseURL: URL = MetaModel.defaultBaseURL,
 42 |         headers: [String: String] = [:],
 43 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |     ) -> MetaModel {
 45 |         MetaModel(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/MetaModel.swift:43:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 41 |         baseURL: URL = MetaModel.defaultBaseURL,
 42 |         headers: [String: String] = [:],
 43 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |     ) -> MetaModel {
 45 |         MetaModel(modelID: modelID, chatEngine: OpenAIChatModel(
/host/spi-builder-workspace/Sources/AI/Providers/MetaModel.swift:43:35: error: value of type '_' expected to be instance of class or class-constrained type
 41 |         baseURL: URL = MetaModel.defaultBaseURL,
 42 |         headers: [String: String] = [:],
 43 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 44 |     ) -> MetaModel {
 45 |         MetaModel(modelID: modelID, chatEngine: OpenAIChatModel(
/host/spi-builder-workspace/Sources/AI/Providers/MistralModel.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 = mistralConfiguration.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/MistralModel.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 = mistralConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/MistralModel.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 = mistralConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/MoonshotModel.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 = moonshotConfiguration.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/MoonshotModel.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 = moonshotConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/MoonshotModel.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 = moonshotConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/OllamaModel.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 = ollamaConfiguration.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/OllamaModel.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 = ollamaConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/OllamaModel.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 = ollamaConfiguration.makeModel(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleModelSupport.swift:17:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |         headers: [String: String],
16 |         queryParams: [String: String] = [:],
17 |         urlSession: URLSession
   |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |     ) -> OpenAIChatModel {
19 |         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/OpenAICompatibleModelSupport.swift:35:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |         baseURL: URL?,
34 |         headers: [String: String],
35 |         urlSession: URLSession
   |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |     ) -> OpenAIEmbeddingModel {
37 |         OpenAIEmbeddingModel(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:9:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |     public var headers: [String: String]
 8 |     public var queryParams: [String: String]
 9 |     private let urlSession: URLSession
   |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 |     public init(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |         headers: [String: String] = [:],
16 |         queryParams: [String: String] = [:],
17 |         urlSession: URLSession = .shared
   |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |     ) {
19 |         self.name = name
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:35: error: value of type '_' expected to be instance of class or class-constrained type
15 |         headers: [String: String] = [:],
16 |         queryParams: [String: String] = [:],
17 |         urlSession: URLSession = .shared
   |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
18 |     ) {
19 |         self.name = name
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 |         headers: [String: String] = [:],
16 |         queryParams: [String: String] = [:],
17 |         urlSession: URLSession = .shared
   |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |     ) {
19 |         self.name = name
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:9:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAICompatibleProvider' has non-Sendable type 'URLSession' (aka 'AnyObject')
 7 |     public var headers: [String: String]
 8 |     public var queryParams: [String: String]
 9 |     private let urlSession: URLSession
   |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAICompatibleProvider' has non-Sendable type 'URLSession' (aka 'AnyObject')
10 |
11 |     public init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIEmbeddingModel.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/OpenAIEmbeddingModel.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/OpenAIEmbeddingModel.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/OpenAIEmbeddingModel.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/OpenAIEmbeddingModel.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/OpenAIEmbeddingModel.swift:13:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAIEmbeddingModel' has non-Sendable type 'URLSession' (aka '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 'OpenAIEmbeddingModel' has non-Sendable type 'URLSession' (aka 'AnyObject')
14 |
15 |     public init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIImageModel.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/OpenAIImageModel.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/OpenAIImageModel.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/OpenAIImageModel.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/OpenAIImageModel.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/OpenAIImageModel.swift:68:66: error: cannot find type 'URLRequest' in scope
 66 |     }
 67 |
 68 |     func buildURLRequest(_ request: ImageModelRequest) throws -> URLRequest {
    |                                                                  `- error: cannot find type 'URLRequest' in scope
 69 |         if !request.images.isEmpty {
 70 |             return try buildEditRequest(request)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIImageModel.swift:102:75: error: cannot find type 'URLRequest' in scope
100 |     }
101 |
102 |     private func buildEditRequest(_ request: ImageModelRequest) throws -> URLRequest {
    |                                                                           `- error: cannot find type 'URLRequest' in scope
103 |         let boundary = "swift-ai-sdk-\(request.prompt.hashValue.magnitude)"
104 |         var form = MultipartForm(boundary: boundary)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIImageModel.swift:13:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAIImageModel' has non-Sendable type 'URLSession' (aka '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 'OpenAIImageModel' has non-Sendable type 'URLSession' (aka 'AnyObject')
 14 |
 15 |     public init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIModel.swift:14:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |     private let headers: [String: String]
 13 |     private let queryParams: [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/OpenAIModel.swift:22:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |         headers: [String: String] = [:],
 21 |         queryParams: [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.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/OpenAIModel.swift:22:35: error: value of type '_' expected to be instance of class or class-constrained type
 20 |         headers: [String: String] = [:],
 21 |         queryParams: [String: String] = [:],
 22 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 23 |     ) {
 24 |         self.init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIModel.swift:22:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 20 |         headers: [String: String] = [:],
 21 |         queryParams: [String: String] = [:],
 22 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 23 |     ) {
 24 |         self.init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIModel.swift:41:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |         headers: [String: String],
 40 |         queryParams: [String: String],
 41 |         urlSession: URLSession,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |         providerName: String
 43 |     ) {
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/OpenAIModel.swift:153:77: error: cannot find type 'URLRequest' in scope
151 |     }
152 |
153 |     private func buildURLRequest(_ request: LanguageModelRequest) throws -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
154 |         var urlRequest = URLRequest(url: requestURL(path: "chat/completions"))
155 |         urlRequest.httpMethod = "POST"
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIModel.swift:14:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAIChatModel' has non-Sendable type 'URLSession' (aka 'AnyObject')
 12 |     private let headers: [String: String]
 13 |     private let queryParams: [String: String]
 14 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAIChatModel' has non-Sendable type 'URLSession' (aka 'AnyObject')
 15 |
 16 |     public init(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIPlatformClients.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/OpenAIPlatformClients.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["OPENAI_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/OpenAIPlatformClients.swift:19:86: error: cannot find type 'URLRequest' in scope
 17 |     }
 18 |
 19 |     func request(_ method: String, _ path: String, query: [String: String] = [:]) -> URLRequest {
    |                                                                                      `- error: cannot find type 'URLRequest' in scope
 20 |         let base = baseURL.appendingPathComponent(path)
 21 |         var url = base
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIPlatformClients.swift:58:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |     }
 57 |
 58 |     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.
 59 |         if let http = response as? HTTPURLResponse, !(200..<300).contains(http.statusCode) {
 60 |             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/OpenAIPlatformClients.swift:10:9: error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAIHTTP' has non-Sendable type 'URLSession' (aka 'AnyObject')
  8 |     var baseURL: URL
  9 |     var headers: [String: String]
 10 |     var urlSession: URLSession
    |         `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAIHTTP' has non-Sendable type 'URLSession' (aka 'AnyObject')
 11 |
 12 |     init(apiKey: String?, baseURL: URL, headers: [String: String], urlSession: URLSession) {
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIPlatformClients.swift:72:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
 71 |         headers: [String: String] = [:],
 72 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |     ) {
 74 |         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:72:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 70 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
 71 |         headers: [String: String] = [:],
 72 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 73 |     ) {
 74 |         self.http = OpenAIHTTP(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIPlatformClients.swift:72:35: error: value of type '_' expected to be instance of class or class-constrained type
 70 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
 71 |         headers: [String: String] = [:],
 72 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 73 |     ) {
 74 |         self.http = OpenAIHTTP(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIPlatformClients.swift:167:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
165 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
166 |         headers: [String: String] = [:],
167 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 |     ) {
169 |         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:167:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
165 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
166 |         headers: [String: String] = [:],
167 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
168 |     ) {
169 |         self.http = OpenAIHTTP(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIPlatformClients.swift:167:35: error: value of type '_' expected to be instance of class or class-constrained type
165 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
166 |         headers: [String: String] = [:],
167 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
168 |     ) {
169 |         self.http = OpenAIHTTP(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIPlatformClients.swift:274:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
272 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
273 |         headers: [String: String] = [:],
274 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 |     ) {
276 |         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:274:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
272 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
273 |         headers: [String: String] = [:],
274 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
275 |     ) {
276 |         self.http = OpenAIHTTP(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIPlatformClients.swift:274:35: error: value of type '_' expected to be instance of class or class-constrained type
272 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
273 |         headers: [String: String] = [:],
274 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
275 |     ) {
276 |         self.http = OpenAIHTTP(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIPlatformClients.swift:324:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
322 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
323 |         headers: [String: String] = [:],
324 |         urlSession: URLSession = .shared
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 |     ) {
326 |         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:324:35: error: value of type '_' expected to be instance of class or class-constrained type
322 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
323 |         headers: [String: String] = [:],
324 |         urlSession: URLSession = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
325 |     ) {
326 |         self.http = OpenAIHTTP(
/host/spi-builder-workspace/Sources/AI/Providers/OpenAIPlatformClients.swift:324:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
322 |         baseURL: URL = URL(string: "https://api.openai.com/v1")!,
323 |         headers: [String: String] = [:],
324 |         urlSession: URLSession = .shared
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
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: 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: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: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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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: 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: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: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: 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: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: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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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: 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: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: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 'URLSession' (aka '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 'URLSession' (aka '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: 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: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: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 'URLSession' (aka '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 'URLSession' (aka '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: 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/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/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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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: 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: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: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 'URLSession' (aka '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 'URLSession' (aka '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: 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: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: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 'URLSession' (aka '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 'URLSession' (aka '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: 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: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: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 'URLSession' (aka '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 'URLSession' (aka '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: 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: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: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: 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: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: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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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: 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: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: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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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: 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: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: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 'URLSession' (aka '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 'URLSession' (aka '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: 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: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: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: 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: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: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: 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/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/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 'URLSession' (aka '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 'URLSession' (aka '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: 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: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:13:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'GoogleRealtimeModel' has non-Sendable type 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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: 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: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: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: 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: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: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: 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/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/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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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 'URLSession' (aka '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: 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: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:91:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'HTTPObjectTransport' has non-Sendable type 'URLSession' (aka '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 'URLSession' (aka 'AnyObject')
 92 |
 93 |     public init(
BUILD FAILURE 6.2 wasm