Refactor workflow_management.py and remove unused imports and code #65
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 significant changes to the
backend/app/nodes/llm
directory, primarily involving the removal of several node classes and their associated configurations. Additionally, there are minor updates to thebackend/app/api/workflow_management.py
file.Node Removals:
backend/app/nodes/llm/mcts.py
: Removed theMCTSNode
class and all associated classes and methods, includingDialogueState
,MCTSTreeNode
, andMCTSNodeConfig
.backend/app/nodes/llm/mixture_of_agents.py
: Removed theMixtureOfAgentsNode
class and its associated configuration and methods.backend/app/nodes/llm/sample_llm.py
: Removed theSampleLLMNode
class and its associated configuration and methods.backend/app/nodes/llm/self_consistency.py
: Removed theSelfConsistencyNode
class and its associated configuration and methods.backend/app/nodes/llm/string_output_llm.py
: Removed theStringOutputLLMNode
class and its associated configuration and methods.Minor Updates:
backend/app/api/workflow_management.py
: Removed the import ofDynamicSchemaNodeConfig
.backend/app/api/workflow_management.py
: Added a trailing comma in theHTTPException
detail string in thedelete_workflow
function.backend/app/api/workflow_management.py
: Added type annotationDict[str, str]
foroutput_schema
in theget_workflow_output_variables
function.Important
Refactor by removing unused node classes and configurations, and update
workflow_management.py
for cleaner imports and improved code style.MCTSNode
,MixtureOfAgentsNode
,SampleLLMNode
,SelfConsistencyNode
,StringOutputLLMNode
,StructuredOutputNode
,TopKNode
, andTreeOfThoughtsNode
classes and their configurations.DynamicSchemaNodeConfig
.HTTPException
detail string indelete_workflow()
.Dict[str, str]
foroutput_schema
inget_workflow_output_variables()
.This description was created by for a7c4132. It will automatically update as commits are pushed.