-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
Package.swift
56 lines (53 loc) · 2.84 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// swift-tools-version: 5.9.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "langchain-swift",
platforms: [
.iOS(.v15),
.macOS(.v12),
.watchOS(.v8),
.visionOS(.v1)
],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "LangChain",
targets: ["LangChain"]),
],
dependencies: [
.package(url: "https://github.com/buhe/openai-kit", .upToNextMajor(from: "1.8.5")),
.package(url: "https://github.com/supabase-community/supabase-swift", .upToNextMajor(from: "0.2.1")),
.package(url: "https://github.com/SwiftyJSON/SwiftyJSON", .upToNextMajor(from: "5.0.1")),
.package(url: "https://github.com/drmohundro/SWXMLHash", .upToNextMajor(from: "7.0.2")),
.package(url: "https://github.com/scinfu/SwiftSoup", .upToNextMajor(from: "2.6.1")),
.package(url: "https://github.com/juyan/swift-filestore", .upToNextMajor(from: "0.5.0")),
.package(url: "https://github.com/buhe/similarity-search-kit", from: "0.0.16"),
.package(url: "https://github.com/google/generative-ai-swift", .upToNextMajor(from: "0.4.4")),
.package(url: "https://github.com/buhe/SwiftyNotion", .upToNextMajor(from: "0.1.5")),
.package(url: "https://github.com/nmdias/FeedKit", .upToNextMajor(from: "9.1.2")),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "LangChain",
dependencies: [
.product(name: "OpenAIKit", package: "openai-kit"),
.product(name: "Supabase", package: "supabase-swift"),
.product(name: "SwiftyJSON", package: "SwiftyJSON"),
.product(name: "SWXMLHash", package: "SWXMLHash"),
.product(name: "SwiftSoup", package: "SwiftSoup"),
.product(name: "SwiftFileStore", package: "swift-filestore"),
.product(name: "SimilaritySearchKit", package: "similarity-search-kit", condition: .when(platforms: [.macOS, .iOS, .visionOS])),
// .product(name: "SimilaritySearchKitDistilbert", package: "similarity-search-kit", condition: .when(platforms: [.macOS, .iOS, .visionOS])),
.product(name: "GoogleGenerativeAI", package: "generative-ai-swift"),
.product(name: "SwiftyNotion", package: "SwiftyNotion"),
.product(name: "FeedKit", package: "FeedKit"),
]
),
.testTarget(
name: "LangChainTests",
dependencies: ["LangChain"]),
]
)