(
*,
response_format: type | ResponseFormatParam | Omit,
input_tools: Iterable[ChatCompletionToolUnionParam] | Omit = omit,
)
| 199 | |
| 200 | |
| 201 | def has_parseable_input( |
| 202 | *, |
| 203 | response_format: type | ResponseFormatParam | Omit, |
| 204 | input_tools: Iterable[ChatCompletionToolUnionParam] | Omit = omit, |
| 205 | ) -> bool: |
| 206 | if has_rich_response_format(response_format): |
| 207 | return True |
| 208 | |
| 209 | for input_tool in input_tools or []: |
| 210 | if is_parseable_tool(input_tool): |
| 211 | return True |
| 212 | |
| 213 | return False |
| 214 | |
| 215 | |
| 216 | def has_rich_response_format( |
no test coverage detected