from app.models import RuntimeSettings def build_prompt_context(message: str, runtime: RuntimeSettings, memory: list[str]) -> dict[str, object]: return { "system": ( "You are WiseClaw, a local-first assistant running on macOS. " "Use tools carefully and obey terminal safety mode." ), "message": message, "model": runtime.default_model, "memory": memory, "available_tools": [tool.name for tool in runtime.tools if tool.enabled], }