launcher

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package launcher provides ways to interact with agents.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SessionService  session.Service
	ArtifactService artifact.Service
	MemoryService   memory.Service
	AgentLoader     agent.Loader
	A2AOptions      []a2asrv.RequestHandlerOption
	PluginConfig    runner.PluginConfig
}

Config contains parameters for web & console execution: sessions, artifacts, agents etc

type Launcher

type Launcher interface {
	// Execute parses command-line arguments and runs the launcher.
	Execute(ctx context.Context, config *Config, args []string) error
	// CommandLineSyntax returns a string describing the command-line flags and arguments.
	CommandLineSyntax() string
}

Launcher is the main interface for running an ADK application. It is responsible for parsing command-line arguments and executing the corresponding logic.

type SubLauncher

type SubLauncher interface {
	// Keyword returns the command-line keyword that activates this sub-launcher.
	Keyword() string
	// Parse parses the arguments for the sub-launcher. It should return any unparsed arguments.
	Parse(args []string) ([]string, error)
	// CommandLineSyntax returns a string describing the command-line flags and arguments for the sub-launcher.
	CommandLineSyntax() string
	// SimpleDescription provides a brief, one-line description of the sub-launcher's function.
	SimpleDescription() string
	// Run executes the sub-launcher's main logic.
	Run(ctx context.Context, config *Config) error
}

SubLauncher is an interface for launchers that can be composed within a parent launcher, like the universal launcher. Each SubLauncher corresponds to a specific mode of operation (e.g., 'console' or 'web').

Directories

Path Synopsis
Package console provides a simple way to interact with an agent from console application.
Package console provides a simple way to interact with an agent from console application.
Package full provides easy way to play with ADK with all available options
Package full provides easy way to play with ADK with all available options
Package prod provides easy way to play with ADK with all available options without development support (no console, no ADK Web UI) including only production options like the REST API and A2A support.
Package prod provides easy way to play with ADK with all available options without development support (no console, no ADK Web UI) including only production options like the REST API and A2A support.
Package universal provides an umbrella over launchers (console and web).
Package universal provides an umbrella over launchers (console and web).
web
Package web provides a way to run ADK using a web server.
Package web provides a way to run ADK using a web server.
a2a
Package a2a provides a sublauncher that provides A2A capabilities.
Package a2a provides a sublauncher that provides A2A capabilities.
api
Package api provides a sublauncher that adds ADK REST API capabilities.
Package api provides a sublauncher that adds ADK REST API capabilities.
webui
Package webui provides a sublauncher that adds ADK Web UI capabilities.
Package webui provides a sublauncher that adds ADK Web UI capabilities.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL