Skip to content

Expose artifacts in Agentflow variable resolution#6388

Open
charliesheh wants to merge 1 commit into
FlowiseAI:mainfrom
charliesheh:expose-artifacts-agentflow
Open

Expose artifacts in Agentflow variable resolution#6388
charliesheh wants to merge 1 commit into
FlowiseAI:mainfrom
charliesheh:expose-artifacts-agentflow

Conversation

@charliesheh
Copy link
Copy Markdown

Summary
Updated Agentflow variable resolution to expose node artifacts in addition to content and HTTP response data.

Changes Made:

  • Added nodeOutput?.artifacts fallback in resolveVariables
  • Allows downstream variable references to access artifacts when content and HTTP data are unavailable

Testing

  • Verified lint passes successfully
  • Confirmed minimal diff limited to buildAgentflow.ts

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the resolveVariables function in packages/server/src/utils/buildAgentflow.ts to include nodeOutput?.artifacts as a fallback when determining the actual value of a node output. This ensures that artifact data is correctly captured during variable resolution. I have no feedback to provide as there are no review comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant