Skip to content

Instantly share code, notes, and snippets.

@dskecse
Created June 9, 2026 08:02
Show Gist options
  • Select an option

  • Save dskecse/ff0309822eb8b8bc903061cf841a6195 to your computer and use it in GitHub Desktop.

Select an option

Save dskecse/ff0309822eb8b8bc903061cf841a6195 to your computer and use it in GitHub Desktop.
synthetic_records = []
assert isinstance(synthetic_records, list) and len(synthetic_records) >= 20, \
"Gemini returned an unexpected format. Re-run or adjust the prompt."
# Traceback (most recent call last):
# File "<python-input-1>", line 1, in <module>
# assert isinstance(synthetic_records, list) and len(synthetic_records) >= 20, \
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# AssertionError: Gemini returned an unexpected format. Re-run or adjust the prompt.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment