A Server-Sent Events (SSE) request tool for Dify workflows. Establishes long connections to receive real-time event streams from servers with support for authentication, custom headers, and automatic retry mechanisms.
Author: lw
Version: 0.0.3
Type: tool
这是一个为Dify工作流设计的Server-Sent Events (SSE) 请求工具插件。它允许你在Dify工作流中建立长连接,接收服务器实时推送的事件流数据,并提供流式输出和最终汇总结果。
在Dify工作流中添加SSE请求工具,配置以下参数:
| 参数名 | 类型 | 必需 | 默认值 | 说明 |
|---|---|---|---|---|
| string | ✅ | - | SSE服务器端点URL | |
| string | ❌ | - | 自定义HTTP头,每行一个,格式: | |
| string | ❌ | - | URL查询参数,每行一个,格式: | |
| select | ❌ | none | 认证类型:none/bearer/api_key | |
| string | ❌ | - | 认证令牌或API密钥 | |
| string | ❌ | Authorization | API密钥认证的头名称 | |
| number | ❌ | 30 | 连接超时时间(秒) | |
| number | ❌ | 100 | 最大接收事件数 | |
| number | ❌ | 300 | 最大连接持续时间(秒) | |
| number | ❌ | 3 | 连接失败重试次数 |
欢迎提交Issue和Pull Request来改进这个插件!
MIT License