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

Function _title_from

openkb/agent/chat_session.py:38–42  ·  view source on GitHub ↗
(msg: str, limit: int = 60)

Source from the content-addressed store, hash-verified

36
37
38def _title_from(msg: str, limit: int = 60) -> str:
39 msg = " ".join(msg.strip().split())
40 if len(msg) <= limit:
41 return msg
42 return msg[: limit - 1] + "\u2026"
43
44
45def _image_history_placeholder(image_path: str | None) -> dict[str, str]:

Callers 1

record_turnMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected