feat: backend servis iskeletini ve yönetim uçlarını ekle
This commit is contained in:
15
backend/app/llm/planner.py
Normal file
15
backend/app/llm/planner.py
Normal 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],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user