Code
Hub
Workspaces
Connect your AI tool
Indexed graphs
Engine
MCP
copy
hub
/
github.com/openai/openai-python
/ parse
Method
parse
src/openai/_response.py:392–392 · src/openai/_response.py::AsyncAPIResponse.parse
(self, *, to: type[_T])
Source
from the content-addressed store, hash-verified
390
391
@overload
392
async
def
parse(self, *, to: type[_T]) -> _T: ...
393
394
@overload
395
async
def
parse(self) -> R: ...
Callers
8
_process_response
Method · 0.95
test_async_response_parse_mismatched_basemodel
Function · 0.95
test_async_response_parse_custom_stream
Function · 0.95
test_async_response_parse_custom_model
Function · 0.95
test_async_response_basemodel_request_id
Function · 0.95
test_async_response_parse_annotated_type
Function · 0.95
test_async_response_parse_bool
Function · 0.95
test_async_response_parse_expect_model_union_non_json_content
Function · 0.95
Calls
5
read
Method · 0.95
is_given
Function · 0.85
add_request_id
Function · 0.85
get
Method · 0.45
_parse
Method · 0.45
Tested by
7
test_async_response_parse_mismatched_basemodel
Function · 0.76
test_async_response_parse_custom_stream
Function · 0.76
test_async_response_parse_custom_model
Function · 0.76
test_async_response_basemodel_request_id
Function · 0.76
test_async_response_parse_annotated_type
Function · 0.76
test_async_response_parse_bool
Function · 0.76
test_async_response_parse_expect_model_union_non_json_content
Function · 0.76