MCPcopy Create free account
hub / github.com/AI45Lab/Code / event_data

Function event_data

sdk/python/examples/hitl_confirmation_loop.py:19–26  ·  view source on GitHub ↗
(event: Any)

Source from the content-addressed store, hash-verified

17
18
19def event_data(event: Any) -> dict[str, Any]:
20 if not event.data:
21 return {}
22 try:
23 value = json.loads(event.data)
24 return value if isinstance(value, dict) else {}
25 except json.JSONDecodeError:
26 return {}
27
28
29def pending_by_tool_id(session: Any, tool_id: str | None) -> dict[str, Any] | None:

Callers 1

confirm_from_cliFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected