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

Method __init__

tests/test_middleware.py:182–184  ·  view source on GitHub ↗
(self, message: Message)

Source from the content-addressed store, hash-verified

180
181class ShortCircuit(Middleware):
182 def __init__(self, message: Message) -> None:
183 self.message = message
184 self.requests: list[APIRequest] = []
185
186 @override
187 def handle(self, request: APIRequest, call_next: CallNext) -> Any: # noqa: ARG002

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected