voice: усиление умного дома — контекст, промпт, новые tools
All checks were successful
Deploy / deploy (push) Successful in 1m52s
All checks were successful
Deploy / deploy (push) Successful in 1m52s
- промпт: перечислены ВСЕ 15+ tools, разрешено уверенно управлять домом - route.ts: живой контекст (время + снимок устройств из HA) в системный промпт для LLM-пути (defensive, с таймаутом) - новые tools: control_climate (кондей/термостат), control_tv, set_scene (night/movie/morning/away), all_off, ha_service (универсальный HA с whitelist) - env: CLIMATE_ENTITY, TV_ENTITY (см. RUNBOOK)
This commit is contained in:
@@ -15,6 +15,10 @@ import { tool as notes } from './notes'
|
||||
import { tools as smartHomeTools } from './smart-home'
|
||||
import { tools as spotifyTools } from './spotify'
|
||||
import { tools as lightTools } from './lights'
|
||||
import { tools as climateTools } from './climate'
|
||||
import { tools as tvTools } from './tv'
|
||||
import { tools as sceneTools } from './scenes'
|
||||
import { tools as haGenericTools } from './ha-generic'
|
||||
|
||||
const ALL_TOOLS: VoiceTool[] = [
|
||||
weather,
|
||||
@@ -25,6 +29,10 @@ const ALL_TOOLS: VoiceTool[] = [
|
||||
...smartHomeTools,
|
||||
...spotifyTools,
|
||||
...lightTools,
|
||||
...climateTools,
|
||||
...tvTools,
|
||||
...sceneTools,
|
||||
...haGenericTools,
|
||||
]
|
||||
|
||||
export const TOOL_SCHEMAS = ALL_TOOLS.map((t) => t.schema)
|
||||
|
||||
Reference in New Issue
Block a user