Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anomalyco/opencode-sdk-python
/ parse
Method
parse
src/opencode_ai/_response.py:274–274 ·
view source on GitHub ↗
(self, *, to: type[_T])
Source
from the content-addressed store, hash-verified
272
class
APIResponse(BaseAPIResponse[R]):
273
@overload
274
def
parse(self, *, to: type[_T]) -> _T: ...
275
276
@overload
277
def
parse(self) -> R: ...
Callers
7
_process_response
Method · 0.95
test_response_parse_mismatched_basemodel
Function · 0.95
test_response_parse_custom_stream
Function · 0.95
test_response_parse_custom_model
Function · 0.95
test_response_parse_annotated_type
Function · 0.95
test_response_parse_bool
Function · 0.95
test_response_parse_expect_model_union_non_json_content
Function · 0.95
Calls
4
read
Method · 0.95
is_given
Function · 0.85
_parse
Method · 0.80
get
Method · 0.45
Tested by
6
test_response_parse_mismatched_basemodel
Function · 0.76
test_response_parse_custom_stream
Function · 0.76
test_response_parse_custom_model
Function · 0.76
test_response_parse_annotated_type
Function · 0.76
test_response_parse_bool
Function · 0.76
test_response_parse_expect_model_union_non_json_content
Function · 0.76