fix: API-level task/run input and output handling#50
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RunwithRunSummaryin thelist_runsmethod ofApiClientto return more aggregated run information._get_runas a private method inApiClientto improve encapsulation while maintaining an existingget_runmethod that now processes run information through theprocess_runutility function, enhancing data integrity.get_run_tasksto now convert tasks intoTaskobjects processed with the context ofRawRun, allowing for deeper integration of run context with tasks.get_run_tracelogic to enhance how task and trace spans are constructed, introducing better error handling and readability.process_runandprocess_task, separating concerns and improving the maintainability of the code.Generated Summary:
ApiClientmethods to use new model structures for runs and tasks.list_runsto returnRunSummaryinstead ofRun, which simplifies run result handling.process_runandprocess_taskto transform raw data into structured models while handling references and schemas.RawRunandRawTaskclasses, separating raw input from processed data.util.pyfor processing logic, contributing to better code organization and separation of concerns.fast-dependslibrary frompyproject.tomlas it is no longer necessary.This summary was generated with ❤️ by rigging