MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / _StubEvent

Class _StubEvent

tests/lib/tools/test_session_runner.py:61–68  ·  view source on GitHub ↗

Stand-in for the various session event types — only the fields the runner reads are populated.

Source from the content-addressed store, hash-verified

59
60
61class _StubEvent:
62 """Stand-in for the various session event types — only the fields the
63 runner reads are populated."""
64
65 def __init__(self, type: str, **kw: Any) -> None:
66 self.type = type
67 for k, v in kw.items():
68 setattr(self, k, v)
69
70
71def _tool_use(

Callers 7

_tool_useFunction · 0.85
_tool_resultFunction · 0.85
_tool_confirmationFunction · 0.85
_custom_tool_useFunction · 0.85
_custom_tool_resultFunction · 0.85
_terminatedFunction · 0.85
_idle_end_turnFunction · 0.85

Calls

no outgoing calls

Tested by 7

_tool_useFunction · 0.68
_tool_resultFunction · 0.68
_tool_confirmationFunction · 0.68
_custom_tool_useFunction · 0.68
_custom_tool_resultFunction · 0.68
_terminatedFunction · 0.68
_idle_end_turnFunction · 0.68