Skip to content

refactor(llm): centralize prompt construction and harden run state - #241

Merged
laipz8200 merged 4 commits into
mainfrom
laipz8200/refactor-llm-node-organization
Aug 6, 2026
Merged

laipz8200 merged 4 commits into
mainfrom
laipz8200/refactor-llm-node-organization

Conversation

@laipz8200

Copy link
Copy Markdown
Member

Important

  1. Make sure you have read our contribution guidelines
  2. Search existing issues and pull requests to confirm this change is not a duplicate
  3. Open or identify the issue this pull request resolves or advances
  4. Use a Conventional Commits title for this pull request, and mark breaking changes with !
  5. Remember that the pull request title will become the squash merge commit message
  6. If CLA Assistant prompts you, sign CLA.md in the pull request conversation

Related Issue

Closes #240

Summary

  • Make llm_utils the canonical prompt-message construction path for LLM-related nodes, removing the duplicate implementation from LLMNode.
  • Scope generated files and resolved input data to each run so state cannot leak between invocations.
  • Require an invocation completion event before a run can succeed.
  • Return prepared prompt state directly and remove unused control-flow code.

Checklist

  • This pull request links the issue it resolves or advances
  • This pull request title follows Conventional Commits, and any breaking change is marked with !
  • If CLA Assistant prompted me, I signed CLA.md in the pull request conversation

@laipz8200
laipz8200 marked this pull request as ready for review August 4, 2026 06:53
@dosubot dosubot Bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Aug 4, 2026
@laipz8200
laipz8200 enabled auto-merge (squash) August 4, 2026 06:55
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Aug 6, 2026
@laipz8200
laipz8200 merged commit bc6d2da into main Aug 6, 2026
8 checks passed
@laipz8200
laipz8200 deleted the laipz8200/refactor-llm-node-organization branch August 6, 2026 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor LLM node prompt construction and harden run state

2 participants