Build Information
Failed to build SwiftAgent, reference main (48bfda), with Swift 6.4 for watchOS using Xcode 27.0 on 23 Sep 2026 21:01:44 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme SwiftAgent-Package -destination generic/platform=watchOSBuild Log
+--------------------------------------------------------------------
69 |
70 | private extension ToolRunRejection {
macro expansion @Generable:36:21: error: 'PartiallyGenerated' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:68:1: note: expanded code originates here
61 | }
62 |
63 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
| `- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
64 | package struct RejectionReport {
65 | var error: Bool = true
66 | var reason: String
67 | var details: GeneratedContent?
68 | }
+--- macro expansion @Generable -------------------------------------
|32 | }
|33 |
|34 | nonisolated package struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | package var id: GenerationID
|36 | var error: Bool.PartiallyGenerated?
| | `- error: 'PartiallyGenerated' is only available in watchOS 27.0 or newer
|37 | var reason: String.PartiallyGenerated?
|38 | var details: GeneratedContent?.PartiallyGenerated?
+--------------------------------------------------------------------
69 |
70 | private extension ToolRunRejection {
macro expansion @Generable:37:24: error: 'PartiallyGenerated' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:68:1: note: expanded code originates here
61 | }
62 |
63 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
| `- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
64 | package struct RejectionReport {
65 | var error: Bool = true
66 | var reason: String
67 | var details: GeneratedContent?
68 | }
+--- macro expansion @Generable -------------------------------------
|32 | }
|33 |
|34 | nonisolated package struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | package var id: GenerationID
|36 | var error: Bool.PartiallyGenerated?
|37 | var reason: String.PartiallyGenerated?
| | `- error: 'PartiallyGenerated' is only available in watchOS 27.0 or newer
|38 | var details: GeneratedContent?.PartiallyGenerated?
|39 | nonisolated package init(_ content: FoundationModels.GeneratedContent) throws {
+--------------------------------------------------------------------
69 |
70 | private extension ToolRunRejection {
macro expansion @Generable:38:18: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:68:1: note: expanded code originates here
61 | }
62 |
63 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
| `- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
64 | package struct RejectionReport {
65 | var error: Bool = true
66 | var reason: String
67 | var details: GeneratedContent?
68 | }
+--- macro expansion @Generable -------------------------------------
|32 | }
|33 |
|34 | nonisolated package struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | package var id: GenerationID
|36 | var error: Bool.PartiallyGenerated?
|37 | var reason: String.PartiallyGenerated?
|38 | var details: GeneratedContent?.PartiallyGenerated?
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
|39 | nonisolated package init(_ content: FoundationModels.GeneratedContent) throws {
|40 | self.id = content.id ?? GenerationID()
+--------------------------------------------------------------------
69 |
70 | private extension ToolRunRejection {
macro expansion @Generable:39:58: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:68:1: note: expanded code originates here
61 | }
62 |
63 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
| |- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
| `- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
64 | package struct RejectionReport {
65 | var error: Bool = true
66 | var reason: String
67 | var details: GeneratedContent?
68 | }
+--- macro expansion @Generable -------------------------------------
|32 | }
|33 |
|34 | nonisolated package struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | package var id: GenerationID
|36 | var error: Bool.PartiallyGenerated?
|37 | var reason: String.PartiallyGenerated?
|38 | var details: GeneratedContent?.PartiallyGenerated?
|39 | nonisolated package init(_ content: FoundationModels.GeneratedContent) throws {
| | | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
|40 | self.id = content.id ?? GenerationID()
|41 | self.error = try content.value(forProperty: "error")
+--------------------------------------------------------------------
69 |
70 | private extension ToolRunRejection {
macro expansion @Generable:34:28: warning: protocol 'Identifiable' requires 'GenerationID' to be available in watchOS 26.0 and newer; this will be an error in a future Swift language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:68:1: note: expanded code originates here
61 | }
62 |
63 | @Generable
| `- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
64 | package struct RejectionReport {
65 | var error: Bool = true
66 | var reason: String
67 | var details: GeneratedContent?
68 | }
+--- macro expansion @Generable -------------------------------------
|32 | }
|33 |
|34 | nonisolated package struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- warning: protocol 'Identifiable' requires 'GenerationID' to be available in watchOS 26.0 and newer; this will be an error in a future Swift language mode
|35 | package var id: GenerationID
|36 | var error: Bool.PartiallyGenerated?
+--------------------------------------------------------------------
69 |
70 | private extension ToolRunRejection {
FoundationModels.GenerationID:3:15: note: 'GenerationID' declared here
1 | @available(iOS 26.0, macOS 26.0, watchOS 27.0, *)
2 | @available(tvOS, unavailable)
3 | public struct GenerationID : Sendable, Hashable {
| `- note: 'GenerationID' declared here
4 | public static func == (a: GenerationID, b: GenerationID) -> Bool
5 | public func hash(into hasher: inout Hasher)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:63:2: error: 'Generable(description:)' is only available in watchOS 27.0 or newer
61 | }
62 |
63 | @Generable
| `- error: 'Generable(description:)' is only available in watchOS 27.0 or newer
64 | package struct RejectionReport {
| `- note: add '@available' attribute to enclosing struct
65 | var error: Bool = true
66 | var reason: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:71:73: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
68 | }
69 |
70 | private extension ToolRunRejection {
| `- note: add '@available' attribute to enclosing extension
71 | static func generateDetailsContent(from details: [String: String]) -> GeneratedContent? {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing static method
72 | let encoder = JSONEncoder()
73 | encoder.outputFormatting = [.sortedKeys]
macro expansion @Generable:2:58: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:68:2: note: expanded code originates here
61 | }
62 |
63 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
| |- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
| `- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
64 | package struct RejectionReport {
65 | var error: Bool = true
66 | var reason: String
67 | var details: GeneratedContent?
68 | }
+--- macro expansion @Generable -------------------------------------
|1 | extension RejectionReport: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing extension
|2 | nonisolated package init(_ content: FoundationModels.GeneratedContent) throws {
| | | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
|3 | self.error = try content.value(forProperty: "error")
|4 | self.reason = try content.value(forProperty: "reason")
+--------------------------------------------------------------------
69 |
70 | private extension ToolRunRejection {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:253:27: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
243 | public extension Transcript {
244 | /// A single tool invocation requested by the model.
245 | struct ToolCall: Sendable, Identifiable, Equatable, Codable {
| `- note: add '@available' attribute to enclosing struct
246 | /// Identifier for this tool call record.
247 | public var id: String
:
251 | public var toolName: String
252 | /// JSON arguments for the tool call.
253 | public var arguments: GeneratedContent
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
254 | /// Optional status of the tool call as it progresses.
255 | public var status: Status?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:261:18: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
243 | public extension Transcript {
244 | /// A single tool invocation requested by the model.
245 | struct ToolCall: Sendable, Identifiable, Equatable, Codable {
| `- note: add '@available' attribute to enclosing struct
246 | /// Identifier for this tool call record.
247 | public var id: String
:
255 | public var status: Status?
256 |
257 | public init(
| `- note: add '@available' attribute to enclosing initializer
258 | id: String,
259 | callId: String,
260 | toolName: String,
261 | arguments: GeneratedContent,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
262 | status: Status?,
263 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:389:25: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
381 |
382 | /// A unit of structured content produced by the model or a tool.
383 | struct StructuredSegment: Sendable, Identifiable, Equatable, Codable {
| `- note: add '@available' attribute to enclosing struct
384 | /// Identifier for this segment.
385 | public var id: String
:
387 | public var typeName: String
388 | /// The structured payload as generated content.
389 | public var content: GeneratedContent
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
390 |
391 | public init(id: String = UUID().uuidString, typeName: String = "", content: GeneratedContent) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:391:81: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
381 |
382 | /// A unit of structured content produced by the model or a tool.
383 | struct StructuredSegment: Sendable, Identifiable, Equatable, Codable {
| `- note: add '@available' attribute to enclosing struct
384 | /// Identifier for this segment.
385 | public var id: String
:
389 | public var content: GeneratedContent
390 |
391 | public init(id: String = UUID().uuidString, typeName: String = "", content: GeneratedContent) {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing initializer
392 | self.id = id
393 | self.typeName = typeName
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:397:86: error: 'ConvertibleToGeneratedContent' is only available in watchOS 27.0 or newer
381 |
382 | /// A unit of structured content produced by the model or a tool.
383 | struct StructuredSegment: Sendable, Identifiable, Equatable, Codable {
| `- note: add '@available' attribute to enclosing struct
384 | /// Identifier for this segment.
385 | public var id: String
:
395 | }
396 |
397 | public init(id: String = UUID().uuidString, typeName: String = "", content: some ConvertibleToGeneratedContent) {
| | `- error: 'ConvertibleToGeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing initializer
398 | self.id = id
399 | self.typeName = typeName
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:397:86: error: 'ConvertibleToGeneratedContent' is only available in watchOS 27.0 or newer
381 |
382 | /// A unit of structured content produced by the model or a tool.
383 | struct StructuredSegment: Sendable, Identifiable, Equatable, Codable {
| `- note: add '@available' attribute to enclosing struct
384 | /// Identifier for this segment.
385 | public var id: String
:
395 | }
396 |
397 | public init(id: String = UUID().uuidString, typeName: String = "", content: some ConvertibleToGeneratedContent) {
| | `- error: 'ConvertibleToGeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing initializer
398 | self.id = id
399 | self.typeName = typeName
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:819:64: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
817 | }
818 |
819 | private func transcriptPrettyJSONString(from generatedContent: GeneratedContent) -> String {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing global function
820 | let rawJSONString = generatedContent.stableJsonString
821 | guard let data = rawJSONString.data(using: .utf8) else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/_SwiftAgentToolWrapper.swift:9:61: error: 'Tool' is only available in watchOS 27.0 or newer
7 | ///
8 | /// - Note: This type is managed internally by the SDK. You generally do not interact with it directly.
9 | public struct _SwiftAgentToolWrapper<Tool: FoundationModels.Tool>: SwiftAgentTool
| | `- error: 'Tool' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing generic struct
10 | where Tool.Arguments: Generable, Tool.Output: Generable {
11 | private let tool: Tool
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/_SwiftAgentToolWrapper.swift:10:25: error: 'Generable' is only available in watchOS 27.0 or newer
7 | ///
8 | /// - Note: This type is managed internally by the SDK. You generally do not interact with it directly.
9 | public struct _SwiftAgentToolWrapper<Tool: FoundationModels.Tool>: SwiftAgentTool
| `- note: add '@available' attribute to enclosing generic struct
10 | where Tool.Arguments: Generable, Tool.Output: Generable {
| `- error: 'Generable' is only available in watchOS 27.0 or newer
11 | private let tool: Tool
12 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/_SwiftAgentToolWrapper.swift:10:49: error: 'Generable' is only available in watchOS 27.0 or newer
7 | ///
8 | /// - Note: This type is managed internally by the SDK. You generally do not interact with it directly.
9 | public struct _SwiftAgentToolWrapper<Tool: FoundationModels.Tool>: SwiftAgentTool
| `- note: add '@available' attribute to enclosing generic struct
10 | where Tool.Arguments: Generable, Tool.Output: Generable {
| `- error: 'Generable' is only available in watchOS 27.0 or newer
11 | private let tool: Tool
12 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:142:14: warning: property 'promptRepresentation' nearly matches defaulted requirement 'promptRepresentation' of protocol 'PromptRepresentable'
131 | @available(watchOS, unavailable)
132 | public protocol PromptRepresentable {
133 | @PromptBuilder var promptRepresentation: Prompt { get }
| `- note: requirement 'promptRepresentation' declared here
134 | }
135 |
:
140 | @available(watchOS, unavailable)
141 | extension String: PromptRepresentable {
142 | public var promptRepresentation: Prompt {
| |- warning: property 'promptRepresentation' nearly matches defaulted requirement 'promptRepresentation' of protocol 'PromptRepresentable'
| |- note: candidate exactly matches
| `- note: move 'promptRepresentation' to another extension to silence this warning
143 | Prompt(nodes: [.text(self)])
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:14:45: error: 'Tool' is only available in watchOS 27.0 or newer
9 | /// generated types turn streaming `ToolRun<BaseTool>` snapshots into concrete `DecodedToolRun`
10 | /// objects that feed resolved transcripts, UI views, and analytics.
11 | public protocol DecodableTool<DecodedToolRun>: SwiftAgentTool where BaseTool.Arguments: Generable,
| `- note: add '@available' attribute to enclosing protocol
12 | BaseTool.Output: Generable {
13 | /// The tool implementation being decoded.
14 | associatedtype BaseTool: FoundationModels.Tool
| | `- error: 'Tool' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing associated type
15 | /// Schema-specific projection used in resolved transcripts and snapshots.
16 | associatedtype DecodedToolRun: SwiftAgent.DecodedToolRun
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:11:89: error: 'Generable' is only available in watchOS 27.0 or newer
9 | /// generated types turn streaming `ToolRun<BaseTool>` snapshots into concrete `DecodedToolRun`
10 | /// objects that feed resolved transcripts, UI views, and analytics.
11 | public protocol DecodableTool<DecodedToolRun>: SwiftAgentTool where BaseTool.Arguments: Generable,
| | `- error: 'Generable' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing protocol
12 | BaseTool.Output: Generable {
13 | /// The tool implementation being decoded.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:12:20: error: 'Generable' is only available in watchOS 27.0 or newer
9 | /// generated types turn streaming `ToolRun<BaseTool>` snapshots into concrete `DecodedToolRun`
10 | /// objects that feed resolved transcripts, UI views, and analytics.
11 | public protocol DecodableTool<DecodedToolRun>: SwiftAgentTool where BaseTool.Arguments: Generable,
| `- note: add '@available' attribute to enclosing protocol
12 | BaseTool.Output: Generable {
| `- error: 'Generable' is only available in watchOS 27.0 or newer
13 | /// The tool implementation being decoded.
14 | associatedtype BaseTool: FoundationModels.Tool
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:29:19: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
23 | }
24 |
25 | package extension DecodableTool {
| `- note: add '@available' attribute to enclosing extension
26 | /// Decodes a completed tool run from raw generated content.
27 | func decodeCompleted(
| `- note: add '@available' attribute to enclosing instance method
28 | id: String,
29 | rawArguments: GeneratedContent,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
30 | rawOutput: GeneratedContent?,
31 | ) throws -> DecodedToolRun {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:30:16: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
23 | }
24 |
25 | package extension DecodableTool {
| `- note: add '@available' attribute to enclosing extension
26 | /// Decodes a completed tool run from raw generated content.
27 | func decodeCompleted(
| `- note: add '@available' attribute to enclosing instance method
28 | id: String,
29 | rawArguments: GeneratedContent,
30 | rawOutput: GeneratedContent?,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
31 | ) throws -> DecodedToolRun {
32 | let arguments = try BaseTool.Arguments(rawArguments)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:45:19: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
23 | }
24 |
25 | package extension DecodableTool {
| `- note: add '@available' attribute to enclosing extension
26 | /// Decodes a completed tool run from raw generated content.
27 | func decodeCompleted(
:
41 |
42 | /// Decodes an in‑progress tool run from raw generated content.
43 | func decodePartial(
| `- note: add '@available' attribute to enclosing instance method
44 | id: String,
45 | rawArguments: GeneratedContent,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
46 | rawOutput: GeneratedContent?,
47 | ) throws -> DecodedToolRun {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:46:16: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
23 | }
24 |
25 | package extension DecodableTool {
| `- note: add '@available' attribute to enclosing extension
26 | /// Decodes a completed tool run from raw generated content.
27 | func decodeCompleted(
:
41 |
42 | /// Decodes an in‑progress tool run from raw generated content.
43 | func decodePartial(
| `- note: add '@available' attribute to enclosing instance method
44 | id: String,
45 | rawArguments: GeneratedContent,
46 | rawOutput: GeneratedContent?,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
47 | ) throws -> DecodedToolRun {
48 | let arguments = try BaseTool.Arguments.PartiallyGenerated(rawArguments)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:62:19: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
23 | }
24 |
25 | package extension DecodableTool {
| `- note: add '@available' attribute to enclosing extension
26 | /// Decodes a completed tool run from raw generated content.
27 | func decodeCompleted(
:
57 |
58 | /// Decodes a failed tool run with an associated resolution error.
59 | func decodeFailed(
| `- note: add '@available' attribute to enclosing instance method
60 | id: String,
61 | error: TranscriptResolvingError.ToolRunResolution,
62 | rawArguments: GeneratedContent,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
63 | rawOutput: GeneratedContent?,
64 | ) throws -> DecodedToolRun {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:63:16: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
23 | }
24 |
25 | package extension DecodableTool {
| `- note: add '@available' attribute to enclosing extension
26 | /// Decodes a completed tool run from raw generated content.
27 | func decodeCompleted(
:
57 |
58 | /// Decodes a failed tool run with an associated resolution error.
59 | func decodeFailed(
| `- note: add '@available' attribute to enclosing instance method
60 | id: String,
61 | error: TranscriptResolvingError.ToolRunResolution,
62 | rawArguments: GeneratedContent,
63 | rawOutput: GeneratedContent?,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
64 | ) throws -> DecodedToolRun {
65 | let toolRun = ToolRun<BaseTool>(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:80:19: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
73 | }
74 |
75 | package extension DecodableTool {
| `- note: add '@available' attribute to enclosing extension
76 | /// Builds a typed `ToolRun` value from raw arguments and optional output or rejection.
77 | func toolRun(
| `- note: add '@available' attribute to enclosing instance method
78 | id: String,
79 | argumentsPhase: ToolRun<BaseTool>.ArgumentsPhase,
80 | rawArguments: GeneratedContent,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
81 | rawOutput: GeneratedContent?,
82 | ) throws -> ToolRun<BaseTool> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:81:16: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
73 | }
74 |
75 | package extension DecodableTool {
| `- note: add '@available' attribute to enclosing extension
76 | /// Builds a typed `ToolRun` value from raw arguments and optional output or rejection.
77 | func toolRun(
| `- note: add '@available' attribute to enclosing instance method
78 | id: String,
79 | argumentsPhase: ToolRun<BaseTool>.ArgumentsPhase,
80 | rawArguments: GeneratedContent,
81 | rawOutput: GeneratedContent?,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
82 | ) throws -> ToolRun<BaseTool> {
83 | guard let rawOutput else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:116:41: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
73 | }
74 |
75 | package extension DecodableTool {
| `- note: add '@available' attribute to enclosing extension
76 | /// Builds a typed `ToolRun` value from raw arguments and optional output or rejection.
77 | func toolRun(
:
114 |
115 | /// Extracts a structured rejection description from generated content (if present).
116 | func rejection(from generatedContent: GeneratedContent) -> ToolRun<BaseTool>.Rejection? {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing instance method
117 | guard
118 | let rejectionReport = try? RejectionReport(generatedContent),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:137:19: error: 'GenerationSchema' is only available in watchOS 27.0 or newer
131 | // MARK: - JSON Schema
132 |
133 | private struct EncodableToolSchema: Encodable {
| `- note: add '@available' attribute to enclosing struct
134 | let type: String
135 | let name: String
136 | let description: String
137 | let parameters: GenerationSchema
| `- error: 'GenerationSchema' is only available in watchOS 27.0 or newer
138 | }
139 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/StructuredOutput.swift:33:26: error: 'Generable' is only available in watchOS 27.0 or newer
29 | /// let report = try await session.respond(to: "Weather in Lisbon?", generating: \.weatherReport).content
30 | /// ```
31 | public protocol StructuredOutput<Schema>: Sendable {
| `- note: add '@available' attribute to enclosing protocol
32 | /// The schema that the model should produce for this output.
33 | associatedtype Schema: Generable
| | `- error: 'Generable' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing associated type
34 |
35 | /// A stable identifier for the output used in transcripts.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/StructuredOutput.swift:39:1: error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
37 | }
38 |
39 | extension String: StructuredOutput {
| |- error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
| |- note: add '@available' attribute to enclosing extension
| `- note: in associated type 'Self.Schema' (inferred as 'String')
40 | /// The schema is the string itself, enabling plain text generation
41 | /// through the same structured output pipeline.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/SwiftAgentTool.swift:11:50: error: 'Tool' is only available in watchOS 27.0 or newer
9 | /// - Note: You do not conform to this protocol directly. When you define a language model session and pass a `@Tool`
10 | /// property, the macro will synthesize a conformance to this protocol.
11 | public protocol SwiftAgentTool: FoundationModels.Tool where Arguments: Generable, Output: Generable {}
| | `- error: 'Tool' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing protocol
12 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/SwiftAgentTool.swift:11:72: error: 'Generable' is only available in watchOS 27.0 or newer
9 | /// - Note: You do not conform to this protocol directly. When you define a language model session and pass a `@Tool`
10 | /// property, the macro will synthesize a conformance to this protocol.
11 | public protocol SwiftAgentTool: FoundationModels.Tool where Arguments: Generable, Output: Generable {}
| | `- error: 'Generable' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing protocol
12 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/SwiftAgentTool.swift:11:91: error: 'Generable' is only available in watchOS 27.0 or newer
9 | /// - Note: You do not conform to this protocol directly. When you define a language model session and pass a `@Tool`
10 | /// property, the macro will synthesize a conformance to this protocol.
11 | public protocol SwiftAgentTool: FoundationModels.Tool where Arguments: Generable, Output: Generable {}
| | `- error: 'Generable' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing protocol
12 |
Failed frontend command:
SwiftCompile normal arm64_32 (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/AgentLog.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/ContentFragmentBuffer.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/GeneratedContent+StableJSON.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/GenerationError+HTTPMapping.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/GenerationError+Pipeline.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/JSONUtilities.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/Logging.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/RejectionReportDetailsExtractor.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/SnakeCaseName.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/TranscriptResolver.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/URLMetadataProvider.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Macros.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/AdapterUpdate.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/AgentResponse.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/AgentSnapshot.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/GenerationError.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/StructuredOutputSnapshot.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/TokenUsage.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRun.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript+Resolved.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/TranscriptResolvingError.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/_SwiftAgentToolWrapper.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Networking/AuthorizationContext.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Networking/HTTPClient+SSE.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Networking/HTTPClient.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Networking/HTTPErrorMessageExtractor.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Networking/HTTPReplayRecorder.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Networking/NetworkLog.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Networking/SSEEventTextEncoder.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuiltins.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/Adapter.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableStructuredOutput.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/LanguageModelSessionSchema.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/StructuredOutput.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/SwiftAgentTool.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/SwiftAgentConfiguration.swift -target arm64_32-apple-watchos26.0 -disable-cross-import-overlay-search -swift-module-cross-import LinkPresentation /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/LinkPresentation.framework/Modules/LinkPresentation.swiftcrossimport/AppIntents.swiftoverlay -swift-module-cross-import LinkPresentation /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/LinkPresentation.framework/Modules/LinkPresentation.swiftcrossimport/AppIntents.swiftoverlay -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationModelsMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationModelsMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin \#/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/SwiftAgentMacros\#SwiftAgentMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftUIMacros -disable-implicit-swift-modules -Xcc -fno-implicit-modules -Xcc -fno-implicit-module-maps -explicit-swift-module-map-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64_32/SwiftAgent-dependencies-2.json -enable-objc-interop -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/PackageFrameworks -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=5 -profile-generate -profile-coverage-mapping -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -load-plugin-executable /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/SwiftAgentMacros\#SwiftAgentMacros -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SwiftAgent -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64_32/SwiftAgent_const_extract_protocols.json -disable-clang-spi -clang-target arm64_32-apple-watchos27.0 -target-sdk-version 27.0 -target-sdk-name watchos27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64_32/SwiftAgent.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64_32/SwiftAgent.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64_32/SwiftAgent-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64_32/SwiftAgent-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64_32/SwiftAgent-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64_32/SwiftAgent.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64_32/SwiftAgent.abi.json
SwiftCompile normal arm64_32 Compiling\ AgentLog.swift,\ ContentFragmentBuffer.swift,\ GeneratedContent+StableJSON.swift,\ GenerationError+HTTPMapping.swift,\ GenerationError+Pipeline.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/AgentLog.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/ContentFragmentBuffer.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/GeneratedContent+StableJSON.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/GenerationError+HTTPMapping.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/GenerationError+Pipeline.swift (in target 'SwiftAgent' from project 'SwiftAgent')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/AgentLog.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AgentLog.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/ContentFragmentBuffer.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ContentFragmentBuffer.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/GeneratedContent+StableJSON.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile GeneratedContent+StableJSON.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/GenerationError+HTTPMapping.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile GenerationError+HTTPMapping.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/GenerationError+Pipeline.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile GenerationError+Pipeline.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/GeneratedContent+StableJSON.swift:6:11: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
4 | import FoundationModels
5 |
6 | extension GeneratedContent {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing extension
7 | /// A stable JSON string representation whose dictionary keys are deterministically sorted.
8 | ///
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/GeneratedContent+StableJSON.swift:15:57: error: 'jsonString' is only available in watchOS 27.0 or newer
4 | import FoundationModels
5 |
6 | extension GeneratedContent {
| `- note: add '@available' attribute to enclosing extension
7 | /// A stable JSON string representation whose dictionary keys are deterministically sorted.
8 | ///
:
12 | /// sorted keys so downstream systems receive a consistent payload while Apple works on an
13 | /// upstream fix.
14 | public var stableJsonString: String {
| `- note: add '@available' attribute to enclosing property
15 | guard let sortedJSONString = sortedJSONString(from: jsonString) else {
| |- error: 'jsonString' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
16 | return jsonString
17 | }
SwiftCompile normal arm64_32 Compiling\ URLMetadataProvider.swift,\ LanguageModelProvider+Respond.swift,\ LanguageModelProvider+StreamResponse.swift,\ LanguageModelProvider.swift,\ Macros.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/URLMetadataProvider.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Macros.swift (in target 'SwiftAgent' from project 'SwiftAgent')
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:75:16: error: 'Prompt' is unavailable in watchOS
73 | @discardableResult
74 | func respond(
75 | to prompt: Prompt,
| `- error: 'Prompt' is unavailable in watchOS
76 | using model: Adapter.Model = .default,
77 | options: Adapter.GenerationOptions? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:107:6: error: 'PromptBuilder' is unavailable in watchOS
105 | using model: Adapter.Model = .default,
106 | options: Adapter.GenerationOptions? = nil,
107 | @PromptBuilder prompt: () throws -> Prompt,
| `- error: 'PromptBuilder' is unavailable in watchOS
108 | ) async throws -> Response<String> {
109 | try await respond(to: prompt().formatted(), using: model, options: options)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:86:15: note: 'PromptBuilder' has been explicitly marked unavailable here
84 | @available(watchOS, unavailable)
85 | @resultBuilder
86 | public struct PromptBuilder {
| `- note: 'PromptBuilder' has been explicitly marked unavailable here
87 | /// Normalize any `PromptRepresentable` to a `Prompt` during expression processing.
88 | public static func buildExpression(_ expression: some PromptRepresentable) -> Prompt {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:107:41: error: 'Prompt' is unavailable in watchOS
105 | using model: Adapter.Model = .default,
106 | options: Adapter.GenerationOptions? = nil,
107 | @PromptBuilder prompt: () throws -> Prompt,
| `- error: 'Prompt' is unavailable in watchOS
108 | ) async throws -> Response<String> {
109 | try await respond(to: prompt().formatted(), using: model, options: options)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:274:16: error: 'Prompt' is unavailable in watchOS
272 | @discardableResult
273 | func respond<StructuredOutput: SwiftAgent.StructuredOutput>(
274 | to prompt: Prompt,
| `- error: 'Prompt' is unavailable in watchOS
275 | generating type: StructuredOutput.Type,
276 | using model: Adapter.Model = .default,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:345:16: error: 'Prompt' is unavailable in watchOS
343 | @discardableResult
344 | func respond<StructuredOutput: SwiftAgent.StructuredOutput>(
345 | to prompt: Prompt,
| `- error: 'Prompt' is unavailable in watchOS
346 | generating type: KeyPath<SessionSchema.StructuredOutputs, StructuredOutput.Type>,
347 | using model: Adapter.Model = .default,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:397:6: error: 'PromptBuilder' is unavailable in watchOS
395 | using model: Adapter.Model = .default,
396 | options: Adapter.GenerationOptions? = nil,
397 | @PromptBuilder prompt: () throws -> Prompt,
| `- error: 'PromptBuilder' is unavailable in watchOS
398 | ) async throws -> Response<StructuredOutput> {
399 | try await respond(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:86:15: note: 'PromptBuilder' has been explicitly marked unavailable here
84 | @available(watchOS, unavailable)
85 | @resultBuilder
86 | public struct PromptBuilder {
| `- note: 'PromptBuilder' has been explicitly marked unavailable here
87 | /// Normalize any `PromptRepresentable` to a `Prompt` during expression processing.
88 | public static func buildExpression(_ expression: some PromptRepresentable) -> Prompt {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:397:41: error: 'Prompt' is unavailable in watchOS
395 | using model: Adapter.Model = .default,
396 | options: Adapter.GenerationOptions? = nil,
397 | @PromptBuilder prompt: () throws -> Prompt,
| `- error: 'Prompt' is unavailable in watchOS
398 | ) async throws -> Response<StructuredOutput> {
399 | try await respond(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:464:6: error: 'PromptBuilder' is unavailable in watchOS
462 | using model: Adapter.Model = .default,
463 | options: Adapter.GenerationOptions? = nil,
464 | @PromptBuilder prompt: () throws -> Prompt,
| `- error: 'PromptBuilder' is unavailable in watchOS
465 | ) async throws -> Response<StructuredOutput> {
466 | try await respond(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:86:15: note: 'PromptBuilder' has been explicitly marked unavailable here
84 | @available(watchOS, unavailable)
85 | @resultBuilder
86 | public struct PromptBuilder {
| `- note: 'PromptBuilder' has been explicitly marked unavailable here
87 | /// Normalize any `PromptRepresentable` to a `Prompt` during expression processing.
88 | public static func buildExpression(_ expression: some PromptRepresentable) -> Prompt {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:464:41: error: 'Prompt' is unavailable in watchOS
462 | using model: Adapter.Model = .default,
463 | options: Adapter.GenerationOptions? = nil,
464 | @PromptBuilder prompt: () throws -> Prompt,
| `- error: 'Prompt' is unavailable in watchOS
465 | ) async throws -> Response<StructuredOutput> {
466 | try await respond(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:521:6: error: 'PromptBuilder' is unavailable in watchOS
519 | groundingWith sources: [SessionSchema.DecodedGrounding],
520 | options: Adapter.GenerationOptions? = nil,
521 | @PromptBuilder embeddingInto prompt: @Sendable (_ input: String, _ sources: [SessionSchema.DecodedGrounding])
| `- error: 'PromptBuilder' is unavailable in watchOS
522 | -> Prompt,
523 | ) async throws -> Response<String> where SessionSchema: GroundingSupportingSchema {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:86:15: note: 'PromptBuilder' has been explicitly marked unavailable here
84 | @available(watchOS, unavailable)
85 | @resultBuilder
86 | public struct PromptBuilder {
| `- note: 'PromptBuilder' has been explicitly marked unavailable here
87 | /// Normalize any `PromptRepresentable` to a `Prompt` during expression processing.
88 | public static func buildExpression(_ expression: some PromptRepresentable) -> Prompt {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:522:10: error: 'Prompt' is unavailable in watchOS
520 | options: Adapter.GenerationOptions? = nil,
521 | @PromptBuilder embeddingInto prompt: @Sendable (_ input: String, _ sources: [SessionSchema.DecodedGrounding])
522 | -> Prompt,
| `- error: 'Prompt' is unavailable in watchOS
523 | ) async throws -> Response<String> where SessionSchema: GroundingSupportingSchema {
524 | let sourcesData = try schema.encodeGrounding(sources)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:603:6: error: 'PromptBuilder' is unavailable in watchOS
601 | groundingWith sources: [SessionSchema.DecodedGrounding],
602 | options: Adapter.GenerationOptions? = nil,
603 | @PromptBuilder embeddingInto prompt: @Sendable (_ prompt: String, _ sources: [SessionSchema.DecodedGrounding])
| `- error: 'PromptBuilder' is unavailable in watchOS
604 | -> Prompt,
605 | ) async throws -> Response<StructuredOutput> where SessionSchema: GroundingSupportingSchema {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:86:15: note: 'PromptBuilder' has been explicitly marked unavailable here
84 | @available(watchOS, unavailable)
85 | @resultBuilder
86 | public struct PromptBuilder {
| `- note: 'PromptBuilder' has been explicitly marked unavailable here
87 | /// Normalize any `PromptRepresentable` to a `Prompt` during expression processing.
88 | public static func buildExpression(_ expression: some PromptRepresentable) -> Prompt {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:604:10: error: 'Prompt' is unavailable in watchOS
602 | options: Adapter.GenerationOptions? = nil,
603 | @PromptBuilder embeddingInto prompt: @Sendable (_ prompt: String, _ sources: [SessionSchema.DecodedGrounding])
604 | -> Prompt,
| `- error: 'Prompt' is unavailable in watchOS
605 | ) async throws -> Response<StructuredOutput> where SessionSchema: GroundingSupportingSchema {
606 | let sourcesData = try schema.encodeGrounding(sources)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:635:6: error: 'PromptBuilder' is unavailable in watchOS
633 | groundingWith sources: [SessionSchema.DecodedGrounding],
634 | options: Adapter.GenerationOptions? = nil,
635 | @PromptBuilder embeddingInto prompt: @Sendable (_ prompt: String, _ sources: [SessionSchema.DecodedGrounding])
| `- error: 'PromptBuilder' is unavailable in watchOS
636 | -> Prompt,
637 | ) async throws -> Response<StructuredOutput> where SessionSchema: GroundingSupportingSchema {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:86:15: note: 'PromptBuilder' has been explicitly marked unavailable here
84 | @available(watchOS, unavailable)
85 | @resultBuilder
86 | public struct PromptBuilder {
| `- note: 'PromptBuilder' has been explicitly marked unavailable here
87 | /// Normalize any `PromptRepresentable` to a `Prompt` during expression processing.
88 | public static func buildExpression(_ expression: some PromptRepresentable) -> Prompt {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:636:10: error: 'Prompt' is unavailable in watchOS
634 | options: Adapter.GenerationOptions? = nil,
635 | @PromptBuilder embeddingInto prompt: @Sendable (_ prompt: String, _ sources: [SessionSchema.DecodedGrounding])
636 | -> Prompt,
| `- error: 'Prompt' is unavailable in watchOS
637 | ) async throws -> Response<StructuredOutput> where SessionSchema: GroundingSupportingSchema {
638 | let sourcesData = try schema.encodeGrounding(sources)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:81:16: error: 'Prompt' is unavailable in watchOS
79 | /// - Returns: An ``AsyncThrowingStream`` that yields response snapshots as they arrive.
80 | func streamResponse(
81 | to prompt: Prompt,
| `- error: 'Prompt' is unavailable in watchOS
82 | using model: Adapter.Model = .default,
83 | options: Adapter.GenerationOptions? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:122:6: error: 'PromptBuilder' is unavailable in watchOS
120 | using model: Adapter.Model = .default,
121 | options: Adapter.GenerationOptions? = nil,
122 | @PromptBuilder prompt: @Sendable () throws -> Prompt,
| `- error: 'PromptBuilder' is unavailable in watchOS
123 | ) throws -> AsyncThrowingStream<Snapshot<String>, any Error> {
124 | try streamResponse(to: prompt().formatted(), using: model, options: options)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:86:15: note: 'PromptBuilder' has been explicitly marked unavailable here
84 | @available(watchOS, unavailable)
85 | @resultBuilder
86 | public struct PromptBuilder {
| `- note: 'PromptBuilder' has been explicitly marked unavailable here
87 | /// Normalize any `PromptRepresentable` to a `Prompt` during expression processing.
88 | public static func buildExpression(_ expression: some PromptRepresentable) -> Prompt {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:122:51: error: 'Prompt' is unavailable in watchOS
120 | using model: Adapter.Model = .default,
121 | options: Adapter.GenerationOptions? = nil,
122 | @PromptBuilder prompt: @Sendable () throws -> Prompt,
| `- error: 'Prompt' is unavailable in watchOS
123 | ) throws -> AsyncThrowingStream<Snapshot<String>, any Error> {
124 | try streamResponse(to: prompt().formatted(), using: model, options: options)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:300:16: error: 'Prompt' is unavailable in watchOS
298 | /// - Returns: An ``AsyncThrowingStream`` yielding structured snapshots until generation completes.
299 | func streamResponse<StructuredOutput: SwiftAgent.StructuredOutput>(
300 | to prompt: Prompt,
| `- error: 'Prompt' is unavailable in watchOS
301 | generating type: StructuredOutput.Type,
302 | using model: Adapter.Model = .default,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:363:16: error: 'Prompt' is unavailable in watchOS
361 | /// - Returns: An ``AsyncThrowingStream`` yielding structured snapshots until generation completes.
362 | func streamResponse<StructuredOutput: SwiftAgent.StructuredOutput>(
363 | to prompt: Prompt,
| `- error: 'Prompt' is unavailable in watchOS
364 | generating type: KeyPath<SessionSchema.StructuredOutputs, StructuredOutput.Type>,
365 | using model: Adapter.Model = .default,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:419:6: error: 'PromptBuilder' is unavailable in watchOS
417 | using model: Adapter.Model = .default,
418 | options: Adapter.GenerationOptions? = nil,
419 | @PromptBuilder prompt: @Sendable () throws -> Prompt,
| `- error: 'PromptBuilder' is unavailable in watchOS
420 | ) throws -> AsyncThrowingStream<Snapshot<StructuredOutput>, any Error> {
421 | try streamResponse(to: prompt().formatted(), generating: type, using: model, options: options)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:86:15: note: 'PromptBuilder' has been explicitly marked unavailable here
84 | @available(watchOS, unavailable)
85 | @resultBuilder
86 | public struct PromptBuilder {
| `- note: 'PromptBuilder' has been explicitly marked unavailable here
87 | /// Normalize any `PromptRepresentable` to a `Prompt` during expression processing.
88 | public static func buildExpression(_ expression: some PromptRepresentable) -> Prompt {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:419:51: error: 'Prompt' is unavailable in watchOS
417 | using model: Adapter.Model = .default,
418 | options: Adapter.GenerationOptions? = nil,
419 | @PromptBuilder prompt: @Sendable () throws -> Prompt,
| `- error: 'Prompt' is unavailable in watchOS
420 | ) throws -> AsyncThrowingStream<Snapshot<StructuredOutput>, any Error> {
421 | try streamResponse(to: prompt().formatted(), generating: type, using: model, options: options)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:478:6: error: 'PromptBuilder' is unavailable in watchOS
476 | using model: Adapter.Model = .default,
477 | options: Adapter.GenerationOptions? = nil,
478 | @PromptBuilder prompt: @Sendable () throws -> Prompt,
| `- error: 'PromptBuilder' is unavailable in watchOS
479 | ) throws -> AsyncThrowingStream<Snapshot<StructuredOutput>, any Error> {
480 | try streamResponse(to: prompt().formatted(), generating: StructuredOutput.self, using: model, options: options)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:86:15: note: 'PromptBuilder' has been explicitly marked unavailable here
84 | @available(watchOS, unavailable)
85 | @resultBuilder
86 | public struct PromptBuilder {
| `- note: 'PromptBuilder' has been explicitly marked unavailable here
87 | /// Normalize any `PromptRepresentable` to a `Prompt` during expression processing.
88 | public static func buildExpression(_ expression: some PromptRepresentable) -> Prompt {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:478:51: error: 'Prompt' is unavailable in watchOS
476 | using model: Adapter.Model = .default,
477 | options: Adapter.GenerationOptions? = nil,
478 | @PromptBuilder prompt: @Sendable () throws -> Prompt,
| `- error: 'Prompt' is unavailable in watchOS
479 | ) throws -> AsyncThrowingStream<Snapshot<StructuredOutput>, any Error> {
480 | try streamResponse(to: prompt().formatted(), generating: StructuredOutput.self, using: model, options: options)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:541:6: error: 'PromptBuilder' is unavailable in watchOS
539 | using model: Adapter.Model = .default,
540 | options: Adapter.GenerationOptions? = nil,
541 | @PromptBuilder embeddingInto prompt: @Sendable (_ input: String, _ sources: [SessionSchema.DecodedGrounding])
| `- error: 'PromptBuilder' is unavailable in watchOS
542 | -> Prompt,
543 | ) throws -> AsyncThrowingStream<Snapshot<String>, any Error> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:86:15: note: 'PromptBuilder' has been explicitly marked unavailable here
84 | @available(watchOS, unavailable)
85 | @resultBuilder
86 | public struct PromptBuilder {
| `- note: 'PromptBuilder' has been explicitly marked unavailable here
87 | /// Normalize any `PromptRepresentable` to a `Prompt` during expression processing.
88 | public static func buildExpression(_ expression: some PromptRepresentable) -> Prompt {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:542:10: error: 'Prompt' is unavailable in watchOS
540 | options: Adapter.GenerationOptions? = nil,
541 | @PromptBuilder embeddingInto prompt: @Sendable (_ input: String, _ sources: [SessionSchema.DecodedGrounding])
542 | -> Prompt,
| `- error: 'Prompt' is unavailable in watchOS
543 | ) throws -> AsyncThrowingStream<Snapshot<String>, any Error> {
544 | let sourcesData = try schema.encodeGrounding(sources)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:624:6: error: 'PromptBuilder' is unavailable in watchOS
622 | using model: Adapter.Model = .default,
623 | options: Adapter.GenerationOptions? = nil,
624 | @PromptBuilder embeddingInto prompt: @Sendable (_ prompt: String, _ sources: [SessionSchema.DecodedGrounding])
| `- error: 'PromptBuilder' is unavailable in watchOS
625 | -> Prompt,
626 | ) throws -> AsyncThrowingStream<Snapshot<StructuredOutput>, any Error> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:86:15: note: 'PromptBuilder' has been explicitly marked unavailable here
84 | @available(watchOS, unavailable)
85 | @resultBuilder
86 | public struct PromptBuilder {
| `- note: 'PromptBuilder' has been explicitly marked unavailable here
87 | /// Normalize any `PromptRepresentable` to a `Prompt` during expression processing.
88 | public static func buildExpression(_ expression: some PromptRepresentable) -> Prompt {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:625:10: error: 'Prompt' is unavailable in watchOS
623 | options: Adapter.GenerationOptions? = nil,
624 | @PromptBuilder embeddingInto prompt: @Sendable (_ prompt: String, _ sources: [SessionSchema.DecodedGrounding])
625 | -> Prompt,
| `- error: 'Prompt' is unavailable in watchOS
626 | ) throws -> AsyncThrowingStream<Snapshot<StructuredOutput>, any Error> {
627 | let sourcesData = try schema.encodeGrounding(sources)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:707:6: error: 'PromptBuilder' is unavailable in watchOS
705 | using model: Adapter.Model = .default,
706 | options: Adapter.GenerationOptions? = nil,
707 | @PromptBuilder embeddingInto prompt: @Sendable (_ prompt: String, _ sources: [SessionSchema.DecodedGrounding])
| `- error: 'PromptBuilder' is unavailable in watchOS
708 | -> Prompt,
709 | ) throws -> AsyncThrowingStream<Snapshot<StructuredOutput>, any Error> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:86:15: note: 'PromptBuilder' has been explicitly marked unavailable here
84 | @available(watchOS, unavailable)
85 | @resultBuilder
86 | public struct PromptBuilder {
| `- note: 'PromptBuilder' has been explicitly marked unavailable here
87 | /// Normalize any `PromptRepresentable` to a `Prompt` during expression processing.
88 | public static func buildExpression(_ expression: some PromptRepresentable) -> Prompt {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:708:10: error: 'Prompt' is unavailable in watchOS
706 | options: Adapter.GenerationOptions? = nil,
707 | @PromptBuilder embeddingInto prompt: @Sendable (_ prompt: String, _ sources: [SessionSchema.DecodedGrounding])
708 | -> Prompt,
| `- error: 'Prompt' is unavailable in watchOS
709 | ) throws -> AsyncThrowingStream<Snapshot<StructuredOutput>, any Error> {
710 | let sourcesData = try schema.encodeGrounding(sources)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider.swift:214:72: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
51 | // MARK: - Default Implementations
52 |
53 | package extension LanguageModelProvider {
| `- note: add '@available' attribute to enclosing extension
54 | // MARK: - Private Response Helpers
55 |
:
193 | }
194 |
195 | func processResponseStream<StructuredOutput: SwiftAgent.StructuredOutput>(
| `- note: add '@available' attribute to enclosing instance method
196 | from prompt: Transcript.Prompt,
197 | generating type: StructuredOutput.Type?,
:
212 | do {
213 | if let text = lastResponse.text, !text.isEmpty {
214 | content = try StructuredOutput.Schema.PartiallyGenerated(GeneratedContent(kind: .string(text)))
| |- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
215 | }
216 | } catch {
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/URLMetadataProvider.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile URLMetadataProvider.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile LanguageModelProvider+Respond.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile LanguageModelProvider+StreamResponse.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile LanguageModelProvider.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Macros.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Macros.swift
SwiftCompile normal arm64_32 Compiling\ AdapterUpdate.swift,\ AgentResponse.swift,\ AgentSnapshot.swift,\ GenerationError.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/AdapterUpdate.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/AgentResponse.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/AgentSnapshot.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/GenerationError.swift (in target 'SwiftAgent' from project 'SwiftAgent')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/AdapterUpdate.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AdapterUpdate.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/AgentResponse.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AgentResponse.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/AgentSnapshot.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AgentSnapshot.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/GenerationError.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile GenerationError.swift
SwiftCompile normal arm64_32 Compiling\ JSONUtilities.swift,\ Logging.swift,\ RejectionReportDetailsExtractor.swift,\ SnakeCaseName.swift,\ TranscriptResolver.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/JSONUtilities.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/Logging.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/RejectionReportDetailsExtractor.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/SnakeCaseName.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/TranscriptResolver.swift (in target 'SwiftAgent' from project 'SwiftAgent')
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/RejectionReportDetailsExtractor.swift:10:53: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
4 | import FoundationModels
5 |
6 | package enum RejectionReportDetailsExtractor {
| `- note: add '@available' attribute to enclosing enum
7 | /// Extracts fallback detail values from rejection report generated content.
8 | ///
9 | /// The extractor keeps recoverable payloads accessible when strongly typed decoding fails.
10 | package static func values(from generatedContent: GeneratedContent) -> [String: String] {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing static method
11 | guard
12 | let jsonData = generatedContent.stableJsonString.data(using: .utf8),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/TranscriptResolver.swift:112:52: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
14 | /// - Note: You typically create this via `session.resolver()`; the macro wires
15 | /// up everything needed. You rarely construct it manually.
16 | public struct TranscriptResolver<SessionSchema: LanguageModelSessionSchema> {
| `- note: add '@available' attribute to enclosing generic struct
17 | /// The tool call type from the associated transcript.
18 | public typealias ToolCall = Transcript.ToolCall
:
110 | /// - rawOutput: The raw generated content produced by the tool, if found
111 | /// - Returns: A resolved tool run. Unknown tools are mapped to `Provider.DecodedToolRun.makeUnknown`.
112 | public func resolve(_ call: ToolCall, rawOutput: GeneratedContent?) -> SessionSchema.DecodedToolRun {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing instance method
113 | guard let tool = toolsByName[call.toolName] else {
114 | let error = TranscriptResolvingError.ToolRunResolution.unknownTool(name: call.toolName)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/TranscriptResolver.swift:147:8: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
14 | /// - Note: You typically create this via `session.resolver()`; the macro wires
15 | /// up everything needed. You rarely construct it manually.
16 | public struct TranscriptResolver<SessionSchema: LanguageModelSessionSchema> {
| `- note: add '@available' attribute to enclosing generic struct
17 | /// The tool call type from the associated transcript.
18 | public typealias ToolCall = Transcript.ToolCall
:
141 | /// Tool outputs usually appear immediately after their calls.
142 | /// - Returns: The generated content from the tool output, or `nil` if not found.
143 | private func findOutput(
| `- note: add '@available' attribute to enclosing instance method
144 | for call: ToolCall,
145 | startingAt startIndex: Int,
146 | in entries: [Transcript.Entry],
147 | ) -> GeneratedContent? {
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
148 | // Search forward from the current position for the matching tool output
149 | // Tool outputs are typically close to their calls, so this is efficient
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/TranscriptResolver.swift:155:18: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
14 | /// - Note: You typically create this via `session.resolver()`; the macro wires
15 | /// up everything needed. You rarely construct it manually.
16 | public struct TranscriptResolver<SessionSchema: LanguageModelSessionSchema> {
| `- note: add '@available' attribute to enclosing generic struct
17 | /// The tool call type from the associated transcript.
18 | public typealias ToolCall = Transcript.ToolCall
:
141 | /// Tool outputs usually appear immediately after their calls.
142 | /// - Returns: The generated content from the tool output, or `nil` if not found.
143 | private func findOutput(
| `- note: add '@available' attribute to enclosing instance method
144 | for call: ToolCall,
145 | startingAt startIndex: Int,
:
153 | switch toolOutput.segment {
154 | case let .text(text):
155 | return GeneratedContent(text.content)
| |- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
156 | case let .structure(structure):
157 | return structure.content
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/JSONUtilities.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile JSONUtilities.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/Logging.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Logging.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/RejectionReportDetailsExtractor.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile RejectionReportDetailsExtractor.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/SnakeCaseName.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile SnakeCaseName.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/TranscriptResolver.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile TranscriptResolver.swift
SwiftCompile normal arm64_32 Compiling\ Transcript+Resolved.swift,\ Transcript.swift,\ TranscriptResolvingError.swift,\ _SwiftAgentToolWrapper.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript+Resolved.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/TranscriptResolvingError.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/_SwiftAgentToolWrapper.swift (in target 'SwiftAgent' from project 'SwiftAgent')
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:253:27: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
243 | public extension Transcript {
244 | /// A single tool invocation requested by the model.
245 | struct ToolCall: Sendable, Identifiable, Equatable, Codable {
| `- note: add '@available' attribute to enclosing struct
246 | /// Identifier for this tool call record.
247 | public var id: String
:
251 | public var toolName: String
252 | /// JSON arguments for the tool call.
253 | public var arguments: GeneratedContent
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
254 | /// Optional status of the tool call as it progresses.
255 | public var status: Status?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:261:18: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
243 | public extension Transcript {
244 | /// A single tool invocation requested by the model.
245 | struct ToolCall: Sendable, Identifiable, Equatable, Codable {
| `- note: add '@available' attribute to enclosing struct
246 | /// Identifier for this tool call record.
247 | public var id: String
:
255 | public var status: Status?
256 |
257 | public init(
| `- note: add '@available' attribute to enclosing initializer
258 | id: String,
259 | callId: String,
260 | toolName: String,
261 | arguments: GeneratedContent,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
262 | status: Status?,
263 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:389:25: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
381 |
382 | /// A unit of structured content produced by the model or a tool.
383 | struct StructuredSegment: Sendable, Identifiable, Equatable, Codable {
| `- note: add '@available' attribute to enclosing struct
384 | /// Identifier for this segment.
385 | public var id: String
:
387 | public var typeName: String
388 | /// The structured payload as generated content.
389 | public var content: GeneratedContent
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
390 |
391 | public init(id: String = UUID().uuidString, typeName: String = "", content: GeneratedContent) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:391:81: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
381 |
382 | /// A unit of structured content produced by the model or a tool.
383 | struct StructuredSegment: Sendable, Identifiable, Equatable, Codable {
| `- note: add '@available' attribute to enclosing struct
384 | /// Identifier for this segment.
385 | public var id: String
:
389 | public var content: GeneratedContent
390 |
391 | public init(id: String = UUID().uuidString, typeName: String = "", content: GeneratedContent) {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing initializer
392 | self.id = id
393 | self.typeName = typeName
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:397:86: error: 'ConvertibleToGeneratedContent' is only available in watchOS 27.0 or newer
381 |
382 | /// A unit of structured content produced by the model or a tool.
383 | struct StructuredSegment: Sendable, Identifiable, Equatable, Codable {
| `- note: add '@available' attribute to enclosing struct
384 | /// Identifier for this segment.
385 | public var id: String
:
395 | }
396 |
397 | public init(id: String = UUID().uuidString, typeName: String = "", content: some ConvertibleToGeneratedContent) {
| | `- error: 'ConvertibleToGeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing initializer
398 | self.id = id
399 | self.typeName = typeName
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:397:86: error: 'ConvertibleToGeneratedContent' is only available in watchOS 27.0 or newer
381 |
382 | /// A unit of structured content produced by the model or a tool.
383 | struct StructuredSegment: Sendable, Identifiable, Equatable, Codable {
| `- note: add '@available' attribute to enclosing struct
384 | /// Identifier for this segment.
385 | public var id: String
:
395 | }
396 |
397 | public init(id: String = UUID().uuidString, typeName: String = "", content: some ConvertibleToGeneratedContent) {
| | `- error: 'ConvertibleToGeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing initializer
398 | self.id = id
399 | self.typeName = typeName
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:819:64: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
817 | }
818 |
819 | private func transcriptPrettyJSONString(from generatedContent: GeneratedContent) -> String {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing global function
820 | let rawJSONString = generatedContent.stableJsonString
821 | guard let data = rawJSONString.data(using: .utf8) else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:425:23: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
405 | // MARK: - Transcript Codable Support
406 |
407 | public extension Transcript.ToolCall {
| `- note: add '@available' attribute to enclosing extension
408 | private enum CodingKeys: String, CodingKey {
409 | case id
:
414 | }
415 |
416 | init(from decoder: Decoder) throws {
| `- note: add '@available' attribute to enclosing initializer
417 | let container = try decoder.container(keyedBy: CodingKeys.self)
418 |
:
423 |
424 | do {
425 | arguments = try GeneratedContent(json: argumentsJSONString)
| |- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
426 | } catch {
427 | let description = "Failed to decode GeneratedContent from arguments JSON string: \(error)"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:425:23: error: 'init(json:)' is only available in watchOS 27.0 or newer
405 | // MARK: - Transcript Codable Support
406 |
407 | public extension Transcript.ToolCall {
| `- note: add '@available' attribute to enclosing extension
408 | private enum CodingKeys: String, CodingKey {
409 | case id
:
414 | }
415 |
416 | init(from decoder: Decoder) throws {
| `- note: add '@available' attribute to enclosing initializer
417 | let container = try decoder.container(keyedBy: CodingKeys.self)
418 |
:
423 |
424 | do {
425 | arguments = try GeneratedContent(json: argumentsJSONString)
| |- error: 'init(json:)' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
426 | } catch {
427 | let description = "Failed to decode GeneratedContent from arguments JSON string: \(error)"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:460:21: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
443 | }
444 |
445 | public extension Transcript.StructuredSegment {
| `- note: add '@available' attribute to enclosing extension
446 | private enum CodingKeys: String, CodingKey {
447 | case id
:
450 | }
451 |
452 | init(from decoder: Decoder) throws {
| `- note: add '@available' attribute to enclosing initializer
453 | let container = try decoder.container(keyedBy: CodingKeys.self)
454 |
:
458 |
459 | do {
460 | content = try GeneratedContent(json: contentJSONString)
| |- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
461 | } catch {
462 | let description = "Failed to decode GeneratedContent from content JSON string: \(error)"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:460:21: error: 'init(json:)' is only available in watchOS 27.0 or newer
443 | }
444 |
445 | public extension Transcript.StructuredSegment {
| `- note: add '@available' attribute to enclosing extension
446 | private enum CodingKeys: String, CodingKey {
447 | case id
:
450 | }
451 |
452 | init(from decoder: Decoder) throws {
| `- note: add '@available' attribute to enclosing initializer
453 | let container = try decoder.container(keyedBy: CodingKeys.self)
454 |
:
458 |
459 | do {
460 | content = try GeneratedContent(json: contentJSONString)
| |- error: 'init(json:)' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
461 | } catch {
462 | let description = "Failed to decode GeneratedContent from content JSON string: \(error)"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/_SwiftAgentToolWrapper.swift:9:61: error: 'Tool' is only available in watchOS 27.0 or newer
7 | ///
8 | /// - Note: This type is managed internally by the SDK. You generally do not interact with it directly.
9 | public struct _SwiftAgentToolWrapper<Tool: FoundationModels.Tool>: SwiftAgentTool
| | `- error: 'Tool' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing generic struct
10 | where Tool.Arguments: Generable, Tool.Output: Generable {
11 | private let tool: Tool
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/_SwiftAgentToolWrapper.swift:10:25: error: 'Generable' is only available in watchOS 27.0 or newer
7 | ///
8 | /// - Note: This type is managed internally by the SDK. You generally do not interact with it directly.
9 | public struct _SwiftAgentToolWrapper<Tool: FoundationModels.Tool>: SwiftAgentTool
| `- note: add '@available' attribute to enclosing generic struct
10 | where Tool.Arguments: Generable, Tool.Output: Generable {
| `- error: 'Generable' is only available in watchOS 27.0 or newer
11 | private let tool: Tool
12 |
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript+Resolved.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Transcript+Resolved.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Transcript.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/TranscriptResolvingError.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile TranscriptResolvingError.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/_SwiftAgentToolWrapper.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile _SwiftAgentToolWrapper.swift
SwiftCompile normal arm64_32 Compiling\ PromptBuiltins.swift,\ Adapter.swift,\ DecodableStructuredOutput.swift,\ DecodableTool.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuiltins.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/Adapter.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableStructuredOutput.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift (in target 'SwiftAgent' from project 'SwiftAgent')
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:14:45: error: 'Tool' is only available in watchOS 27.0 or newer
9 | /// generated types turn streaming `ToolRun<BaseTool>` snapshots into concrete `DecodedToolRun`
10 | /// objects that feed resolved transcripts, UI views, and analytics.
11 | public protocol DecodableTool<DecodedToolRun>: SwiftAgentTool where BaseTool.Arguments: Generable,
| `- note: add '@available' attribute to enclosing protocol
12 | BaseTool.Output: Generable {
13 | /// The tool implementation being decoded.
14 | associatedtype BaseTool: FoundationModels.Tool
| | `- error: 'Tool' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing associated type
15 | /// Schema-specific projection used in resolved transcripts and snapshots.
16 | associatedtype DecodedToolRun: SwiftAgent.DecodedToolRun
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:11:89: error: 'Generable' is only available in watchOS 27.0 or newer
9 | /// generated types turn streaming `ToolRun<BaseTool>` snapshots into concrete `DecodedToolRun`
10 | /// objects that feed resolved transcripts, UI views, and analytics.
11 | public protocol DecodableTool<DecodedToolRun>: SwiftAgentTool where BaseTool.Arguments: Generable,
| | `- error: 'Generable' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing protocol
12 | BaseTool.Output: Generable {
13 | /// The tool implementation being decoded.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:12:20: error: 'Generable' is only available in watchOS 27.0 or newer
9 | /// generated types turn streaming `ToolRun<BaseTool>` snapshots into concrete `DecodedToolRun`
10 | /// objects that feed resolved transcripts, UI views, and analytics.
11 | public protocol DecodableTool<DecodedToolRun>: SwiftAgentTool where BaseTool.Arguments: Generable,
| `- note: add '@available' attribute to enclosing protocol
12 | BaseTool.Output: Generable {
| `- error: 'Generable' is only available in watchOS 27.0 or newer
13 | /// The tool implementation being decoded.
14 | associatedtype BaseTool: FoundationModels.Tool
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:29:19: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
23 | }
24 |
25 | package extension DecodableTool {
| `- note: add '@available' attribute to enclosing extension
26 | /// Decodes a completed tool run from raw generated content.
27 | func decodeCompleted(
| `- note: add '@available' attribute to enclosing instance method
28 | id: String,
29 | rawArguments: GeneratedContent,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
30 | rawOutput: GeneratedContent?,
31 | ) throws -> DecodedToolRun {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:30:16: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
23 | }
24 |
25 | package extension DecodableTool {
| `- note: add '@available' attribute to enclosing extension
26 | /// Decodes a completed tool run from raw generated content.
27 | func decodeCompleted(
| `- note: add '@available' attribute to enclosing instance method
28 | id: String,
29 | rawArguments: GeneratedContent,
30 | rawOutput: GeneratedContent?,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
31 | ) throws -> DecodedToolRun {
32 | let arguments = try BaseTool.Arguments(rawArguments)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:45:19: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
23 | }
24 |
25 | package extension DecodableTool {
| `- note: add '@available' attribute to enclosing extension
26 | /// Decodes a completed tool run from raw generated content.
27 | func decodeCompleted(
:
41 |
42 | /// Decodes an in‑progress tool run from raw generated content.
43 | func decodePartial(
| `- note: add '@available' attribute to enclosing instance method
44 | id: String,
45 | rawArguments: GeneratedContent,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
46 | rawOutput: GeneratedContent?,
47 | ) throws -> DecodedToolRun {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:46:16: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
23 | }
24 |
25 | package extension DecodableTool {
| `- note: add '@available' attribute to enclosing extension
26 | /// Decodes a completed tool run from raw generated content.
27 | func decodeCompleted(
:
41 |
42 | /// Decodes an in‑progress tool run from raw generated content.
43 | func decodePartial(
| `- note: add '@available' attribute to enclosing instance method
44 | id: String,
45 | rawArguments: GeneratedContent,
46 | rawOutput: GeneratedContent?,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
47 | ) throws -> DecodedToolRun {
48 | let arguments = try BaseTool.Arguments.PartiallyGenerated(rawArguments)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:62:19: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
23 | }
24 |
25 | package extension DecodableTool {
| `- note: add '@available' attribute to enclosing extension
26 | /// Decodes a completed tool run from raw generated content.
27 | func decodeCompleted(
:
57 |
58 | /// Decodes a failed tool run with an associated resolution error.
59 | func decodeFailed(
| `- note: add '@available' attribute to enclosing instance method
60 | id: String,
61 | error: TranscriptResolvingError.ToolRunResolution,
62 | rawArguments: GeneratedContent,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
63 | rawOutput: GeneratedContent?,
64 | ) throws -> DecodedToolRun {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:63:16: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
23 | }
24 |
25 | package extension DecodableTool {
| `- note: add '@available' attribute to enclosing extension
26 | /// Decodes a completed tool run from raw generated content.
27 | func decodeCompleted(
:
57 |
58 | /// Decodes a failed tool run with an associated resolution error.
59 | func decodeFailed(
| `- note: add '@available' attribute to enclosing instance method
60 | id: String,
61 | error: TranscriptResolvingError.ToolRunResolution,
62 | rawArguments: GeneratedContent,
63 | rawOutput: GeneratedContent?,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
64 | ) throws -> DecodedToolRun {
65 | let toolRun = ToolRun<BaseTool>(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:80:19: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
73 | }
74 |
75 | package extension DecodableTool {
| `- note: add '@available' attribute to enclosing extension
76 | /// Builds a typed `ToolRun` value from raw arguments and optional output or rejection.
77 | func toolRun(
| `- note: add '@available' attribute to enclosing instance method
78 | id: String,
79 | argumentsPhase: ToolRun<BaseTool>.ArgumentsPhase,
80 | rawArguments: GeneratedContent,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
81 | rawOutput: GeneratedContent?,
82 | ) throws -> ToolRun<BaseTool> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:81:16: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
73 | }
74 |
75 | package extension DecodableTool {
| `- note: add '@available' attribute to enclosing extension
76 | /// Builds a typed `ToolRun` value from raw arguments and optional output or rejection.
77 | func toolRun(
| `- note: add '@available' attribute to enclosing instance method
78 | id: String,
79 | argumentsPhase: ToolRun<BaseTool>.ArgumentsPhase,
80 | rawArguments: GeneratedContent,
81 | rawOutput: GeneratedContent?,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
82 | ) throws -> ToolRun<BaseTool> {
83 | guard let rawOutput else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:116:41: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
73 | }
74 |
75 | package extension DecodableTool {
| `- note: add '@available' attribute to enclosing extension
76 | /// Builds a typed `ToolRun` value from raw arguments and optional output or rejection.
77 | func toolRun(
:
114 |
115 | /// Extracts a structured rejection description from generated content (if present).
116 | func rejection(from generatedContent: GeneratedContent) -> ToolRun<BaseTool>.Rejection? {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing instance method
117 | guard
118 | let rejectionReport = try? RejectionReport(generatedContent),
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuiltins.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile PromptBuiltins.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/Adapter.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Adapter.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableStructuredOutput.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile DecodableStructuredOutput.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile DecodableTool.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Protocols/DecodableTool.swift:137:19: error: 'GenerationSchema' is only available in watchOS 27.0 or newer
131 | // MARK: - JSON Schema
132 |
133 | private struct EncodableToolSchema: Encodable {
| `- note: add '@available' attribute to enclosing struct
134 | let type: String
135 | let name: String
136 | let description: String
137 | let parameters: GenerationSchema
| `- error: 'GenerationSchema' is only available in watchOS 27.0 or newer
138 | }
139 |
SwiftCompile normal arm64_32 Compiling\ AuthorizationContext.swift,\ HTTPClient+SSE.swift,\ HTTPClient.swift,\ HTTPErrorMessageExtractor.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Networking/AuthorizationContext.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Networking/HTTPClient+SSE.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Networking/HTTPClient.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Networking/HTTPErrorMessageExtractor.swift (in target 'SwiftAgent' from project 'SwiftAgent')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Networking/AuthorizationContext.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AuthorizationContext.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Networking/HTTPClient+SSE.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile HTTPClient+SSE.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Networking/HTTPClient.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile HTTPClient.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Networking/HTTPErrorMessageExtractor.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile HTTPErrorMessageExtractor.swift
SwiftEmitModule normal arm64 Emitting\ module\ for\ SwiftAgent (in target 'SwiftAgent' from project 'SwiftAgent')
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/GeneratedContent+StableJSON.swift:6:11: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
4 | import FoundationModels
5 |
6 | extension GeneratedContent {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing extension
7 | /// A stable JSON string representation whose dictionary keys are deterministically sorted.
8 | ///
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/RejectionReportDetailsExtractor.swift:10:53: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
4 | import FoundationModels
5 |
6 | package enum RejectionReportDetailsExtractor {
| `- note: add '@available' attribute to enclosing enum
7 | /// Extracts fallback detail values from rejection report generated content.
8 | ///
9 | /// The extractor keeps recoverable payloads accessible when strongly typed decoding fails.
10 | package static func values(from generatedContent: GeneratedContent) -> [String: String] {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing static method
11 | guard
12 | let jsonData = generatedContent.stableJsonString.data(using: .utf8),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/TranscriptResolver.swift:112:52: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
14 | /// - Note: You typically create this via `session.resolver()`; the macro wires
15 | /// up everything needed. You rarely construct it manually.
16 | public struct TranscriptResolver<SessionSchema: LanguageModelSessionSchema> {
| `- note: add '@available' attribute to enclosing generic struct
17 | /// The tool call type from the associated transcript.
18 | public typealias ToolCall = Transcript.ToolCall
:
110 | /// - rawOutput: The raw generated content produced by the tool, if found
111 | /// - Returns: A resolved tool run. Unknown tools are mapped to `Provider.DecodedToolRun.makeUnknown`.
112 | public func resolve(_ call: ToolCall, rawOutput: GeneratedContent?) -> SessionSchema.DecodedToolRun {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing instance method
113 | guard let tool = toolsByName[call.toolName] else {
114 | let error = TranscriptResolvingError.ToolRunResolution.unknownTool(name: call.toolName)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Helpers/TranscriptResolver.swift:147:8: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
14 | /// - Note: You typically create this via `session.resolver()`; the macro wires
15 | /// up everything needed. You rarely construct it manually.
16 | public struct TranscriptResolver<SessionSchema: LanguageModelSessionSchema> {
| `- note: add '@available' attribute to enclosing generic struct
17 | /// The tool call type from the associated transcript.
18 | public typealias ToolCall = Transcript.ToolCall
:
141 | /// Tool outputs usually appear immediately after their calls.
142 | /// - Returns: The generated content from the tool output, or `nil` if not found.
143 | private func findOutput(
| `- note: add '@available' attribute to enclosing instance method
144 | for call: ToolCall,
145 | startingAt startIndex: Int,
146 | in entries: [Transcript.Entry],
147 | ) -> GeneratedContent? {
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
148 | // Search forward from the current position for the matching tool output
149 | // Tool outputs are typically close to their calls, so this is efficient
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:75:16: error: 'Prompt' is unavailable in watchOS
73 | @discardableResult
74 | func respond(
75 | to prompt: Prompt,
| `- error: 'Prompt' is unavailable in watchOS
76 | using model: Adapter.Model = .default,
77 | options: Adapter.GenerationOptions? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:107:6: error: 'PromptBuilder' is unavailable in watchOS
105 | using model: Adapter.Model = .default,
106 | options: Adapter.GenerationOptions? = nil,
107 | @PromptBuilder prompt: () throws -> Prompt,
| `- error: 'PromptBuilder' is unavailable in watchOS
108 | ) async throws -> Response<String> {
109 | try await respond(to: prompt().formatted(), using: model, options: options)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:86:15: note: 'PromptBuilder' has been explicitly marked unavailable here
84 | @available(watchOS, unavailable)
85 | @resultBuilder
86 | public struct PromptBuilder {
| `- note: 'PromptBuilder' has been explicitly marked unavailable here
87 | /// Normalize any `PromptRepresentable` to a `Prompt` during expression processing.
88 | public static func buildExpression(_ expression: some PromptRepresentable) -> Prompt {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:107:41: error: 'Prompt' is unavailable in watchOS
105 | using model: Adapter.Model = .default,
106 | options: Adapter.GenerationOptions? = nil,
107 | @PromptBuilder prompt: () throws -> Prompt,
| `- error: 'Prompt' is unavailable in watchOS
108 | ) async throws -> Response<String> {
109 | try await respond(to: prompt().formatted(), using: model, options: options)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:274:16: error: 'Prompt' is unavailable in watchOS
272 | @discardableResult
273 | func respond<StructuredOutput: SwiftAgent.StructuredOutput>(
274 | to prompt: Prompt,
| `- error: 'Prompt' is unavailable in watchOS
275 | generating type: StructuredOutput.Type,
276 | using model: Adapter.Model = .default,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:345:16: error: 'Prompt' is unavailable in watchOS
343 | @discardableResult
344 | func respond<StructuredOutput: SwiftAgent.StructuredOutput>(
345 | to prompt: Prompt,
| `- error: 'Prompt' is unavailable in watchOS
346 | generating type: KeyPath<SessionSchema.StructuredOutputs, StructuredOutput.Type>,
347 | using model: Adapter.Model = .default,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:397:6: error: 'PromptBuilder' is unavailable in watchOS
395 | using model: Adapter.Model = .default,
396 | options: Adapter.GenerationOptions? = nil,
397 | @PromptBuilder prompt: () throws -> Prompt,
| `- error: 'PromptBuilder' is unavailable in watchOS
398 | ) async throws -> Response<StructuredOutput> {
399 | try await respond(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:86:15: note: 'PromptBuilder' has been explicitly marked unavailable here
84 | @available(watchOS, unavailable)
85 | @resultBuilder
86 | public struct PromptBuilder {
| `- note: 'PromptBuilder' has been explicitly marked unavailable here
87 | /// Normalize any `PromptRepresentable` to a `Prompt` during expression processing.
88 | public static func buildExpression(_ expression: some PromptRepresentable) -> Prompt {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:397:41: error: 'Prompt' is unavailable in watchOS
395 | using model: Adapter.Model = .default,
396 | options: Adapter.GenerationOptions? = nil,
397 | @PromptBuilder prompt: () throws -> Prompt,
| `- error: 'Prompt' is unavailable in watchOS
398 | ) async throws -> Response<StructuredOutput> {
399 | try await respond(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:464:6: error: 'PromptBuilder' is unavailable in watchOS
462 | using model: Adapter.Model = .default,
463 | options: Adapter.GenerationOptions? = nil,
464 | @PromptBuilder prompt: () throws -> Prompt,
| `- error: 'PromptBuilder' is unavailable in watchOS
465 | ) async throws -> Response<StructuredOutput> {
466 | try await respond(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:86:15: note: 'PromptBuilder' has been explicitly marked unavailable here
84 | @available(watchOS, unavailable)
85 | @resultBuilder
86 | public struct PromptBuilder {
| `- note: 'PromptBuilder' has been explicitly marked unavailable here
87 | /// Normalize any `PromptRepresentable` to a `Prompt` during expression processing.
88 | public static func buildExpression(_ expression: some PromptRepresentable) -> Prompt {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:464:41: error: 'Prompt' is unavailable in watchOS
462 | using model: Adapter.Model = .default,
463 | options: Adapter.GenerationOptions? = nil,
464 | @PromptBuilder prompt: () throws -> Prompt,
| `- error: 'Prompt' is unavailable in watchOS
465 | ) async throws -> Response<StructuredOutput> {
466 | try await respond(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:521:6: error: 'PromptBuilder' is unavailable in watchOS
519 | groundingWith sources: [SessionSchema.DecodedGrounding],
520 | options: Adapter.GenerationOptions? = nil,
521 | @PromptBuilder embeddingInto prompt: @Sendable (_ input: String, _ sources: [SessionSchema.DecodedGrounding])
| `- error: 'PromptBuilder' is unavailable in watchOS
522 | -> Prompt,
523 | ) async throws -> Response<String> where SessionSchema: GroundingSupportingSchema {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:86:15: note: 'PromptBuilder' has been explicitly marked unavailable here
84 | @available(watchOS, unavailable)
85 | @resultBuilder
86 | public struct PromptBuilder {
| `- note: 'PromptBuilder' has been explicitly marked unavailable here
87 | /// Normalize any `PromptRepresentable` to a `Prompt` during expression processing.
88 | public static func buildExpression(_ expression: some PromptRepresentable) -> Prompt {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:522:10: error: 'Prompt' is unavailable in watchOS
520 | options: Adapter.GenerationOptions? = nil,
521 | @PromptBuilder embeddingInto prompt: @Sendable (_ input: String, _ sources: [SessionSchema.DecodedGrounding])
522 | -> Prompt,
| `- error: 'Prompt' is unavailable in watchOS
523 | ) async throws -> Response<String> where SessionSchema: GroundingSupportingSchema {
524 | let sourcesData = try schema.encodeGrounding(sources)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:603:6: error: 'PromptBuilder' is unavailable in watchOS
601 | groundingWith sources: [SessionSchema.DecodedGrounding],
602 | options: Adapter.GenerationOptions? = nil,
603 | @PromptBuilder embeddingInto prompt: @Sendable (_ prompt: String, _ sources: [SessionSchema.DecodedGrounding])
| `- error: 'PromptBuilder' is unavailable in watchOS
604 | -> Prompt,
605 | ) async throws -> Response<StructuredOutput> where SessionSchema: GroundingSupportingSchema {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:86:15: note: 'PromptBuilder' has been explicitly marked unavailable here
84 | @available(watchOS, unavailable)
85 | @resultBuilder
86 | public struct PromptBuilder {
| `- note: 'PromptBuilder' has been explicitly marked unavailable here
87 | /// Normalize any `PromptRepresentable` to a `Prompt` during expression processing.
88 | public static func buildExpression(_ expression: some PromptRepresentable) -> Prompt {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:604:10: error: 'Prompt' is unavailable in watchOS
602 | options: Adapter.GenerationOptions? = nil,
603 | @PromptBuilder embeddingInto prompt: @Sendable (_ prompt: String, _ sources: [SessionSchema.DecodedGrounding])
604 | -> Prompt,
| `- error: 'Prompt' is unavailable in watchOS
605 | ) async throws -> Response<StructuredOutput> where SessionSchema: GroundingSupportingSchema {
606 | let sourcesData = try schema.encodeGrounding(sources)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:635:6: error: 'PromptBuilder' is unavailable in watchOS
633 | groundingWith sources: [SessionSchema.DecodedGrounding],
634 | options: Adapter.GenerationOptions? = nil,
635 | @PromptBuilder embeddingInto prompt: @Sendable (_ prompt: String, _ sources: [SessionSchema.DecodedGrounding])
| `- error: 'PromptBuilder' is unavailable in watchOS
636 | -> Prompt,
637 | ) async throws -> Response<StructuredOutput> where SessionSchema: GroundingSupportingSchema {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:86:15: note: 'PromptBuilder' has been explicitly marked unavailable here
84 | @available(watchOS, unavailable)
85 | @resultBuilder
86 | public struct PromptBuilder {
| `- note: 'PromptBuilder' has been explicitly marked unavailable here
87 | /// Normalize any `PromptRepresentable` to a `Prompt` during expression processing.
88 | public static func buildExpression(_ expression: some PromptRepresentable) -> Prompt {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+Respond.swift:636:10: error: 'Prompt' is unavailable in watchOS
634 | options: Adapter.GenerationOptions? = nil,
635 | @PromptBuilder embeddingInto prompt: @Sendable (_ prompt: String, _ sources: [SessionSchema.DecodedGrounding])
636 | -> Prompt,
| `- error: 'Prompt' is unavailable in watchOS
637 | ) async throws -> Response<StructuredOutput> where SessionSchema: GroundingSupportingSchema {
638 | let sourcesData = try schema.encodeGrounding(sources)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:81:16: error: 'Prompt' is unavailable in watchOS
79 | /// - Returns: An ``AsyncThrowingStream`` that yields response snapshots as they arrive.
80 | func streamResponse(
81 | to prompt: Prompt,
| `- error: 'Prompt' is unavailable in watchOS
82 | using model: Adapter.Model = .default,
83 | options: Adapter.GenerationOptions? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:122:6: error: 'PromptBuilder' is unavailable in watchOS
120 | using model: Adapter.Model = .default,
121 | options: Adapter.GenerationOptions? = nil,
122 | @PromptBuilder prompt: @Sendable () throws -> Prompt,
| `- error: 'PromptBuilder' is unavailable in watchOS
123 | ) throws -> AsyncThrowingStream<Snapshot<String>, any Error> {
124 | try streamResponse(to: prompt().formatted(), using: model, options: options)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:86:15: note: 'PromptBuilder' has been explicitly marked unavailable here
84 | @available(watchOS, unavailable)
85 | @resultBuilder
86 | public struct PromptBuilder {
| `- note: 'PromptBuilder' has been explicitly marked unavailable here
87 | /// Normalize any `PromptRepresentable` to a `Prompt` during expression processing.
88 | public static func buildExpression(_ expression: some PromptRepresentable) -> Prompt {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:122:51: error: 'Prompt' is unavailable in watchOS
120 | using model: Adapter.Model = .default,
121 | options: Adapter.GenerationOptions? = nil,
122 | @PromptBuilder prompt: @Sendable () throws -> Prompt,
| `- error: 'Prompt' is unavailable in watchOS
123 | ) throws -> AsyncThrowingStream<Snapshot<String>, any Error> {
124 | try streamResponse(to: prompt().formatted(), using: model, options: options)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:300:16: error: 'Prompt' is unavailable in watchOS
298 | /// - Returns: An ``AsyncThrowingStream`` yielding structured snapshots until generation completes.
299 | func streamResponse<StructuredOutput: SwiftAgent.StructuredOutput>(
300 | to prompt: Prompt,
| `- error: 'Prompt' is unavailable in watchOS
301 | generating type: StructuredOutput.Type,
302 | using model: Adapter.Model = .default,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:363:16: error: 'Prompt' is unavailable in watchOS
361 | /// - Returns: An ``AsyncThrowingStream`` yielding structured snapshots until generation completes.
362 | func streamResponse<StructuredOutput: SwiftAgent.StructuredOutput>(
363 | to prompt: Prompt,
| `- error: 'Prompt' is unavailable in watchOS
364 | generating type: KeyPath<SessionSchema.StructuredOutputs, StructuredOutput.Type>,
365 | using model: Adapter.Model = .default,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:419:6: error: 'PromptBuilder' is unavailable in watchOS
417 | using model: Adapter.Model = .default,
418 | options: Adapter.GenerationOptions? = nil,
419 | @PromptBuilder prompt: @Sendable () throws -> Prompt,
| `- error: 'PromptBuilder' is unavailable in watchOS
420 | ) throws -> AsyncThrowingStream<Snapshot<StructuredOutput>, any Error> {
421 | try streamResponse(to: prompt().formatted(), generating: type, using: model, options: options)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:86:15: note: 'PromptBuilder' has been explicitly marked unavailable here
84 | @available(watchOS, unavailable)
85 | @resultBuilder
86 | public struct PromptBuilder {
| `- note: 'PromptBuilder' has been explicitly marked unavailable here
87 | /// Normalize any `PromptRepresentable` to a `Prompt` during expression processing.
88 | public static func buildExpression(_ expression: some PromptRepresentable) -> Prompt {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:419:51: error: 'Prompt' is unavailable in watchOS
417 | using model: Adapter.Model = .default,
418 | options: Adapter.GenerationOptions? = nil,
419 | @PromptBuilder prompt: @Sendable () throws -> Prompt,
| `- error: 'Prompt' is unavailable in watchOS
420 | ) throws -> AsyncThrowingStream<Snapshot<StructuredOutput>, any Error> {
421 | try streamResponse(to: prompt().formatted(), generating: type, using: model, options: options)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:478:6: error: 'PromptBuilder' is unavailable in watchOS
476 | using model: Adapter.Model = .default,
477 | options: Adapter.GenerationOptions? = nil,
478 | @PromptBuilder prompt: @Sendable () throws -> Prompt,
| `- error: 'PromptBuilder' is unavailable in watchOS
479 | ) throws -> AsyncThrowingStream<Snapshot<StructuredOutput>, any Error> {
480 | try streamResponse(to: prompt().formatted(), generating: StructuredOutput.self, using: model, options: options)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:86:15: note: 'PromptBuilder' has been explicitly marked unavailable here
84 | @available(watchOS, unavailable)
85 | @resultBuilder
86 | public struct PromptBuilder {
| `- note: 'PromptBuilder' has been explicitly marked unavailable here
87 | /// Normalize any `PromptRepresentable` to a `Prompt` during expression processing.
88 | public static func buildExpression(_ expression: some PromptRepresentable) -> Prompt {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:478:51: error: 'Prompt' is unavailable in watchOS
476 | using model: Adapter.Model = .default,
477 | options: Adapter.GenerationOptions? = nil,
478 | @PromptBuilder prompt: @Sendable () throws -> Prompt,
| `- error: 'Prompt' is unavailable in watchOS
479 | ) throws -> AsyncThrowingStream<Snapshot<StructuredOutput>, any Error> {
480 | try streamResponse(to: prompt().formatted(), generating: StructuredOutput.self, using: model, options: options)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:541:6: error: 'PromptBuilder' is unavailable in watchOS
539 | using model: Adapter.Model = .default,
540 | options: Adapter.GenerationOptions? = nil,
541 | @PromptBuilder embeddingInto prompt: @Sendable (_ input: String, _ sources: [SessionSchema.DecodedGrounding])
| `- error: 'PromptBuilder' is unavailable in watchOS
542 | -> Prompt,
543 | ) throws -> AsyncThrowingStream<Snapshot<String>, any Error> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:86:15: note: 'PromptBuilder' has been explicitly marked unavailable here
84 | @available(watchOS, unavailable)
85 | @resultBuilder
86 | public struct PromptBuilder {
| `- note: 'PromptBuilder' has been explicitly marked unavailable here
87 | /// Normalize any `PromptRepresentable` to a `Prompt` during expression processing.
88 | public static func buildExpression(_ expression: some PromptRepresentable) -> Prompt {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:542:10: error: 'Prompt' is unavailable in watchOS
540 | options: Adapter.GenerationOptions? = nil,
541 | @PromptBuilder embeddingInto prompt: @Sendable (_ input: String, _ sources: [SessionSchema.DecodedGrounding])
542 | -> Prompt,
| `- error: 'Prompt' is unavailable in watchOS
543 | ) throws -> AsyncThrowingStream<Snapshot<String>, any Error> {
544 | let sourcesData = try schema.encodeGrounding(sources)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:624:6: error: 'PromptBuilder' is unavailable in watchOS
622 | using model: Adapter.Model = .default,
623 | options: Adapter.GenerationOptions? = nil,
624 | @PromptBuilder embeddingInto prompt: @Sendable (_ prompt: String, _ sources: [SessionSchema.DecodedGrounding])
| `- error: 'PromptBuilder' is unavailable in watchOS
625 | -> Prompt,
626 | ) throws -> AsyncThrowingStream<Snapshot<StructuredOutput>, any Error> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:86:15: note: 'PromptBuilder' has been explicitly marked unavailable here
84 | @available(watchOS, unavailable)
85 | @resultBuilder
86 | public struct PromptBuilder {
| `- note: 'PromptBuilder' has been explicitly marked unavailable here
87 | /// Normalize any `PromptRepresentable` to a `Prompt` during expression processing.
88 | public static func buildExpression(_ expression: some PromptRepresentable) -> Prompt {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:625:10: error: 'Prompt' is unavailable in watchOS
623 | options: Adapter.GenerationOptions? = nil,
624 | @PromptBuilder embeddingInto prompt: @Sendable (_ prompt: String, _ sources: [SessionSchema.DecodedGrounding])
625 | -> Prompt,
| `- error: 'Prompt' is unavailable in watchOS
626 | ) throws -> AsyncThrowingStream<Snapshot<StructuredOutput>, any Error> {
627 | let sourcesData = try schema.encodeGrounding(sources)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:707:6: error: 'PromptBuilder' is unavailable in watchOS
705 | using model: Adapter.Model = .default,
706 | options: Adapter.GenerationOptions? = nil,
707 | @PromptBuilder embeddingInto prompt: @Sendable (_ prompt: String, _ sources: [SessionSchema.DecodedGrounding])
| `- error: 'PromptBuilder' is unavailable in watchOS
708 | -> Prompt,
709 | ) throws -> AsyncThrowingStream<Snapshot<StructuredOutput>, any Error> {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:86:15: note: 'PromptBuilder' has been explicitly marked unavailable here
84 | @available(watchOS, unavailable)
85 | @resultBuilder
86 | public struct PromptBuilder {
| `- note: 'PromptBuilder' has been explicitly marked unavailable here
87 | /// Normalize any `PromptRepresentable` to a `Prompt` during expression processing.
88 | public static func buildExpression(_ expression: some PromptRepresentable) -> Prompt {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/LanguageModelProvider/LanguageModelProvider+StreamResponse.swift:708:10: error: 'Prompt' is unavailable in watchOS
706 | options: Adapter.GenerationOptions? = nil,
707 | @PromptBuilder embeddingInto prompt: @Sendable (_ prompt: String, _ sources: [SessionSchema.DecodedGrounding])
708 | -> Prompt,
| `- error: 'Prompt' is unavailable in watchOS
709 | ) throws -> AsyncThrowingStream<Snapshot<StructuredOutput>, any Error> {
710 | let sourcesData = try schema.encodeGrounding(sources)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Prompting/PromptBuilder.swift:33:15: note: 'Prompt' has been explicitly marked unavailable here
31 | @available(tvOS, unavailable)
32 | @available(watchOS, unavailable)
33 | public struct Prompt: Sendable {
| `- note: 'Prompt' has been explicitly marked unavailable here
34 | /// Internal node tree we render later.
35 | package let nodes: [PromptNode]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/StructuredOutputSnapshot.swift:79:26: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
39 | /// }
40 | /// ```
41 | public struct StructuredOutputSnapshot<Output: StructuredOutput>: Identifiable {
| `- note: add '@available' attribute to enclosing generic struct
42 | /// Represents the typed content carried by an update.
43 | public enum ContentPhase {
:
77 |
78 | /// The raw provider payload from which the structured content was decoded.
79 | public var rawContent: GeneratedContent
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
80 |
81 | /// The current phase of the content (partial or final).
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/StructuredOutputSnapshot.swift:95:21: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
39 | /// }
40 | /// ```
41 | public struct StructuredOutputSnapshot<Output: StructuredOutput>: Identifiable {
| `- note: add '@available' attribute to enclosing generic struct
42 | /// Represents the typed content carried by an update.
43 | public enum ContentPhase {
:
93 |
94 | /// Error payload when the snapshot represents a provider-reported failure.
95 | public var error: GeneratedContent?
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
96 |
97 | /// Creates a snapshot backed by decoded content.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/StructuredOutputSnapshot.swift:98:67: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
39 | /// }
40 | /// ```
41 | public struct StructuredOutputSnapshot<Output: StructuredOutput>: Identifiable {
| `- note: add '@available' attribute to enclosing generic struct
42 | /// Represents the typed content carried by an update.
43 | public enum ContentPhase {
:
96 |
97 | /// Creates a snapshot backed by decoded content.
98 | public init(id: String, contentPhase: ContentPhase, rawContent: GeneratedContent) {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing initializer
99 | self.id = id
100 | self.contentPhase = contentPhase
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/StructuredOutputSnapshot.swift:113:34: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
39 | /// }
40 | /// ```
41 | public struct StructuredOutputSnapshot<Output: StructuredOutput>: Identifiable {
| `- note: add '@available' attribute to enclosing generic struct
42 | /// Represents the typed content carried by an update.
43 | public enum ContentPhase {
:
111 |
112 | /// Creates a snapshot that represents a provider-reported error payload.
113 | public init(id: String, error: GeneratedContent, rawContent: GeneratedContent) {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing initializer
114 | self.id = id
115 | self.error = error
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/StructuredOutputSnapshot.swift:113:64: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
39 | /// }
40 | /// ```
41 | public struct StructuredOutputSnapshot<Output: StructuredOutput>: Identifiable {
| `- note: add '@available' attribute to enclosing generic struct
42 | /// Represents the typed content carried by an update.
43 | public enum ContentPhase {
:
111 |
112 | /// Creates a snapshot that represents a provider-reported error payload.
113 | public init(id: String, error: GeneratedContent, rawContent: GeneratedContent) {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing initializer
114 | self.id = id
115 | self.error = error
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/StructuredOutputSnapshot.swift:134:47: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
39 | /// }
40 | /// ```
41 | public struct StructuredOutputSnapshot<Output: StructuredOutput>: Identifiable {
| `- note: add '@available' attribute to enclosing generic struct
42 | /// Represents the typed content carried by an update.
43 | public enum ContentPhase {
:
132 |
133 | /// Builds an error snapshot from the provider's JSON payload.
134 | public static func error(id: String, error: GeneratedContent) throws -> StructuredOutputSnapshot<Output> {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing static method
135 | StructuredOutputSnapshot(id: id, error: error, rawContent: error)
136 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/StructuredOutputSnapshot.swift:141:67: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
137 | }
138 |
139 | private extension StructuredOutputSnapshot {
| `- note: add '@available' attribute to enclosing extension
140 | /// Produces the `CurrentContent` projection for a given phase.
141 | static func makeCurrentContent(from content: ContentPhase, raw: GeneratedContent) -> CurrentContent? {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing static method
142 | switch content {
143 | case let .partial(content):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRun.swift:104:28: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
54 | /// }
55 | /// ```
56 | public struct ToolRun<Tool: FoundationModels.Tool>: Identifiable where Tool.Arguments: Generable,
| `- note: add '@available' attribute to enclosing generic struct
57 | Tool.Output: Generable {
58 | /// The arguments type for this tool.
:
102 |
103 | /// The raw generated content containing the tool arguments.
104 | public var rawArguments: GeneratedContent
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
105 |
106 | /// The raw generated content containing the tool output, if available.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRun.swift:107:25: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
54 | /// }
55 | /// ```
56 | public struct ToolRun<Tool: FoundationModels.Tool>: Identifiable where Tool.Arguments: Generable,
| `- note: add '@available' attribute to enclosing generic struct
57 | Tool.Output: Generable {
58 | /// The arguments type for this tool.
:
105 |
106 | /// The raw generated content containing the tool output, if available.
107 | public var rawOutput: GeneratedContent?
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
108 |
109 | /// The current phase of the tool arguments (partial or final).
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRun.swift:161:19: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
54 | /// }
55 | /// ```
56 | public struct ToolRun<Tool: FoundationModels.Tool>: Identifiable where Tool.Arguments: Generable,
| `- note: add '@available' attribute to enclosing generic struct
57 | Tool.Output: Generable {
58 | /// The arguments type for this tool.
:
154 | }
155 |
156 | public init(
| `- note: add '@available' attribute to enclosing initializer
157 | id: String,
158 | argumentsPhase: ArgumentsPhase,
159 | output: Output? = nil,
160 | rejection: Rejection? = nil,
161 | rawArguments: GeneratedContent,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
162 | rawOutput: GeneratedContent? = nil,
163 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRun.swift:162:16: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
54 | /// }
55 | /// ```
56 | public struct ToolRun<Tool: FoundationModels.Tool>: Identifiable where Tool.Arguments: Generable,
| `- note: add '@available' attribute to enclosing generic struct
57 | Tool.Output: Generable {
58 | /// The arguments type for this tool.
:
154 | }
155 |
156 | public init(
| `- note: add '@available' attribute to enclosing initializer
157 | id: String,
158 | argumentsPhase: ArgumentsPhase,
:
160 | rejection: Rejection? = nil,
161 | rawArguments: GeneratedContent,
162 | rawOutput: GeneratedContent? = nil,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
163 | ) {
164 | self.id = id
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRun.swift:185:19: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
54 | /// }
55 | /// ```
56 | public struct ToolRun<Tool: FoundationModels.Tool>: Identifiable where Tool.Arguments: Generable,
| `- note: add '@available' attribute to enclosing generic struct
57 | Tool.Output: Generable {
58 | /// The arguments type for this tool.
:
178 | }
179 |
180 | public init(
| `- note: add '@available' attribute to enclosing initializer
181 | id: String,
182 | output: Output? = nil,
183 | rejection: Rejection? = nil,
184 | error: TranscriptResolvingError.ToolRunResolution,
185 | rawArguments: GeneratedContent,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
186 | rawOutput: GeneratedContent? = nil,
187 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRun.swift:186:16: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
54 | /// }
55 | /// ```
56 | public struct ToolRun<Tool: FoundationModels.Tool>: Identifiable where Tool.Arguments: Generable,
| `- note: add '@available' attribute to enclosing generic struct
57 | Tool.Output: Generable {
58 | /// The arguments type for this tool.
:
178 | }
179 |
180 | public init(
| `- note: add '@available' attribute to enclosing initializer
181 | id: String,
182 | output: Output? = nil,
:
184 | error: TranscriptResolvingError.ToolRunResolution,
185 | rawArguments: GeneratedContent,
186 | rawOutput: GeneratedContent? = nil,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
187 | ) {
188 | self.id = id
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRun.swift:56:46: error: 'Tool' is only available in watchOS 27.0 or newer
54 | /// }
55 | /// ```
56 | public struct ToolRun<Tool: FoundationModels.Tool>: Identifiable where Tool.Arguments: Generable,
| | `- error: 'Tool' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing generic struct
57 | Tool.Output: Generable {
58 | /// The arguments type for this tool.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRun.swift:56:88: error: 'Generable' is only available in watchOS 27.0 or newer
54 | /// }
55 | /// ```
56 | public struct ToolRun<Tool: FoundationModels.Tool>: Identifiable where Tool.Arguments: Generable,
| | `- error: 'Generable' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing generic struct
57 | Tool.Output: Generable {
58 | /// The arguments type for this tool.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRun.swift:57:16: error: 'Generable' is only available in watchOS 27.0 or newer
54 | /// }
55 | /// ```
56 | public struct ToolRun<Tool: FoundationModels.Tool>: Identifiable where Tool.Arguments: Generable,
| `- note: add '@available' attribute to enclosing generic struct
57 | Tool.Output: Generable {
| `- error: 'Generable' is only available in watchOS 27.0 or newer
58 | /// The arguments type for this tool.
59 | public typealias Arguments = Tool.Arguments
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRun.swift:337:34: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
318 | public extension ToolRun {
319 | /// Structured payload returned when a tool call throws a `ToolRunRejection`.
320 | struct Rejection: Sendable, Equatable, Hashable {
| `- note: add '@available' attribute to enclosing struct
321 | /// Human-readable explanation surfaced to the agent loop.
322 | public let reason: String
:
335 |
336 | /// Converts the JSON back into `GeneratedContent` when you need structured access.
337 | public var generatedContent: GeneratedContent? {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing property
338 | try? GeneratedContent(json: json)
339 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRun.swift:346:19: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
341 | }
342 |
343 | private extension ToolRun {
| `- note: add '@available' attribute to enclosing extension
344 | static func makeCurrentArguments(
| `- note: add '@available' attribute to enclosing static method
345 | from phase: ArgumentsPhase,
346 | rawArguments: GeneratedContent,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
347 | ) -> CurrentArguments? {
348 | switch phase {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:15:32: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
10 | /// inspecting the returned payload and taking another action. Instead of aborting the agent run,
11 | /// the SDK will forward the provided ``GeneratedContent`` back to the model as the tool output.
12 | public struct ToolRunRejection: Error, LocalizedError, Sendable {
| `- note: add '@available' attribute to enclosing struct
13 | /// A machine-readable payload describing the failure. This content is forwarded to the model
14 | /// exactly like a successful tool output, allowing the model to reason about the failure.
15 | public let generatedContent: GeneratedContent
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
16 |
17 | /// A human-readable description of the recoverable rejection.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:27:52: error: 'ConvertibleToGeneratedContent' is only available in watchOS 27.0 or newer
10 | /// inspecting the returned payload and taking another action. Instead of aborting the agent run,
11 | /// the SDK will forward the provided ``GeneratedContent`` back to the model as the tool output.
12 | public struct ToolRunRejection: Error, LocalizedError, Sendable {
| `- note: add '@available' attribute to enclosing struct
13 | /// A machine-readable payload describing the failure. This content is forwarded to the model
14 | /// exactly like a successful tool output, allowing the model to reason about the failure.
:
25 | /// - reason: Optional description explaining the failure. Defaults to `nil`.
26 | /// - content: Any value that can be converted into ``GeneratedContent``.
27 | public init(reason: String? = nil, content: some ConvertibleToGeneratedContent) {
| | `- error: 'ConvertibleToGeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing initializer
28 | let decodedReason = reason ?? Self.fallbackReason
29 | let rejectionReport = RejectionReport(reason: decodedReason, details: content.generatedContent)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:27:52: error: 'ConvertibleToGeneratedContent' is only available in watchOS 27.0 or newer
10 | /// inspecting the returned payload and taking another action. Instead of aborting the agent run,
11 | /// the SDK will forward the provided ``GeneratedContent`` back to the model as the tool output.
12 | public struct ToolRunRejection: Error, LocalizedError, Sendable {
| `- note: add '@available' attribute to enclosing struct
13 | /// A machine-readable payload describing the failure. This content is forwarded to the model
14 | /// exactly like a successful tool output, allowing the model to reason about the failure.
:
25 | /// - reason: Optional description explaining the failure. Defaults to `nil`.
26 | /// - content: Any value that can be converted into ``GeneratedContent``.
27 | public init(reason: String? = nil, content: some ConvertibleToGeneratedContent) {
| | `- error: 'ConvertibleToGeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing initializer
28 | let decodedReason = reason ?? Self.fallbackReason
29 | let rejectionReport = RejectionReport(reason: decodedReason, details: content.generatedContent)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:39:56: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
10 | /// inspecting the returned payload and taking another action. Instead of aborting the agent run,
11 | /// the SDK will forward the provided ``GeneratedContent`` back to the model as the tool output.
12 | public struct ToolRunRejection: Error, LocalizedError, Sendable {
| `- note: add '@available' attribute to enclosing struct
13 | /// A machine-readable payload describing the failure. This content is forwarded to the model
14 | /// exactly like a successful tool output, allowing the model to reason about the failure.
:
37 | /// - reason: Optional description explaining the failure. Defaults to `nil`.
38 | /// - generatedContent: The payload to forward to the model.
39 | public init(reason: String? = nil, generatedContent: GeneratedContent) {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing initializer
40 | let decodedReason = reason ?? Self.fallbackReason
41 | let rejectionReport = RejectionReport(reason: decodedReason, details: generatedContent)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:63:2: error: 'Generable(description:)' is only available in watchOS 27.0 or newer
61 | }
62 |
63 | @Generable
| `- error: 'Generable(description:)' is only available in watchOS 27.0 or newer
64 | package struct RejectionReport {
65 | var error: Bool = true
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:67:16: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
62 |
63 | @Generable
64 | package struct RejectionReport {
| `- note: add '@available' attribute to enclosing struct
65 | var error: Bool = true
66 | var reason: String
67 | var details: GeneratedContent?
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
68 | }
69 |
macro expansion @Generable:1:67: error: 'GenerationSchema' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:68:1: note: expanded code originates here
61 | }
62 |
63 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
| `- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
64 | package struct RejectionReport {
| `- note: add '@available' attribute to enclosing struct
65 | var error: Bool = true
66 | var reason: String
67 | var details: GeneratedContent?
68 | }
+--- macro expansion @Generable -------------------------------------
| 1 | nonisolated package static var generationSchema: FoundationModels.GenerationSchema {
| | | `- error: 'GenerationSchema' is only available in watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| 3 | type: Self.self,
+--------------------------------------------------------------------
69 |
70 | private extension ToolRunRejection {
macro expansion @Generable:12:43: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:68:1: note: expanded code originates here
61 | }
62 |
63 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
| `- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
64 | package struct RejectionReport {
| `- note: add '@available' attribute to enclosing struct
65 | var error: Bool = true
66 | var reason: String
67 | var details: GeneratedContent?
68 | }
+--- macro expansion @Generable -------------------------------------
|10 | }
|11 |
|12 | nonisolated package var generatedContent: GeneratedContent {
| | | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
+--------------------------------------------------------------------
69 |
70 | private extension ToolRunRejection {
macro expansion @Generable:35:21: error: 'GenerationID' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:68:1: note: expanded code originates here
61 | }
62 |
63 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
| `- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
64 | package struct RejectionReport {
65 | var error: Bool = true
66 | var reason: String
67 | var details: GeneratedContent?
68 | }
+--- macro expansion @Generable -------------------------------------
|32 | }
|33 |
|34 | nonisolated package struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | package var id: GenerationID
| | `- error: 'GenerationID' is only available in watchOS 27.0 or newer
|36 | var error: Bool.PartiallyGenerated?
|37 | var reason: String.PartiallyGenerated?
+--------------------------------------------------------------------
69 |
70 | private extension ToolRunRejection {
macro expansion @Generable:36:21: error: 'PartiallyGenerated' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:68:1: note: expanded code originates here
61 | }
62 |
63 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
| `- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
64 | package struct RejectionReport {
65 | var error: Bool = true
66 | var reason: String
67 | var details: GeneratedContent?
68 | }
+--- macro expansion @Generable -------------------------------------
|32 | }
|33 |
|34 | nonisolated package struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | package var id: GenerationID
|36 | var error: Bool.PartiallyGenerated?
| | `- error: 'PartiallyGenerated' is only available in watchOS 27.0 or newer
|37 | var reason: String.PartiallyGenerated?
|38 | var details: GeneratedContent?.PartiallyGenerated?
+--------------------------------------------------------------------
69 |
70 | private extension ToolRunRejection {
macro expansion @Generable:37:24: error: 'PartiallyGenerated' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:68:1: note: expanded code originates here
61 | }
62 |
63 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
| `- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
64 | package struct RejectionReport {
65 | var error: Bool = true
66 | var reason: String
67 | var details: GeneratedContent?
68 | }
+--- macro expansion @Generable -------------------------------------
|32 | }
|33 |
|34 | nonisolated package struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | package var id: GenerationID
|36 | var error: Bool.PartiallyGenerated?
|37 | var reason: String.PartiallyGenerated?
| | `- error: 'PartiallyGenerated' is only available in watchOS 27.0 or newer
|38 | var details: GeneratedContent?.PartiallyGenerated?
|39 | nonisolated package init(_ content: FoundationModels.GeneratedContent) throws {
+--------------------------------------------------------------------
69 |
70 | private extension ToolRunRejection {
macro expansion @Generable:38:18: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:68:1: note: expanded code originates here
61 | }
62 |
63 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
| `- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
64 | package struct RejectionReport {
65 | var error: Bool = true
66 | var reason: String
67 | var details: GeneratedContent?
68 | }
+--- macro expansion @Generable -------------------------------------
|32 | }
|33 |
|34 | nonisolated package struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | package var id: GenerationID
|36 | var error: Bool.PartiallyGenerated?
|37 | var reason: String.PartiallyGenerated?
|38 | var details: GeneratedContent?.PartiallyGenerated?
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
|39 | nonisolated package init(_ content: FoundationModels.GeneratedContent) throws {
|40 | self.id = content.id ?? GenerationID()
+--------------------------------------------------------------------
69 |
70 | private extension ToolRunRejection {
macro expansion @Generable:39:58: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:68:1: note: expanded code originates here
61 | }
62 |
63 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
| |- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
| `- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
64 | package struct RejectionReport {
65 | var error: Bool = true
66 | var reason: String
67 | var details: GeneratedContent?
68 | }
+--- macro expansion @Generable -------------------------------------
|32 | }
|33 |
|34 | nonisolated package struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | package var id: GenerationID
|36 | var error: Bool.PartiallyGenerated?
|37 | var reason: String.PartiallyGenerated?
|38 | var details: GeneratedContent?.PartiallyGenerated?
|39 | nonisolated package init(_ content: FoundationModels.GeneratedContent) throws {
| | | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
|40 | self.id = content.id ?? GenerationID()
|41 | self.error = try content.value(forProperty: "error")
+--------------------------------------------------------------------
69 |
70 | private extension ToolRunRejection {
macro expansion @Generable:34:28: warning: protocol 'Identifiable' requires 'GenerationID' to be available in watchOS 26.0 and newer; this will be an error in a future Swift language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:68:1: note: expanded code originates here
61 | }
62 |
63 | @Generable
| `- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
64 | package struct RejectionReport {
65 | var error: Bool = true
66 | var reason: String
67 | var details: GeneratedContent?
68 | }
+--- macro expansion @Generable -------------------------------------
|32 | }
|33 |
|34 | nonisolated package struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- warning: protocol 'Identifiable' requires 'GenerationID' to be available in watchOS 26.0 and newer; this will be an error in a future Swift language mode
|35 | package var id: GenerationID
|36 | var error: Bool.PartiallyGenerated?
+--------------------------------------------------------------------
69 |
70 | private extension ToolRunRejection {
FoundationModels.GenerationID:3:15: note: 'GenerationID' declared here
1 | @available(iOS 26.0, macOS 26.0, watchOS 27.0, *)
2 | @available(tvOS, unavailable)
3 | public struct GenerationID : Sendable, Hashable {
| `- note: 'GenerationID' declared here
4 | public static func == (a: GenerationID, b: GenerationID) -> Bool
5 | public func hash(into hasher: inout Hasher)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:63:2: error: 'Generable(description:)' is only available in watchOS 27.0 or newer
61 | }
62 |
63 | @Generable
| `- error: 'Generable(description:)' is only available in watchOS 27.0 or newer
64 | package struct RejectionReport {
| `- note: add '@available' attribute to enclosing struct
65 | var error: Bool = true
66 | var reason: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:71:73: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
68 | }
69 |
70 | private extension ToolRunRejection {
| `- note: add '@available' attribute to enclosing extension
71 | static func generateDetailsContent(from details: [String: String]) -> GeneratedContent? {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing static method
72 | let encoder = JSONEncoder()
73 | encoder.outputFormatting = [.sortedKeys]
macro expansion @Generable:2:58: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/ToolRunRejection.swift:68:2: note: expanded code originates here
61 | }
62 |
63 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
| |- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
| `- note: in expansion of macro 'Generable' on struct 'RejectionReport' here
64 | package struct RejectionReport {
65 | var error: Bool = true
66 | var reason: String
67 | var details: GeneratedContent?
68 | }
+--- macro expansion @Generable -------------------------------------
|1 | extension RejectionReport: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing extension
|2 | nonisolated package init(_ content: FoundationModels.GeneratedContent) throws {
| | | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
|3 | self.error = try content.value(forProperty: "error")
|4 | self.reason = try content.value(forProperty: "reason")
+--------------------------------------------------------------------
69 |
70 | private extension ToolRunRejection {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:253:27: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
243 | public extension Transcript {
244 | /// A single tool invocation requested by the model.
245 | struct ToolCall: Sendable, Identifiable, Equatable, Codable {
| `- note: add '@available' attribute to enclosing struct
246 | /// Identifier for this tool call record.
247 | public var id: String
:
251 | public var toolName: String
252 | /// JSON arguments for the tool call.
253 | public var arguments: GeneratedContent
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
254 | /// Optional status of the tool call as it progresses.
255 | public var status: Status?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:261:18: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
243 | public extension Transcript {
244 | /// A single tool invocation requested by the model.
245 | struct ToolCall: Sendable, Identifiable, Equatable, Codable {
| `- note: add '@available' attribute to enclosing struct
246 | /// Identifier for this tool call record.
247 | public var id: String
:
255 | public var status: Status?
256 |
257 | public init(
| `- note: add '@available' attribute to enclosing initializer
258 | id: String,
259 | callId: String,
260 | toolName: String,
261 | arguments: GeneratedContent,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
262 | status: Status?,
263 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:389:25: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
381 |
382 | /// A unit of structured content produced by the model or a tool.
383 | struct StructuredSegment: Sendable, Identifiable, Equatable, Codable {
| `- note: add '@available' attribute to enclosing struct
384 | /// Identifier for this segment.
385 | public var id: String
:
387 | public var typeName: String
388 | /// The structured payload as generated content.
389 | public var content: GeneratedContent
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
390 |
391 | public init(id: String = UUID().uuidString, typeName: String = "", content: GeneratedContent) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:391:81: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
381 |
382 | /// A unit of structured content produced by the model or a tool.
383 | struct StructuredSegment: Sendable, Identifiable, Equatable, Codable {
| `- note: add '@available' attribute to enclosing struct
384 | /// Identifier for this segment.
385 | public var id: String
:
389 | public var content: GeneratedContent
390 |
391 | public init(id: String = UUID().uuidString, typeName: String = "", content: GeneratedContent) {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing initializer
392 | self.id = id
393 | self.typeName = typeName
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:397:86: error: 'ConvertibleToGeneratedContent' is only available in watchOS 27.0 or newer
381 |
382 | /// A unit of structured content produced by the model or a tool.
383 | struct StructuredSegment: Sendable, Identifiable, Equatable, Codable {
| `- note: add '@available' attribute to enclosing struct
384 | /// Identifier for this segment.
385 | public var id: String
:
395 | }
396 |
397 | public init(id: String = UUID().uuidString, typeName: String = "", content: some ConvertibleToGeneratedContent) {
| | `- error: 'ConvertibleToGeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing initializer
398 | self.id = id
399 | self.typeName = typeName
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:397:86: error: 'ConvertibleToGeneratedContent' is only available in watchOS 27.0 or newer
381 |
382 | /// A unit of structured content produced by the model or a tool.
383 | struct StructuredSegment: Sendable, Identifiable, Equatable, Codable {
| `- note: add '@available' attribute to enclosing struct
384 | /// Identifier for this segment.
385 | public var id: String
:
395 | }
396 |
397 | public init(id: String = UUID().uuidString, typeName: String = "", content: some ConvertibleToGeneratedContent) {
| | `- error: 'ConvertibleToGeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing initializer
398 | self.id = id
399 | self.typeName = typeName
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/Transcript.swift:819:64: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
817 | }
818 |
819 | private func transcriptPrettyJSONString(from generatedContent: GeneratedContent) -> String {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing global function
820 | let rawJSONString = generatedContent.stableJsonString
821 | guard let data = rawJSONString.data(using: .utf8) else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/_SwiftAgentToolWrapper.swift:9:61: error: 'Tool' is only available in watchOS 27.0 or newer
7 | ///
8 | /// - Note: This type is managed internally by the SDK. You generally do not interact with it directly.
9 | public struct _SwiftAgentToolWrapper<Tool: FoundationModels.Tool>: SwiftAgentTool
| | `- error: 'Tool' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing generic struct
10 | where Tool.Arguments: Generable, Tool.Output: Generable {
11 | private let tool: Tool
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Models/_SwiftAgentToolWrapper.swift:10:25: error: 'Generable' is only available in watchOS 27.0 or newer
7 | ///
8 | /// - Note: This type is managed internally by the SDK. You generally do not interact with it directly.
9 | public struct _SwiftAgentToolWrapper<Tool: FoundationModels.Tool>: SwiftAgentTool
| `- note: add '@available' attribute to enclosing generic struct
10 | where Tool.Arguments: Generable, Tool.Output: Generable {
| `- error: 'Generable' is only available in watchOS 27.0 or newer
11 | private let tool: Tool
12 |
SwiftCompile normal arm64 (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftEmitModule normal arm64 Emitting\ module\ for\ OpenAI (in target 'OpenAI' from project 'OpenAI')
SwiftCompile normal arm64 (in target 'OpenAI' from project 'OpenAI')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64 Compiling\ AuthorizationContext.swift,\ HTTPClient+SSE.swift,\ HTTPClient.swift,\ HTTPErrorMessageExtractor.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Networking/AuthorizationContext.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Networking/HTTPClient+SSE.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Networking/HTTPClient.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Networking/HTTPErrorMessageExtractor.swift (in target 'SwiftAgent' from project 'SwiftAgent')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Networking/AuthorizationContext.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AuthorizationContext.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Networking/HTTPClient+SSE.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile HTTPClient+SSE.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Networking/HTTPClient.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile HTTPClient.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Networking/HTTPErrorMessageExtractor.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile HTTPErrorMessageExtractor.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
2026-09-23 17:01:38.714 xcodebuild[2822:14726] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
2026-09-23 17:01:38.815 xcodebuild[2822:14726] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
SwiftCompile normal arm64_32 (in target 'SwiftAgent' from project 'SwiftAgent')
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ SwiftAgent (in target 'SwiftAgent' from project 'SwiftAgent')
Building workspace SwiftAgent with scheme SwiftAgent-Package
(3 failures)
BUILD FAILURE 6.4 watchOS