Expand description
Settings domain types and validation.
This module contains the core settings types used across the application. These are pure domain types with no infrastructure dependencies.
Modules§
- settings_
loop_ 🔒guard - What the proxy’s loop guard does when a replayed history trips it.
- settings_
remote 🔒 - The remote tunnel’s settings (ADR 0012): the connect side’s stored pairing as one value, and the remote half of merging and validating.
- settings_
update 🔒 - The two types that sit beside
Settings: a partial update, and what validation refuses. - settings_
validate 🔒 - The inference-parameter validators, split from
super.
Structs§
- Device
- One device this machine has issued a key to.
- Remote
Pairing - The machine
gglib remote joinpaired with, and the key that machine issued — one record, because they are one fact. - Remote
Serve - How this machine was told to put its proxy on the tunnel, kept so a restart arms it the same way.
- Settings
- Application settings structure.
- Settings
Update - Partial settings update.
Enums§
- Loop
Guard Mode - What the loop guard does with a request whose replayed history trips it.
- Settings
Error - Settings validation error.
Constants§
- CONTEXT_
SIZE_ RANGE - The context sizes a person is allowed to configure.
- DAEMON_
PORT - Fixed loopback port for the gglib daemon’s management API.
- DEFAULT_
CONTEXT_ SIZE - Default context size for models when not specified by the user.
- DEFAULT_
LLAMA_ BASE_ PORT - Default base port for llama-server instance allocation.
- DEFAULT_
PROXY_ PORT - Default port for the OpenAI-compatible proxy server.
- DEFAULT_
REMOTE_ PORT - The loopback port
gglib remote jointries first for the paired machine.
Functions§
- validate_
inference_ config - Validate inference configuration parameters.
- validate_
inference_ profiles - Validate a set of inference profiles.
- validate_
settings - Validate settings values.