Skip to content

Commit

Permalink
feat: add swift-async-algorithms package
Browse files Browse the repository at this point in the history
work on #1
  • Loading branch information
bsorrentino committed Mar 16, 2024
1 parent 1dcd0a2 commit 220b164
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
24 changes: 24 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"originHash" : "047cd39699e17051a654c004062f35c3a989fcabae31d44fcd7bb447c5516807",
"pins" : [
{
"identity" : "swift-async-algorithms",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-async-algorithms",
"state" : {
"revision" : "da4e36f86544cdf733a40d59b3a2267e3a7bbf36",
"version" : "1.0.0"
}
},
{
"identity" : "swift-collections",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-collections.git",
"state" : {
"revision" : "94cf62b3ba8d4bed62680a282d4c25f9c63c2efb",
"version" : "1.1.0"
}
}
],
"version" : 3
}
7 changes: 6 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,16 @@ let package = Package(
name: "LangGraph",
targets: ["LangGraph"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-async-algorithms", from: "1.0.0"),
],
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: "LangGraph", dependencies: [], resources: [ .process("Resources")]),
name: "LangGraph", dependencies: [
.product(name: "AsyncAlgorithms", package: "swift-async-algorithms"),
], resources: [ .process("Resources")]),
.testTarget(
name: "LangGraphTests",
dependencies: ["LangGraph"]),
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,4 @@ In the [LangChainDemo](LangChainDemo) project, you can find the porting of [Agen
[langchain-swift]: https://github.com/buhe/langchain-swift.git
[langchain.ai]: https://github.com/langchain-ai
[langgraph]: https://github.com/langchain-ai/langgraph
[AgentExecutor]: https://github.com/bsorrentino/langchain-swift/blob/main/Sources/LangChain/agents/Agent.swift
[AgentExecutor]: https://github.com/buhe/langchain-swift/blob/main/Sources/LangChain/agents/Agent.swift

0 comments on commit 220b164

Please sign in to comment.