prod.go

Overview

The prod.go file provides an entry point for launching a universal launcher in a production environment that integrates the Agent Development Kit (ADK) with available functionalities. It enables running the ADK without the need for development-supporting components such as consoles or web-based user interfaces. This launcher supports interaction solely through the API and Agent-to-Agent (A2A) communication protocols, facilitating headless or backend-only deployments.

The primary purpose of this file is to construct and expose a fully configured launcher instance that combines REST API serving and A2A communication, encapsulated within a universal launcher framework.

Package and Imports

Key Function

NewLauncher() launcher.Launcher

func NewLauncher() launcher.Launcher
import "google.golang.org/adk/cmd/launcher/prod"

func main() {
    launcher := prod.NewLauncher()
    launcher.Run() // Hypothetical method to start the launcher
}

Important Implementation Notes

Interaction with Other System Components

This modular design allows the prod package to bootstrap a production-ready ADK deployment that supports external API calls and A2A agent messaging without additional UI layers.


Diagram: Launcher Composition Structure

classDiagram
class prod {
+NewLauncher()
}
class universalLauncher {
+Run()
}
class webLauncher {
+Run()
}
class apiLauncher {
+Run()
}
class a2aLauncher {
+Run()
}
prod --> universalLauncher : returns
universalLauncher --> webLauncher : wraps
webLauncher --> apiLauncher : contains
webLauncher --> a2aLauncher : contains

This diagram illustrates the hierarchical composition of the launcher components:


For additional context on the launcher implementations and their interactions, see the topics: