Feat/subworkflows#36
Merged
srijanpatel merged 10 commits intomainfrom Dec 3, 2024
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.
This pull request includes several changes to the backend codebase, primarily focused on simplifying the code and improving the handling of task and workflow data. The most important changes include removing unused imports, modifying response schemas, and updating models and methods to handle JSON data more effectively.
Codebase Simplification:
backend/app/api/run_management.py: Removed unused imports and simplified theget_run_statusfunction by returning theRunModeldirectly instead of constructing a detailed response. [1] [2]backend/app/execution/task_recorder.py: Removed thesubworkflowparameter from thecreate_taskmethod and updated theupdate_taskmethod to handle subworkflow data without converting it to JSON strings. [1] [2] [3]Schema and Model Updates:
backend/app/models/task_model.py: Changed thesubworkflowandsubworkflow_outputfields to use JSON data types instead of strings.backend/app/schemas/run_schemas.py: Updated theRunResponseSchemato include a list ofTaskResponseSchemaand removed theRunStatusResponseSchemaclass. [1] [2] [3]backend/app/schemas/task_schemas.py: Added a newTaskResponseSchemaclass to define the structure of task responses.Dependency Updates:
backend/requirements.txt: Updated theopenaipackage to version 1.55.3.