[feature] Add Configuration for Prompt Field and Enable Agent Generation #5

Open
opened 2026-02-16 06:17:57 -05:00 by yindo · 0 comments
Owner

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:

  • 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]
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: - 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__]
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph-builder#5