mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-21 18:05:30 -04:00
[PR #234] feat: (sdk/python): add passthrough parameter (extends langgenius/dify#27078) #245
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-plugin-sdks/pull/234
Author: @ywqwancbx
Created: 11/1/2025
Status: 🔄 Open
Base:
main← Head:feature/passthrough-parameter📝 Commits (1)
6f85152feat: support passthrough parameter across SDK with backward compatibility\n\n- Add Session.passthrough and carry through Readers (stdio/TCP/serverless)\n- Extend PluginInStream to include passthrough field\n- Wire passthrough through IOServer and Plugin into Session\n- Pass session.passthrough to Tool.invoke in PluginExecutor\n- Update Tool.invoke to accept optional passthrough, fallback on TypeError📊 Changes
9 files changed (+35 additions, -5 deletions)
View changed files
📝
python/dify_plugin/core/entities/plugin/io.py(+14 -1)📝
python/dify_plugin/core/plugin_executor.py(+2 -2)📝
python/dify_plugin/core/runtime.py(+4 -0)📝
python/dify_plugin/core/server/io_server.py(+4 -0)📝
python/dify_plugin/core/server/serverless/request_reader.py(+1 -0)📝
python/dify_plugin/core/server/stdio/request_reader.py(+1 -0)📝
python/dify_plugin/core/server/tcp/request_reader.py(+1 -0)📝
python/dify_plugin/interfaces/tool/__init__.py(+6 -2)📝
python/dify_plugin/plugin.py(+2 -0)📄 Description
SDK, aligning with EAM-specific behavior so downstream users don’t need a custom SDK.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.