Build Information
Failed to build SwiftAgent, reference 2.0.1 (87e379), with Swift 6.4 for watchOS using Xcode 27.0 on 26 Sep 2026 22:21:05 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
337 | @PromptBuilder prompt: @escaping (In) -> Prompt,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:337:10: error: 'PromptBuilder' is only available in watchOS 27.0 or newer
98 | /// For custom @Generable types, PartiallyGenerated has Optional properties.
99 | /// The final complete result is still returned by the `run` method.
100 | public struct Generate<In: Sendable, Out: Sendable & Generable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
101 |
102 | public typealias Input = In
:
332 | /// - prompt: A closure that builds a Prompt using PromptBuilder
333 | /// - onStream: A closure that handles each ResponseStream.Snapshot
334 | public init(
| `- note: add '@available' attribute to enclosing initializer
335 | options: GenerationOptions = GenerationOptions(),
336 | maxRetries: Int = 3,
337 | @PromptBuilder prompt: @escaping (In) -> Prompt,
| `- error: 'PromptBuilder' is only available in watchOS 27.0 or newer
338 | onStream: @escaping (GenerateSnapshot<Out>) async -> Void
339 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:337:50: error: 'Prompt' is only available in watchOS 27.0 or newer
98 | /// For custom @Generable types, PartiallyGenerated has Optional properties.
99 | /// The final complete result is still returned by the `run` method.
100 | public struct Generate<In: Sendable, Out: Sendable & Generable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
101 |
102 | public typealias Input = In
:
332 | /// - prompt: A closure that builds a Prompt using PromptBuilder
333 | /// - onStream: A closure that handles each ResponseStream.Snapshot
334 | public init(
| `- note: add '@available' attribute to enclosing initializer
335 | options: GenerationOptions = GenerationOptions(),
336 | maxRetries: Int = 3,
337 | @PromptBuilder prompt: @escaping (In) -> Prompt,
| `- error: 'Prompt' is only available in watchOS 27.0 or newer
338 | onStream: @escaping (GenerateSnapshot<Out>) async -> Void
339 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:335:38: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
98 | /// For custom @Generable types, PartiallyGenerated has Optional properties.
99 | /// The final complete result is still returned by the `run` method.
100 | public struct Generate<In: Sendable, Out: Sendable & Generable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
101 |
102 | public typealias Input = In
:
332 | /// - prompt: A closure that builds a Prompt using PromptBuilder
333 | /// - onStream: A closure that handles each ResponseStream.Snapshot
334 | public init(
| `- note: add '@available' attribute to enclosing initializer
335 | options: GenerationOptions = GenerationOptions(),
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
336 | maxRetries: Int = 3,
337 | @PromptBuilder prompt: @escaping (In) -> Prompt,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:335:38: error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
98 | /// For custom @Generable types, PartiallyGenerated has Optional properties.
99 | /// The final complete result is still returned by the `run` method.
100 | public struct Generate<In: Sendable, Out: Sendable & Generable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
101 |
102 | public typealias Input = In
:
332 | /// - prompt: A closure that builds a Prompt using PromptBuilder
333 | /// - onStream: A closure that handles each ResponseStream.Snapshot
334 | public init(
| `- note: add '@available' attribute to enclosing initializer
335 | options: GenerationOptions = GenerationOptions(),
| `- error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
336 | maxRetries: Int = 3,
337 | @PromptBuilder prompt: @escaping (In) -> Prompt,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:355:17: error: 'PromptRepresentable' is only available in watchOS 27.0 or newer
98 | /// For custom @Generable types, PartiallyGenerated has Optional properties.
99 | /// The final complete result is still returned by the `run` method.
100 | public struct Generate<In: Sendable, Out: Sendable & Generable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
101 |
102 | public typealias Input = In
:
350 | /// - options: Generation options for controlling output
351 | /// - maxRetries: Maximum number of retries on generation failure (default: 0)
352 | public init(
| `- note: add '@available' attribute to enclosing initializer
353 | options: GenerationOptions = GenerationOptions(),
354 | maxRetries: Int = 3
355 | ) where In: PromptRepresentable {
| `- error: 'PromptRepresentable' is only available in watchOS 27.0 or newer
356 | self.sessionSource = .context
357 | self.options = options
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:353:18: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
98 | /// For custom @Generable types, PartiallyGenerated has Optional properties.
99 | /// The final complete result is still returned by the `run` method.
100 | public struct Generate<In: Sendable, Out: Sendable & Generable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
101 |
102 | public typealias Input = In
:
350 | /// - options: Generation options for controlling output
351 | /// - maxRetries: Maximum number of retries on generation failure (default: 0)
352 | public init(
| `- note: add '@available' attribute to enclosing initializer
353 | options: GenerationOptions = GenerationOptions(),
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
354 | maxRetries: Int = 3
355 | ) where In: PromptRepresentable {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:353:38: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
98 | /// For custom @Generable types, PartiallyGenerated has Optional properties.
99 | /// The final complete result is still returned by the `run` method.
100 | public struct Generate<In: Sendable, Out: Sendable & Generable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
101 |
102 | public typealias Input = In
:
350 | /// - options: Generation options for controlling output
351 | /// - maxRetries: Maximum number of retries on generation failure (default: 0)
352 | public init(
| `- note: add '@available' attribute to enclosing initializer
353 | options: GenerationOptions = GenerationOptions(),
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
354 | maxRetries: Int = 3
355 | ) where In: PromptRepresentable {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:353:38: error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
98 | /// For custom @Generable types, PartiallyGenerated has Optional properties.
99 | /// The final complete result is still returned by the `run` method.
100 | public struct Generate<In: Sendable, Out: Sendable & Generable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
101 |
102 | public typealias Input = In
:
350 | /// - options: Generation options for controlling output
351 | /// - maxRetries: Maximum number of retries on generation failure (default: 0)
352 | public init(
| `- note: add '@available' attribute to enclosing initializer
353 | options: GenerationOptions = GenerationOptions(),
| `- error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
354 | maxRetries: Int = 3
355 | ) where In: PromptRepresentable {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:100:54: error: 'Generable' is only available in watchOS 27.0 or newer
98 | /// For custom @Generable types, PartiallyGenerated has Optional properties.
99 | /// The final complete result is still returned by the `run` method.
100 | public struct Generate<In: Sendable, Out: Sendable & Generable>: Step, @unchecked Sendable {
| | `- error: 'Generable' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing generic struct
101 |
102 | public typealias Input = In
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:556:21: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
553 | public typealias Output = String
554 |
555 | private enum SessionSource: @unchecked Sendable {
| `- note: add '@available' attribute to enclosing enum
556 | case direct(LanguageModelSession)
| `- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
557 | case relay(Relay<LanguageModelSession>)
558 | case context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:557:26: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
553 | public typealias Output = String
554 |
555 | private enum SessionSource: @unchecked Sendable {
| `- note: add '@available' attribute to enclosing enum
556 | case direct(LanguageModelSession)
557 | case relay(Relay<LanguageModelSession>)
| `- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
558 | case context
559 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:562:26: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
560 |
561 | private let sessionSource: SessionSource
562 | private let options: GenerationOptions
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
563 | private let promptBuilder: (In) -> Prompt
564 | private let streamHandler: ((GenerateSnapshot<Output>) async -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:563:40: error: 'Prompt' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
561 | private let sessionSource: SessionSource
562 | private let options: GenerationOptions
563 | private let promptBuilder: (In) -> Prompt
| `- error: 'Prompt' is only available in watchOS 27.0 or newer
564 | private let streamHandler: ((GenerateSnapshot<Output>) async -> Void)?
565 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:564:17: error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
562 | private let options: GenerationOptions
563 | private let promptBuilder: (In) -> Prompt
564 | private let streamHandler: ((GenerateSnapshot<Output>) async -> Void)?
| `- error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
565 |
566 | private var session: LanguageModelSession {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:566:26: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
564 | private let streamHandler: ((GenerateSnapshot<Output>) async -> Void)?
565 |
566 | private var session: LanguageModelSession {
| | `- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing property
567 | switch sessionSource {
568 | case .direct(let session):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:589:18: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
586 | /// - prompt: A closure that builds a Prompt using PromptBuilder
587 | /// - onStream: A closure that handles each ResponseStream.Snapshot
588 | public init(
| `- note: add '@available' attribute to enclosing initializer
589 | session: LanguageModelSession,
| `- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
590 | options: GenerationOptions = GenerationOptions(),
591 | @PromptBuilder prompt: @escaping (In) -> Prompt,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:590:18: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
586 | /// - prompt: A closure that builds a Prompt using PromptBuilder
587 | /// - onStream: A closure that handles each ResponseStream.Snapshot
588 | public init(
| `- note: add '@available' attribute to enclosing initializer
589 | session: LanguageModelSession,
590 | options: GenerationOptions = GenerationOptions(),
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
591 | @PromptBuilder prompt: @escaping (In) -> Prompt,
592 | onStream: @escaping (GenerateSnapshot<Output>) async -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:591:10: error: 'PromptBuilder' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
586 | /// - prompt: A closure that builds a Prompt using PromptBuilder
587 | /// - onStream: A closure that handles each ResponseStream.Snapshot
588 | public init(
| `- note: add '@available' attribute to enclosing initializer
589 | session: LanguageModelSession,
590 | options: GenerationOptions = GenerationOptions(),
591 | @PromptBuilder prompt: @escaping (In) -> Prompt,
| `- error: 'PromptBuilder' is only available in watchOS 27.0 or newer
592 | onStream: @escaping (GenerateSnapshot<Output>) async -> Void
593 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:591:50: error: 'Prompt' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
586 | /// - prompt: A closure that builds a Prompt using PromptBuilder
587 | /// - onStream: A closure that handles each ResponseStream.Snapshot
588 | public init(
| `- note: add '@available' attribute to enclosing initializer
589 | session: LanguageModelSession,
590 | options: GenerationOptions = GenerationOptions(),
591 | @PromptBuilder prompt: @escaping (In) -> Prompt,
| `- error: 'Prompt' is only available in watchOS 27.0 or newer
592 | onStream: @escaping (GenerateSnapshot<Output>) async -> Void
593 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:588:12: error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
586 | /// - prompt: A closure that builds a Prompt using PromptBuilder
587 | /// - onStream: A closure that handles each ResponseStream.Snapshot
588 | public init(
| |- error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing initializer
589 | session: LanguageModelSession,
590 | options: GenerationOptions = GenerationOptions(),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:590:38: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
586 | /// - prompt: A closure that builds a Prompt using PromptBuilder
587 | /// - onStream: A closure that handles each ResponseStream.Snapshot
588 | public init(
| `- note: add '@available' attribute to enclosing initializer
589 | session: LanguageModelSession,
590 | options: GenerationOptions = GenerationOptions(),
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
591 | @PromptBuilder prompt: @escaping (In) -> Prompt,
592 | onStream: @escaping (GenerateSnapshot<Output>) async -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:590:38: error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
586 | /// - prompt: A closure that builds a Prompt using PromptBuilder
587 | /// - onStream: A closure that handles each ResponseStream.Snapshot
588 | public init(
| `- note: add '@available' attribute to enclosing initializer
589 | session: LanguageModelSession,
590 | options: GenerationOptions = GenerationOptions(),
| `- error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
591 | @PromptBuilder prompt: @escaping (In) -> Prompt,
592 | onStream: @escaping (GenerateSnapshot<Output>) async -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:606:18: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
603 | /// - options: Generation options for controlling output
604 | /// - prompt: A closure that builds a Prompt using PromptBuilder
605 | public init(
| `- note: add '@available' attribute to enclosing initializer
606 | session: LanguageModelSession,
| `- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
607 | options: GenerationOptions = GenerationOptions(),
608 | @PromptBuilder prompt: @escaping (In) -> Prompt
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:607:18: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
603 | /// - options: Generation options for controlling output
604 | /// - prompt: A closure that builds a Prompt using PromptBuilder
605 | public init(
| `- note: add '@available' attribute to enclosing initializer
606 | session: LanguageModelSession,
607 | options: GenerationOptions = GenerationOptions(),
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
608 | @PromptBuilder prompt: @escaping (In) -> Prompt
609 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:608:10: error: 'PromptBuilder' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
603 | /// - options: Generation options for controlling output
604 | /// - prompt: A closure that builds a Prompt using PromptBuilder
605 | public init(
| `- note: add '@available' attribute to enclosing initializer
606 | session: LanguageModelSession,
607 | options: GenerationOptions = GenerationOptions(),
608 | @PromptBuilder prompt: @escaping (In) -> Prompt
| `- error: 'PromptBuilder' is only available in watchOS 27.0 or newer
609 | ) {
610 | self.sessionSource = .direct(session)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:608:50: error: 'Prompt' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
603 | /// - options: Generation options for controlling output
604 | /// - prompt: A closure that builds a Prompt using PromptBuilder
605 | public init(
| `- note: add '@available' attribute to enclosing initializer
606 | session: LanguageModelSession,
607 | options: GenerationOptions = GenerationOptions(),
608 | @PromptBuilder prompt: @escaping (In) -> Prompt
| `- error: 'Prompt' is only available in watchOS 27.0 or newer
609 | ) {
610 | self.sessionSource = .direct(session)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:607:38: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
603 | /// - options: Generation options for controlling output
604 | /// - prompt: A closure that builds a Prompt using PromptBuilder
605 | public init(
| `- note: add '@available' attribute to enclosing initializer
606 | session: LanguageModelSession,
607 | options: GenerationOptions = GenerationOptions(),
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
608 | @PromptBuilder prompt: @escaping (In) -> Prompt
609 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:607:38: error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
603 | /// - options: Generation options for controlling output
604 | /// - prompt: A closure that builds a Prompt using PromptBuilder
605 | public init(
| `- note: add '@available' attribute to enclosing initializer
606 | session: LanguageModelSession,
607 | options: GenerationOptions = GenerationOptions(),
| `- error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
608 | @PromptBuilder prompt: @escaping (In) -> Prompt
609 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:622:18: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
619 | /// - options: Generation options for controlling output
620 | /// - transform: A closure to transform the input to a string prompt
621 | public init(
| `- note: add '@available' attribute to enclosing initializer
622 | session: LanguageModelSession,
| `- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
623 | options: GenerationOptions = GenerationOptions(),
624 | transform: @escaping (In) -> String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:623:18: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
619 | /// - options: Generation options for controlling output
620 | /// - transform: A closure to transform the input to a string prompt
621 | public init(
| `- note: add '@available' attribute to enclosing initializer
622 | session: LanguageModelSession,
623 | options: GenerationOptions = GenerationOptions(),
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
624 | transform: @escaping (In) -> String
625 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:623:38: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
619 | /// - options: Generation options for controlling output
620 | /// - transform: A closure to transform the input to a string prompt
621 | public init(
| `- note: add '@available' attribute to enclosing initializer
622 | session: LanguageModelSession,
623 | options: GenerationOptions = GenerationOptions(),
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
624 | transform: @escaping (In) -> String
625 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:623:38: error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
619 | /// - options: Generation options for controlling output
620 | /// - transform: A closure to transform the input to a string prompt
621 | public init(
| `- note: add '@available' attribute to enclosing initializer
622 | session: LanguageModelSession,
623 | options: GenerationOptions = GenerationOptions(),
| `- error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
624 | transform: @escaping (In) -> String
625 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:640:17: error: 'PromptRepresentable' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
635 | /// - session: The LanguageModelSession to use
636 | /// - options: Generation options for controlling output
637 | public init(
| `- note: add '@available' attribute to enclosing initializer
638 | session: LanguageModelSession,
639 | options: GenerationOptions = GenerationOptions()
640 | ) where In: PromptRepresentable {
| `- error: 'PromptRepresentable' is only available in watchOS 27.0 or newer
641 | self.sessionSource = .direct(session)
642 | self.options = options
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:638:18: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
635 | /// - session: The LanguageModelSession to use
636 | /// - options: Generation options for controlling output
637 | public init(
| `- note: add '@available' attribute to enclosing initializer
638 | session: LanguageModelSession,
| `- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
639 | options: GenerationOptions = GenerationOptions()
640 | ) where In: PromptRepresentable {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:639:18: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
635 | /// - session: The LanguageModelSession to use
636 | /// - options: Generation options for controlling output
637 | public init(
| `- note: add '@available' attribute to enclosing initializer
638 | session: LanguageModelSession,
639 | options: GenerationOptions = GenerationOptions()
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
640 | ) where In: PromptRepresentable {
641 | self.sessionSource = .direct(session)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:639:38: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
635 | /// - session: The LanguageModelSession to use
636 | /// - options: Generation options for controlling output
637 | public init(
| `- note: add '@available' attribute to enclosing initializer
638 | session: LanguageModelSession,
639 | options: GenerationOptions = GenerationOptions()
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
640 | ) where In: PromptRepresentable {
641 | self.sessionSource = .direct(session)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:639:38: error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
635 | /// - session: The LanguageModelSession to use
636 | /// - options: Generation options for controlling output
637 | public init(
| `- note: add '@available' attribute to enclosing initializer
638 | session: LanguageModelSession,
639 | options: GenerationOptions = GenerationOptions()
| `- error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
640 | ) where In: PromptRepresentable {
641 | self.sessionSource = .direct(session)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:657:17: error: 'PromptRepresentable' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
651 | /// - options: Generation options for controlling output
652 | /// - onStream: A closure that handles each ResponseStream.Snapshot
653 | public init(
| `- note: add '@available' attribute to enclosing initializer
654 | session: LanguageModelSession,
655 | options: GenerationOptions = GenerationOptions(),
656 | onStream: @escaping (GenerateSnapshot<Output>) async -> Void
657 | ) where In: PromptRepresentable {
| `- error: 'PromptRepresentable' is only available in watchOS 27.0 or newer
658 | self.sessionSource = .direct(session)
659 | self.options = options
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:654:18: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
651 | /// - options: Generation options for controlling output
652 | /// - onStream: A closure that handles each ResponseStream.Snapshot
653 | public init(
| `- note: add '@available' attribute to enclosing initializer
654 | session: LanguageModelSession,
| `- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
655 | options: GenerationOptions = GenerationOptions(),
656 | onStream: @escaping (GenerateSnapshot<Output>) async -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:655:18: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
651 | /// - options: Generation options for controlling output
652 | /// - onStream: A closure that handles each ResponseStream.Snapshot
653 | public init(
| `- note: add '@available' attribute to enclosing initializer
654 | session: LanguageModelSession,
655 | options: GenerationOptions = GenerationOptions(),
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
656 | onStream: @escaping (GenerateSnapshot<Output>) async -> Void
657 | ) where In: PromptRepresentable {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:653:12: error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
651 | /// - options: Generation options for controlling output
652 | /// - onStream: A closure that handles each ResponseStream.Snapshot
653 | public init(
| |- error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing initializer
654 | session: LanguageModelSession,
655 | options: GenerationOptions = GenerationOptions(),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:655:38: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
651 | /// - options: Generation options for controlling output
652 | /// - onStream: A closure that handles each ResponseStream.Snapshot
653 | public init(
| `- note: add '@available' attribute to enclosing initializer
654 | session: LanguageModelSession,
655 | options: GenerationOptions = GenerationOptions(),
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
656 | onStream: @escaping (GenerateSnapshot<Output>) async -> Void
657 | ) where In: PromptRepresentable {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:655:38: error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
651 | /// - options: Generation options for controlling output
652 | /// - onStream: A closure that handles each ResponseStream.Snapshot
653 | public init(
| `- note: add '@available' attribute to enclosing initializer
654 | session: LanguageModelSession,
655 | options: GenerationOptions = GenerationOptions(),
| `- error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
656 | onStream: @escaping (GenerateSnapshot<Output>) async -> Void
657 | ) where In: PromptRepresentable {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:672:24: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
669 | /// - options: Generation options for controlling output
670 | /// - prompt: A closure that builds a Prompt using PromptBuilder
671 | public init(
| `- note: add '@available' attribute to enclosing initializer
672 | session: Relay<LanguageModelSession>,
| `- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
673 | options: GenerationOptions = GenerationOptions(),
674 | @PromptBuilder prompt: @escaping (In) -> Prompt
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:673:18: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
669 | /// - options: Generation options for controlling output
670 | /// - prompt: A closure that builds a Prompt using PromptBuilder
671 | public init(
| `- note: add '@available' attribute to enclosing initializer
672 | session: Relay<LanguageModelSession>,
673 | options: GenerationOptions = GenerationOptions(),
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
674 | @PromptBuilder prompt: @escaping (In) -> Prompt
675 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:674:10: error: 'PromptBuilder' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
669 | /// - options: Generation options for controlling output
670 | /// - prompt: A closure that builds a Prompt using PromptBuilder
671 | public init(
| `- note: add '@available' attribute to enclosing initializer
672 | session: Relay<LanguageModelSession>,
673 | options: GenerationOptions = GenerationOptions(),
674 | @PromptBuilder prompt: @escaping (In) -> Prompt
| `- error: 'PromptBuilder' is only available in watchOS 27.0 or newer
675 | ) {
676 | self.sessionSource = .relay(session)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:674:50: error: 'Prompt' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
669 | /// - options: Generation options for controlling output
670 | /// - prompt: A closure that builds a Prompt using PromptBuilder
671 | public init(
| `- note: add '@available' attribute to enclosing initializer
672 | session: Relay<LanguageModelSession>,
673 | options: GenerationOptions = GenerationOptions(),
674 | @PromptBuilder prompt: @escaping (In) -> Prompt
| `- error: 'Prompt' is only available in watchOS 27.0 or newer
675 | ) {
676 | self.sessionSource = .relay(session)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:673:38: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
669 | /// - options: Generation options for controlling output
670 | /// - prompt: A closure that builds a Prompt using PromptBuilder
671 | public init(
| `- note: add '@available' attribute to enclosing initializer
672 | session: Relay<LanguageModelSession>,
673 | options: GenerationOptions = GenerationOptions(),
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
674 | @PromptBuilder prompt: @escaping (In) -> Prompt
675 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:673:38: error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
669 | /// - options: Generation options for controlling output
670 | /// - prompt: A closure that builds a Prompt using PromptBuilder
671 | public init(
| `- note: add '@available' attribute to enclosing initializer
672 | session: Relay<LanguageModelSession>,
673 | options: GenerationOptions = GenerationOptions(),
| `- error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
674 | @PromptBuilder prompt: @escaping (In) -> Prompt
675 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:689:24: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
686 | /// - prompt: A closure that builds a Prompt using PromptBuilder
687 | /// - onStream: A closure that handles each ResponseStream.Snapshot
688 | public init(
| `- note: add '@available' attribute to enclosing initializer
689 | session: Relay<LanguageModelSession>,
| `- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
690 | options: GenerationOptions = GenerationOptions(),
691 | @PromptBuilder prompt: @escaping (In) -> Prompt,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:690:18: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
686 | /// - prompt: A closure that builds a Prompt using PromptBuilder
687 | /// - onStream: A closure that handles each ResponseStream.Snapshot
688 | public init(
| `- note: add '@available' attribute to enclosing initializer
689 | session: Relay<LanguageModelSession>,
690 | options: GenerationOptions = GenerationOptions(),
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
691 | @PromptBuilder prompt: @escaping (In) -> Prompt,
692 | onStream: @escaping (GenerateSnapshot<Output>) async -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:691:10: error: 'PromptBuilder' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
686 | /// - prompt: A closure that builds a Prompt using PromptBuilder
687 | /// - onStream: A closure that handles each ResponseStream.Snapshot
688 | public init(
| `- note: add '@available' attribute to enclosing initializer
689 | session: Relay<LanguageModelSession>,
690 | options: GenerationOptions = GenerationOptions(),
691 | @PromptBuilder prompt: @escaping (In) -> Prompt,
| `- error: 'PromptBuilder' is only available in watchOS 27.0 or newer
692 | onStream: @escaping (GenerateSnapshot<Output>) async -> Void
693 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:691:50: error: 'Prompt' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
686 | /// - prompt: A closure that builds a Prompt using PromptBuilder
687 | /// - onStream: A closure that handles each ResponseStream.Snapshot
688 | public init(
| `- note: add '@available' attribute to enclosing initializer
689 | session: Relay<LanguageModelSession>,
690 | options: GenerationOptions = GenerationOptions(),
691 | @PromptBuilder prompt: @escaping (In) -> Prompt,
| `- error: 'Prompt' is only available in watchOS 27.0 or newer
692 | onStream: @escaping (GenerateSnapshot<Output>) async -> Void
693 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:688:12: error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
686 | /// - prompt: A closure that builds a Prompt using PromptBuilder
687 | /// - onStream: A closure that handles each ResponseStream.Snapshot
688 | public init(
| |- error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing initializer
689 | session: Relay<LanguageModelSession>,
690 | options: GenerationOptions = GenerationOptions(),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:690:38: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
686 | /// - prompt: A closure that builds a Prompt using PromptBuilder
687 | /// - onStream: A closure that handles each ResponseStream.Snapshot
688 | public init(
| `- note: add '@available' attribute to enclosing initializer
689 | session: Relay<LanguageModelSession>,
690 | options: GenerationOptions = GenerationOptions(),
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
691 | @PromptBuilder prompt: @escaping (In) -> Prompt,
692 | onStream: @escaping (GenerateSnapshot<Output>) async -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:690:38: error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
686 | /// - prompt: A closure that builds a Prompt using PromptBuilder
687 | /// - onStream: A closure that handles each ResponseStream.Snapshot
688 | public init(
| `- note: add '@available' attribute to enclosing initializer
689 | session: Relay<LanguageModelSession>,
690 | options: GenerationOptions = GenerationOptions(),
| `- error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
691 | @PromptBuilder prompt: @escaping (In) -> Prompt,
692 | onStream: @escaping (GenerateSnapshot<Output>) async -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:706:24: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
703 | /// - options: Generation options for controlling output
704 | /// - transform: A closure to transform the input to a string prompt
705 | public init(
| `- note: add '@available' attribute to enclosing initializer
706 | session: Relay<LanguageModelSession>,
| `- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
707 | options: GenerationOptions = GenerationOptions(),
708 | transform: @escaping (In) -> String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:707:18: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
703 | /// - options: Generation options for controlling output
704 | /// - transform: A closure to transform the input to a string prompt
705 | public init(
| `- note: add '@available' attribute to enclosing initializer
706 | session: Relay<LanguageModelSession>,
707 | options: GenerationOptions = GenerationOptions(),
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
708 | transform: @escaping (In) -> String
709 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:707:38: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
703 | /// - options: Generation options for controlling output
704 | /// - transform: A closure to transform the input to a string prompt
705 | public init(
| `- note: add '@available' attribute to enclosing initializer
706 | session: Relay<LanguageModelSession>,
707 | options: GenerationOptions = GenerationOptions(),
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
708 | transform: @escaping (In) -> String
709 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:707:38: error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
703 | /// - options: Generation options for controlling output
704 | /// - transform: A closure to transform the input to a string prompt
705 | public init(
| `- note: add '@available' attribute to enclosing initializer
706 | session: Relay<LanguageModelSession>,
707 | options: GenerationOptions = GenerationOptions(),
| `- error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
708 | transform: @escaping (In) -> String
709 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:724:17: error: 'PromptRepresentable' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
719 | /// - session: A Relay to a shared LanguageModelSession
720 | /// - options: Generation options for controlling output
721 | public init(
| `- note: add '@available' attribute to enclosing initializer
722 | session: Relay<LanguageModelSession>,
723 | options: GenerationOptions = GenerationOptions()
724 | ) where In: PromptRepresentable {
| `- error: 'PromptRepresentable' is only available in watchOS 27.0 or newer
725 | self.sessionSource = .relay(session)
726 | self.options = options
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:722:24: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
719 | /// - session: A Relay to a shared LanguageModelSession
720 | /// - options: Generation options for controlling output
721 | public init(
| `- note: add '@available' attribute to enclosing initializer
722 | session: Relay<LanguageModelSession>,
| `- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
723 | options: GenerationOptions = GenerationOptions()
724 | ) where In: PromptRepresentable {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:723:18: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
719 | /// - session: A Relay to a shared LanguageModelSession
720 | /// - options: Generation options for controlling output
721 | public init(
| `- note: add '@available' attribute to enclosing initializer
722 | session: Relay<LanguageModelSession>,
723 | options: GenerationOptions = GenerationOptions()
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
724 | ) where In: PromptRepresentable {
725 | self.sessionSource = .relay(session)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:723:38: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
719 | /// - session: A Relay to a shared LanguageModelSession
720 | /// - options: Generation options for controlling output
721 | public init(
| `- note: add '@available' attribute to enclosing initializer
722 | session: Relay<LanguageModelSession>,
723 | options: GenerationOptions = GenerationOptions()
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
724 | ) where In: PromptRepresentable {
725 | self.sessionSource = .relay(session)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:723:38: error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
719 | /// - session: A Relay to a shared LanguageModelSession
720 | /// - options: Generation options for controlling output
721 | public init(
| `- note: add '@available' attribute to enclosing initializer
722 | session: Relay<LanguageModelSession>,
723 | options: GenerationOptions = GenerationOptions()
| `- error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
724 | ) where In: PromptRepresentable {
725 | self.sessionSource = .relay(session)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:738:18: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
735 | /// - options: Generation options for controlling output
736 | /// - prompt: A closure that builds a Prompt using PromptBuilder
737 | public init(
| `- note: add '@available' attribute to enclosing initializer
738 | options: GenerationOptions = GenerationOptions(),
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
739 | @PromptBuilder prompt: @escaping (In) -> Prompt
740 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:739:10: error: 'PromptBuilder' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
735 | /// - options: Generation options for controlling output
736 | /// - prompt: A closure that builds a Prompt using PromptBuilder
737 | public init(
| `- note: add '@available' attribute to enclosing initializer
738 | options: GenerationOptions = GenerationOptions(),
739 | @PromptBuilder prompt: @escaping (In) -> Prompt
| `- error: 'PromptBuilder' is only available in watchOS 27.0 or newer
740 | ) {
741 | self.sessionSource = .context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:739:50: error: 'Prompt' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
735 | /// - options: Generation options for controlling output
736 | /// - prompt: A closure that builds a Prompt using PromptBuilder
737 | public init(
| `- note: add '@available' attribute to enclosing initializer
738 | options: GenerationOptions = GenerationOptions(),
739 | @PromptBuilder prompt: @escaping (In) -> Prompt
| `- error: 'Prompt' is only available in watchOS 27.0 or newer
740 | ) {
741 | self.sessionSource = .context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:738:38: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
735 | /// - options: Generation options for controlling output
736 | /// - prompt: A closure that builds a Prompt using PromptBuilder
737 | public init(
| `- note: add '@available' attribute to enclosing initializer
738 | options: GenerationOptions = GenerationOptions(),
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
739 | @PromptBuilder prompt: @escaping (In) -> Prompt
740 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:738:38: error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
735 | /// - options: Generation options for controlling output
736 | /// - prompt: A closure that builds a Prompt using PromptBuilder
737 | public init(
| `- note: add '@available' attribute to enclosing initializer
738 | options: GenerationOptions = GenerationOptions(),
| `- error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
739 | @PromptBuilder prompt: @escaping (In) -> Prompt
740 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:753:18: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
750 | /// - prompt: A closure that builds a Prompt using PromptBuilder
751 | /// - onStream: A closure that handles each ResponseStream.Snapshot
752 | public init(
| `- note: add '@available' attribute to enclosing initializer
753 | options: GenerationOptions = GenerationOptions(),
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
754 | @PromptBuilder prompt: @escaping (In) -> Prompt,
755 | onStream: @escaping (GenerateSnapshot<Output>) async -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:754:10: error: 'PromptBuilder' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
750 | /// - prompt: A closure that builds a Prompt using PromptBuilder
751 | /// - onStream: A closure that handles each ResponseStream.Snapshot
752 | public init(
| `- note: add '@available' attribute to enclosing initializer
753 | options: GenerationOptions = GenerationOptions(),
754 | @PromptBuilder prompt: @escaping (In) -> Prompt,
| `- error: 'PromptBuilder' is only available in watchOS 27.0 or newer
755 | onStream: @escaping (GenerateSnapshot<Output>) async -> Void
756 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:754:50: error: 'Prompt' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
750 | /// - prompt: A closure that builds a Prompt using PromptBuilder
751 | /// - onStream: A closure that handles each ResponseStream.Snapshot
752 | public init(
| `- note: add '@available' attribute to enclosing initializer
753 | options: GenerationOptions = GenerationOptions(),
754 | @PromptBuilder prompt: @escaping (In) -> Prompt,
| `- error: 'Prompt' is only available in watchOS 27.0 or newer
755 | onStream: @escaping (GenerateSnapshot<Output>) async -> Void
756 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:752:12: error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
750 | /// - prompt: A closure that builds a Prompt using PromptBuilder
751 | /// - onStream: A closure that handles each ResponseStream.Snapshot
752 | public init(
| |- error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing initializer
753 | options: GenerationOptions = GenerationOptions(),
754 | @PromptBuilder prompt: @escaping (In) -> Prompt,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:753:38: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
750 | /// - prompt: A closure that builds a Prompt using PromptBuilder
751 | /// - onStream: A closure that handles each ResponseStream.Snapshot
752 | public init(
| `- note: add '@available' attribute to enclosing initializer
753 | options: GenerationOptions = GenerationOptions(),
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
754 | @PromptBuilder prompt: @escaping (In) -> Prompt,
755 | onStream: @escaping (GenerateSnapshot<Output>) async -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:753:38: error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
750 | /// - prompt: A closure that builds a Prompt using PromptBuilder
751 | /// - onStream: A closure that handles each ResponseStream.Snapshot
752 | public init(
| `- note: add '@available' attribute to enclosing initializer
753 | options: GenerationOptions = GenerationOptions(),
| `- error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
754 | @PromptBuilder prompt: @escaping (In) -> Prompt,
755 | onStream: @escaping (GenerateSnapshot<Output>) async -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:769:17: error: 'PromptRepresentable' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
765 | /// - Parameters:
766 | /// - options: Generation options for controlling output
767 | public init(
| `- note: add '@available' attribute to enclosing initializer
768 | options: GenerationOptions = GenerationOptions()
769 | ) where In: PromptRepresentable {
| `- error: 'PromptRepresentable' is only available in watchOS 27.0 or newer
770 | self.sessionSource = .context
771 | self.options = options
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:768:18: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
765 | /// - Parameters:
766 | /// - options: Generation options for controlling output
767 | public init(
| `- note: add '@available' attribute to enclosing initializer
768 | options: GenerationOptions = GenerationOptions()
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
769 | ) where In: PromptRepresentable {
770 | self.sessionSource = .context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:768:38: error: 'GenerationOptions' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
765 | /// - Parameters:
766 | /// - options: Generation options for controlling output
767 | public init(
| `- note: add '@available' attribute to enclosing initializer
768 | options: GenerationOptions = GenerationOptions()
| `- error: 'GenerationOptions' is only available in watchOS 27.0 or newer
769 | ) where In: PromptRepresentable {
770 | self.sessionSource = .context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift:768:38: error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
548 | /// containing both the content (accumulated String) and the raw `GeneratedContent`.
549 | /// The complete text is still returned by the `run` method.
550 | public struct GenerateText<In: Sendable>: Step, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing generic struct
551 |
552 | public typealias Input = In
:
765 | /// - Parameters:
766 | /// - options: Generation options for controlling output
767 | public init(
| `- note: add '@available' attribute to enclosing initializer
768 | options: GenerationOptions = GenerationOptions()
| `- error: 'init(samplingMode:temperature:maximumResponseTokens:)' is only available in watchOS 27.0 or newer
769 | ) where In: PromptRepresentable {
770 | self.sessionSource = .context
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/AgentSession.swift:392:37: error: 'Prompt' is only available in watchOS 27.0 or newer
49 | /// .cancel → match turnID to active token or record as pending cancel
50 | /// ```
51 | public final class AgentSession: Sendable {
| `- note: add '@available' attribute to enclosing class
52 |
53 | private let transport: any AgentTransport
:
385 | /// - instructions: System instructions for the language model.
386 | /// - step: The processing step pipeline.
387 | public func run<S: Step & Sendable>(
| `- note: add '@available' attribute to enclosing instance method
388 | tools: [any Tool] = [],
389 | configuration: ToolRuntimeConfiguration = .default,
390 | @InstructionsBuilder instructions: @Sendable () -> Instructions,
391 | @StepBuilder step: @Sendable () -> S
392 | ) async throws where S.Input == Prompt, S.Output == String {
| `- error: 'Prompt' is only available in watchOS 27.0 or newer
393 | var config = configuration
394 | config.register(tools)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/AgentSession.swift:390:10: error: 'InstructionsBuilder' is only available in watchOS 27.0 or newer
49 | /// .cancel → match turnID to active token or record as pending cancel
50 | /// ```
51 | public final class AgentSession: Sendable {
| `- note: add '@available' attribute to enclosing class
52 |
53 | private let transport: any AgentTransport
:
385 | /// - instructions: System instructions for the language model.
386 | /// - step: The processing step pipeline.
387 | public func run<S: Step & Sendable>(
| `- note: add '@available' attribute to enclosing instance method
388 | tools: [any Tool] = [],
389 | configuration: ToolRuntimeConfiguration = .default,
390 | @InstructionsBuilder instructions: @Sendable () -> Instructions,
| `- error: 'InstructionsBuilder' is only available in watchOS 27.0 or newer
391 | @StepBuilder step: @Sendable () -> S
392 | ) async throws where S.Input == Prompt, S.Output == String {
SwiftCompile normal arm64 (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftDriverJobDiscovery normal arm64 Compiling Deque+Extras.swift, Deque+Hashable.swift, Deque+Testing.swift (in target 'DequeModule' from project 'swift-collections')
SwiftCompile normal arm64 Compiling\ Agent.swift,\ AgentError.swift,\ AgentResponse.swift,\ AnyStep.swift,\ CheckpointManager.swift,\ Context.swift,\ CompactionStrategies.swift,\ CompactionStrategy.swift,\ ContextConfiguration.swift,\ ContextManager.swift,\ ContextUsage.swift,\ Contextable.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Agent.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AgentError.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AgentResponse.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AnyStep.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Checkpoint/CheckpointManager.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategy.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextConfiguration.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextManager.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextUsage.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/Contextable.swift (in target 'SwiftAgent' from project 'SwiftAgent')
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Agent.swift:36:51: error: 'Prompt' is only available in watchOS 27.0 or newer
33 | /// }
34 | /// ```
35 | public protocol Agent {
| `- note: add '@available' attribute to enclosing protocol
36 | associatedtype Body: Step where Body.Input == Prompt, Body.Output == String
| | `- error: 'Prompt' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing associated type
37 |
38 | /// The tools available to this agent.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Agent.swift:43:23: error: 'Instructions' is only available in watchOS 27.0 or newer
33 | /// }
34 | /// ```
35 | public protocol Agent {
| `- note: add '@available' attribute to enclosing protocol
36 | associatedtype Body: Step where Body.Input == Prompt, Body.Output == String
37 |
:
41 | /// The instructions that guide the agent's behavior.
42 | @InstructionsBuilder
43 | var instructions: Instructions { get }
| | `- error: 'Instructions' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing property
44 |
45 | /// The processing pipeline for this agent.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Agent.swift:42:6: error: 'InstructionsBuilder' is only available in watchOS 27.0 or newer
33 | /// }
34 | /// ```
35 | public protocol Agent {
| `- note: add '@available' attribute to enclosing protocol
36 | associatedtype Body: Step where Body.Input == Prompt, Body.Output == String
37 |
:
40 |
41 | /// The instructions that guide the agent's behavior.
42 | @InstructionsBuilder
| `- error: 'InstructionsBuilder' is only available in watchOS 27.0 or newer
43 | var instructions: Instructions { get }
44 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AgentResponse.swift:32:28: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
24 | /// }
25 | /// ```
26 | public struct AgentResponse<Content: Generable & Sendable>: Sendable {
| `- note: add '@available' attribute to enclosing generic struct
27 |
28 | /// The generated content.
:
30 |
31 | /// The raw generated content.
32 | public let rawContent: GeneratedContent
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
33 |
34 | /// Transcript entries from this response.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AgentResponse.swift:35:36: error: 'Transcript' is only available in watchOS 27.0 or newer
24 | /// }
25 | /// ```
26 | public struct AgentResponse<Content: Generable & Sendable>: Sendable {
| `- note: add '@available' attribute to enclosing generic struct
27 |
28 | /// The generated content.
:
33 |
34 | /// Transcript entries from this response.
35 | public let transcriptEntries: [Transcript.Entry]
| `- error: 'Transcript' is only available in watchOS 27.0 or newer
36 |
37 | /// Tool calls made during generation.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AgentResponse.swift:46:21: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
24 | /// }
25 | /// ```
26 | public struct AgentResponse<Content: Generable & Sendable>: Sendable {
| `- note: add '@available' attribute to enclosing generic struct
27 |
28 | /// The generated content.
:
42 |
43 | /// Creates an agent response.
44 | public init(
| `- note: add '@available' attribute to enclosing initializer
45 | content: Content,
46 | rawContent: GeneratedContent,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
47 | transcriptEntries: [Transcript.Entry],
48 | toolCalls: [ToolCallRecord],
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AgentResponse.swift:47:29: error: 'Transcript' is only available in watchOS 27.0 or newer
24 | /// }
25 | /// ```
26 | public struct AgentResponse<Content: Generable & Sendable>: Sendable {
| `- note: add '@available' attribute to enclosing generic struct
27 |
28 | /// The generated content.
:
42 |
43 | /// Creates an agent response.
44 | public init(
| `- note: add '@available' attribute to enclosing initializer
45 | content: Content,
46 | rawContent: GeneratedContent,
47 | transcriptEntries: [Transcript.Entry],
| `- error: 'Transcript' is only available in watchOS 27.0 or newer
48 | toolCalls: [ToolCallRecord],
49 | duration: Duration
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AgentResponse.swift:26:38: error: 'Generable' is only available in watchOS 27.0 or newer
24 | /// }
25 | /// ```
26 | public struct AgentResponse<Content: Generable & Sendable>: Sendable {
| | `- error: 'Generable' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing generic struct
27 |
28 | /// The generated content.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AgentResponse.swift:116:27: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
105 |
106 | /// A record of a tool call made during agent execution.
107 | public struct ToolCallRecord: Sendable, Identifiable {
| `- note: add '@available' attribute to enclosing struct
108 |
109 | /// Unique identifier for this tool call.
:
114 |
115 | /// The arguments passed to the tool.
116 | public let arguments: GeneratedContent
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
117 |
118 | /// The output from the tool.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AgentResponse.swift:134:20: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
105 |
106 | /// A record of a tool call made during agent execution.
107 | public struct ToolCallRecord: Sendable, Identifiable {
| `- note: add '@available' attribute to enclosing struct
108 |
109 | /// Unique identifier for this tool call.
:
129 |
130 | /// Creates a tool call record.
131 | public init(
| `- note: add '@available' attribute to enclosing initializer
132 | id: String = UUID().uuidString,
133 | toolName: String,
134 | arguments: GeneratedContent,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
135 | output: String,
136 | success: Bool = true,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AgentResponse.swift:191:32: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
183 | /// may not conform to `Sendable` in the protocol definition, but in practice
184 | /// streaming responses are consumed on the same task.
185 | public struct Snapshot: @unchecked Sendable {
| `- note: add '@available' attribute to enclosing struct
186 |
187 | /// The partial content generated so far.
:
189 |
190 | /// The raw generated content.
191 | public var rawContent: GeneratedContent
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
192 |
193 | /// Tool calls made so far.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AgentResponse.swift:202:25: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
183 | /// may not conform to `Sendable` in the protocol definition, but in practice
184 | /// streaming responses are consumed on the same task.
185 | public struct Snapshot: @unchecked Sendable {
| `- note: add '@available' attribute to enclosing struct
186 |
187 | /// The partial content generated so far.
:
198 |
199 | /// Creates a snapshot.
200 | public init(
| `- note: add '@available' attribute to enclosing initializer
201 | content: Content.PartiallyGenerated,
202 | rawContent: GeneratedContent,
| `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
203 | toolCalls: [ToolCallRecord] = [],
204 | isComplete: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AgentResponse.swift:178:44: error: 'Generable' is only available in watchOS 27.0 or newer
176 | /// let finalResponse = try await stream.collect()
177 | /// ```
178 | public struct AgentResponseStream<Content: Generable & Sendable>: AsyncSequence, Sendable {
| | `- error: 'Generable' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing generic struct
179 |
180 | /// A snapshot of the response at a point in time.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AgentResponse.swift:95:9: error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
89 | // MARK: - String Response Convenience
90 |
91 | extension AgentResponse where Content == String {
| `- note: add '@available' attribute to enclosing extension
92 |
93 | /// The content as a trimmed string.
94 | public var trimmedContent: String {
| `- note: add '@available' attribute to enclosing property
95 | content.trimmingCharacters(in: .whitespacesAndNewlines)
| |- error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
96 | }
97 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AgentResponse.swift:320:34: error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
314 | // MARK: - String Response Stream Convenience
315 |
316 | extension AgentResponseStream where Content == String {
| `- note: add '@available' attribute to enclosing extension
317 |
318 | /// Collects the stream as a single string.
319 | public func collectString() async throws -> String {
| `- note: add '@available' attribute to enclosing instance method
320 | let response = try await collect()
| |- error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
321 | return response.content
322 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AgentResponse.swift:320:13: error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
314 | // MARK: - String Response Stream Convenience
315 |
316 | extension AgentResponseStream where Content == String {
| `- note: add '@available' attribute to enclosing extension
317 |
318 | /// Collects the stream as a single string.
319 | public func collectString() async throws -> String {
| `- note: add '@available' attribute to enclosing instance method
320 | let response = try await collect()
| |- error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
321 | return response.content
322 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AgentResponse.swift:321:25: error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
314 | // MARK: - String Response Stream Convenience
315 |
316 | extension AgentResponseStream where Content == String {
| `- note: add '@available' attribute to enclosing extension
317 |
318 | /// Collects the stream as a single string.
319 | public func collectString() async throws -> String {
| `- note: add '@available' attribute to enclosing instance method
320 | let response = try await collect()
321 | return response.content
| |- error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
322 | }
323 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift:51:21: error: 'Transcript' is only available in watchOS 27.0 or newer
25 | /// )
26 | /// ```
27 | public struct TruncationCompactionStrategy: CompactionStrategy {
| `- note: add '@available' attribute to enclosing struct
28 |
29 | public let name = "truncation"
:
48 | // MARK: - CompactionStrategy
49 |
50 | public func compact(
| `- note: add '@available' attribute to enclosing instance method
51 | transcript: Transcript,
| `- error: 'Transcript' is only available in watchOS 27.0 or newer
52 | targetTokens: Int,
53 | context: CompactionContext
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift:108:49: error: 'Transcript' is only available in watchOS 27.0 or newer
25 | /// )
26 | /// ```
27 | public struct TruncationCompactionStrategy: CompactionStrategy {
| `- note: add '@available' attribute to enclosing struct
28 |
29 | public let name = "truncation"
:
106 | }
107 |
108 | public func estimateSavings(for transcript: Transcript) async -> Int {
| | `- error: 'Transcript' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing instance method
109 | let entries = Array(transcript)
110 | let removable = max(0, entries.count - preserveRecentCount - 1)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift:168:21: error: 'Transcript' is only available in watchOS 27.0 or newer
136 | /// )
137 | /// ```
138 | public struct PriorityCompactionStrategy: CompactionStrategy {
| `- note: add '@available' attribute to enclosing struct
139 |
140 | public let name = "priority"
:
165 | // MARK: - CompactionStrategy
166 |
167 | public func compact(
| `- note: add '@available' attribute to enclosing instance method
168 | transcript: Transcript,
| `- error: 'Transcript' is only available in watchOS 27.0 or newer
169 | targetTokens: Int,
170 | context: CompactionContext
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift:212:16: error: 'Transcript' is only available in watchOS 27.0 or newer
136 | /// )
137 | /// ```
138 | public struct PriorityCompactionStrategy: CompactionStrategy {
| `- note: add '@available' attribute to enclosing struct
139 |
140 | public let name = "priority"
:
209 | }
210 |
211 | private func calculatePriority(
| `- note: add '@available' attribute to enclosing instance method
212 | entry: Transcript.Entry,
| `- error: 'Transcript' is only available in watchOS 27.0 or newer
213 | index: Int,
214 | totalCount: Int,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift:282:21: error: 'Transcript' is only available in watchOS 27.0 or newer
263 | /// let strategy = SlidingWindowCompactionStrategy(windowSize: 20)
264 | /// ```
265 | public struct SlidingWindowCompactionStrategy: CompactionStrategy {
| `- note: add '@available' attribute to enclosing struct
266 |
267 | public let name = "sliding-window"
:
279 | // MARK: - CompactionStrategy
280 |
281 | public func compact(
| `- note: add '@available' attribute to enclosing instance method
282 | transcript: Transcript,
| `- error: 'Transcript' is only available in watchOS 27.0 or newer
283 | targetTokens: Int,
284 | context: CompactionContext
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift:319:49: error: 'Transcript' is only available in watchOS 27.0 or newer
263 | /// let strategy = SlidingWindowCompactionStrategy(windowSize: 20)
264 | /// ```
265 | public struct SlidingWindowCompactionStrategy: CompactionStrategy {
| `- note: add '@available' attribute to enclosing struct
266 |
267 | public let name = "sliding-window"
:
317 | }
318 |
319 | public func estimateSavings(for transcript: Transcript) async -> Int {
| | `- error: 'Transcript' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing instance method
320 | let entries = Array(transcript)
321 | let contentCount = entries.filter { entry in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift:367:21: error: 'Transcript' is only available in watchOS 27.0 or newer
345 | /// ])
346 | /// ```
347 | public struct HybridCompactionStrategy: CompactionStrategy {
| `- note: add '@available' attribute to enclosing struct
348 |
349 | public let name = "hybrid"
:
364 | // MARK: - CompactionStrategy
365 |
366 | public func compact(
| `- note: add '@available' attribute to enclosing instance method
367 | transcript: Transcript,
| `- error: 'Transcript' is only available in watchOS 27.0 or newer
368 | targetTokens: Int,
369 | context: CompactionContext
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift:426:49: error: 'Transcript' is only available in watchOS 27.0 or newer
345 | /// ])
346 | /// ```
347 | public struct HybridCompactionStrategy: CompactionStrategy {
| `- note: add '@available' attribute to enclosing struct
348 |
349 | public let name = "hybrid"
:
424 | }
425 |
426 | public func estimateSavings(for transcript: Transcript) async -> Int {
| | `- error: 'Transcript' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing instance method
427 | var totalSavings = 0
428 | for strategy in strategies {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift:435:50: error: 'Transcript' is only available in watchOS 27.0 or newer
345 | /// ])
346 | /// ```
347 | public struct HybridCompactionStrategy: CompactionStrategy {
| `- note: add '@available' attribute to enclosing struct
348 |
349 | public let name = "hybrid"
:
433 |
434 | /// Creates a Transcript from entries (helper for iteration).
435 | private func createTranscript(from entries: [Transcript.Entry]) -> Transcript {
| | `- error: 'Transcript' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing instance method
436 | Transcript(entries: entries)
437 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift:435:72: error: 'Transcript' is only available in watchOS 27.0 or newer
345 | /// ])
346 | /// ```
347 | public struct HybridCompactionStrategy: CompactionStrategy {
| `- note: add '@available' attribute to enclosing struct
348 |
349 | public let name = "hybrid"
:
433 |
434 | /// Creates a Transcript from entries (helper for iteration).
435 | private func createTranscript(from entries: [Transcript.Entry]) -> Transcript {
| | `- error: 'Transcript' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing instance method
436 | Transcript(entries: entries)
437 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift:453:21: error: 'Transcript' is only available in watchOS 27.0 or newer
443 | ///
444 | /// Useful for testing or when compaction should be disabled.
445 | public struct NoOpCompactionStrategy: CompactionStrategy {
| `- note: add '@available' attribute to enclosing struct
446 |
447 | public let name = "noop"
:
450 | public init() {}
451 |
452 | public func compact(
| `- note: add '@available' attribute to enclosing instance method
453 | transcript: Transcript,
| `- error: 'Transcript' is only available in watchOS 27.0 or newer
454 | targetTokens: Int,
455 | context: CompactionContext
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift:460:49: error: 'Transcript' is only available in watchOS 27.0 or newer
443 | ///
444 | /// Useful for testing or when compaction should be disabled.
445 | public struct NoOpCompactionStrategy: CompactionStrategy {
| `- note: add '@available' attribute to enclosing struct
446 |
447 | public let name = "noop"
:
458 | }
459 |
460 | public func estimateSavings(for transcript: Transcript) async -> Int {
| | `- error: 'Transcript' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing instance method
461 | 0
462 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift:55:23: error: conformance of 'Transcript' to 'Sequence' is only available in watchOS 27.0 or newer
25 | /// )
26 | /// ```
27 | public struct TruncationCompactionStrategy: CompactionStrategy {
| `- note: add '@available' attribute to enclosing struct
28 |
29 | public let name = "truncation"
:
48 | // MARK: - CompactionStrategy
49 |
50 | public func compact(
| `- note: add '@available' attribute to enclosing instance method
51 | transcript: Transcript,
52 | targetTokens: Int,
53 | context: CompactionContext
54 | ) async throws -> CompactedTranscript {
55 | let entries = Array(transcript)
| |- error: conformance of 'Transcript' to 'Sequence' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
56 | guard entries.count > preserveRecentCount else {
57 | return .unchanged(transcript)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift:60:25: error: 'Transcript' is only available in watchOS 27.0 or newer
25 | /// )
26 | /// ```
27 | public struct TruncationCompactionStrategy: CompactionStrategy {
| `- note: add '@available' attribute to enclosing struct
28 |
29 | public let name = "truncation"
:
48 | // MARK: - CompactionStrategy
49 |
50 | public func compact(
| `- note: add '@available' attribute to enclosing instance method
51 | transcript: Transcript,
52 | targetTokens: Int,
:
58 | }
59 |
60 | var preserved: [Transcript.Entry] = []
| |- error: 'Transcript' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
61 | var removed = 0
62 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift:109:23: error: conformance of 'Transcript' to 'Sequence' is only available in watchOS 27.0 or newer
25 | /// )
26 | /// ```
27 | public struct TruncationCompactionStrategy: CompactionStrategy {
| `- note: add '@available' attribute to enclosing struct
28 |
29 | public let name = "truncation"
:
106 | }
107 |
108 | public func estimateSavings(for transcript: Transcript) async -> Int {
| `- note: add '@available' attribute to enclosing instance method
109 | let entries = Array(transcript)
| |- error: conformance of 'Transcript' to 'Sequence' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
110 | let removable = max(0, entries.count - preserveRecentCount - 1)
111 | return removable
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift:172:23: error: conformance of 'Transcript' to 'Sequence' is only available in watchOS 27.0 or newer
136 | /// )
137 | /// ```
138 | public struct PriorityCompactionStrategy: CompactionStrategy {
| `- note: add '@available' attribute to enclosing struct
139 |
140 | public let name = "priority"
:
165 | // MARK: - CompactionStrategy
166 |
167 | public func compact(
| `- note: add '@available' attribute to enclosing instance method
168 | transcript: Transcript,
169 | targetTokens: Int,
170 | context: CompactionContext
171 | ) async throws -> CompactedTranscript {
172 | let entries = Array(transcript)
| |- error: conformance of 'Transcript' to 'Sequence' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
173 | guard entries.count > 2 else {
174 | return .unchanged(transcript)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift:178:49: error: 'Transcript' is only available in watchOS 27.0 or newer
136 | /// )
137 | /// ```
138 | public struct PriorityCompactionStrategy: CompactionStrategy {
| `- note: add '@available' attribute to enclosing struct
139 |
140 | public let name = "priority"
:
165 | // MARK: - CompactionStrategy
166 |
167 | public func compact(
| `- note: add '@available' attribute to enclosing instance method
168 | transcript: Transcript,
169 | targetTokens: Int,
:
176 |
177 | // Calculate priority for each entry
178 | var scoredEntries: [(index: Int, entry: Transcript.Entry, priority: Double)] = []
| |- error: 'Transcript' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
179 |
180 | for (index, entry) in entries.enumerated() {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift:286:23: error: conformance of 'Transcript' to 'Sequence' is only available in watchOS 27.0 or newer
263 | /// let strategy = SlidingWindowCompactionStrategy(windowSize: 20)
264 | /// ```
265 | public struct SlidingWindowCompactionStrategy: CompactionStrategy {
| `- note: add '@available' attribute to enclosing struct
266 |
267 | public let name = "sliding-window"
:
279 | // MARK: - CompactionStrategy
280 |
281 | public func compact(
| `- note: add '@available' attribute to enclosing instance method
282 | transcript: Transcript,
283 | targetTokens: Int,
284 | context: CompactionContext
285 | ) async throws -> CompactedTranscript {
286 | let entries = Array(transcript)
| |- error: conformance of 'Transcript' to 'Sequence' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
287 |
288 | // Separate instructions from content
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift:289:27: error: 'Transcript' is only available in watchOS 27.0 or newer
263 | /// let strategy = SlidingWindowCompactionStrategy(windowSize: 20)
264 | /// ```
265 | public struct SlidingWindowCompactionStrategy: CompactionStrategy {
| `- note: add '@available' attribute to enclosing struct
266 |
267 | public let name = "sliding-window"
:
279 | // MARK: - CompactionStrategy
280 |
281 | public func compact(
| `- note: add '@available' attribute to enclosing instance method
282 | transcript: Transcript,
283 | targetTokens: Int,
:
287 |
288 | // Separate instructions from content
289 | var instructions: Transcript.Entry?
| |- error: 'Transcript' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
290 | var content: [Transcript.Entry] = []
291 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift:290:23: error: 'Transcript' is only available in watchOS 27.0 or newer
263 | /// let strategy = SlidingWindowCompactionStrategy(windowSize: 20)
264 | /// ```
265 | public struct SlidingWindowCompactionStrategy: CompactionStrategy {
| `- note: add '@available' attribute to enclosing struct
266 |
267 | public let name = "sliding-window"
:
279 | // MARK: - CompactionStrategy
280 |
281 | public func compact(
| `- note: add '@available' attribute to enclosing instance method
282 | transcript: Transcript,
283 | targetTokens: Int,
:
288 | // Separate instructions from content
289 | var instructions: Transcript.Entry?
290 | var content: [Transcript.Entry] = []
| |- error: 'Transcript' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
291 |
292 | for entry in entries {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift:302:22: error: 'Transcript' is only available in watchOS 27.0 or newer
263 | /// let strategy = SlidingWindowCompactionStrategy(windowSize: 20)
264 | /// ```
265 | public struct SlidingWindowCompactionStrategy: CompactionStrategy {
| `- note: add '@available' attribute to enclosing struct
266 |
267 | public let name = "sliding-window"
:
279 | // MARK: - CompactionStrategy
280 |
281 | public func compact(
| `- note: add '@available' attribute to enclosing instance method
282 | transcript: Transcript,
283 | targetTokens: Int,
:
300 | // Keep only the window
301 | let windowedContent = Array(content.suffix(windowSize))
302 | var result: [Transcript.Entry] = []
| |- error: 'Transcript' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
303 |
304 | if let instructions = instructions {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift:320:23: error: conformance of 'Transcript' to 'Sequence' is only available in watchOS 27.0 or newer
263 | /// let strategy = SlidingWindowCompactionStrategy(windowSize: 20)
264 | /// ```
265 | public struct SlidingWindowCompactionStrategy: CompactionStrategy {
| `- note: add '@available' attribute to enclosing struct
266 |
267 | public let name = "sliding-window"
:
317 | }
318 |
319 | public func estimateSavings(for transcript: Transcript) async -> Int {
| `- note: add '@available' attribute to enclosing instance method
320 | let entries = Array(transcript)
| |- error: conformance of 'Transcript' to 'Sequence' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
321 | let contentCount = entries.filter { entry in
322 | if case .instructions = entry { return false }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift:371:30: error: conformance of 'Transcript' to 'Sequence' is only available in watchOS 27.0 or newer
345 | /// ])
346 | /// ```
347 | public struct HybridCompactionStrategy: CompactionStrategy {
| `- note: add '@available' attribute to enclosing struct
348 |
349 | public let name = "hybrid"
:
364 | // MARK: - CompactionStrategy
365 |
366 | public func compact(
| `- note: add '@available' attribute to enclosing instance method
367 | transcript: Transcript,
368 | targetTokens: Int,
369 | context: CompactionContext
370 | ) async throws -> CompactedTranscript {
371 | var currentEntries = Array(transcript)
| |- error: conformance of 'Transcript' to 'Sequence' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
372 | var totalRemoved = 0
373 | var totalSummarized = 0
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift:436:9: error: 'Transcript' is only available in watchOS 27.0 or newer
345 | /// ])
346 | /// ```
347 | public struct HybridCompactionStrategy: CompactionStrategy {
| `- note: add '@available' attribute to enclosing struct
348 |
349 | public let name = "hybrid"
:
433 |
434 | /// Creates a Transcript from entries (helper for iteration).
435 | private func createTranscript(from entries: [Transcript.Entry]) -> Transcript {
| `- note: add '@available' attribute to enclosing instance method
436 | Transcript(entries: entries)
| |- error: 'Transcript' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
437 | }
438 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategy.swift:51:21: error: 'Transcript' is only available in watchOS 27.0 or newer
33 | /// }
34 | /// ```
35 | public protocol CompactionStrategy: Sendable {
| `- note: add '@available' attribute to enclosing protocol
36 |
37 | /// A unique identifier for this strategy.
:
48 | /// - context: Additional context for compaction decisions.
49 | /// - Returns: A compacted transcript with metadata.
50 | func compact(
| `- note: add '@available' attribute to enclosing instance method
51 | transcript: Transcript,
| `- error: 'Transcript' is only available in watchOS 27.0 or newer
52 | targetTokens: Int,
53 | context: CompactionContext
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategy.swift:63:42: error: 'Transcript' is only available in watchOS 27.0 or newer
33 | /// }
34 | /// ```
35 | public protocol CompactionStrategy: Sendable {
| `- note: add '@available' attribute to enclosing protocol
36 |
37 | /// A unique identifier for this strategy.
:
61 | /// - Parameter transcript: The transcript to analyze.
62 | /// - Returns: Estimated tokens that would be removed.
63 | func estimateSavings(for transcript: Transcript) async -> Int
| | `- error: 'Transcript' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing instance method
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategy.swift:70:49: error: 'Transcript' is only available in watchOS 27.0 or newer
66 | // MARK: - Default Implementation
67 |
68 | extension CompactionStrategy {
| `- note: add '@available' attribute to enclosing extension
69 |
70 | public func estimateSavings(for transcript: Transcript) async -> Int {
| | `- error: 'Transcript' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing instance method
71 | // Default: estimate 30% savings
72 | return Int(Double(transcript.count) * 0.3)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategy.swift:125:26: error: 'Transcript' is only available in watchOS 27.0 or newer
120 | /// Contains the compacted transcript along with metadata about
121 | /// what was removed or modified.
122 | public struct CompactedTranscript: Sendable {
| `- note: add '@available' attribute to enclosing struct
123 |
124 | /// The compacted transcript entries.
125 | public let entries: [Transcript.Entry]
| `- error: 'Transcript' is only available in watchOS 27.0 or newer
126 |
127 | /// Number of entries that were removed.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategy.swift:139:19: error: 'Transcript' is only available in watchOS 27.0 or newer
120 | /// Contains the compacted transcript along with metadata about
121 | /// what was removed or modified.
122 | public struct CompactedTranscript: Sendable {
| `- note: add '@available' attribute to enclosing struct
123 |
124 | /// The compacted transcript entries.
:
136 | // MARK: - Initialization
137 |
138 | public init(
| `- note: add '@available' attribute to enclosing initializer
139 | entries: [Transcript.Entry],
| `- error: 'Transcript' is only available in watchOS 27.0 or newer
140 | removedCount: Int = 0,
141 | summarizedCount: Int = 0,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategy.swift:151:48: error: 'Transcript' is only available in watchOS 27.0 or newer
120 | /// Contains the compacted transcript along with metadata about
121 | /// what was removed or modified.
122 | public struct CompactedTranscript: Sendable {
| `- note: add '@available' attribute to enclosing struct
123 |
124 | /// The compacted transcript entries.
:
149 |
150 | /// Creates a result indicating no compaction was performed.
151 | public static func unchanged(_ transcript: Transcript) -> CompactedTranscript {
| | `- error: 'Transcript' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing static method
152 | CompactedTranscript(
153 | entries: Array(transcript),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategy.swift:72:38: error: conformance of 'Transcript' to 'Collection' is only available in watchOS 27.0 or newer
66 | // MARK: - Default Implementation
67 |
68 | extension CompactionStrategy {
| `- note: add '@available' attribute to enclosing extension
69 |
70 | public func estimateSavings(for transcript: Transcript) async -> Int {
| `- note: add '@available' attribute to enclosing instance method
71 | // Default: estimate 30% savings
72 | return Int(Double(transcript.count) * 0.3)
| |- error: conformance of 'Transcript' to 'Collection' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
73 | }
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategy.swift:153:22: error: conformance of 'Transcript' to 'Sequence' is only available in watchOS 27.0 or newer
120 | /// Contains the compacted transcript along with metadata about
121 | /// what was removed or modified.
122 | public struct CompactedTranscript: Sendable {
| `- note: add '@available' attribute to enclosing struct
123 |
124 | /// The compacted transcript entries.
:
149 |
150 | /// Creates a result indicating no compaction was performed.
151 | public static func unchanged(_ transcript: Transcript) -> CompactedTranscript {
| `- note: add '@available' attribute to enclosing static method
152 | CompactedTranscript(
153 | entries: Array(transcript),
| |- error: conformance of 'Transcript' to 'Sequence' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
154 | removedCount: 0,
155 | summarizedCount: 0,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextManager.swift:120:48: error: 'Transcript' is only available in watchOS 27.0 or newer
33 | /// )
34 | /// ```
35 | public actor ContextManager {
| `- note: add '@available' attribute to enclosing actor
36 |
37 | // MARK: - Configuration
:
118 | /// - Parameter transcript: The transcript to analyze.
119 | /// - Returns: Current usage statistics.
120 | public func calculateUsage(for transcript: Transcript) -> ContextUsage {
| | `- error: 'Transcript' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing instance method
121 | let estimatedTokens = estimateTokens(for: transcript)
122 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextManager.swift:153:49: error: 'Transcript' is only available in watchOS 27.0 or newer
33 | /// )
34 | /// ```
35 | public actor ContextManager {
| `- note: add '@available' attribute to enclosing actor
36 |
37 | // MARK: - Configuration
:
151 | /// Uses character-based estimation with adjustments for
152 | /// different entry types.
153 | private func estimateTokens(for transcript: Transcript) -> Int {
| | `- error: 'Transcript' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing instance method
154 | var totalChars = 0
155 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextManager.swift:164:51: error: 'Transcript' is only available in watchOS 27.0 or newer
33 | /// )
34 | /// ```
35 | public actor ContextManager {
| `- note: add '@available' attribute to enclosing actor
36 |
37 | // MARK: - Configuration
:
162 |
163 | /// Estimates character count for a single entry.
164 | private func estimateEntryCharacters(_ entry: Transcript.Entry) -> Int {
| | `- error: 'Transcript' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing instance method
165 | switch entry {
166 | case .instructions(let instructions):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextManager.swift:219:49: error: 'Transcript' is only available in watchOS 27.0 or newer
33 | /// )
34 | /// ```
35 | public actor ContextManager {
| `- note: add '@available' attribute to enclosing actor
36 |
37 | // MARK: - Configuration
:
217 | /// - Parameter transcript: The transcript to check.
218 | /// - Returns: `true` if usage exceeds the compaction threshold.
219 | public func needsCompaction(for transcript: Transcript) -> Bool {
| | `- error: 'Transcript' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing instance method
220 | let usage = calculateUsage(for: transcript)
221 | return usage.usageRatio >= compactionThreshold
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextManager.swift:228:50: error: 'Transcript' is only available in watchOS 27.0 or newer
33 | /// )
34 | /// ```
35 | public actor ContextManager {
| `- note: add '@available' attribute to enclosing actor
36 |
37 | // MARK: - Configuration
:
226 | /// - Parameter transcript: The transcript to check.
227 | /// - Returns: `true` if usage exceeds the warning threshold but not compaction threshold.
228 | public func isAtWarningLevel(for transcript: Transcript) -> Bool {
| | `- error: 'Transcript' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing instance method
229 | let usage = calculateUsage(for: transcript)
230 | return usage.usageRatio >= warningThreshold && usage.usageRatio < compactionThreshold
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextManager.swift:245:21: error: 'Transcript' is only available in watchOS 27.0 or newer
33 | /// )
34 | /// ```
35 | public actor ContextManager {
| `- note: add '@available' attribute to enclosing actor
36 |
37 | // MARK: - Configuration
:
242 | /// - sessionID: The session ID for context.
243 | /// - Returns: Tuple of (compacted entries, compaction result).
244 | public func compactIfNeeded(
| `- note: add '@available' attribute to enclosing instance method
245 | transcript: Transcript,
| `- error: 'Transcript' is only available in watchOS 27.0 or newer
246 | sessionID: String? = nil
247 | ) async throws -> ([Transcript.Entry], CompactionResult) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextManager.swift:247:25: error: 'Transcript' is only available in watchOS 27.0 or newer
33 | /// )
34 | /// ```
35 | public actor ContextManager {
| `- note: add '@available' attribute to enclosing actor
36 |
37 | // MARK: - Configuration
:
242 | /// - sessionID: The session ID for context.
243 | /// - Returns: Tuple of (compacted entries, compaction result).
244 | public func compactIfNeeded(
| `- note: add '@available' attribute to enclosing instance method
245 | transcript: Transcript,
246 | sessionID: String? = nil
247 | ) async throws -> ([Transcript.Entry], CompactionResult) {
| `- error: 'Transcript' is only available in watchOS 27.0 or newer
248 | let usage = calculateUsage(for: transcript)
249 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextManager.swift:301:55: error: 'Transcript' is only available in watchOS 27.0 or newer
33 | /// )
34 | /// ```
35 | public actor ContextManager {
| `- note: add '@available' attribute to enclosing actor
36 |
37 | // MARK: - Configuration
:
299 |
300 | /// Estimates tokens for an array of entries.
301 | private func estimateTokensForEntries(_ entries: [Transcript.Entry]) -> Int {
| | `- error: 'Transcript' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing instance method
302 | var totalChars = 0
303 | for entry in entries {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextManager.swift:140:36: error: conformance of 'Transcript' to 'Collection' is only available in watchOS 27.0 or newer
33 | /// )
34 | /// ```
35 | public actor ContextManager {
| `- note: add '@available' attribute to enclosing actor
36 |
37 | // MARK: - Configuration
:
118 | /// - Parameter transcript: The transcript to analyze.
119 | /// - Returns: Current usage statistics.
120 | public func calculateUsage(for transcript: Transcript) -> ContextUsage {
| `- note: add '@available' attribute to enclosing instance method
121 | let estimatedTokens = estimateTokens(for: transcript)
122 |
:
138 | estimatedTokens: estimatedTokens,
139 | contextWindowSize: contextWindowSize - reservedResponseTokens,
140 | entryCount: transcript.count,
| |- error: conformance of 'Transcript' to 'Collection' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
141 | toolCallCount: toolCallCount,
142 | responseCount: responseCount
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextManager.swift:126:9: error: for-in loop requires 'Transcript' to conform to 'Sequence', which is only available in watchOS 27.0 or newer
33 | /// )
34 | /// ```
35 | public actor ContextManager {
| `- note: add '@available' attribute to enclosing actor
36 |
37 | // MARK: - Configuration
:
118 | /// - Parameter transcript: The transcript to analyze.
119 | /// - Returns: Current usage statistics.
120 | public func calculateUsage(for transcript: Transcript) -> ContextUsage {
| `- note: add '@available' attribute to enclosing instance method
121 | let estimatedTokens = estimateTokens(for: transcript)
122 |
:
124 | var responseCount = 0
125 |
126 | for entry in transcript {
| |- error: for-in loop requires 'Transcript' to conform to 'Sequence', which is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
127 | switch entry {
128 | case .toolCalls:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextManager.swift:156:9: error: for-in loop requires 'Transcript' to conform to 'Sequence', which is only available in watchOS 27.0 or newer
33 | /// )
34 | /// ```
35 | public actor ContextManager {
| `- note: add '@available' attribute to enclosing actor
36 |
37 | // MARK: - Configuration
:
151 | /// Uses character-based estimation with adjustments for
152 | /// different entry types.
153 | private func estimateTokens(for transcript: Transcript) -> Int {
| `- note: add '@available' attribute to enclosing instance method
154 | var totalChars = 0
155 |
156 | for entry in transcript {
| |- error: for-in loop requires 'Transcript' to conform to 'Sequence', which is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
157 | totalChars += estimateEntryCharacters(entry)
158 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextManager.swift:178:30: error: conformance of 'Transcript.ToolCalls' to 'Sequence' is only available in watchOS 27.0 or newer
33 | /// )
34 | /// ```
35 | public actor ContextManager {
| `- note: add '@available' attribute to enclosing actor
36 |
37 | // MARK: - Configuration
:
162 |
163 | /// Estimates character count for a single entry.
164 | private func estimateEntryCharacters(_ entry: Transcript.Entry) -> Int {
| `- note: add '@available' attribute to enclosing instance method
165 | switch entry {
166 | case .instructions(let instructions):
:
176 |
177 | case .toolCalls(let toolCalls):
178 | return toolCalls.reduce(0) { total, call in
| |- error: conformance of 'Transcript.ToolCalls' to 'Sequence' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
179 | total + call.toolName.count + 100 // Arguments are already counted in toolName + overhead
180 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextManager.swift:252:21: error: conformance of 'Transcript' to 'Sequence' is only available in watchOS 27.0 or newer
33 | /// )
34 | /// ```
35 | public actor ContextManager {
| `- note: add '@available' attribute to enclosing actor
36 |
37 | // MARK: - Configuration
:
242 | /// - sessionID: The session ID for context.
243 | /// - Returns: Tuple of (compacted entries, compaction result).
244 | public func compactIfNeeded(
| `- note: add '@available' attribute to enclosing instance method
245 | transcript: Transcript,
246 | sessionID: String? = nil
:
250 | // Check if compaction is needed
251 | guard usage.usageRatio >= compactionThreshold else {
252 | return (Array(transcript), CompactionResult(
| |- error: conformance of 'Transcript' to 'Sequence' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
253 | originalTokens: usage.estimatedTokens,
254 | compactedTokens: usage.estimatedTokens,
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c -primary-file /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Agent.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AgentError.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AgentResponse.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AnyStep.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Checkpoint/CheckpointManager.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategy.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextConfiguration.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextManager.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextUsage.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/Contextable.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextableMacro.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Conversation.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/DeferredTool.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/ErrorHandling/MapErrorStep.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/ErrorHandling/RetryStep.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/ErrorHandling/Step+ErrorHandling.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/ErrorHandling/StepTimeoutError.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/ErrorHandling/TimedStep.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/ErrorHandling/Try.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Event.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Gate.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Generate.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Guardrail/GuardedStep.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Guardrail/Guardrail.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Guardrail/GuardrailBuilder.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Guardrail/GuardrailConfiguration.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Guardrail/GuardrailContext.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Guardrail/GuardrailRule.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Guardrail/Step+Guardrail.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/AgentSession.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/AgentSessionContext.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/AgentTransport.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/AgentTurnExecutor.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/AgentTurnExecutorError.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/ApprovalBridgeHandler.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/ApprovalHandler.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/EventSink.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/PermissionHandlerContext.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/RunEvent.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/RunRequest.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/RunResult.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/TurnCancellationToken.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Join.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Loop.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Map.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Memory.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Middleware/BasicMiddleware.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Middleware/EventEmittingMiddleware.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Middleware/ToolContextMetadataProvider.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Middleware/ToolMiddleware.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Middleware/ToolPipeline.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Monitor.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Parallel.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Perception.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Pipeline.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Presence.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/PromptTemplates.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Race.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Reduce.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Runtime/ToolExecutor.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Runtime/ToolRuntime.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Runtime/ToolRuntimeConfiguration.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Security/PermissionConfiguration.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Security/PermissionHandler.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Security/PermissionMiddleware.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Security/PermissionMode.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Security/PermissionRule.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Security/SandboxContext.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Security/SandboxExecutor.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Security/SandboxMiddleware.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Security/SecurityConfiguration.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Security/ToolAuthorizationDecision.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Security/ToolAuthorizationMetadata.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Session.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/SessionStore.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Step.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/StepModifier.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/SwiftAgent.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/SwiftAgentSpanAttributes.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/SystemInfo.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentAssignee.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentSessionRunner.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentSessionRunnerConfiguration.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentSessionRunnerError.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentTaskCompleted.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentTaskEnvelope.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentTaskEvent.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentTaskPolicy.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentTaskPriority.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentTaskRelation.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentTaskResult.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentTaskRunEvent.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentTaskStarted.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentToolScope.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentWorkflowAccess.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentWorkflowExecutor.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentWorkflowExecutorError.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentWorkflowPlan.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentWorkflowPolicy.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentWorkflowResult.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentWorkflowStatus.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentWorkflowStep.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentWorkflowStepError.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentWorkflowStepResult.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentWorkflowStepRole.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Telemetry/MetricsEmittingMiddleware.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Telemetry/SwiftAgentMetrics.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tool+Step.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/ToolSearchTool.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/ToolsBuilder.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tracing.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/TranscriptExtensions.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Transform.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Transport/HTTPSSETransport.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Transport/StdioTransport.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Transport/WebSocketTransport.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/WaitForInput.swift -supplementary-output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/supplementaryOutputs-12 -target arm64-apple-watchos26.0 -disable-cross-import-overlay-search -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 -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/SwiftAgent-dependencies-2.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -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 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/DerivedSources/arm64 -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/SwiftAgent_const_extract_protocols.json -disable-clang-spi -clang-target arm64-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 -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/Agent.o -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/AgentError.o -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/AgentResponse.o -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/AnyStep.o -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/CheckpointManager.o -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/Context.o -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/CompactionStrategies.o -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/CompactionStrategy.o -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/ContextConfiguration.o -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/ContextManager.o -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/ContextUsage.o -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/Contextable.o -debug-module-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/SwiftAgent.swiftmodule -index-unit-output-path /SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/Agent.o -index-unit-output-path /SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/AgentError.o -index-unit-output-path /SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/AgentResponse.o -index-unit-output-path /SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/AnyStep.o -index-unit-output-path /SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/CheckpointManager.o -index-unit-output-path /SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/Context.o -index-unit-output-path /SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/CompactionStrategies.o -index-unit-output-path /SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/CompactionStrategy.o -index-unit-output-path /SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/ContextConfiguration.o -index-unit-output-path /SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/ContextManager.o -index-unit-output-path /SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/ContextUsage.o -index-unit-output-path /SwiftAgent.build/Debug-watchos/SwiftAgent-t.build/Objects-normal/arm64/Contextable.o -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -index-system-modules
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Agent.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Agent.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AgentError.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AgentError.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AgentResponse.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AgentResponse.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AnyStep.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AnyStep.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Checkpoint/CheckpointManager.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile CheckpointManager.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Context.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile CompactionStrategies.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategy.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile CompactionStrategy.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextConfiguration.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ContextConfiguration.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextManager.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ContextManager.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextUsage.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ContextUsage.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/Contextable.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Contextable.swift
SwiftDriverJobDiscovery normal arm64 Compiling Deque._Storage.swift, RigidDeque+Removals.swift, RigidDeque+Replacements.swift (in target 'DequeModule' from project 'swift-collections')
SwiftCompile normal arm64_32 Compiling\ SecurityConfiguration.swift,\ ToolAuthorizationDecision.swift,\ ToolAuthorizationMetadata.swift,\ Session.swift,\ SessionStore.swift,\ Step.swift,\ StepModifier.swift,\ SwiftAgent.swift,\ SwiftAgentSpanAttributes.swift,\ SystemInfo.swift,\ AgentAssignee.swift,\ AgentSessionRunner.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Security/SecurityConfiguration.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Security/ToolAuthorizationDecision.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Security/ToolAuthorizationMetadata.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Session.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/SessionStore.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Step.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/StepModifier.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/SwiftAgent.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/SwiftAgentSpanAttributes.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/SystemInfo.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentAssignee.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentSessionRunner.swift (in target 'SwiftAgent' from project 'SwiftAgent')
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Session.swift:16:43: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
13 | ///
14 | /// This allows session to be implicitly passed through the async call tree.
15 | public enum SessionContext {
| `- note: add '@available' attribute to enclosing enum
16 | @TaskLocal public static var current: LanguageModelSession?
| | `- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing static property
17 | }
18 |
macro expansion @TaskLocal:1:51: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Session.swift:16:64: note: expanded code originates here
13 | ///
14 | /// This allows session to be implicitly passed through the async call tree.
15 | public enum SessionContext {
| `- note: add '@available' attribute to enclosing enum
16 | @TaskLocal public static var current: LanguageModelSession?
| `- note: in expansion of macro 'TaskLocal' on static property 'current' here
+--- macro expansion @TaskLocal ------------------------------------
|1 | public nonisolated static let $current: TaskLocal<LanguageModelSession?> = TaskLocal(wrappedValue: nil)
| | `- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
+-------------------------------------------------------------------
17 | }
18 |
macro expansion @TaskLocal:1:76: warning: conformance of 'LanguageModelSession' to 'Sendable' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Session.swift:16:64: note: expanded code originates here
13 | ///
14 | /// This allows session to be implicitly passed through the async call tree.
15 | public enum SessionContext {
| `- note: add '@available' attribute to enclosing enum
16 | @TaskLocal public static var current: LanguageModelSession?
| `- note: in expansion of macro 'TaskLocal' on static property 'current' here
+--- macro expansion @TaskLocal ------------------------------------
|1 | public nonisolated static let $current: TaskLocal<LanguageModelSession?> = TaskLocal(wrappedValue: nil)
| | `- warning: conformance of 'LanguageModelSession' to 'Sendable' is only available in watchOS 27.0 or newer
+-------------------------------------------------------------------
17 | }
18 |
macro expansion @TaskLocal:1:76: warning: conformance of 'LanguageModelSession' to 'Sendable' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Session.swift:16:64: note: expanded code originates here
13 | ///
14 | /// This allows session to be implicitly passed through the async call tree.
15 | public enum SessionContext {
| `- note: add '@available' attribute to enclosing enum
16 | @TaskLocal public static var current: LanguageModelSession?
| `- note: in expansion of macro 'TaskLocal' on static property 'current' here
+--- macro expansion @TaskLocal ------------------------------------
|1 | public nonisolated static let $current: TaskLocal<LanguageModelSession?> = TaskLocal(wrappedValue: nil)
| | `- warning: conformance of 'LanguageModelSession' to 'Sendable' is only available in watchOS 27.0 or newer
+-------------------------------------------------------------------
17 | }
18 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Session.swift:58:30: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
53 | /// ```
54 | @propertyWrapper
55 | public struct Session: Sendable {
| `- note: add '@available' attribute to enclosing struct
56 | public init() {}
57 |
58 | public var wrappedValue: LanguageModelSession {
| | `- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing property
59 | guard let session = SessionContext.current else {
60 | fatalError("No LanguageModelSession available in current context. Use withSession { } to provide one.")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Session.swift:86:16: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
83 | /// - operation: The async operation to run with the session in context
84 | /// - Returns: The result of the operation
85 | func withSession<T: Sendable>(
| `- note: add '@available' attribute to enclosing global function
86 | _ session: LanguageModelSession,
| `- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
87 | operation: nonisolated(nonsending) () async throws -> T
88 | ) async rethrows -> T {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Session.swift:100:26: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
93 |
94 | /// A Step wrapper that provides a LanguageModelSession during execution.
95 | public struct SessionStep<S: Step>: Step {
| `- note: add '@available' attribute to enclosing generic struct
96 | public typealias Input = S.Input
97 | public typealias Output = S.Output
98 |
99 | private let step: S
100 | private let session: LanguageModelSession
| `- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
101 |
102 | public init(step: S, session: LanguageModelSession) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Session.swift:102:35: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
93 |
94 | /// A Step wrapper that provides a LanguageModelSession during execution.
95 | public struct SessionStep<S: Step>: Step {
| `- note: add '@available' attribute to enclosing generic struct
96 | public typealias Input = S.Input
97 | public typealias Output = S.Output
:
100 | private let session: LanguageModelSession
101 |
102 | public init(step: S, session: LanguageModelSession) {
| | `- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing initializer
103 | self.step = step
104 | self.session = session
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Session.swift:131:36: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
115 | // MARK: - Step Extension for Session
116 |
117 | extension Step {
| `- note: add '@available' attribute to enclosing extension
118 |
119 | /// Provides a LanguageModelSession for this step.
:
129 | /// - Parameter session: The LanguageModelSession to make available.
130 | /// - Returns: A step that provides the session during execution.
131 | public func session(_ session: LanguageModelSession) -> SessionStep<Self> {
| | `- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing instance method
132 | SessionStep(step: self, session: session)
133 | }
macro expansion @TaskLocal:3:18: warning: conformance of 'LanguageModelSession' to 'Sendable' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Session.swift:16:64: note: expanded code originates here
13 | ///
14 | /// This allows session to be implicitly passed through the async call tree.
15 | public enum SessionContext {
| `- note: add '@available' attribute to enclosing enum
16 | @TaskLocal public static var current: LanguageModelSession?
| | `- note: add '@available' attribute to enclosing static property
| |- note: in expansion of macro 'TaskLocal' on static property 'current' here
| `- note: in expansion of macro 'TaskLocal' on static property 'current' here
+--- macro expansion @TaskLocal ------------------------------------
|1 | {
|2 | get {
|3 | $current.get()
| | |- warning: conformance of 'LanguageModelSession' to 'Sendable' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
|4 | }
|5 | }
+-------------------------------------------------------------------
17 | }
18 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Session.swift:89:39: warning: conformance of 'LanguageModelSession' to 'Sendable' is only available in watchOS 27.0 or newer
83 | /// - operation: The async operation to run with the session in context
84 | /// - Returns: The result of the operation
85 | func withSession<T: Sendable>(
| `- note: add '@available' attribute to enclosing global function
86 | _ session: LanguageModelSession,
87 | operation: nonisolated(nonsending) () async throws -> T
88 | ) async rethrows -> T {
89 | try await SessionContext.$current.withValue(session, operation: operation)
| |- warning: conformance of 'LanguageModelSession' to 'Sendable' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
90 | }
91 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/SessionStore.swift:83:28: error: 'Transcript' is only available in watchOS 27.0 or newer
75 | ///
76 | /// `SessionSnapshot` captures the state of a session for persistence.
77 | public struct SessionSnapshot: Codable, Sendable, Identifiable {
| `- note: add '@available' attribute to enclosing struct
78 |
79 | /// The session ID.
:
81 |
82 | /// The transcript of the session.
83 | public let transcript: Transcript
| `- error: 'Transcript' is only available in watchOS 27.0 or newer
84 |
85 | /// When the session was created.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/SessionStore.swift:100:21: error: 'Transcript' is only available in watchOS 27.0 or newer
75 | ///
76 | /// `SessionSnapshot` captures the state of a session for persistence.
77 | public struct SessionSnapshot: Codable, Sendable, Identifiable {
| `- note: add '@available' attribute to enclosing struct
78 |
79 | /// The session ID.
:
96 |
97 | /// Creates a session snapshot.
98 | public init(
| `- note: add '@available' attribute to enclosing initializer
99 | id: String,
100 | transcript: Transcript,
| `- error: 'Transcript' is only available in watchOS 27.0 or newer
101 | createdAt: Date = Date(),
102 | updatedAt: Date = Date(),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/SessionStore.swift:115:37: error: 'Transcript' is only available in watchOS 27.0 or newer
75 | ///
76 | /// `SessionSnapshot` captures the state of a session for persistence.
77 | public struct SessionSnapshot: Codable, Sendable, Identifiable {
| `- note: add '@available' attribute to enclosing struct
78 |
79 | /// The session ID.
:
113 |
114 | /// Creates an updated snapshot with the current time.
115 | public func updated(transcript: Transcript) -> SessionSnapshot {
| | `- error: 'Transcript' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing instance method
116 | SessionSnapshot(
117 | id: id,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/SwiftAgent.swift:14:42: error: 'Tool' is only available in watchOS 27.0 or newer
12 | #else
13 | @_exported import FoundationModels
14 | public typealias Tool = FoundationModels.Tool
| | `- error: 'Tool' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing type alias
15 | #endif
16 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentSessionRunner.swift:108:36: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
10 | /// `AgentSession` owns a transport loop. `AgentSessionRunner` owns one task
11 | /// execution and is intended for dispatch, coordination, and peer execution.
12 | public struct AgentSessionRunner: Sendable {
| `- note: add '@available' attribute to enclosing struct
13 | private let configuration: AgentSessionRunnerConfiguration
14 |
:
98 | }
99 |
100 | private func makeConversation(for envelope: AgentTaskEnvelope) -> Conversation {
| `- note: add '@available' attribute to enclosing instance method
101 | let runtime = ToolRuntime(configuration: runtimeConfiguration(for: envelope.policy.toolScope))
102 |
:
106 | }
107 | #else
108 | let languageModelSession = LanguageModelSession(tools: runtime.publicTools()) {
| |- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
109 | configuration.instructions()
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentSessionRunner.swift:108:36: error: 'init(model:tools:instructions:)' is unavailable in watchOS
106 | }
107 | #else
108 | let languageModelSession = LanguageModelSession(tools: runtime.publicTools()) {
| `- error: 'init(model:tools:instructions:)' is unavailable in watchOS
109 | configuration.instructions()
110 | }
FoundationModels.LanguageModelSession.init:2:20: note: 'init(model:tools:instructions:)' has been explicitly marked unavailable here
1 | class LanguageModelSession {
2 | public convenience init(model: SystemLanguageModel = .default, tools: [any Tool] = [], @InstructionsBuilder instructions: () throws -> Instructions) rethrows}
| `- note: 'init(model:tools:instructions:)' has been explicitly marked unavailable here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentSessionRunner.swift:109:13: error: 'buildExpression' is only available in watchOS 27.0 or newer
10 | /// `AgentSession` owns a transport loop. `AgentSessionRunner` owns one task
11 | /// execution and is intended for dispatch, coordination, and peer execution.
12 | public struct AgentSessionRunner: Sendable {
| `- note: add '@available' attribute to enclosing struct
13 | private let configuration: AgentSessionRunnerConfiguration
14 |
:
98 | }
99 |
100 | private func makeConversation(for envelope: AgentTaskEnvelope) -> Conversation {
| `- note: add '@available' attribute to enclosing instance method
101 | let runtime = ToolRuntime(configuration: runtimeConfiguration(for: envelope.policy.toolScope))
102 |
:
107 | #else
108 | let languageModelSession = LanguageModelSession(tools: runtime.publicTools()) {
109 | configuration.instructions()
| |- error: 'buildExpression' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
110 | }
111 | #endif
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Security/SecurityConfiguration.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile SecurityConfiguration.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Security/ToolAuthorizationDecision.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ToolAuthorizationDecision.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Security/ToolAuthorizationMetadata.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ToolAuthorizationMetadata.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Session.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Session.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/SessionStore.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile SessionStore.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Step.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Step.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/StepModifier.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile StepModifier.swift
SwiftCompile normal arm64_32 (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/SwiftAgentSpanAttributes.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile SwiftAgentSpanAttributes.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/SystemInfo.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile SystemInfo.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentAssignee.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AgentAssignee.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Tasks/AgentSessionRunner.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AgentSessionRunner.swift
SwiftDriverJobDiscovery normal arm64_32 Compiling RigidDeque+Append.swift, RigidDeque+Consumption.swift (in target 'DequeModule' from project 'swift-collections')
SwiftCompile normal arm64_32 Compiling\ ApprovalBridgeHandler.swift,\ ApprovalHandler.swift,\ EventSink.swift,\ PermissionHandlerContext.swift,\ RunEvent.swift,\ RunRequest.swift,\ RunResult.swift,\ TurnCancellationToken.swift,\ Join.swift,\ Loop.swift,\ Map.swift,\ Memory.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/ApprovalBridgeHandler.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/ApprovalHandler.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/EventSink.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/PermissionHandlerContext.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/RunEvent.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/RunRequest.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/RunResult.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/TurnCancellationToken.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Join.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Loop.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Map.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Memory.swift (in target 'SwiftAgent' from project 'SwiftAgent')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/ApprovalBridgeHandler.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ApprovalBridgeHandler.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/ApprovalHandler.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ApprovalHandler.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/EventSink.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile EventSink.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/PermissionHandlerContext.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile PermissionHandlerContext.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/RunEvent.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile RunEvent.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/RunRequest.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile RunRequest.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/RunResult.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile RunResult.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/IO/TurnCancellationToken.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile TurnCancellationToken.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Join.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Join.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Loop.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Loop.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Map.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Map.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Memory.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Memory.swift
SwiftDriverJobDiscovery normal arm64_32 Compiling RigidDeque+Removals.swift, RigidDeque+Replacements.swift (in target 'DequeModule' from project 'swift-collections')
SwiftCompile normal arm64 Compiling\ BasicMiddleware.swift,\ EventEmittingMiddleware.swift,\ ToolContextMetadataProvider.swift,\ ToolMiddleware.swift,\ ToolPipeline.swift,\ Monitor.swift,\ Parallel.swift,\ Perception.swift,\ Pipeline.swift,\ Presence.swift,\ PromptTemplates.swift,\ Race.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Middleware/BasicMiddleware.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Middleware/EventEmittingMiddleware.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Middleware/ToolContextMetadataProvider.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Middleware/ToolMiddleware.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Middleware/ToolPipeline.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Monitor.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Parallel.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Perception.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Pipeline.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Presence.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/PromptTemplates.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Race.swift (in target 'SwiftAgent' from project 'SwiftAgent')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Middleware/BasicMiddleware.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile BasicMiddleware.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Middleware/EventEmittingMiddleware.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile EventEmittingMiddleware.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Middleware/ToolContextMetadataProvider.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ToolContextMetadataProvider.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Middleware/ToolMiddleware.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ToolMiddleware.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Middleware/ToolPipeline.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ToolPipeline.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Monitor.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Monitor.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Parallel.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Parallel.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Perception.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Perception.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Pipeline.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Pipeline.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Presence.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Presence.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/PromptTemplates.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile PromptTemplates.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Race.swift (in target 'SwiftAgent' from project 'SwiftAgent')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Race.swift
SwiftDriverJobDiscovery normal arm64_32 Compiling Prompts.swift (in target 'MCP' from project 'mcp-swift-sdk')
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
2026-09-26 18:20:59.701 xcodebuild[3127:16020] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
SwiftCompile normal arm64 Compiling\ Agent.swift,\ AgentError.swift,\ AgentResponse.swift,\ AnyStep.swift,\ CheckpointManager.swift,\ Context.swift,\ CompactionStrategies.swift,\ CompactionStrategy.swift,\ ContextConfiguration.swift,\ ContextManager.swift,\ ContextUsage.swift,\ Contextable.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Agent.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AgentError.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AgentResponse.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AnyStep.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Checkpoint/CheckpointManager.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategy.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextConfiguration.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextManager.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextUsage.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/Contextable.swift (in target 'SwiftAgent' from project 'SwiftAgent')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Agent.swift (in target 'SwiftAgent' from project 'SwiftAgent')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/AgentResponse.swift (in target 'SwiftAgent' from project 'SwiftAgent')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategies.swift (in target 'SwiftAgent' from project 'SwiftAgent')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/CompactionStrategy.swift (in target 'SwiftAgent' from project 'SwiftAgent')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftAgent/Context/ContextManager.swift (in target 'SwiftAgent' from project 'SwiftAgent')
Building workspace SwiftAgent with scheme SwiftAgent-Package
(7 failures)
BUILD FAILURE 6.4 watchOS