MCPcopy
hub / github.com/topoteretes/cognee / get

Function get

tools/generate_branch_notes.py:109–112  ·  view source on GitHub ↗
(name: str, default="")

Source from the content-addressed store, hash-verified

107
108def format_markdown(notes: Any, payload: dict[str, Any]) -> str:
109 def get(name: str, default=""):
110 return getattr(
111 notes, name, notes.get(name, default) if isinstance(notes, dict) else default
112 )
113
114 highlights = get("highlights", [])
115 notable_files = get("notable_files", [])

Callers 1

format_markdownFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected