MCPcopy Index your code
hub / github.com/shareAI-lab/learn-claude-code / consume_lead_inbox

Function consume_lead_inbox

s19_mcp_plugin/code.py:375–384  ·  view source on GitHub ↗
(route_protocol=True)

Source from the content-addressed store, hash-verified

373
374
375def consume_lead_inbox(route_protocol=True) -> list[dict]:
376 msgs = BUS.read_inbox("lead")
377 if route_protocol:
378 for msg in msgs:
379 meta = msg.get("metadata", {})
380 req_id = meta.get("request_id", "")
381 msg_type = msg.get("type", "")
382 if req_id and msg_type.endswith("_response"):
383 match_response(msg_type, req_id, meta.get("approve", False))
384 return msgs
385
386
387# ── Autonomous Agent ──

Callers 2

run_check_inboxFunction · 0.70
code.pyFile · 0.70

Calls 3

match_responseFunction · 0.70
read_inboxMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected