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
//! # adk-cli
//!
//! Command-line launcher for ADK agents.
//!
//! ## Overview
//!
//! This crate provides:
//!
//! - [`Launcher`] — embeddable CLI that gives any agent a REPL and a web server
//! - [`console::run_console`] — quick one-call REPL for examples
//! - [`serve::run_serve`] — quick one-call HTTP server for examples
//!
//! ## Quick Start
//!
//! ```rust,no_run
//! use adk_cli::Launcher;
//! use std::sync::Arc;
//!
//! #[tokio::main]
//! async fn main() -> adk_core::Result<()> {
//! // let agent = create_your_agent()?;
//! // Launcher::new(Arc::new(agent)).run().await?;
//! Ok(())
//! }
//! ```
//!
//! ## Modes
//!
//! - **Interactive**: rustyline REPL with history, streaming output, and think-block rendering
//! - **Server**: HTTP server with web UI (`serve --port 8080`)
pub use Launcher;