Skip to main content

Crate adk_cli

Crate adk_cli 

Source
Expand description

§adk-cli

Command-line launcher for ADK agents.

§Overview

This crate provides:

§Quick Start

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)

Re-exports§

pub use launcher::Launcher;

Modules§

console
Legacy console entry point.
launcher
Simple launcher for ADK agents with CLI support.
serve
Legacy serve entry point.