Documentation
¶
Index ¶
- type App
- func (a *App) AgentGateway() *runtimegateway.AgentGateway
- func (a *App) CLIAuthManager() *cliauth.Manager
- func (a *App) CLIAuthRefresher() *cliauth.AutoRefresher
- func (App) CaddyModule() caddy.ModuleInfo
- func (a *App) ConfigStore() configstore.ConfigStoreBackend
- func (a *App) CredentialManager() *credentialmgr.Manager
- func (a *App) Provider(name string) (provider.Provider, bool)
- func (a *App) Provision(ctx caddy.Context) error
- func (a *App) Start() error
- func (a *App) Stop() error
- func (a *App) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// Providers lists the configured LLM providers.
Providers map[string]provider.ProviderConfig `json:"providers,omitempty"`
// ConfigStore configures persistent admin/auth state storage.
ConfigStoreRaw caddy.ModuleMap `json:"config_store,omitempty" caddy:"namespace=agent_gateway.config_store_backends"`
// ProviderTypes configures startup-only provider type availability.
ProviderTypes []provider.ProviderTypeSetting `json:"provider_types,omitempty"`
// LLMRoutes lists statically configured gateway LLM route configs from the Caddyfile app block.
LLMRoutes []routecore.AgentRouteConfig `json:"llm_routes,omitempty"`
// contains filtered or unexported fields
}
App is the Caddy app module for the Agent Gateway. It manages providers, MCP clients, memory stores, and configuration.
func (*App) AgentGateway ¶
func (a *App) AgentGateway() *runtimegateway.AgentGateway
AgentGateway returns the gateway instance owned by this app. It returns nil if called before Provision completes.
func (*App) CLIAuthManager ¶
CLIAuthManager returns the CLI authenticator manager shared across the gateway.
func (*App) CLIAuthRefresher ¶
func (a *App) CLIAuthRefresher() *cliauth.AutoRefresher
CLIAuthRefresher returns the CLI credential refresher shared across the gateway.
func (App) CaddyModule ¶
func (App) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*App) ConfigStore ¶
func (a *App) ConfigStore() configstore.ConfigStoreBackend
func (*App) CredentialManager ¶
func (a *App) CredentialManager() *credentialmgr.Manager
CredentialManager returns the shared upstream credential manager.
Click to show internal directories.
Click to hide internal directories.