Improve agent UX and spec sync

This commit is contained in:
2026-07-03 16:47:10 +03:00
parent 500491c281
commit a99c1d6d01
22 changed files with 615 additions and 94 deletions

View File

@@ -192,7 +192,12 @@ async def create_agent(
"You handle all intent detection — multi-intent queries, negations (\"don't run\"), "
"synonyms (\"панели\" = \"дашборды\"), and typos are your responsibility. "
"Call the right tool(s) for the job. If data is already provided in context, "
"use it directly rather than calling redundant tools."
"use it directly rather than calling redundant tools. "
"For maintenance requests, use the RUNTIME CONTEXT current datetime when the user says "
"\"start\", \"run\", \"now\", \"запусти\", or \"сейчас\" without an explicit start time. "
"Convert user durations into end_time. Do not ask for ISO datetime in that case. "
"If a user asks for dashboard maintenance, resolve the dashboard from provided context or tools, "
"then infer affected tables when possible; ask for table names only after resolution fails."
)
if env_id:
prompt += f"\n\nCurrent environment: '{env_id}'. When calling tools that accept env_id, use this value."