Telegram: Plain-Text-Fallback bei Parse-Fehler, tag-sichere Kürzung auf 4096. Matrix: bytebewusste Kürzung. Downtime: lesender Abgleich nach dem POST, generische Fehlermeldung im Chat. Agent: Platzhalter für nicht ausgeführte Tool-Calls, Text im letzten Schritt erzwingen, Zeitreserve, Kompaktierung, Limit pro Antwort. CLAUDE.md: Fallbacks für Phase 6d. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
34 lines
727 B
Python
34 lines
727 B
Python
MAX_STEPS = 6
|
|
TOTAL_TIMEOUT = 90.0
|
|
FINISH_RESERVE = 10.0
|
|
MAX_TOOL_CALLS_PER_STEP = 3
|
|
KEEP_FULL_TOOL_RESULTS = 3
|
|
TOOL_RESULT_MAX = 1500
|
|
ARG_MAX = 200
|
|
HOST_MAX = 128
|
|
STEP_ARG_LOG_MAX = 300
|
|
LIST_LIMIT = 30
|
|
HISTORY_LIMIT = 10
|
|
LINE_OUTPUT_MAX = 200
|
|
QUESTION_MAX = 500
|
|
ANSWER_MAX = 3000
|
|
FALLBACK_SNIPPET_MAX = 200
|
|
TS_FORMAT = "%d.%m. %H:%M"
|
|
|
|
DATA_OPEN = "<daten>"
|
|
DATA_CLOSE = "</daten>"
|
|
|
|
ABORT_STEP_LIMIT = "step_limit"
|
|
ABORT_TIMEOUT = "timeout"
|
|
ABORT_MODEL_ERROR = "model_error"
|
|
|
|
TOOL_SERVICE_STATUS = "get_service_status"
|
|
TOOL_HOST_SERVICES = "get_host_services"
|
|
TOOL_STATE_HISTORY = "get_state_history"
|
|
TOOL_DOWNTIMES = "get_downtimes"
|
|
TOOL_PROBLEMS = "get_problems"
|
|
|
|
ROLE_SYSTEM = "system"
|
|
ROLE_USER = "user"
|
|
ROLE_TOOL = "tool"
|