MCPcopy Index your code
hub / github.com/openai/plugins / bounded_output_text

Function bounded_output_text

plugins/codex-security/scripts/workbench_db.py:3342–3344  ·  view source on GitHub ↗
(value: Any, maximum_bytes: int)

Source from the content-addressed store, hash-verified

3340
3341
3342def bounded_output_text(value: Any, maximum_bytes: int) -> str:
3343 encoded = str(value).encode("utf-8")[:maximum_bytes]
3344 return encoded.decode("utf-8", errors="ignore")
3345
3346
3347def read_finding_details(value: str) -> dict[str, Any]:

Callers 1

finding_resultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected