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

Class ProtocolState

s16_team_protocols/code.py:372–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370
371@dataclass
372class ProtocolState:
373 request_id: str
374 type: str # "shutdown" | "plan_approval"
375 sender: str
376 target: str
377 status: str # pending | approved | rejected
378 payload: str # plan text or shutdown reason
379 created_at: float = field(default_factory=time.time)
380
381
382pending_requests: dict[str, ProtocolState] = {}

Callers 2

_teammate_submit_planFunction · 0.70
run_request_shutdownFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected