mirror of
https://github.com/usestrix/strix.git
synced 2026-08-16 09:26:39 +02:00
Cap the size of every tool result so a single verbose command (recursive find, noisy scanner, full page dump) can't pin the conversation near the model's context window for the rest of a scan. - New ContextSettings config group with env-tunable caps. - Default the SDK shell tools' max_output_tokens so exec_command / write_stdin truncate head+tail instead of returning unbounded output. - Bound Strix's own FunctionTool/CustomTool results (line + UTF-8 byte head+tail preview with a truncation notice) and cap error strings.
42 lines
1.0 KiB
Python
42 lines
1.0 KiB
Python
"""Strix application settings.
|
|
|
|
Public surface:
|
|
|
|
- :class:`Settings` — composite model. Get via :func:`load_settings`.
|
|
- :class:`LlmSettings`, :class:`RuntimeSettings`, :class:`TelemetrySettings`,
|
|
:class:`IntegrationSettings` — sub-models, attribute-accessed off
|
|
``Settings``.
|
|
- :func:`load_settings` — memoized resolve (env > JSON file > defaults).
|
|
- :func:`apply_config_override` — switch the JSON source to a custom path.
|
|
- :func:`persist_current` — write currently-set env vars to the active file.
|
|
"""
|
|
|
|
from strix.config.loader import (
|
|
apply_config_override,
|
|
load_settings,
|
|
persist_current,
|
|
)
|
|
from strix.config.settings import (
|
|
ContextSettings,
|
|
DedupeSettings,
|
|
IntegrationSettings,
|
|
LlmSettings,
|
|
RuntimeSettings,
|
|
Settings,
|
|
TelemetrySettings,
|
|
)
|
|
|
|
|
|
__all__ = [
|
|
"ContextSettings",
|
|
"DedupeSettings",
|
|
"IntegrationSettings",
|
|
"LlmSettings",
|
|
"RuntimeSettings",
|
|
"Settings",
|
|
"TelemetrySettings",
|
|
"apply_config_override",
|
|
"load_settings",
|
|
"persist_current",
|
|
]
|