- harness/es.py: append-only event store + проекции (образец — кооп-портал) - harness/levels.py: уровни 1с/1м/1ч/1д, контекст ∝ масштабу - harness/scheduler.py: уровневые потоки, идемпотентные тики, absorbed-стабы - harness/isolated_runner.py + _llm_worker.py: LLM-тик в сабпроцессе (глобальный asyncio-рантайм Strands не переживает 2+ create_harness) - cli.py: init/task/tasks/status/events + requeue (написан самим минутным агентом) - 9router: отдельный ключ sk-simbiot, модель auto (glm-5.3 первым)
18 lines
993 B
Python
18 lines
993 B
Python
"""Metrics that are emitted in Strands-Agents."""
|
|
|
|
STRANDS_EVENT_LOOP_CYCLE_COUNT = "strands.event_loop.cycle_count"
|
|
STRANDS_EVENT_LOOP_START_CYCLE = "strands.event_loop.start_cycle"
|
|
STRANDS_EVENT_LOOP_END_CYCLE = "strands.event_loop.end_cycle"
|
|
STRANDS_TOOL_CALL_COUNT = "strands.tool.call_count"
|
|
STRANDS_TOOL_SUCCESS_COUNT = "strands.tool.success_count"
|
|
STRANDS_TOOL_ERROR_COUNT = "strands.tool.error_count"
|
|
|
|
# Histograms
|
|
STRANDS_EVENT_LOOP_LATENCY = "strands.event_loop.latency"
|
|
STRANDS_TOOL_DURATION = "strands.tool.duration"
|
|
STRANDS_EVENT_LOOP_CYCLE_DURATION = "strands.event_loop.cycle_duration"
|
|
STRANDS_EVENT_LOOP_INPUT_TOKENS = "strands.event_loop.input.tokens"
|
|
STRANDS_EVENT_LOOP_OUTPUT_TOKENS = "strands.event_loop.output.tokens"
|
|
STRANDS_EVENT_LOOP_CACHE_READ_INPUT_TOKENS = "strands.event_loop.cache_read.input.tokens"
|
|
STRANDS_EVENT_LOOP_CACHE_WRITE_INPUT_TOKENS = "strands.event_loop.cache_write.input.tokens"
|
|
STRANDS_MODEL_TIME_TO_FIRST_TOKEN = "strands.model.time_to_first_token"
|