The unofficial Swift implementation of the Agent Client Protocol (ACP).
Note: This is an experimental/unofficial SDK and is not affiliated with the official ACP project.
Learn more at https://agentclientprotocol.com
Add the package to your Package.swift dependencies:
dependencies: [
.package(url: "https://github.com/RayZhao1998/acp-swift-sdk.git", branch: "main")
]And add ACP to your target dependencies:
targets: [
.target(
name: "YourTarget",
dependencies: [
.product(name: "ACP", package: "acp-swift-sdk")
]
)
]Start by reading the official ACP documentation to understand the core concepts and protocol specification.
The Sources/Example directory contains a simple implementation of an ACP Client in Swift. This example connects to a local agent (e.g., kimi) and demonstrates the handshake and capability negotiation.
You can run the example from your terminal:
swift run ACPKimiExampleNote: You may need to have an ACP-compatible agent (like kimi) installed and available in your PATH, or configure the ACP_AGENT_BIN environment variable.
Contributions are welcome! Please ensure your code follows the project's formatting guidelines.
By contributing, you agree that your contributions will be licensed under the Apache 2.0 License.