export function hasAutoParseableInput()

in lib/parser.ts [230:244]


export function hasAutoParseableInput(
  params: AnyChatCompletionCreateParams,
): boolean {
  if (isAutoParsableResponseFormat(params.response_format)) {
    return true;
  }

  return (
    params.tools?.some(
      (t) =>
        isAutoParsableTool(t) ||
        (t.type === "function" && t.function.strict === true),
    ) ?? false
  );
}