mirror of
https://github.com/langchain-ai/langgraph-builder.git
synced 2026-07-13 20:09:16 -04:00
[feature] Add Configuration for Prompt Field and Enable Agent Generation #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @magicbrighter on GitHub (Apr 6, 2025).
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:
prompt: "Receive user input text, ensure it is correctly formatted, and remove unnecessary whitespace."
prompt: "Analyze the input text for language, theme, and complexity to determine the best translation strategy."
prompt: "Based on the analysis results, translate the text from the source language to the target language, maintaining semantic accuracy and contextual consistency."
prompt: "Polish the translation results by checking grammar, unifying terminology, and adjusting style to ensure the output text is natural and fluent."
prompt: "Conduct a human review of the translation to ensure the highest quality."
prompt: "Perform a final quality check to ensure all requirements are met."
edges:
to: text_input
to: text_analyzer
to: translator
condition: "if translation_quality >= 90"
paths:
to: final_check
to: final_check
condition: route_after_translation
paths: [end]