feat: backend servis iskeletini ve yönetim uçlarını ekle

This commit is contained in:
2026-03-21 11:53:04 +03:00
parent df1924b772
commit 62add37d9d
29 changed files with 953 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
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],
}