Consolidate Odysseus agent harness and tool contracts

This commit is contained in:
pewdiepie-archdaemon
2026-09-17 10:07:40 +00:00
parent 84aa9a91de
commit 218d762427
229 changed files with 28899 additions and 1551 deletions
+5
View File
@@ -469,6 +469,10 @@ def _truthy(value: str | None) -> bool:
_ENDPOINT_KINDS = {"auto", "local", "api", "proxy"}
_REFRESH_MODES = {"auto", "manual", "disabled"}
_MODEL_TOOL_MODES = {"none", "compact", "full"}
_MODEL_TOOL_MODE_ALIASES = {
"regular": "full",
"odysseus_compact": "compact",
}
def _normalize_endpoint_kind(value: Any) -> str:
@@ -478,6 +482,7 @@ def _normalize_endpoint_kind(value: Any) -> str:
def _normalize_model_tool_mode(value: Any) -> str:
mode = str(value or "").strip().lower()
mode = _MODEL_TOOL_MODE_ALIASES.get(mode, mode)
return mode if mode in _MODEL_TOOL_MODES else ""