(
response_format: type[ResponseFormatT] | ResponseFormatParam | Omit,
)
| 214 | |
| 215 | |
| 216 | def has_rich_response_format( |
| 217 | response_format: type[ResponseFormatT] | ResponseFormatParam | Omit, |
| 218 | ) -> TypeGuard[type[ResponseFormatT]]: |
| 219 | if not is_given(response_format): |
| 220 | return False |
| 221 | |
| 222 | if is_response_format_param(response_format): |
| 223 | return False |
| 224 | |
| 225 | return True |
| 226 | |
| 227 | |
| 228 | def is_response_format_param(response_format: object) -> TypeGuard[ResponseFormatParam]: |
no test coverage detected