MCPcopy Create free account
hub / github.com/AutoForgeAI/autoforge / get_settings

Function get_settings

server/routers/settings.py:84–96  ·  view source on GitHub ↗

Get current global settings.

()

Source from the content-addressed store, hash-verified

82
83@router.get("", response_model=SettingsResponse)
84async def get_settings():
85 """Get current global settings."""
86 all_settings = get_all_settings()
87
88 return SettingsResponse(
89 yolo_mode=_parse_yolo_mode(all_settings.get("yolo_mode")),
90 model=all_settings.get("model", DEFAULT_MODEL),
91 glm_mode=_is_glm_mode(),
92 ollama_mode=_is_ollama_mode(),
93 testing_agent_ratio=_parse_int(all_settings.get("testing_agent_ratio"), 1),
94 playwright_headless=_parse_bool(all_settings.get("playwright_headless"), default=True),
95 batch_size=_parse_int(all_settings.get("batch_size"), 3),
96 )
97
98
99@router.patch("", response_model=SettingsResponse)

Callers

nothing calls this directly

Calls 7

get_all_settingsFunction · 0.90
SettingsResponseClass · 0.85
_parse_yolo_modeFunction · 0.85
_is_glm_modeFunction · 0.85
_is_ollama_modeFunction · 0.85
_parse_intFunction · 0.85
_parse_boolFunction · 0.85

Tested by

no test coverage detected