imfangs/dify-java-client
Dify Java Client 是一个用于与 Dify 平台进行交互的 Java 客户端库。它提供了对 Dify 应用 API 和知识库 API 的完整支持,让 Java 开发者能够轻松地将 Dify 的生成式 AI 能力集成到自己的应用中。
What it solves
It provides a Java client library for interacting with the Dify platform, allowing Java developers to integrate generative AI capabilities—such as chatbots, text generation, and knowledge bases—into their own applications without writing raw API calls.
How it works
The library acts as a wrapper around Dify's APIs, offering specialized clients for different application types (Chat, Completion, Chatflow, Workflow, and Datasets). It supports two primary interaction modes: blocking (synchronous) and streaming (asynchronous via callbacks), and includes built-in support for session management, file handling, and RAG pipeline orchestration.
Who it’s for
Java developers who want to build AI-powered applications using the Dify platform and need a type-safe, structured SDK to manage AI workflows and knowledge bases.
Highlights
- Comprehensive App Support: Dedicated clients for chat, text completion, orchestrated chatflows, and general workflows.
- Flexible Interaction: Supports both blocking responses and real-time streaming for "typewriter" effects.
- Knowledge Base Management: Full lifecycle support for datasets, including document uploading, segment management, and semantic retrieval.
- Advanced Workflow Features: Integration for human-in-the-loop (Human Input) nodes and support for separate reasoning streams (
reasoning_chunk). - Multimedia Capabilities: Built-in support for speech-to-text and text-to-speech conversions.
Related
- Project
- Project
- Project
- Project