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

Function _build_interest_vector_descriptor

agents/feedback-agent/main.py:331–341  ·  view source on GitHub ↗

Compact descriptor for drift-aware interest fusion.

(profile: Dict[str, Any])

Source from the content-addressed store, hash-verified

329def _build_interest_vector_descriptor(profile: Dict[str, Any]) -> str:
330 """Compact descriptor for drift-aware interest fusion."""
331 drift_state = (profile or {}).get("drift_state", {}) or {}
332 status = str(drift_state.get("status", "stable"))
333 weights = get_drift_blend_weights(status)
334 return (
335 f"status={status}|"
336 f"explicit:{weights['explicit']:.2f},"
337 f"long:{weights['long']:.2f},"
338 f"short:{weights['short']:.2f}"
339 )
340
341
342def format_number_ranges(numbers: Set[int]) -> str:
343 """Format selected numbers as compact ranges such as 01-03, 07, 09."""
344 if not numbers:

Callers 1

process_feedbackFunction · 0.85

Calls 2

get_drift_blend_weightsFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected