MCPcopy Create free account
hub / github.com/agent0ai/agent-zero / _truncate_progress

Function _truncate_progress

helpers/log.py:79–82  ·  view source on GitHub ↗
(text: str | None)

Source from the content-addressed store, hash-verified

77
78
79def _truncate_progress(text: str | None) -> str:
80 if text is None:
81 return ""
82 return truncate_text_by_ratio(str(text), PROGRESS_MAX_LEN, "...", ratio=1.0)
83
84
85def _truncate_key(text: str) -> str:

Callers 1

set_progressMethod · 0.85

Calls 1

truncate_text_by_ratioFunction · 0.90

Tested by

no test coverage detected