-
Notifications
You must be signed in to change notification settings - Fork 70
Add optional save_to parameter to save the output to disk #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
68de65a to
d9e7122
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds an optional save_to parameter to the extract, parse, and split methods in the LandingAI ADE client, allowing users to automatically save API responses to JSON files on disk.
Key changes:
- Added
save_toparameter (typestr | Path | None) to three API methods in the sync client - Implemented file write logic using
Path(save_to).write_text(result.to_json())after each API call - Updated README.md with usage examples demonstrating the new parameter
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 9 comments.
| File | Description |
|---|---|
| src/landingai_ade/_client.py | Added Path import and implemented save_to parameter for extract, parse, and split methods in the sync LandingAIADE client |
| README.md | Added documentation of the new save_to feature in the features list and updated code examples to demonstrate its usage |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
305297d to
a0cdb2e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 8 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.