Skip to content

fix: parse mldev batch input config source#2451

Open
MukundaKatta wants to merge 2 commits into
googleapis:mainfrom
MukundaKatta:codex/mldev-batch-src-input-config
Open

fix: parse mldev batch input config source#2451
MukundaKatta wants to merge 2 commits into
googleapis:mainfrom
MukundaKatta:codex/mldev-batch-src-input-config

Conversation

@MukundaKatta
Copy link
Copy Markdown
Contributor

Fixes #2367.

Summary

  • parse metadata.inputConfig into BatchJob.src for Gemini Developer API batch responses
  • add a converter regression test for MLDev batch input and output file fields

Tests

  • uv run --with pytest pytest google/genai/tests/batches/test_batch_converters.py -q
  • git diff --check

@Venkaiahbabuneelam Venkaiahbabuneelam self-assigned this May 26, 2026
@Venkaiahbabuneelam Venkaiahbabuneelam added the size:L Code changes between 40-100 lines label May 26, 2026
@Venkaiahbabuneelam
Copy link
Copy Markdown

Hi @MukundaKatta, Thanks for reaching out us!

Some checks have failed, please resolve the conflicts.

Thanks

…om_mldev

The branch referenced _InlinedRequest_from_mldev, which does not exist
(only the _to_mldev direction is generated), breaking mypy. mldev batch
responses expose a file source; inline requests are request-only. Keep
the file_name parsing that the test covers.
@MukundaKatta
Copy link
Copy Markdown
Contributor Author

Thanks for the nudge. The failing check was mypy: the new _BatchJobSource_from_mldev referenced _InlinedRequest_from_mldev, which isn't generated (only the to_mldev direction is). I removed that branch and kept the file_name parsing the test covers. Checks are green now and there's no merge conflict, the branch just shows as behind main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L Code changes between 40-100 lines status:awaiting user response

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BatchJob.src is always None for Gemini Developer API — inputConfig is not parsed in _BatchJob_from_mldev

2 participants