MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / _format_tool_line

Function _format_tool_line

openkb/agent/chat.py:99–105  ·  view source on GitHub ↗
(name: str, args: str, width: int = 78)

Source from the content-addressed store, hash-verified

97
98
99def _format_tool_line(name: str, args: str, width: int = 78) -> str:
100 args = args or ""
101 args = args.replace("\n", " ")
102 base = f" \u00b7 {name}({args})"
103 if len(base) > width:
104 base = base[: width - 1] + "\u2026"
105 return base
106
107
108def _extract_preview(text: str, limit: int = 150) -> str:

Callers 2

run_queryFunction · 0.90
_run_turnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected