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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
//! # adk-acp — Agent Client Protocol integration for ADK-Rust
//!
//! Connect ADK agents to external ACP agents (Claude Code, Codex, etc.) and
//! optionally expose ADK agents as ACP-compatible agents for IDE connections.
//!
//! ## Quick Start
//!
//! ```rust,ignore
//! use adk_acp::AcpAgentTool;
//! use adk_agent::LlmAgentBuilder;
//! use std::sync::Arc;
//!
//! // Wrap Claude Code as a tool your agent can delegate to
//! let claude = AcpAgentTool::new("claude-code")
//! .description("Delegate complex coding tasks to Claude Code");
//!
//! let agent = LlmAgentBuilder::new("orchestrator")
//! .instruction("Use claude-code for complex refactoring tasks.")
//! .model(model)
//! .tool(Arc::new(claude))
//! .build()?;
//! ```
//!
//! ## What is ACP?
//!
//! The [Agent Client Protocol](https://agentclientprotocol.com/) standardizes
//! communication between code editors (IDEs, CLIs) and coding agents. It enables:
//!
//! - **Tool use**: Agents can request permission to use tools
//! - **Streaming responses**: Real-time content delivery
//! - **Session management**: Multi-turn conversations with context
//! - **Proxy chains**: Middleware that intercepts/transforms messages
//!
//! ## Features
//!
//! - **`default`**: Client-side only (connect to ACP agents)
//! - **`server`**: Expose ADK agents as ACP-compatible agents
/// ACP Server: expose ADK agents as ACP-compatible agents for IDE connections.
///
/// Enabled with the `server` feature flag. See [`server::AcpServer`] for usage.
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use AcpAgentTool;
pub use AcpToolset;
pub use ;
// Server re-exports (gated behind `server` feature)
pub use ;
// Re-export the SDK for advanced usage
pub use agent_client_protocol;