Discover and explore top open-source AI tools and projects—updated daily.
imfangsJava SDK for Dify generative AI integration
Top 49.1% on SourcePulse
This Java client library provides a robust interface for Java developers to integrate Dify's generative AI capabilities into their applications. It offers comprehensive support for Dify's application APIs (Chat, Completion, Chatflow, Workflow) and knowledge base management, enabling seamless integration of advanced AI features.
How It Works
The client library employs a modular design, offering specific client instances for different Dify functionalities: DifyChatClient, DifyCompletionClient, DifyChatflowClient, DifyWorkflowClient, and DifyDatasetsClient. It supports both synchronous (blocking) API calls and asynchronous (streaming) interactions via callbacks, allowing for real-time responses and dynamic UI updates. The library handles complex operations like session management, knowledge base indexing, document retrieval, and workflow execution.
Quick Start & Requirements
<dependency>
<groupId>io.github.imfangs</groupId>
<artifactId>dify-java-client</artifactId>
<version>1.6.0</version>
</dependency>
implementation 'io.github.imfangs:dify-java-client:1.6.0'
Highlighted Details
Maintenance & Community
The project welcomes contributions via GitHub Issues and Pull Requests. Specific community channels (e.g., Discord, Slack) or notable maintainers are not detailed in the provided README.
Licensing & Compatibility
Limitations & Caveats
The Human Input Flow feature requires Dify version 1.14.2 or higher. The README does not explicitly mention other limitations, alpha status, or known bugs. Direct links to extended documentation are referenced but not included in the provided text.
2 days ago
Inactive