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

Method text

src/opencode_ai/_response.py:434–437  ·  view source on GitHub ↗

Read and decode the response content into a string.

(self)

Source from the content-addressed store, hash-verified

432 raise StreamAlreadyConsumed() from exc
433
434 async def text(self) -> str:
435 """Read and decode the response content into a string."""
436 await self.read()
437 return self.http_response.text
438
439 async def json(self) -> object:
440 """Read and decode the JSON response content."""

Callers

nothing calls this directly

Calls 1

readMethod · 0.95

Tested by

no test coverage detected