应用程序(App)Loader

interface AppLoader

The central interface for loading what the ADK web server serves: apps, agents and workflows, each as an App keyed by its app name. Supersedes AgentLoader. Implementations must be safe for concurrent calls.

Inheritors

函数

Link copied to clipboard
abstract fun listApps(): List<String>

可用应用程序的名称;每个名称都必须是有效的应用程序名称。如果没有可用应用程序,则此字段为空。

Link copied to clipboard
abstract fun loadApp(appName: String): App?

该应用程序起到了以下作用: appName如果不存在相应的值,则返回 `null`。