MCPcopy
hub / github.com/openai/openai-python / is_response_format_param

Function is_response_format_param

src/openai/lib/_parsing/_completions.py:228–229  ·  view source on GitHub ↗
(response_format: object)

Source from the content-addressed store, hash-verified

226
227
228def is_response_format_param(response_format: object) -> TypeGuard[ResponseFormatParam]:
229 return is_dict(response_format)
230
231
232def is_parseable_tool(input_tool: ChatCompletionToolUnionParam) -> bool:

Callers 2

has_rich_response_formatFunction · 0.85

Calls 1

is_dictFunction · 0.50

Tested by

no test coverage detected