Module launcher

Module launcher 

Source
Expand description

Simple launcher for ADK agents with CLI support.

Provides a one-liner to run agents with console or web server modes, similar to adk-go’s launcher pattern.

§Example

use adk_rust::prelude::*;
use adk_rust::Launcher;

#[tokio::main]
async fn main() -> Result<()> {
    let agent = /* create your agent */;

    // Run with CLI support (console by default, or `serve` for web)
    Launcher::new(agent).run().await
}

§CLI Usage

# Interactive console (default)
cargo run

# Web server with UI
cargo run -- serve
cargo run -- serve --port 3000

Structs§

Launcher
Launcher for running ADK agents with CLI support.
SingleAgentLoader
Single agent loader for the launcher