Skip to content

Conversation

@chiehw
Copy link
Contributor

@chiehw chiehw commented Apr 22, 2025

Fixes #17986

Related PR:

Summary

  1. Support var-selector type parameters(Prerequisites): This parameter supports the use of scope to configure the selectable variable type. The optional scope is:
class DefaultValueType(StrEnum):
  STRING = "string"
  NUMBER = "number"
  OBJECT = "object"
  ARRAY_NUMBER = "array[number]"
  ARRAY_STRING = "array[string]"
  ARRAY_OBJECT = "array[object]"
  ARRAY_FILES = "array[file]"
  1. Support retriever_resources type messages: This feature allow agent strategy return Citations and Attributions.

Screenshots

Before After
image image1745846930111_8D0B88E3-20B2-4b4c-972A-2E31E8873054

|

Checklist

Important

Please review the checklist below before submitting your pull request.

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. 📚 documentation Improvements or additions to documentation 🤖 feat:agent Agent related topics labels Apr 22, 2025
@oneness0
Copy link
Contributor

Please approve it. @crazywoola

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Apr 28, 2025
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Apr 30, 2025
Copy link
Contributor

@Nov1c444 Nov1c444 left a comment

Choose a reason for hiding this comment

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

LGTM

@Nov1c444 Nov1c444 merged commit 30aa052 into langgenius:main Jul 16, 2025
7 checks passed
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 16, 2025
@zhudongwork
Copy link
Contributor

In the official environment, after upgrading the agent policy plugin to the latest version, I still cannot achieve the agent node reference display functionality.

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

Labels

📚 documentation Improvements or additions to documentation 🤖 feat:agent Agent related topics lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Citations and Attributions to Agent Node

4 participants