adk_cli/lib.rs
1//! # adk-cli
2//!
3//! Command-line launcher for ADK agents.
4//!
5//! ## Overview
6//!
7//! This crate provides:
8//!
9//! - [`Launcher`] — embeddable CLI that gives any agent a REPL and a web server
10//! - [`console::run_console`] — quick one-call REPL for examples
11//! - [`serve::run_serve`] — quick one-call HTTP server for examples
12//!
13//! ## Quick Start
14//!
15//! ```rust,no_run
16//! use adk_cli::Launcher;
17//! use std::sync::Arc;
18//!
19//! #[tokio::main]
20//! async fn main() -> adk_core::Result<()> {
21//! // let agent = create_your_agent()?;
22//! // Launcher::new(Arc::new(agent)).run().await?;
23//! Ok(())
24//! }
25//! ```
26//!
27//! ## Modes
28//!
29//! - **Interactive**: rustyline REPL with history, streaming output, and think-block rendering
30//! - **Server**: HTTP server with web UI (`serve --port 8080`)
31
32pub mod console;
33pub mod launcher;
34pub mod serve;
35
36pub use launcher::Launcher;