Skip to content

feat: support dify DataSourceResponseChunkTypeBinaryLink#669

Open
fatelei wants to merge 1 commit intolanggenius:mainfrom
fatelei:issue-200
Open

feat: support dify DataSourceResponseChunkTypeBinaryLink#669
fatelei wants to merge 1 commit intolanggenius:mainfrom
fatelei:issue-200

Conversation

@fatelei
Copy link
Copy Markdown
Contributor

@fatelei fatelei commented Apr 1, 2026

Description

fix #200

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Performance improvement
  • Other

Essential Checklist

Testing

  • I have tested the changes locally and confirmed they work as expected
  • I have added unit tests where necessary and they pass successfully

Bug Fix (if applicable)

  • I have used GitHub syntax to close the related issue (e.g., Fixes #123 or Closes #123)

Additional Information

Please provide any additional context that would help reviewers understand the changes.

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working go Pull requests that update go code plugin-daemon labels Apr 1, 2026
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 adds the BinaryLink response chunk type to the datasource_entities and tool_entities packages and updates the corresponding validation logic. Feedback suggests centralizing these shared types into a common package to eliminate code duplication and ensure consistency.

ToolResponseChunkTypeLink ToolResponseChunkType = "link"
ToolResponseChunkTypeImage ToolResponseChunkType = "image"
ToolResponseChunkTypeImageLink ToolResponseChunkType = "image_link"
ToolResponseChunkTypeBinaryLink ToolResponseChunkType = "binary_link"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The BinaryLink chunk type is being added to both datasource_entities and tool_entities. These two packages appear to maintain identical sets of response chunk types. Consider centralizing these shared types into a common package to reduce duplication and ensure consistency across the codebase.

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

Labels

bug Something isn't working go Pull requests that update go code plugin-daemon size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] BINARY_LINK type in ToolInvokeMessage not supported

1 participant