feat(workflow): support agent generated tool parameters#7267
Draft
FinleyGe wants to merge 12 commits into
Draft
Conversation
0714ce4 to
563a045
Compare
|
✅ Build Successful - Preview fastgpt Image for this PR: 🕒 Time: 2026-07-09 18:24:28 (UTC+8) |
Coverage Report
File CoverageNo changed files found. |
|
✅ Admin Preview Image Ready! 🕒 Time: 2026-07-09 18:23:22 (UTC+8) |
- Add `FlowNodeInputTypeEnum.agentGenerated` to distinguish parameters generated by the model during tool calls. - Implement `initToolInputTypeByDefaultMode` to handle initialization based on tool descriptions and safe boundaries. - Update ToolCall and Agent runtime schema generators to filter parameters based on final input type. - Add security boundaries to prevent sensitive fields (e.g., secrets, files, model selection) from being marked as agent-generated. - Update UI components to support configuration of parameter sources and improve state management for tool inputs.
Add `isToolParam` to handle default input generation logic more precisely than `toolDescription`, ensuring better control over which fields are exposed as model parameters in the tool call schema.
Remove persisting default tool input mode (isToolParam) and centralize selection via saved input by introducing stripToolInputDefaultMode and updating call sites to pass savedInput only. Propagate tool errors through the agent loop by carrying errorMessage in tool results and dispatch, so errors do not produce visible node responses. Update tests, runtime types, and i18n descriptions accordingly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation