Skip to main content

Module core

Module core 

Source

Structs§

Config
ConfigCheckReport
Result of microclaw config check on one file. Errors mean the config won’t load; warnings mean it loads but something is probably a typo.

Enums§

SystemPromptTimeDetail
How much time detail the runtime injects into the prompt for the current turn. Lower values keep the cached prompt prefix stable across turns, which is what prompt caching requires: anything that changes every turn must live in the transient turn-context block instead of the system prompt.
UserMessageLanguage
Language for user-facing runtime messages (refusals, approval prompts, recovery notices). en preserves historical output; approval reply keywords are recognized in both languages regardless.

Functions§

check_config_content
Validate config file content without starting anything: YAML syntax with line/column, unknown-key warnings with did-you-mean, full schema deserialization (typed enums reject typos), and post-deserialize normalization/validation. Pure function over the text for testability.
normalize_model_name
resolve_model_name_with_fallback
run_config_check
CLI entry point for microclaw config check. Prints a human-readable report and returns the process exit code (0 = loadable, 1 = errors, 2 = file missing/unreadable).