The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of langchain-swift, reference 0.50.0 (0f902d), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 23:37:04 UTC.

Swift 6 data race errors: 7

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

 94 |         }
 95 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:98:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 96 |
 97 |     public override func on_agent_finish(action: AgentFinish, metadata: [String: String]) throws {
 98 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 99 |             var m = metadata
100 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
101 |             let env = LC.loadEnv()
102 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Agent", message: truncate(action.final), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
103 |         }
104 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:107:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
105 |
106 |     public override func on_llm_error(error: Error, metadata: [String: String]) throws {
107 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
108 |             var m = metadata
109 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
110 |             let env = LC.loadEnv()
111 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "LLM", message: truncate(error.localizedDescription), metadata: m, createAt: Date.now))
    |                                                                                                                                                                `- note: closure captures 'self' which is accessible to code in the current task
112 |         }
113 |     }
[1433/1460] Compiling LangChain StdOutCallbackHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/agents/Agent.swift:271:16: warning: static property 'output_parser' is not concurrency-safe because non-'Sendable' type 'MRKLOutputParser' may have shared mutable state; this is an error in the Swift 6 language mode
269 |
270 | public class ZeroShotAgent: Agent {
271 |     static let output_parser: MRKLOutputParser = MRKLOutputParser()
    |                |- warning: static property 'output_parser' is not concurrency-safe because non-'Sendable' type 'MRKLOutputParser' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'output_parser' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
272 |
273 |     public static func create_prompt(tools: [BaseTool], prefix0: String = PREFIX, suffix: String = SUFFIX, format_instructions: String = FORMAT_INSTRUCTIONS)
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/parser/MRKLOutputParser.swift:10:15: note: consider making struct 'MRKLOutputParser' conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public struct MRKLOutputParser: BaseOutputParser {
   |               `- note: consider making struct 'MRKLOutputParser' conform to the 'Sendable' protocol
11 |     public init() {}
12 |     public func parse(text: String) -> Parsed {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/report/TraceManager.swift:24:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | //    var reports: [Report] = []
23 |     static let REPORT_URL = "http://192.168.31.60:8083/rest/agent"
24 |     static var shared: TraceManager = TraceManager()
   |                |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 |     mutating func insertReport(report: Report) async {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:16:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 14 |
 15 |     public override func on_llm_start(prompt: String, metadata: [String: String]) throws {
 16 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 17 |             var m = metadata
 18 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 19 |             let env = LC.loadEnv()
 20 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "LLM", message: truncate(prompt), metadata: m, createAt: Date.now))
    |                                                                                                                                                                `- note: closure captures 'self' which is accessible to code in the current task
 21 |         }
 22 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:25:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 23 |
 24 |     public override func on_llm_end(output: String, metadata: [String: String]) throws {
 25 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 26 |             var m = metadata
 27 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 28 |             let env = LC.loadEnv()
 29 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "LLM", message: truncate(output), metadata: m, createAt: Date.now))
    |                                                                                                                                                                `- note: closure captures 'self' which is accessible to code in the current task
 30 |         }
 31 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:34:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 32 |
 33 |     public override func on_chain_error(error: Error, metadata: [String: String]) throws {
 34 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 35 |             var m = metadata
 36 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 37 |             let env = LC.loadEnv()
 38 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Chain", message: truncate(error.localizedDescription), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 39 |         }
 40 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:43:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 41 |
 42 |     public override func on_chain_end(output: String, metadata: [String: String]) {
 43 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 44 |             var m = metadata
 45 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 46 |             let env = LC.loadEnv()
 47 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Chain", message: truncate(output), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 48 |         }
 49 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:52:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 50 |
 51 |     public override func on_chain_start(prompts: String, metadata: [String: String]) {
 52 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 53 |             var m = metadata
 54 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 55 |             let env = LC.loadEnv()
 56 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Chain", message: truncate(prompts), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 57 |         }
 58 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:62:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 60 |
 61 |     public override func on_tool_start(tool: BaseTool, input: String, metadata: [String: String]) throws {
 62 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 63 |             var m = metadata
 64 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 65 |             let env = LC.loadEnv()
 66 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Tool", message: truncate(input), metadata: m, createAt: Date.now))
    |                                                                                                                                                                 `- note: closure captures 'self' which is accessible to code in the current task
 67 |         }
 68 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:71:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 69 |
 70 |     public override func on_tool_end(tool: BaseTool, output: String, metadata: [String: String]) throws {
 71 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 72 |             var m = metadata
 73 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 74 |             let env = LC.loadEnv()
 75 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Tool", message: truncate(output), metadata: m, createAt: Date.now))
    |                                                                                                                                                                 `- note: closure captures 'self' which is accessible to code in the current task
 76 |         }
 77 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:80:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 78 |
 79 |     public override func on_agent_start(prompt: String, metadata: [String : String]) throws {
 80 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 81 |             var m = metadata
 82 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 83 |             let env = LC.loadEnv()
 84 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Agent", message: truncate(prompt), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 85 |         }
 86 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:89:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |
 88 |     public override func on_agent_action(action: AgentAction, metadata: [String: String]) throws {
 89 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 90 |             var m = metadata
 91 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 92 |             let env = LC.loadEnv()
 93 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Agent", message: truncate(action.log), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 94 |         }
 95 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:98:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 96 |
 97 |     public override func on_agent_finish(action: AgentFinish, metadata: [String: String]) throws {
 98 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 99 |             var m = metadata
100 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
101 |             let env = LC.loadEnv()
102 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Agent", message: truncate(action.final), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
103 |         }
104 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:107:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
105 |
106 |     public override func on_llm_error(error: Error, metadata: [String: String]) throws {
107 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
108 |             var m = metadata
109 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
110 |             let env = LC.loadEnv()
111 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "LLM", message: truncate(error.localizedDescription), metadata: m, createAt: Date.now))
    |                                                                                                                                                                `- note: closure captures 'self' which is accessible to code in the current task
112 |         }
113 |     }
[1434/1460] Compiling LangChain TraceCallbackHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/agents/Agent.swift:271:16: warning: static property 'output_parser' is not concurrency-safe because non-'Sendable' type 'MRKLOutputParser' may have shared mutable state; this is an error in the Swift 6 language mode
269 |
270 | public class ZeroShotAgent: Agent {
271 |     static let output_parser: MRKLOutputParser = MRKLOutputParser()
    |                |- warning: static property 'output_parser' is not concurrency-safe because non-'Sendable' type 'MRKLOutputParser' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'output_parser' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
272 |
273 |     public static func create_prompt(tools: [BaseTool], prefix0: String = PREFIX, suffix: String = SUFFIX, format_instructions: String = FORMAT_INSTRUCTIONS)
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/parser/MRKLOutputParser.swift:10:15: note: consider making struct 'MRKLOutputParser' conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public struct MRKLOutputParser: BaseOutputParser {
   |               `- note: consider making struct 'MRKLOutputParser' conform to the 'Sendable' protocol
11 |     public init() {}
12 |     public func parse(text: String) -> Parsed {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/report/TraceManager.swift:24:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | //    var reports: [Report] = []
23 |     static let REPORT_URL = "http://192.168.31.60:8083/rest/agent"
24 |     static var shared: TraceManager = TraceManager()
   |                |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 |     mutating func insertReport(report: Report) async {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:16:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 14 |
 15 |     public override func on_llm_start(prompt: String, metadata: [String: String]) throws {
 16 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 17 |             var m = metadata
 18 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 19 |             let env = LC.loadEnv()
 20 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "LLM", message: truncate(prompt), metadata: m, createAt: Date.now))
    |                                                                                                                                                                `- note: closure captures 'self' which is accessible to code in the current task
 21 |         }
 22 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:25:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 23 |
 24 |     public override func on_llm_end(output: String, metadata: [String: String]) throws {
 25 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 26 |             var m = metadata
 27 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 28 |             let env = LC.loadEnv()
 29 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "LLM", message: truncate(output), metadata: m, createAt: Date.now))
    |                                                                                                                                                                `- note: closure captures 'self' which is accessible to code in the current task
 30 |         }
 31 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:34:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 32 |
 33 |     public override func on_chain_error(error: Error, metadata: [String: String]) throws {
 34 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 35 |             var m = metadata
 36 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 37 |             let env = LC.loadEnv()
 38 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Chain", message: truncate(error.localizedDescription), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 39 |         }
 40 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:43:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 41 |
 42 |     public override func on_chain_end(output: String, metadata: [String: String]) {
 43 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 44 |             var m = metadata
 45 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 46 |             let env = LC.loadEnv()
 47 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Chain", message: truncate(output), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 48 |         }
 49 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:52:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 50 |
 51 |     public override func on_chain_start(prompts: String, metadata: [String: String]) {
 52 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 53 |             var m = metadata
 54 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 55 |             let env = LC.loadEnv()
 56 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Chain", message: truncate(prompts), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 57 |         }
 58 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:62:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 60 |
 61 |     public override func on_tool_start(tool: BaseTool, input: String, metadata: [String: String]) throws {
 62 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 63 |             var m = metadata
 64 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 65 |             let env = LC.loadEnv()
 66 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Tool", message: truncate(input), metadata: m, createAt: Date.now))
    |                                                                                                                                                                 `- note: closure captures 'self' which is accessible to code in the current task
 67 |         }
 68 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:71:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 69 |
 70 |     public override func on_tool_end(tool: BaseTool, output: String, metadata: [String: String]) throws {
 71 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 72 |             var m = metadata
 73 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 74 |             let env = LC.loadEnv()
 75 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Tool", message: truncate(output), metadata: m, createAt: Date.now))
    |                                                                                                                                                                 `- note: closure captures 'self' which is accessible to code in the current task
 76 |         }
 77 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:80:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 78 |
 79 |     public override func on_agent_start(prompt: String, metadata: [String : String]) throws {
 80 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 81 |             var m = metadata
 82 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 83 |             let env = LC.loadEnv()
 84 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Agent", message: truncate(prompt), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 85 |         }
 86 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:89:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |
 88 |     public override func on_agent_action(action: AgentAction, metadata: [String: String]) throws {
 89 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 90 |             var m = metadata
 91 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 92 |             let env = LC.loadEnv()
 93 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Agent", message: truncate(action.log), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 94 |         }
 95 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:98:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 96 |
 97 |     public override func on_agent_finish(action: AgentFinish, metadata: [String: String]) throws {
 98 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 99 |             var m = metadata
100 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
101 |             let env = LC.loadEnv()
102 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Agent", message: truncate(action.final), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
103 |         }
104 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:107:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
105 |
106 |     public override func on_llm_error(error: Error, metadata: [String: String]) throws {
107 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
108 |             var m = metadata
109 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
110 |             let env = LC.loadEnv()
111 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "LLM", message: truncate(error.localizedDescription), metadata: m, createAt: Date.now))
    |                                                                                                                                                                `- note: closure captures 'self' which is accessible to code in the current task
112 |         }
113 |     }
[1435/1460] Compiling LangChain BaseChain.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/agents/Agent.swift:271:16: warning: static property 'output_parser' is not concurrency-safe because non-'Sendable' type 'MRKLOutputParser' may have shared mutable state; this is an error in the Swift 6 language mode
269 |
270 | public class ZeroShotAgent: Agent {
271 |     static let output_parser: MRKLOutputParser = MRKLOutputParser()
    |                |- warning: static property 'output_parser' is not concurrency-safe because non-'Sendable' type 'MRKLOutputParser' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'output_parser' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
272 |
273 |     public static func create_prompt(tools: [BaseTool], prefix0: String = PREFIX, suffix: String = SUFFIX, format_instructions: String = FORMAT_INSTRUCTIONS)
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/parser/MRKLOutputParser.swift:10:15: note: consider making struct 'MRKLOutputParser' conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public struct MRKLOutputParser: BaseOutputParser {
   |               `- note: consider making struct 'MRKLOutputParser' conform to the 'Sendable' protocol
11 |     public init() {}
12 |     public func parse(text: String) -> Parsed {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/report/TraceManager.swift:24:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | //    var reports: [Report] = []
23 |     static let REPORT_URL = "http://192.168.31.60:8083/rest/agent"
24 |     static var shared: TraceManager = TraceManager()
   |                |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 |     mutating func insertReport(report: Report) async {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:16:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 14 |
 15 |     public override func on_llm_start(prompt: String, metadata: [String: String]) throws {
 16 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 17 |             var m = metadata
 18 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 19 |             let env = LC.loadEnv()
 20 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "LLM", message: truncate(prompt), metadata: m, createAt: Date.now))
    |                                                                                                                                                                `- note: closure captures 'self' which is accessible to code in the current task
 21 |         }
 22 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:25:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 23 |
 24 |     public override func on_llm_end(output: String, metadata: [String: String]) throws {
 25 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 26 |             var m = metadata
 27 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 28 |             let env = LC.loadEnv()
 29 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "LLM", message: truncate(output), metadata: m, createAt: Date.now))
    |                                                                                                                                                                `- note: closure captures 'self' which is accessible to code in the current task
 30 |         }
 31 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:34:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 32 |
 33 |     public override func on_chain_error(error: Error, metadata: [String: String]) throws {
 34 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 35 |             var m = metadata
 36 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 37 |             let env = LC.loadEnv()
 38 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Chain", message: truncate(error.localizedDescription), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 39 |         }
 40 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:43:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 41 |
 42 |     public override func on_chain_end(output: String, metadata: [String: String]) {
 43 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 44 |             var m = metadata
 45 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 46 |             let env = LC.loadEnv()
 47 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Chain", message: truncate(output), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 48 |         }
 49 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:52:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 50 |
 51 |     public override func on_chain_start(prompts: String, metadata: [String: String]) {
 52 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 53 |             var m = metadata
 54 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 55 |             let env = LC.loadEnv()
 56 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Chain", message: truncate(prompts), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 57 |         }
 58 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:62:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 60 |
 61 |     public override func on_tool_start(tool: BaseTool, input: String, metadata: [String: String]) throws {
 62 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 63 |             var m = metadata
 64 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 65 |             let env = LC.loadEnv()
 66 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Tool", message: truncate(input), metadata: m, createAt: Date.now))
    |                                                                                                                                                                 `- note: closure captures 'self' which is accessible to code in the current task
 67 |         }
 68 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:71:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 69 |
 70 |     public override func on_tool_end(tool: BaseTool, output: String, metadata: [String: String]) throws {
 71 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 72 |             var m = metadata
 73 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 74 |             let env = LC.loadEnv()
 75 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Tool", message: truncate(output), metadata: m, createAt: Date.now))
    |                                                                                                                                                                 `- note: closure captures 'self' which is accessible to code in the current task
 76 |         }
 77 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:80:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 78 |
 79 |     public override func on_agent_start(prompt: String, metadata: [String : String]) throws {
 80 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 81 |             var m = metadata
 82 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 83 |             let env = LC.loadEnv()
 84 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Agent", message: truncate(prompt), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 85 |         }
 86 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:89:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |
 88 |     public override func on_agent_action(action: AgentAction, metadata: [String: String]) throws {
 89 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 90 |             var m = metadata
 91 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 92 |             let env = LC.loadEnv()
 93 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Agent", message: truncate(action.log), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 94 |         }
 95 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:98:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 96 |
 97 |     public override func on_agent_finish(action: AgentFinish, metadata: [String: String]) throws {
 98 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 99 |             var m = metadata
100 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
101 |             let env = LC.loadEnv()
102 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Agent", message: truncate(action.final), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
103 |         }
104 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:107:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
105 |
106 |     public override func on_llm_error(error: Error, metadata: [String: String]) throws {
107 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
108 |             var m = metadata
109 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
110 |             let env = LC.loadEnv()
111 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "LLM", message: truncate(error.localizedDescription), metadata: m, createAt: Date.now))
    |                                                                                                                                                                `- note: closure captures 'self' which is accessible to code in the current task
112 |         }
113 |     }
[1436/1460] Compiling LangChain DNChain.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/agents/Agent.swift:271:16: warning: static property 'output_parser' is not concurrency-safe because non-'Sendable' type 'MRKLOutputParser' may have shared mutable state; this is an error in the Swift 6 language mode
269 |
270 | public class ZeroShotAgent: Agent {
271 |     static let output_parser: MRKLOutputParser = MRKLOutputParser()
    |                |- warning: static property 'output_parser' is not concurrency-safe because non-'Sendable' type 'MRKLOutputParser' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'output_parser' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
272 |
273 |     public static func create_prompt(tools: [BaseTool], prefix0: String = PREFIX, suffix: String = SUFFIX, format_instructions: String = FORMAT_INSTRUCTIONS)
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/parser/MRKLOutputParser.swift:10:15: note: consider making struct 'MRKLOutputParser' conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public struct MRKLOutputParser: BaseOutputParser {
   |               `- note: consider making struct 'MRKLOutputParser' conform to the 'Sendable' protocol
11 |     public init() {}
12 |     public func parse(text: String) -> Parsed {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/report/TraceManager.swift:24:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | //    var reports: [Report] = []
23 |     static let REPORT_URL = "http://192.168.31.60:8083/rest/agent"
24 |     static var shared: TraceManager = TraceManager()
   |                |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 |     mutating func insertReport(report: Report) async {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:16:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 14 |
 15 |     public override func on_llm_start(prompt: String, metadata: [String: String]) throws {
 16 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 17 |             var m = metadata
 18 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 19 |             let env = LC.loadEnv()
 20 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "LLM", message: truncate(prompt), metadata: m, createAt: Date.now))
    |                                                                                                                                                                `- note: closure captures 'self' which is accessible to code in the current task
 21 |         }
 22 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:25:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 23 |
 24 |     public override func on_llm_end(output: String, metadata: [String: String]) throws {
 25 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 26 |             var m = metadata
 27 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 28 |             let env = LC.loadEnv()
 29 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "LLM", message: truncate(output), metadata: m, createAt: Date.now))
    |                                                                                                                                                                `- note: closure captures 'self' which is accessible to code in the current task
 30 |         }
 31 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:34:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 32 |
 33 |     public override func on_chain_error(error: Error, metadata: [String: String]) throws {
 34 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 35 |             var m = metadata
 36 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 37 |             let env = LC.loadEnv()
 38 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Chain", message: truncate(error.localizedDescription), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 39 |         }
 40 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:43:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 41 |
 42 |     public override func on_chain_end(output: String, metadata: [String: String]) {
 43 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 44 |             var m = metadata
 45 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 46 |             let env = LC.loadEnv()
 47 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Chain", message: truncate(output), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 48 |         }
 49 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:52:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 50 |
 51 |     public override func on_chain_start(prompts: String, metadata: [String: String]) {
 52 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 53 |             var m = metadata
 54 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 55 |             let env = LC.loadEnv()
 56 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Chain", message: truncate(prompts), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 57 |         }
 58 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:62:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 60 |
 61 |     public override func on_tool_start(tool: BaseTool, input: String, metadata: [String: String]) throws {
 62 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 63 |             var m = metadata
 64 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 65 |             let env = LC.loadEnv()
 66 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Tool", message: truncate(input), metadata: m, createAt: Date.now))
    |                                                                                                                                                                 `- note: closure captures 'self' which is accessible to code in the current task
 67 |         }
 68 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:71:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 69 |
 70 |     public override func on_tool_end(tool: BaseTool, output: String, metadata: [String: String]) throws {
 71 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 72 |             var m = metadata
 73 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 74 |             let env = LC.loadEnv()
 75 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Tool", message: truncate(output), metadata: m, createAt: Date.now))
    |                                                                                                                                                                 `- note: closure captures 'self' which is accessible to code in the current task
 76 |         }
 77 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:80:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 78 |
 79 |     public override func on_agent_start(prompt: String, metadata: [String : String]) throws {
 80 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 81 |             var m = metadata
 82 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 83 |             let env = LC.loadEnv()
 84 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Agent", message: truncate(prompt), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 85 |         }
 86 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:89:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |
 88 |     public override func on_agent_action(action: AgentAction, metadata: [String: String]) throws {
 89 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 90 |             var m = metadata
 91 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 92 |             let env = LC.loadEnv()
 93 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Agent", message: truncate(action.log), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 94 |         }
 95 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:98:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 96 |
 97 |     public override func on_agent_finish(action: AgentFinish, metadata: [String: String]) throws {
 98 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 99 |             var m = metadata
100 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
101 |             let env = LC.loadEnv()
102 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Agent", message: truncate(action.final), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
103 |         }
104 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:107:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
105 |
106 |     public override func on_llm_error(error: Error, metadata: [String: String]) throws {
107 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
108 |             var m = metadata
109 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
110 |             let env = LC.loadEnv()
111 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "LLM", message: truncate(error.localizedDescription), metadata: m, createAt: Date.now))
    |                                                                                                                                                                `- note: closure captures 'self' which is accessible to code in the current task
112 |         }
113 |     }
[1437/1460] Compiling LangChain LLMChain.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/agents/Agent.swift:271:16: warning: static property 'output_parser' is not concurrency-safe because non-'Sendable' type 'MRKLOutputParser' may have shared mutable state; this is an error in the Swift 6 language mode
269 |
270 | public class ZeroShotAgent: Agent {
271 |     static let output_parser: MRKLOutputParser = MRKLOutputParser()
    |                |- warning: static property 'output_parser' is not concurrency-safe because non-'Sendable' type 'MRKLOutputParser' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'output_parser' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
272 |
273 |     public static func create_prompt(tools: [BaseTool], prefix0: String = PREFIX, suffix: String = SUFFIX, format_instructions: String = FORMAT_INSTRUCTIONS)
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/parser/MRKLOutputParser.swift:10:15: note: consider making struct 'MRKLOutputParser' conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public struct MRKLOutputParser: BaseOutputParser {
   |               `- note: consider making struct 'MRKLOutputParser' conform to the 'Sendable' protocol
11 |     public init() {}
12 |     public func parse(text: String) -> Parsed {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/report/TraceManager.swift:24:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | //    var reports: [Report] = []
23 |     static let REPORT_URL = "http://192.168.31.60:8083/rest/agent"
24 |     static var shared: TraceManager = TraceManager()
   |                |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 |     mutating func insertReport(report: Report) async {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:16:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 14 |
 15 |     public override func on_llm_start(prompt: String, metadata: [String: String]) throws {
 16 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 17 |             var m = metadata
 18 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 19 |             let env = LC.loadEnv()
 20 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "LLM", message: truncate(prompt), metadata: m, createAt: Date.now))
    |                                                                                                                                                                `- note: closure captures 'self' which is accessible to code in the current task
 21 |         }
 22 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:25:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 23 |
 24 |     public override func on_llm_end(output: String, metadata: [String: String]) throws {
 25 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 26 |             var m = metadata
 27 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 28 |             let env = LC.loadEnv()
 29 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "LLM", message: truncate(output), metadata: m, createAt: Date.now))
    |                                                                                                                                                                `- note: closure captures 'self' which is accessible to code in the current task
 30 |         }
 31 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:34:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 32 |
 33 |     public override func on_chain_error(error: Error, metadata: [String: String]) throws {
 34 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 35 |             var m = metadata
 36 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 37 |             let env = LC.loadEnv()
 38 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Chain", message: truncate(error.localizedDescription), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 39 |         }
 40 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:43:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 41 |
 42 |     public override func on_chain_end(output: String, metadata: [String: String]) {
 43 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 44 |             var m = metadata
 45 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 46 |             let env = LC.loadEnv()
 47 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Chain", message: truncate(output), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 48 |         }
 49 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:52:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 50 |
 51 |     public override func on_chain_start(prompts: String, metadata: [String: String]) {
 52 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 53 |             var m = metadata
 54 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 55 |             let env = LC.loadEnv()
 56 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Chain", message: truncate(prompts), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 57 |         }
 58 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:62:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 60 |
 61 |     public override func on_tool_start(tool: BaseTool, input: String, metadata: [String: String]) throws {
 62 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 63 |             var m = metadata
 64 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 65 |             let env = LC.loadEnv()
 66 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Tool", message: truncate(input), metadata: m, createAt: Date.now))
    |                                                                                                                                                                 `- note: closure captures 'self' which is accessible to code in the current task
 67 |         }
 68 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:71:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 69 |
 70 |     public override func on_tool_end(tool: BaseTool, output: String, metadata: [String: String]) throws {
 71 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 72 |             var m = metadata
 73 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 74 |             let env = LC.loadEnv()
 75 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Tool", message: truncate(output), metadata: m, createAt: Date.now))
    |                                                                                                                                                                 `- note: closure captures 'self' which is accessible to code in the current task
 76 |         }
 77 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:80:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 78 |
 79 |     public override func on_agent_start(prompt: String, metadata: [String : String]) throws {
 80 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 81 |             var m = metadata
 82 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 83 |             let env = LC.loadEnv()
 84 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Agent", message: truncate(prompt), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 85 |         }
 86 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:89:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |
 88 |     public override func on_agent_action(action: AgentAction, metadata: [String: String]) throws {
 89 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 90 |             var m = metadata
 91 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 92 |             let env = LC.loadEnv()
 93 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Agent", message: truncate(action.log), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 94 |         }
 95 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:98:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 96 |
 97 |     public override func on_agent_finish(action: AgentFinish, metadata: [String: String]) throws {
 98 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 99 |             var m = metadata
100 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
101 |             let env = LC.loadEnv()
102 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Agent", message: truncate(action.final), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
103 |         }
104 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:107:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
105 |
106 |     public override func on_llm_error(error: Error, metadata: [String: String]) throws {
107 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
108 |             var m = metadata
109 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
110 |             let env = LC.loadEnv()
111 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "LLM", message: truncate(error.localizedDescription), metadata: m, createAt: Date.now))
    |                                                                                                                                                                `- note: closure captures 'self' which is accessible to code in the current task
112 |         }
113 |     }
[1438/1460] Compiling LangChain SequentialChain.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/agents/Agent.swift:271:16: warning: static property 'output_parser' is not concurrency-safe because non-'Sendable' type 'MRKLOutputParser' may have shared mutable state; this is an error in the Swift 6 language mode
269 |
270 | public class ZeroShotAgent: Agent {
271 |     static let output_parser: MRKLOutputParser = MRKLOutputParser()
    |                |- warning: static property 'output_parser' is not concurrency-safe because non-'Sendable' type 'MRKLOutputParser' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'output_parser' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
272 |
273 |     public static func create_prompt(tools: [BaseTool], prefix0: String = PREFIX, suffix: String = SUFFIX, format_instructions: String = FORMAT_INSTRUCTIONS)
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/parser/MRKLOutputParser.swift:10:15: note: consider making struct 'MRKLOutputParser' conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public struct MRKLOutputParser: BaseOutputParser {
   |               `- note: consider making struct 'MRKLOutputParser' conform to the 'Sendable' protocol
11 |     public init() {}
12 |     public func parse(text: String) -> Parsed {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/report/TraceManager.swift:24:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | //    var reports: [Report] = []
23 |     static let REPORT_URL = "http://192.168.31.60:8083/rest/agent"
24 |     static var shared: TraceManager = TraceManager()
   |                |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 |     mutating func insertReport(report: Report) async {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:16:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 14 |
 15 |     public override func on_llm_start(prompt: String, metadata: [String: String]) throws {
 16 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 17 |             var m = metadata
 18 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 19 |             let env = LC.loadEnv()
 20 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "LLM", message: truncate(prompt), metadata: m, createAt: Date.now))
    |                                                                                                                                                                `- note: closure captures 'self' which is accessible to code in the current task
 21 |         }
 22 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:25:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 23 |
 24 |     public override func on_llm_end(output: String, metadata: [String: String]) throws {
 25 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 26 |             var m = metadata
 27 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 28 |             let env = LC.loadEnv()
 29 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "LLM", message: truncate(output), metadata: m, createAt: Date.now))
    |                                                                                                                                                                `- note: closure captures 'self' which is accessible to code in the current task
 30 |         }
 31 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:34:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 32 |
 33 |     public override func on_chain_error(error: Error, metadata: [String: String]) throws {
 34 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 35 |             var m = metadata
 36 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 37 |             let env = LC.loadEnv()
 38 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Chain", message: truncate(error.localizedDescription), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 39 |         }
 40 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:43:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 41 |
 42 |     public override func on_chain_end(output: String, metadata: [String: String]) {
 43 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 44 |             var m = metadata
 45 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 46 |             let env = LC.loadEnv()
 47 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Chain", message: truncate(output), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 48 |         }
 49 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:52:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 50 |
 51 |     public override func on_chain_start(prompts: String, metadata: [String: String]) {
 52 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 53 |             var m = metadata
 54 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 55 |             let env = LC.loadEnv()
 56 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Chain", message: truncate(prompts), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 57 |         }
 58 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:62:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 60 |
 61 |     public override func on_tool_start(tool: BaseTool, input: String, metadata: [String: String]) throws {
 62 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 63 |             var m = metadata
 64 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 65 |             let env = LC.loadEnv()
 66 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Tool", message: truncate(input), metadata: m, createAt: Date.now))
    |                                                                                                                                                                 `- note: closure captures 'self' which is accessible to code in the current task
 67 |         }
 68 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:71:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 69 |
 70 |     public override func on_tool_end(tool: BaseTool, output: String, metadata: [String: String]) throws {
 71 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 72 |             var m = metadata
 73 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 74 |             let env = LC.loadEnv()
 75 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Tool", message: truncate(output), metadata: m, createAt: Date.now))
    |                                                                                                                                                                 `- note: closure captures 'self' which is accessible to code in the current task
 76 |         }
 77 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:80:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 78 |
 79 |     public override func on_agent_start(prompt: String, metadata: [String : String]) throws {
 80 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 81 |             var m = metadata
 82 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 83 |             let env = LC.loadEnv()
 84 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Agent", message: truncate(prompt), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 85 |         }
 86 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:89:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |
 88 |     public override func on_agent_action(action: AgentAction, metadata: [String: String]) throws {
 89 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 90 |             var m = metadata
 91 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 92 |             let env = LC.loadEnv()
 93 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Agent", message: truncate(action.log), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 94 |         }
 95 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:98:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 96 |
 97 |     public override func on_agent_finish(action: AgentFinish, metadata: [String: String]) throws {
 98 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 99 |             var m = metadata
100 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
101 |             let env = LC.loadEnv()
102 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Agent", message: truncate(action.final), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
103 |         }
104 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:107:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
105 |
106 |     public override func on_llm_error(error: Error, metadata: [String: String]) throws {
107 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
108 |             var m = metadata
109 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
110 |             let env = LC.loadEnv()
111 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "LLM", message: truncate(error.localizedDescription), metadata: m, createAt: Date.now))
    |                                                                                                                                                                `- note: closure captures 'self' which is accessible to code in the current task
112 |         }
113 |     }
[1439/1460] Compiling LangChain SimpleSequentialChain.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/agents/Agent.swift:271:16: warning: static property 'output_parser' is not concurrency-safe because non-'Sendable' type 'MRKLOutputParser' may have shared mutable state; this is an error in the Swift 6 language mode
269 |
270 | public class ZeroShotAgent: Agent {
271 |     static let output_parser: MRKLOutputParser = MRKLOutputParser()
    |                |- warning: static property 'output_parser' is not concurrency-safe because non-'Sendable' type 'MRKLOutputParser' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'output_parser' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
272 |
273 |     public static func create_prompt(tools: [BaseTool], prefix0: String = PREFIX, suffix: String = SUFFIX, format_instructions: String = FORMAT_INSTRUCTIONS)
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/parser/MRKLOutputParser.swift:10:15: note: consider making struct 'MRKLOutputParser' conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public struct MRKLOutputParser: BaseOutputParser {
   |               `- note: consider making struct 'MRKLOutputParser' conform to the 'Sendable' protocol
11 |     public init() {}
12 |     public func parse(text: String) -> Parsed {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/report/TraceManager.swift:24:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | //    var reports: [Report] = []
23 |     static let REPORT_URL = "http://192.168.31.60:8083/rest/agent"
24 |     static var shared: TraceManager = TraceManager()
   |                |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 |     mutating func insertReport(report: Report) async {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:16:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 14 |
 15 |     public override func on_llm_start(prompt: String, metadata: [String: String]) throws {
 16 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 17 |             var m = metadata
 18 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 19 |             let env = LC.loadEnv()
 20 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "LLM", message: truncate(prompt), metadata: m, createAt: Date.now))
    |                                                                                                                                                                `- note: closure captures 'self' which is accessible to code in the current task
 21 |         }
 22 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:25:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 23 |
 24 |     public override func on_llm_end(output: String, metadata: [String: String]) throws {
 25 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 26 |             var m = metadata
 27 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 28 |             let env = LC.loadEnv()
 29 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "LLM", message: truncate(output), metadata: m, createAt: Date.now))
    |                                                                                                                                                                `- note: closure captures 'self' which is accessible to code in the current task
 30 |         }
 31 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:34:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 32 |
 33 |     public override func on_chain_error(error: Error, metadata: [String: String]) throws {
 34 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 35 |             var m = metadata
 36 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 37 |             let env = LC.loadEnv()
 38 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Chain", message: truncate(error.localizedDescription), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 39 |         }
 40 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:43:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 41 |
 42 |     public override func on_chain_end(output: String, metadata: [String: String]) {
 43 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 44 |             var m = metadata
 45 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 46 |             let env = LC.loadEnv()
 47 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Chain", message: truncate(output), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 48 |         }
 49 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:52:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 50 |
 51 |     public override func on_chain_start(prompts: String, metadata: [String: String]) {
 52 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 53 |             var m = metadata
 54 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 55 |             let env = LC.loadEnv()
 56 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Chain", message: truncate(prompts), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 57 |         }
 58 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:62:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 60 |
 61 |     public override func on_tool_start(tool: BaseTool, input: String, metadata: [String: String]) throws {
 62 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 63 |             var m = metadata
 64 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 65 |             let env = LC.loadEnv()
 66 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Tool", message: truncate(input), metadata: m, createAt: Date.now))
    |                                                                                                                                                                 `- note: closure captures 'self' which is accessible to code in the current task
 67 |         }
 68 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:71:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 69 |
 70 |     public override func on_tool_end(tool: BaseTool, output: String, metadata: [String: String]) throws {
 71 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 72 |             var m = metadata
 73 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 74 |             let env = LC.loadEnv()
 75 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Tool", message: truncate(output), metadata: m, createAt: Date.now))
    |                                                                                                                                                                 `- note: closure captures 'self' which is accessible to code in the current task
 76 |         }
 77 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:80:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 78 |
 79 |     public override func on_agent_start(prompt: String, metadata: [String : String]) throws {
 80 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 81 |             var m = metadata
 82 |             m[ReportKey.STEP_START_KEY] = ReportKey.TRUE
 83 |             let env = LC.loadEnv()
 84 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Agent", message: truncate(prompt), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 85 |         }
 86 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:89:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |
 88 |     public override func on_agent_action(action: AgentAction, metadata: [String: String]) throws {
 89 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 90 |             var m = metadata
 91 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
 92 |             let env = LC.loadEnv()
 93 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Agent", message: truncate(action.log), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
 94 |         }
 95 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:98:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 96 |
 97 |     public override func on_agent_finish(action: AgentFinish, metadata: [String: String]) throws {
 98 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 99 |             var m = metadata
100 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
101 |             let env = LC.loadEnv()
102 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "Agent", message: truncate(action.final), metadata: m, createAt: Date.now))
    |                                                                                                                                                                  `- note: closure captures 'self' which is accessible to code in the current task
103 |         }
104 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/callbacks/TraceCallbackHandler.swift:107:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
105 |
106 |     public override func on_llm_error(error: Error, metadata: [String: String]) throws {
107 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
108 |             var m = metadata
109 |             m[ReportKey.STEP_END_KEY] = ReportKey.TRUE
110 |             let env = LC.loadEnv()
111 |             await TraceManager.shared.insertReport(report: Report(appDisplayName: Bundle.main.appDisplayName, reportId: env[LC.ID_KEY]!, type: "LLM", message: truncate(error.localizedDescription), metadata: m, createAt: Date.now))
    |                                                                                                                                                                `- note: closure captures 'self' which is accessible to code in the current task
112 |         }
113 |     }
[1440/1460] Compiling LangChain TransformChain.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/chains/qa/BaseConversationalRetrievalChain.swift:19:16: warning: static property 'CONDENSE_QUESTION_PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
17 |     Standalone question:
18 |     """
19 |     static let CONDENSE_QUESTION_PROMPT = PromptTemplate(input_variables: ["chat_history", "question"], partial_variable: [:], template: _template)
   |                |- warning: static property 'CONDENSE_QUESTION_PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'CONDENSE_QUESTION_PROMPT' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 |     let combineChain: BaseCombineDocumentsChain
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/prompts/PromptTemplate.swift:10:14: note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class PromptTemplate {
   |              `- note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
11 |     // Schema to represent a prompt for an LLM.
12 |     public init(input_variables: [String], partial_variable: [String : String], template: String) {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/chains/qa/StuffDocumentsChain.swift:30:16: warning: static property 'PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
28 |     Question: {question}
29 | """
30 |     static let PROMPT = PromptTemplate(input_variables: ["context", "question"], partial_variable: [:], template: prompt_template)
   |                |- warning: static property 'PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'PROMPT' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 |     let llm_chain: LLMChain
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/prompts/PromptTemplate.swift:10:14: note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class PromptTemplate {
   |              `- note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
11 |     // Schema to represent a prompt for an LLM.
12 |     public init(input_variables: [String], partial_variable: [String : String], template: String) {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/document_loaders/AudioLoader.swift:50:33: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
 48 |             defer {
 49 |                 // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
 50 |                 try? httpClient.syncShutdown()
    |                                 `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
 51 |             }
 52 | //            do {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/document_loaders/AudioLoader.swift:99:24: warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 |         return try await withCheckedThrowingContinuation { continuation in
 98 |             exporter.exportAsynchronously(completionHandler: {
 99 |                 switch exporter.status {
    |                        `- warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 |                     case AVAssetExportSession.Status.failed:
101 |                         print("Export failed. \(exporter.error!.localizedDescription)")
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.7, *)
 2 | open class AVAssetExportSession : NSObject {
   |            `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
 3 |     @available(*, unavailable)
 4 |     public convenience init()
[1441/1460] Compiling LangChain BaseCombineDocumentsChain.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/chains/qa/BaseConversationalRetrievalChain.swift:19:16: warning: static property 'CONDENSE_QUESTION_PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
17 |     Standalone question:
18 |     """
19 |     static let CONDENSE_QUESTION_PROMPT = PromptTemplate(input_variables: ["chat_history", "question"], partial_variable: [:], template: _template)
   |                |- warning: static property 'CONDENSE_QUESTION_PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'CONDENSE_QUESTION_PROMPT' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 |     let combineChain: BaseCombineDocumentsChain
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/prompts/PromptTemplate.swift:10:14: note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class PromptTemplate {
   |              `- note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
11 |     // Schema to represent a prompt for an LLM.
12 |     public init(input_variables: [String], partial_variable: [String : String], template: String) {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/chains/qa/StuffDocumentsChain.swift:30:16: warning: static property 'PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
28 |     Question: {question}
29 | """
30 |     static let PROMPT = PromptTemplate(input_variables: ["context", "question"], partial_variable: [:], template: prompt_template)
   |                |- warning: static property 'PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'PROMPT' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 |     let llm_chain: LLMChain
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/prompts/PromptTemplate.swift:10:14: note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class PromptTemplate {
   |              `- note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
11 |     // Schema to represent a prompt for an LLM.
12 |     public init(input_variables: [String], partial_variable: [String : String], template: String) {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/document_loaders/AudioLoader.swift:50:33: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
 48 |             defer {
 49 |                 // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
 50 |                 try? httpClient.syncShutdown()
    |                                 `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
 51 |             }
 52 | //            do {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/document_loaders/AudioLoader.swift:99:24: warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 |         return try await withCheckedThrowingContinuation { continuation in
 98 |             exporter.exportAsynchronously(completionHandler: {
 99 |                 switch exporter.status {
    |                        `- warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 |                     case AVAssetExportSession.Status.failed:
101 |                         print("Export failed. \(exporter.error!.localizedDescription)")
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.7, *)
 2 | open class AVAssetExportSession : NSObject {
   |            `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
 3 |     @available(*, unavailable)
 4 |     public convenience init()
[1442/1460] Compiling LangChain BaseConversationalRetrievalChain.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/chains/qa/BaseConversationalRetrievalChain.swift:19:16: warning: static property 'CONDENSE_QUESTION_PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
17 |     Standalone question:
18 |     """
19 |     static let CONDENSE_QUESTION_PROMPT = PromptTemplate(input_variables: ["chat_history", "question"], partial_variable: [:], template: _template)
   |                |- warning: static property 'CONDENSE_QUESTION_PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'CONDENSE_QUESTION_PROMPT' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 |     let combineChain: BaseCombineDocumentsChain
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/prompts/PromptTemplate.swift:10:14: note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class PromptTemplate {
   |              `- note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
11 |     // Schema to represent a prompt for an LLM.
12 |     public init(input_variables: [String], partial_variable: [String : String], template: String) {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/chains/qa/StuffDocumentsChain.swift:30:16: warning: static property 'PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
28 |     Question: {question}
29 | """
30 |     static let PROMPT = PromptTemplate(input_variables: ["context", "question"], partial_variable: [:], template: prompt_template)
   |                |- warning: static property 'PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'PROMPT' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 |     let llm_chain: LLMChain
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/prompts/PromptTemplate.swift:10:14: note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class PromptTemplate {
   |              `- note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
11 |     // Schema to represent a prompt for an LLM.
12 |     public init(input_variables: [String], partial_variable: [String : String], template: String) {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/document_loaders/AudioLoader.swift:50:33: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
 48 |             defer {
 49 |                 // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
 50 |                 try? httpClient.syncShutdown()
    |                                 `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
 51 |             }
 52 | //            do {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/document_loaders/AudioLoader.swift:99:24: warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 |         return try await withCheckedThrowingContinuation { continuation in
 98 |             exporter.exportAsynchronously(completionHandler: {
 99 |                 switch exporter.status {
    |                        `- warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 |                     case AVAssetExportSession.Status.failed:
101 |                         print("Export failed. \(exporter.error!.localizedDescription)")
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.7, *)
 2 | open class AVAssetExportSession : NSObject {
   |            `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
 3 |     @available(*, unavailable)
 4 |     public convenience init()
[1443/1460] Compiling LangChain ConversationalRetrievalChain.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/chains/qa/BaseConversationalRetrievalChain.swift:19:16: warning: static property 'CONDENSE_QUESTION_PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
17 |     Standalone question:
18 |     """
19 |     static let CONDENSE_QUESTION_PROMPT = PromptTemplate(input_variables: ["chat_history", "question"], partial_variable: [:], template: _template)
   |                |- warning: static property 'CONDENSE_QUESTION_PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'CONDENSE_QUESTION_PROMPT' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 |     let combineChain: BaseCombineDocumentsChain
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/prompts/PromptTemplate.swift:10:14: note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class PromptTemplate {
   |              `- note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
11 |     // Schema to represent a prompt for an LLM.
12 |     public init(input_variables: [String], partial_variable: [String : String], template: String) {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/chains/qa/StuffDocumentsChain.swift:30:16: warning: static property 'PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
28 |     Question: {question}
29 | """
30 |     static let PROMPT = PromptTemplate(input_variables: ["context", "question"], partial_variable: [:], template: prompt_template)
   |                |- warning: static property 'PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'PROMPT' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 |     let llm_chain: LLMChain
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/prompts/PromptTemplate.swift:10:14: note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class PromptTemplate {
   |              `- note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
11 |     // Schema to represent a prompt for an LLM.
12 |     public init(input_variables: [String], partial_variable: [String : String], template: String) {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/document_loaders/AudioLoader.swift:50:33: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
 48 |             defer {
 49 |                 // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
 50 |                 try? httpClient.syncShutdown()
    |                                 `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
 51 |             }
 52 | //            do {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/document_loaders/AudioLoader.swift:99:24: warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 |         return try await withCheckedThrowingContinuation { continuation in
 98 |             exporter.exportAsynchronously(completionHandler: {
 99 |                 switch exporter.status {
    |                        `- warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 |                     case AVAssetExportSession.Status.failed:
101 |                         print("Export failed. \(exporter.error!.localizedDescription)")
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.7, *)
 2 | open class AVAssetExportSession : NSObject {
   |            `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
 3 |     @available(*, unavailable)
 4 |     public convenience init()
[1444/1460] Compiling LangChain StuffDocumentsChain.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/chains/qa/BaseConversationalRetrievalChain.swift:19:16: warning: static property 'CONDENSE_QUESTION_PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
17 |     Standalone question:
18 |     """
19 |     static let CONDENSE_QUESTION_PROMPT = PromptTemplate(input_variables: ["chat_history", "question"], partial_variable: [:], template: _template)
   |                |- warning: static property 'CONDENSE_QUESTION_PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'CONDENSE_QUESTION_PROMPT' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 |     let combineChain: BaseCombineDocumentsChain
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/prompts/PromptTemplate.swift:10:14: note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class PromptTemplate {
   |              `- note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
11 |     // Schema to represent a prompt for an LLM.
12 |     public init(input_variables: [String], partial_variable: [String : String], template: String) {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/chains/qa/StuffDocumentsChain.swift:30:16: warning: static property 'PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
28 |     Question: {question}
29 | """
30 |     static let PROMPT = PromptTemplate(input_variables: ["context", "question"], partial_variable: [:], template: prompt_template)
   |                |- warning: static property 'PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'PROMPT' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 |     let llm_chain: LLMChain
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/prompts/PromptTemplate.swift:10:14: note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class PromptTemplate {
   |              `- note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
11 |     // Schema to represent a prompt for an LLM.
12 |     public init(input_variables: [String], partial_variable: [String : String], template: String) {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/document_loaders/AudioLoader.swift:50:33: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
 48 |             defer {
 49 |                 // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
 50 |                 try? httpClient.syncShutdown()
    |                                 `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
 51 |             }
 52 | //            do {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/document_loaders/AudioLoader.swift:99:24: warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 |         return try await withCheckedThrowingContinuation { continuation in
 98 |             exporter.exportAsynchronously(completionHandler: {
 99 |                 switch exporter.status {
    |                        `- warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 |                     case AVAssetExportSession.Status.failed:
101 |                         print("Export failed. \(exporter.error!.localizedDescription)")
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.7, *)
 2 | open class AVAssetExportSession : NSObject {
   |            `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
 3 |     @available(*, unavailable)
 4 |     public convenience init()
[1445/1460] Compiling LangChain LLMRouterChain.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/chains/qa/BaseConversationalRetrievalChain.swift:19:16: warning: static property 'CONDENSE_QUESTION_PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
17 |     Standalone question:
18 |     """
19 |     static let CONDENSE_QUESTION_PROMPT = PromptTemplate(input_variables: ["chat_history", "question"], partial_variable: [:], template: _template)
   |                |- warning: static property 'CONDENSE_QUESTION_PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'CONDENSE_QUESTION_PROMPT' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 |     let combineChain: BaseCombineDocumentsChain
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/prompts/PromptTemplate.swift:10:14: note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class PromptTemplate {
   |              `- note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
11 |     // Schema to represent a prompt for an LLM.
12 |     public init(input_variables: [String], partial_variable: [String : String], template: String) {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/chains/qa/StuffDocumentsChain.swift:30:16: warning: static property 'PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
28 |     Question: {question}
29 | """
30 |     static let PROMPT = PromptTemplate(input_variables: ["context", "question"], partial_variable: [:], template: prompt_template)
   |                |- warning: static property 'PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'PROMPT' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 |     let llm_chain: LLMChain
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/prompts/PromptTemplate.swift:10:14: note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class PromptTemplate {
   |              `- note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
11 |     // Schema to represent a prompt for an LLM.
12 |     public init(input_variables: [String], partial_variable: [String : String], template: String) {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/document_loaders/AudioLoader.swift:50:33: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
 48 |             defer {
 49 |                 // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
 50 |                 try? httpClient.syncShutdown()
    |                                 `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
 51 |             }
 52 | //            do {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/document_loaders/AudioLoader.swift:99:24: warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 |         return try await withCheckedThrowingContinuation { continuation in
 98 |             exporter.exportAsynchronously(completionHandler: {
 99 |                 switch exporter.status {
    |                        `- warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 |                     case AVAssetExportSession.Status.failed:
101 |                         print("Export failed. \(exporter.error!.localizedDescription)")
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.7, *)
 2 | open class AVAssetExportSession : NSObject {
   |            `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
 3 |     @available(*, unavailable)
 4 |     public convenience init()
[1446/1460] Compiling LangChain MultiRouteChain.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/chains/qa/BaseConversationalRetrievalChain.swift:19:16: warning: static property 'CONDENSE_QUESTION_PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
17 |     Standalone question:
18 |     """
19 |     static let CONDENSE_QUESTION_PROMPT = PromptTemplate(input_variables: ["chat_history", "question"], partial_variable: [:], template: _template)
   |                |- warning: static property 'CONDENSE_QUESTION_PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'CONDENSE_QUESTION_PROMPT' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 |     let combineChain: BaseCombineDocumentsChain
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/prompts/PromptTemplate.swift:10:14: note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class PromptTemplate {
   |              `- note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
11 |     // Schema to represent a prompt for an LLM.
12 |     public init(input_variables: [String], partial_variable: [String : String], template: String) {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/chains/qa/StuffDocumentsChain.swift:30:16: warning: static property 'PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
28 |     Question: {question}
29 | """
30 |     static let PROMPT = PromptTemplate(input_variables: ["context", "question"], partial_variable: [:], template: prompt_template)
   |                |- warning: static property 'PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'PROMPT' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 |     let llm_chain: LLMChain
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/prompts/PromptTemplate.swift:10:14: note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class PromptTemplate {
   |              `- note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
11 |     // Schema to represent a prompt for an LLM.
12 |     public init(input_variables: [String], partial_variable: [String : String], template: String) {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/document_loaders/AudioLoader.swift:50:33: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
 48 |             defer {
 49 |                 // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
 50 |                 try? httpClient.syncShutdown()
    |                                 `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
 51 |             }
 52 | //            do {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/document_loaders/AudioLoader.swift:99:24: warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 |         return try await withCheckedThrowingContinuation { continuation in
 98 |             exporter.exportAsynchronously(completionHandler: {
 99 |                 switch exporter.status {
    |                        `- warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 |                     case AVAssetExportSession.Status.failed:
101 |                         print("Export failed. \(exporter.error!.localizedDescription)")
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.7, *)
 2 | open class AVAssetExportSession : NSObject {
   |            `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
 3 |     @available(*, unavailable)
 4 |     public convenience init()
[1447/1460] Compiling LangChain AudioLoader.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/chains/qa/BaseConversationalRetrievalChain.swift:19:16: warning: static property 'CONDENSE_QUESTION_PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
17 |     Standalone question:
18 |     """
19 |     static let CONDENSE_QUESTION_PROMPT = PromptTemplate(input_variables: ["chat_history", "question"], partial_variable: [:], template: _template)
   |                |- warning: static property 'CONDENSE_QUESTION_PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'CONDENSE_QUESTION_PROMPT' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 |     let combineChain: BaseCombineDocumentsChain
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/prompts/PromptTemplate.swift:10:14: note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class PromptTemplate {
   |              `- note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
11 |     // Schema to represent a prompt for an LLM.
12 |     public init(input_variables: [String], partial_variable: [String : String], template: String) {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/chains/qa/StuffDocumentsChain.swift:30:16: warning: static property 'PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
28 |     Question: {question}
29 | """
30 |     static let PROMPT = PromptTemplate(input_variables: ["context", "question"], partial_variable: [:], template: prompt_template)
   |                |- warning: static property 'PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'PROMPT' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 |     let llm_chain: LLMChain
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/prompts/PromptTemplate.swift:10:14: note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class PromptTemplate {
   |              `- note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
11 |     // Schema to represent a prompt for an LLM.
12 |     public init(input_variables: [String], partial_variable: [String : String], template: String) {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/document_loaders/AudioLoader.swift:50:33: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
 48 |             defer {
 49 |                 // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
 50 |                 try? httpClient.syncShutdown()
    |                                 `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
 51 |             }
 52 | //            do {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/document_loaders/AudioLoader.swift:99:24: warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 |         return try await withCheckedThrowingContinuation { continuation in
 98 |             exporter.exportAsynchronously(completionHandler: {
 99 |                 switch exporter.status {
    |                        `- warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 |                     case AVAssetExportSession.Status.failed:
101 |                         print("Export failed. \(exporter.error!.localizedDescription)")
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.7, *)
 2 | open class AVAssetExportSession : NSObject {
   |            `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
 3 |     @available(*, unavailable)
 4 |     public convenience init()
[1448/1460] Compiling LangChain BaseLoader.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/chains/qa/BaseConversationalRetrievalChain.swift:19:16: warning: static property 'CONDENSE_QUESTION_PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
17 |     Standalone question:
18 |     """
19 |     static let CONDENSE_QUESTION_PROMPT = PromptTemplate(input_variables: ["chat_history", "question"], partial_variable: [:], template: _template)
   |                |- warning: static property 'CONDENSE_QUESTION_PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'CONDENSE_QUESTION_PROMPT' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 |     let combineChain: BaseCombineDocumentsChain
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/prompts/PromptTemplate.swift:10:14: note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class PromptTemplate {
   |              `- note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
11 |     // Schema to represent a prompt for an LLM.
12 |     public init(input_variables: [String], partial_variable: [String : String], template: String) {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/chains/qa/StuffDocumentsChain.swift:30:16: warning: static property 'PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
28 |     Question: {question}
29 | """
30 |     static let PROMPT = PromptTemplate(input_variables: ["context", "question"], partial_variable: [:], template: prompt_template)
   |                |- warning: static property 'PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'PROMPT' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 |     let llm_chain: LLMChain
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/prompts/PromptTemplate.swift:10:14: note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class PromptTemplate {
   |              `- note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
11 |     // Schema to represent a prompt for an LLM.
12 |     public init(input_variables: [String], partial_variable: [String : String], template: String) {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/document_loaders/AudioLoader.swift:50:33: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
 48 |             defer {
 49 |                 // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
 50 |                 try? httpClient.syncShutdown()
    |                                 `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
 51 |             }
 52 | //            do {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/document_loaders/AudioLoader.swift:99:24: warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 |         return try await withCheckedThrowingContinuation { continuation in
 98 |             exporter.exportAsynchronously(completionHandler: {
 99 |                 switch exporter.status {
    |                        `- warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 |                     case AVAssetExportSession.Status.failed:
101 |                         print("Export failed. \(exporter.error!.localizedDescription)")
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.7, *)
 2 | open class AVAssetExportSession : NSObject {
   |            `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
 3 |     @available(*, unavailable)
 4 |     public convenience init()
[1449/1460] Compiling LangChain BilibiliLoader.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/chains/qa/BaseConversationalRetrievalChain.swift:19:16: warning: static property 'CONDENSE_QUESTION_PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
17 |     Standalone question:
18 |     """
19 |     static let CONDENSE_QUESTION_PROMPT = PromptTemplate(input_variables: ["chat_history", "question"], partial_variable: [:], template: _template)
   |                |- warning: static property 'CONDENSE_QUESTION_PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'CONDENSE_QUESTION_PROMPT' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 |     let combineChain: BaseCombineDocumentsChain
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/prompts/PromptTemplate.swift:10:14: note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class PromptTemplate {
   |              `- note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
11 |     // Schema to represent a prompt for an LLM.
12 |     public init(input_variables: [String], partial_variable: [String : String], template: String) {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/chains/qa/StuffDocumentsChain.swift:30:16: warning: static property 'PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
28 |     Question: {question}
29 | """
30 |     static let PROMPT = PromptTemplate(input_variables: ["context", "question"], partial_variable: [:], template: prompt_template)
   |                |- warning: static property 'PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'PROMPT' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 |     let llm_chain: LLMChain
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/prompts/PromptTemplate.swift:10:14: note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class PromptTemplate {
   |              `- note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
11 |     // Schema to represent a prompt for an LLM.
12 |     public init(input_variables: [String], partial_variable: [String : String], template: String) {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/document_loaders/AudioLoader.swift:50:33: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
 48 |             defer {
 49 |                 // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
 50 |                 try? httpClient.syncShutdown()
    |                                 `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
 51 |             }
 52 | //            do {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/document_loaders/AudioLoader.swift:99:24: warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 |         return try await withCheckedThrowingContinuation { continuation in
 98 |             exporter.exportAsynchronously(completionHandler: {
 99 |                 switch exporter.status {
    |                        `- warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 |                     case AVAssetExportSession.Status.failed:
101 |                         print("Export failed. \(exporter.error!.localizedDescription)")
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.7, *)
 2 | open class AVAssetExportSession : NSObject {
   |            `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
 3 |     @available(*, unavailable)
 4 |     public convenience init()
[1450/1460] Compiling LangChain HtmlLoader.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/chains/qa/BaseConversationalRetrievalChain.swift:19:16: warning: static property 'CONDENSE_QUESTION_PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
17 |     Standalone question:
18 |     """
19 |     static let CONDENSE_QUESTION_PROMPT = PromptTemplate(input_variables: ["chat_history", "question"], partial_variable: [:], template: _template)
   |                |- warning: static property 'CONDENSE_QUESTION_PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'CONDENSE_QUESTION_PROMPT' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 |     let combineChain: BaseCombineDocumentsChain
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/prompts/PromptTemplate.swift:10:14: note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class PromptTemplate {
   |              `- note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
11 |     // Schema to represent a prompt for an LLM.
12 |     public init(input_variables: [String], partial_variable: [String : String], template: String) {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/chains/qa/StuffDocumentsChain.swift:30:16: warning: static property 'PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
28 |     Question: {question}
29 | """
30 |     static let PROMPT = PromptTemplate(input_variables: ["context", "question"], partial_variable: [:], template: prompt_template)
   |                |- warning: static property 'PROMPT' is not concurrency-safe because non-'Sendable' type 'PromptTemplate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'PROMPT' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 |     let llm_chain: LLMChain
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/prompts/PromptTemplate.swift:10:14: note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class PromptTemplate {
   |              `- note: class 'PromptTemplate' does not conform to the 'Sendable' protocol
11 |     // Schema to represent a prompt for an LLM.
12 |     public init(input_variables: [String], partial_variable: [String : String], template: String) {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/document_loaders/AudioLoader.swift:50:33: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
 48 |             defer {
 49 |                 // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
 50 |                 try? httpClient.syncShutdown()
    |                                 `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
 51 |             }
 52 | //            do {
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/document_loaders/AudioLoader.swift:99:24: warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 |         return try await withCheckedThrowingContinuation { continuation in
 98 |             exporter.exportAsynchronously(completionHandler: {
 99 |                 switch exporter.status {
    |                        `- warning: capture of 'exporter' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 |                     case AVAssetExportSession.Status.failed:
101 |                         print("Export failed. \(exporter.error!.localizedDescription)")
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.7, *)
 2 | open class AVAssetExportSession : NSObject {
   |            `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
 3 |     @available(*, unavailable)
 4 |     public convenience init()
[1451/1460] Compiling LangChain WikipediaAPIWrapper.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/wikipedia/WikipediaAPIWrapper.swift:18:29: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
16 |         defer {
17 |             // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
18 |             try? httpClient.syncShutdown()
   |                             `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
19 |         }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/wikipedia/WikipediaPage.swift:22:29: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
20 |         defer {
21 |             // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
22 |             try? httpClient.syncShutdown()
   |                             `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
23 |         }
24 |
[1452/1460] Compiling LangChain WikipediaPage.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/wikipedia/WikipediaAPIWrapper.swift:18:29: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
16 |         defer {
17 |             // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
18 |             try? httpClient.syncShutdown()
   |                             `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
19 |         }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/wikipedia/WikipediaPage.swift:22:29: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
20 |         defer {
21 |             // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
22 |             try? httpClient.syncShutdown()
   |                             `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
23 |         }
24 |
[1453/1460] Compiling LangChain Transcript.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/wikipedia/WikipediaAPIWrapper.swift:18:29: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
16 |         defer {
17 |             // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
18 |             try? httpClient.syncShutdown()
   |                             `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
19 |         }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/wikipedia/WikipediaPage.swift:22:29: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
20 |         defer {
21 |             // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
22 |             try? httpClient.syncShutdown()
   |                             `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
23 |         }
24 |
[1454/1460] Compiling LangChain TranscriptList.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/wikipedia/WikipediaAPIWrapper.swift:18:29: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
16 |         defer {
17 |             // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
18 |             try? httpClient.syncShutdown()
   |                             `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
19 |         }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/wikipedia/WikipediaPage.swift:22:29: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
20 |         defer {
21 |             // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
22 |             try? httpClient.syncShutdown()
   |                             `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
23 |         }
24 |
[1455/1460] Compiling LangChain TranscriptListFetcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/wikipedia/WikipediaAPIWrapper.swift:18:29: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
16 |         defer {
17 |             // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
18 |             try? httpClient.syncShutdown()
   |                             `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
19 |         }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/wikipedia/WikipediaPage.swift:22:29: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
20 |         defer {
21 |             // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
22 |             try? httpClient.syncShutdown()
   |                             `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
23 |         }
24 |
[1456/1460] Compiling LangChain YoutubeHackClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/wikipedia/WikipediaAPIWrapper.swift:18:29: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
16 |         defer {
17 |             // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
18 |             try? httpClient.syncShutdown()
   |                             `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
19 |         }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/wikipedia/WikipediaPage.swift:22:29: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
20 |         defer {
21 |             // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
22 |             try? httpClient.syncShutdown()
   |                             `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
23 |         }
24 |
[1457/1460] Compiling LangChain YoutubeInfo.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/wikipedia/WikipediaAPIWrapper.swift:18:29: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
16 |         defer {
17 |             // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
18 |             try? httpClient.syncShutdown()
   |                             `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
19 |         }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/wikipedia/WikipediaPage.swift:22:29: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
20 |         defer {
21 |             // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
22 |             try? httpClient.syncShutdown()
   |                             `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
23 |         }
24 |
[1458/1460] Compiling LangChain SimilaritySearchKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/wikipedia/WikipediaAPIWrapper.swift:18:29: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
16 |         defer {
17 |             // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
18 |             try? httpClient.syncShutdown()
   |                             `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
19 |         }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/wikipedia/WikipediaPage.swift:22:29: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
20 |         defer {
21 |             // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
22 |             try? httpClient.syncShutdown()
   |                             `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
23 |         }
24 |
[1459/1460] Compiling LangChain Supabase.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/wikipedia/WikipediaAPIWrapper.swift:18:29: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
16 |         defer {
17 |             // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
18 |             try? httpClient.syncShutdown()
   |                             `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
19 |         }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/wikipedia/WikipediaPage.swift:22:29: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
20 |         defer {
21 |             // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
22 |             try? httpClient.syncShutdown()
   |                             `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
23 |         }
24 |
[1460/1460] Compiling LangChain VectorStore.swift
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/wikipedia/WikipediaAPIWrapper.swift:18:29: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
16 |         defer {
17 |             // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
18 |             try? httpClient.syncShutdown()
   |                             `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
19 |         }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/LangChain/utilities/wikipedia/WikipediaPage.swift:22:29: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
20 |         defer {
21 |             // it's important to shutdown the httpClient after all requests are done, even if one failed. See: https://github.com/swift-server/async-http-client
22 |             try? httpClient.syncShutdown()
   |                             `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
23 |         }
24 |
Build complete! (116.95s)
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/LangChain/vectorstores/supabase/supabase.sql
warning: 'swift-algorithms': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-algorithms/Sources/Algorithms/Documentation.docc
Build complete.
{
  "dependencies" : [
    {
      "identity" : "openai-kit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.8.5",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/buhe/openai-kit"
    },
    {
      "identity" : "supabase-swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.2.1",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/supabase-community/supabase-swift"
    },
    {
      "identity" : "swiftyjson",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.0.1",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/SwiftyJSON/SwiftyJSON"
    },
    {
      "identity" : "swxmlhash",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "7.0.2",
            "upper_bound" : "8.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/drmohundro/SWXMLHash"
    },
    {
      "identity" : "swiftsoup",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.6.1",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/scinfu/SwiftSoup"
    },
    {
      "identity" : "swift-filestore",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.5.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/juyan/swift-filestore"
    },
    {
      "identity" : "similarity-search-kit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.0.16",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/buhe/similarity-search-kit"
    },
    {
      "identity" : "generative-ai-swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.4.4",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/google/generative-ai-swift"
    },
    {
      "identity" : "swiftynotion",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.5",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/buhe/SwiftyNotion"
    },
    {
      "identity" : "feedkit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "9.1.2",
            "upper_bound" : "10.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/nmdias/FeedKit"
    }
  ],
  "manifest_display_name" : "langchain-swift",
  "name" : "langchain-swift",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "LangChain",
      "targets" : [
        "LangChain"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LangChainTests",
      "module_type" : "SwiftTarget",
      "name" : "LangChainTests",
      "path" : "Tests/LangChainTests",
      "sources" : [
        "Base64.swift",
        "BySplit.swift",
        "langchain_swiftTests.swift"
      ],
      "target_dependencies" : [
        "LangChain"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LangChain",
      "module_type" : "SwiftTarget",
      "name" : "LangChain",
      "path" : "Sources/LangChain",
      "product_dependencies" : [
        "OpenAIKit",
        "Supabase",
        "SwiftyJSON",
        "SWXMLHash",
        "SwiftSoup",
        "SwiftFileStore",
        "SimilaritySearchKit",
        "GoogleGenerativeAI",
        "SwiftyNotion",
        "FeedKit"
      ],
      "product_memberships" : [
        "LangChain"
      ],
      "sources" : [
        "LangChain.swift",
        "agents/Agent.swift",
        "cache/Cache.swift",
        "callbacks/BaseCallbackHandler.swift",
        "callbacks/StdOutCallbackHandler.swift",
        "callbacks/TraceCallbackHandler.swift",
        "chains/BaseChain.swift",
        "chains/DNChain.swift",
        "chains/LLMChain.swift",
        "chains/SequentialChain.swift",
        "chains/SimpleSequentialChain.swift",
        "chains/TransformChain.swift",
        "chains/qa/BaseCombineDocumentsChain.swift",
        "chains/qa/BaseConversationalRetrievalChain.swift",
        "chains/qa/ConversationalRetrievalChain.swift",
        "chains/qa/StuffDocumentsChain.swift",
        "chains/router/LLMRouterChain.swift",
        "chains/router/MultiRouteChain.swift",
        "document_loaders/AudioLoader.swift",
        "document_loaders/BaseLoader.swift",
        "document_loaders/BilibiliLoader.swift",
        "document_loaders/HtmlLoader.swift",
        "document_loaders/ImageOCRLoader.swift",
        "document_loaders/NotionLoader.swift",
        "document_loaders/PDFLoader.swift",
        "document_loaders/RSSLoader.swift",
        "document_loaders/TextLoader.swift",
        "document_loaders/YoutubeLoader.swift",
        "embeddings/Distilbert.swift",
        "embeddings/Embeddings.swift",
        "embeddings/OllamaEmbeddings.swift",
        "embeddings/OpenAIEmbeddings.swift",
        "llms/Baidu.swift",
        "llms/ChatGLM.swift",
        "llms/ChatOllama.swift",
        "llms/ChatOpenAI.swift",
        "llms/Dalle.swift",
        "llms/Gemini.swift",
        "llms/HuggingFace.swift",
        "llms/LLM.swift",
        "llms/LMStudio.swift",
        "llms/Llama2.swift",
        "llms/Local.swift",
        "llms/Ollama.swift",
        "llms/OpenAI.swift",
        "memory/Base.swift",
        "memory/Chat.swift",
        "memory/ReadOnlySharedMemory.swift",
        "parser/BaseOutputParser.swift",
        "parser/DateOutputParser.swift",
        "parser/EnumOutputParser.swift",
        "parser/ListOutputParser.swift",
        "parser/MRKLOutputParser.swift",
        "parser/ObjectOutputParser.swift",
        "parser/RouterOutputParser.swift",
        "parser/SimpleJsonOutputParser.swift",
        "prompts/MultiPromptRouter.swift",
        "prompts/PromptTemplate.swift",
        "prompts/mrkl/MrklPrompt.swift",
        "retriever/BaseRetriever.swift",
        "retriever/MultiVectorRetriever.swift",
        "retriever/ParentDocumentRetriever.swift",
        "retriever/PubmedRetriever.swift",
        "retriever/WikipediaRetriever.swift",
        "schema/BaseStore.swift",
        "schema/InMemoryStore.swift",
        "schema/LocalFileStore.swift",
        "schema/Schema.swift",
        "tools/BaseTool.swift",
        "tools/Dummy.swift",
        "tools/GetLocationTool.swift",
        "tools/InvalidTool.swift",
        "tools/JavascriptREPLTool.swift",
        "tools/Serper.swift",
        "tools/TTSTool.swift",
        "tools/WeatherTool.swift",
        "utilities/GoogleSerperAPIWrapper.swift",
        "utilities/HFInferenceApi.swift",
        "utilities/LC.swift",
        "utilities/LlamaAPIWrapper.swift",
        "utilities/OpenWeatherAPIWrapper.swift",
        "utilities/TextSplitter.swift",
        "utilities/ThreadManager.swift",
        "utilities/anotheropenai/OpenAITTSAPIWrapper.swift",
        "utilities/baidu/BaiduClient.swift",
        "utilities/bilibili/BilibiliClient.swift",
        "utilities/bilibili/BilibiliCredential.swift",
        "utilities/bilibili/BilibiliVideo.swift",
        "utilities/chatglm/ChatGLMAPIWrapper.swift",
        "utilities/chatglm/ChatGLMModel.swift",
        "utilities/dalle/DalleImage.swift",
        "utilities/jwt/Cryptor.swift",
        "utilities/jwt/Extensions/String.swift",
        "utilities/jwt/JWT.swift",
        "utilities/pubmed/PubmedAPIWrapper.swift",
        "utilities/pubmed/PubmedPage.swift",
        "utilities/report/ReportKey.swift",
        "utilities/report/TraceManager.swift",
        "utilities/wikipedia/WikipediaAPIWrapper.swift",
        "utilities/wikipedia/WikipediaPage.swift",
        "utilities/youtube/Transcript.swift",
        "utilities/youtube/TranscriptList.swift",
        "utilities/youtube/TranscriptListFetcher.swift",
        "utilities/youtube/YoutubeHackClient.swift",
        "utilities/youtube/YoutubeInfo.swift",
        "vectorstores/SimilaritySearchKit.swift",
        "vectorstores/Supabase.swift",
        "vectorstores/VectorStore.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.