diff --git a/Package.resolved b/Package.resolved new file mode 100644 index 0000000..4b81fcb --- /dev/null +++ b/Package.resolved @@ -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 +} diff --git a/Package.swift b/Package.swift index 0f9d99e..a6c8b7c 100644 --- a/Package.swift +++ b/Package.swift @@ -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"]), diff --git a/README.md b/README.md index dc8b8a9..35cd49f 100644 --- a/README.md +++ b/README.md @@ -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 \ No newline at end of file +[AgentExecutor]: https://github.com/buhe/langchain-swift/blob/main/Sources/LangChain/agents/Agent.swift \ No newline at end of file