Skip to main content

Module gateway

Module gateway 

Source
Expand description

admin config gateway — edit the profile’s gateway section: enable state, routing patterns, and the default provider.

Every mutation resolves the resulting spec and validates it against the profile’s provider registry (profile.providers), so a route or default-provider that names a provider absent from the registry fails at the edit rather than at the next boot. The gateway owns no catalog: providers and models live in profile.providers (see admin config catalog).

Copyright (c) systemprompt.io — Business Source License 1.1. See https://systemprompt.io for licensing details.

Structs§

RouteAddArgs

Enums§

DefaultProviderCommands
GatewayCommands
RouteCommands

Functions§

add_route
clear_default_provider
execute
remove_route
set_default_provider
set_enabled
spec_mut
validate_gateway