-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Please consider adding a configuration option for the "prompt" field. This enhancement will allow us to generate code with the integration of an agent. This feature will improve functionality and provide more flexibility in code generation.
name: TranslationWorkflow
nodes:
- name: text_input
prompt: "Receive user input text, ensure it is correctly formatted, and remove unnecessary whitespace." - name: text_analyzer
prompt: "Analyze the input text for language, theme, and complexity to determine the best translation strategy." - name: translator
prompt: "Based on the analysis results, translate the text from the source language to the target language, maintaining semantic accuracy and contextual consistency." - name: post_processor
prompt: "Polish the translation results by checking grammar, unifying terminology, and adjusting style to ensure the output text is natural and fluent." - name: human_review
prompt: "Conduct a human review of the translation to ensure the highest quality." - name: final_check
prompt: "Perform a final quality check to ensure all requirements are met."
edges: - from: start
to: text_input - from: text_input
to: text_analyzer - from: text_analyzer
to: translator - from: translator
condition: "if translation_quality >= 90"
paths:- post_processor
- human_review
- from: post_processor
to: final_check - from: human_review
to: final_check - from: final_check
condition: route_after_translation
paths: [end]
Metadata
Metadata
Assignees
Labels
No labels