MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / __init__

Method __init__

src/opencode_ai/_response.py:586–596  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

584 """
585
586 def __init__(self) -> None:
587 message = (
588 "Attempted to read or stream some content, but the content has "
589 "already been streamed. "
590 "This could be due to attempting to stream the response "
591 "content more than once."
592 "\n\n"
593 "You can fix this by manually accumulating the response content while streaming "
594 "or by calling `.read()` before starting to stream."
595 )
596 super().__init__(message)
597
598
599class ResponseContextManager(Generic[_APIResponseT]):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected