google / google/dotprompt

Consider using model_dump for input/output config serialization

Open
#499 0 comments 0 reactions 0 assignees View on GitHub
enhancement python
Dominant language
Starlark
Stars
563
Forks
68
Avg merge
6m
Merged PRs (30d)
2

Description

## Summary

The Python Dotprompt implementation has TODOs about potentially using model_dump for cleaner serialization.

## Locations

- `python/dotpromptz/src/dotpromptz/dotprompt.py:420`: `# TODO: use meta.input.model_dump(exclude_none=True)?`
- `python/dotpromptz/src/dotpromptz/dotprompt.py:423`: `# TODO: use meta.output.model_dump(exclude_none=True)?`

## Acceptance Criteria

- [ ] Evaluate if model_dump provides cleaner serialization
- [ ] Ensure compatibility with all consumers
- [ ] Implement if beneficial

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.