MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _trim_bootstrap_profile

Function _trim_bootstrap_profile

agents/coldstart-agent/main.py:958–975  ·  view source on GitHub ↗
(profile: Dict[str, Any])

Source from the content-addressed store, hash-verified

956 if not cleaned:
957 continue
958 marker = cleaned.casefold()
959 if marker in seen:
960 continue
961 seen.add(marker)
962 result.append(cleaned)
963 return result
964
965
966def _filter_parsed_profile_fragment(
967 parsed: Dict[str, Any],
968 *,
969 max_core_directions: int = 3,
970 core_cap: float = 0.9,
971 blocked_directions: Optional[set[str]] = None,
972 preferred_directions: Optional[set[str]] = None,
973) -> Dict[str, Any]:
974 blocked = set(blocked_directions or set())
975 preferred = set(preferred_directions or set())
976
977 core_items = sorted(
978 (parsed.get("core_directions") or {}).items(),

Calls 2

generate_interest_vectorFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected