full.go

Overview

The full.go source file defines a package named full that provides an easy and comprehensive way to launch the ADK (Agent Development Kit) with all available launcher options integrated. This file acts as a convenience wrapper that composes multiple launcher implementations into a single, versatile launcher instance.

Specifically, it combines:

This unified launcher is useful for scenarios where a developer or operator requires a fully featured ADK launcher capable of supporting multiple interaction modalities out-of-the-box.


Package Declaration

package full

The full package is intended to provide a complete launcher setup for the ADK environment.


Imports

The file imports the following packages from the ADK repository, each corresponding to different launcher implementations:


Function: NewLauncher

func NewLauncher() launcher.Launcher {
	return universal.NewLauncher(console.NewLauncher(), web.NewLauncher(api.NewLauncher(), a2a.NewLauncher(), webui.NewLauncher()))
}

Description

NewLauncher returns a fully featured universal launcher that includes all the main launcher options bundled together.

Return Type

Functionality

Usage Example

package main

import (
    "google.golang.org/adk/cmd/launcher/full"
)

func main() {
    launcher := full.NewLauncher()
    launcher.Run()
}

This example demonstrates how to obtain the fully featured launcher and run it, thereby enabling console, web, API, A2A, and UI interfaces with a single instance.


Implementation Details and Interaction

This file does not contain complex algorithms but serves as an integration point, demonstrating modular design in software architecture.


Interaction with Other System Components


Diagram: Launcher Composition Structure

classDiagram
class NewLauncher {
+NewLauncher()
}
class UniversalLauncher {
+Run()
+Stop()
}
class ConsoleLauncher {
+Run()
+Stop()
}
class WebLauncher {
+Run()
+Stop()
}
class ApiLauncher {
+Run()
+Stop()
}
class A2ALauncher {
+Run()
+Stop()
}
class WebUILauncher {
+Run()
+Stop()
}
NewLauncher --> UniversalLauncher : returns
UniversalLauncher --> ConsoleLauncher : composes
UniversalLauncher --> WebLauncher : composes
WebLauncher --> ApiLauncher : composes
WebLauncher --> A2ALauncher : composes
WebLauncher --> WebUILauncher : composes

Reference to Related Topics


This file is a concise integration utility that provides a one-stop launcher for the ADK ecosystem, enabling developers and operators to launch a multi-modal ADK environment with minimal setup.