Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
955 changes: 1 addition & 954 deletions Cargo.lock

Large diffs are not rendered by default.

39 changes: 2 additions & 37 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "agent-client-protocol"
name = "agent-client-protocol-schema"
authors = ["Zed <hi@zed.dev>"]
version = "0.4.6"
edition = "2024"
Expand All @@ -11,7 +11,7 @@ documentation = "https://docs.rs/agent-client-protocol"
readme = "README.md"
keywords = ["agent", "client", "protocol", "ai", "editor"]
categories = ["development-tools", "api-bindings"]
include = ["/rust/**/*.rs", "/README.md", "/LICENSE-APACHE", "/Cargo.toml"]
include = ["/rust/**/*.rs", "/README.md", "/LICENSE", "/Cargo.toml"]

[features]
unstable = []
Expand All @@ -20,43 +20,8 @@ unstable = []
path = "rust/acp.rs"
doctest = false

[[bin]]
name = "generate"
path = "rust/bin/generate.rs"

[[example]]
name = "agent"
path = "rust/examples/agent.rs"

[[example]]
name = "client"
path = "rust/examples/client.rs"

[dependencies]
anyhow = "1"
async-broadcast = "0.7"
async-trait = "0.1"
futures = { version = "0.3" }
log = "0.4"
parking_lot = "0.12"
schemars = { version = "1" }
serde = { version = "1", features = ["derive", "rc"] }
serde_json = { version = "1", features = ["raw_value"] }

[dev-dependencies]
env_logger = "0.11"
futures-util = { version = "0.3", features = ["io"] }
piper = "0.2"
pretty_assertions = "1"
rustyline = "17"
tokio = { version = "1", features = [
"macros",
"rt",
"time",
"io-std",
"io-util",
"net",
"process",
"sync",
] }
tokio-util = { version = "0.7", features = ["compat"] }
File renamed without changes.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Learn more at [agentclientprotocol.com](https://agentclientprotocol.com/).

- **JSON Schema**: [`schema.json`](./schema/schema.json)
- **Kotlin**: [`acp-kotlin`](https://github.com/agentclientprotocol/kotlin-sdk) – supports JVM, other targets are in progress
- **Rust**: [`agent-client-protocol`](https://crates.io/crates/agent-client-protocol) - See [examples/agent.rs](./rust/examples/agent.rs) and [examples/client.rs](./rust/examples/client.rs)
- **Rust**: [`agent-client-protocol`](https://crates.io/crates/agent-client-protocol) - See [examples/agent.rs](https://github.com/agentclientprotocol/rust-sdk/blob/main/examples/agent.rs) and [examples/client.rs](https://github.com/agentclientprotocol/rust-sdk/blob/main/examples/client.rs)
- **TypeScript**: [`@agentclientprotocol/sdk`](https://www.npmjs.com/package/@agentclientprotocol/sdk) - See [examples/](https://github.com/agentclientprotocol/typescript-sdk/tree/main/src/examples)

### From the Community
Expand Down
4 changes: 2 additions & 2 deletions docs/libraries/rust.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ trait or the
trait to define the interaction with the ACP counterpart.

The
[agent](https://github.com/agentclientprotocol/agent-client-protocol/blob/main/rust/examples/agent.rs)
[agent](https://github.com/agentclientprotocol/rust-sdk/blob/main/examples/agent.rs)
and
[client](https://github.com/agentclientprotocol/agent-client-protocol/blob/main/rust/examples/client.rs)
[client](https://github.com/agentclientprotocol/rust-sdk/blob/main/examples/client.rs)
example binaries provide runnable examples of how to do this, which you can use
as a starting point.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"author": "Zed Industries",
"files": [
"schema/schema.json",
"LICENSE-APACHE"
"LICENSE"
],
"type": "module",
"scripts": {
Expand Down
6 changes: 2 additions & 4 deletions rust/acp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
//! which define the core methods and capabilities of each side of the connection.
//!
//! To see working examples of these traits in action, check out the
//! [agent](https://github.com/agentclientprotocol/agent-client-protocol/blob/main/rust/examples/agent.rs)
//! [agent](https://github.com/agentclientprotocol/rust-sdk/blob/main/examples/agent.rs)
//! and
//! [client](https://github.com/agentclientprotocol/agent-client-protocol/blob/main/rust/examples/client.rs)
//! [client](https://github.com/agentclientprotocol/rust-sdk/blob/main/examples/client.rs)
//! example binaries included with this crate.
//!
//! ### Implementation Pattern
Expand All @@ -56,7 +56,6 @@ mod content;
mod error;
mod ext;
mod plan;
mod sdk;
mod tool_call;
mod version;

Expand All @@ -66,7 +65,6 @@ pub use content::*;
pub use error::*;
pub use ext::*;
pub use plan::*;
pub use sdk::*;
pub use serde_json::value::RawValue;
pub use tool_call::*;
pub use version::*;
Expand Down
193 changes: 0 additions & 193 deletions rust/examples/agent.rs

This file was deleted.

Loading