- sechstes, rein lesendes Tool: Bot-Nachrichten an Telegram/Matrix durchsuchen - Argumente query, backend, since (max 30d), only_errors, limit (max 20), strikt validiert - Treffertexte gekürzt und sanitized (untrusted), Aufrufe laufen über den Run-Recorder - Agenten-Standardprompt, Tests, README und CLAUDE.md auf sechs Tools angepasst Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
42 lines
940 B
Python
42 lines
940 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"
|
|
TOOL_SEARCH_MESSAGES = "search_sent_messages"
|
|
|
|
ROLE_SYSTEM = "system"
|
|
ROLE_USER = "user"
|
|
ROLE_TOOL = "tool"
|
|
|
|
MESSAGE_QUERY_MAX = 100
|
|
MESSAGE_TEXT_MAX = 300
|
|
MESSAGE_LIMIT_DEFAULT = 10
|
|
MESSAGE_LIMIT_MAX = 20
|
|
MESSAGE_SINCE_DEFAULT = "24h"
|
|
MESSAGE_SINCE_MAX_SECONDS = 30 * 86400
|