Skip to content

feat(workflow): allow more nodes in tool call - #7496

Open
Nixieboluo wants to merge 8 commits into
labring:mainfrom
Nixieboluo:feat/node-deprecation
Open

feat(workflow): allow more nodes in tool call#7496
Nixieboluo wants to merge 8 commits into
labring:mainfrom
Nixieboluo:feat/node-deprecation

Conversation

@Nixieboluo

Copy link
Copy Markdown
Collaborator

This PR updates workflow node tool-parameter support and related rendering behavior. It adds node-level hasToolInput metadata for HTTP Request and Code Run nodes, keeping the “Tool Parameters” section visible independently of the deprecated DynamicInput state. For HTTP Request nodes, migrating a deprecated dynamic input no longer hides the tool-parameter configuration. Code Run nodes can expose manually defined tool parameters, and their Custom Variables selector can reference those parameters. Existing HTTP compatibility logic also restores legacy dynamic fields as tool parameters where applicable.

The PR also updates tool-compatible node inputs and AI-generation rules. Question Classification supports Background Knowledge, Chat History, and User Question; Tool Call supports Prompt, Chat History, File Links, and User Question; Document Parser supports Document Link; and Custom Feedback supports Feedback Text. User Question and Document Link default to AI-generated when added as tool parameters, while the other supported fields remain manually configurable by default. Text Concatenation, Judge, Parallel Execution, loopRun, and Code Run inputs explicitly do not support AI generation. The deprecated legacy loop node is intentionally unchanged.

Signed-off-by: Nixieboluo me@sagirii.me

Signed-off-by: Nixieboluo <me@sagirii.me>
Signed-off-by: Nixieboluo <me@sagirii.me>
Signed-off-by: Nixieboluo <me@sagirii.me>
Signed-off-by: Nixieboluo <me@sagirii.me>
Signed-off-by: Nixieboluo <me@sagirii.me>
@github-actions

github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 24.72% 2220 / 8978
🔵 Statements 24.72% 2335 / 9443
🔵 Functions 21.07% 460 / 2183
🔵 Branches 20.05% 1025 / 5112
File CoverageNo changed files found.
Generated in workflow #2159 for commit 2960c2a by the Vitest Coverage Report Action

@github-actions

github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown

Docs Preview Deployed!

🔗 👀 Click here to visit preview

ghcr.io/labring/fastgpt-docs-pr:2960c2a347ee06c318375073888ddc86383b9cb1

🕒 Time: 2026-08-11 17:45:10 (UTC+8)

@github-actions

github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown

Build Successful - Preview fastgpt Image for this PR:

ghcr.io/labring/fastgpt-pr:fastgpt_2960c2a347ee06c318375073888ddc86383b9cb1

🕒 Time: 2026-08-11 17:56:13 (UTC+8)

@github-actions

github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown

Admin Preview Image Ready!

ghcr.io/labring/fastgpt-pr:admin_2960c2a347ee06c318375073888ddc86383b9cb1

🕒 Time: 2026-08-11 17:52:19 (UTC+8)

Signed-off-by: Nixieboluo <me@sagirii.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant