agents-flex  by agents-flex

Java SDK for LLM application development

Created 1 year ago
519 stars

Top 60.6% on SourcePulse

GitHubView on GitHub
Project Summary

Agents-Flex is a Java-based framework for building LLM applications, offering capabilities similar to LangChain but tailored for the Java ecosystem. It provides developers with tools for LLM interaction, prompt management, function calling, memory, document processing, and building complex execution chains.

How It Works

The framework abstracts LLM interactions through a unified Llm interface, supporting various models like OpenAI, Qwen, and Spark. It enables structured prompt engineering with PromptTemplate and facilitates complex workflows via Chain execution, including sequential, parallel, and loop-based processing. Function calling is integrated using Java annotations to define and execute external tools based on LLM output.

Quick Start & Requirements

  • Install: Maven dependency (e.g., com.github.agents-flex:agents-flex:0.0.1-SNAPSHOT).
  • Prerequisites: Java 17+, Maven/Gradle. API keys for LLM providers are required.
  • Demo: Examples for basic chat, historical conversations, and function calling are provided in the README.

Highlighted Details

  • Supports a wide range of LLMs including OpenAI, Qwen, Spark, ChatGLM, Moonshot, and more.
  • Integrates with multiple vector stores like Milvus, Alibaba Cloud, Tencent Cloud, OpenSearch, Elasticsearch, and Redis.
  • Offers document parsing for PDF (PDFBox) and Word (POI) formats.
  • Implements various chain types: SequentialChain, ParallelChain, and LoopChain for complex task orchestration.

Maintenance & Community

  • Active development with a growing list of supported LLMs and integrations.
  • Community support channels are not explicitly mentioned in the README.

Licensing & Compatibility

  • The README does not specify a license. Compatibility for commercial use or closed-source linking is undetermined.

Limitations & Caveats

  • The project is in a snapshot version (0.0.1-SNAPSHOT), indicating it is under active development and may have breaking changes.
  • A license is not specified, which could impact commercial adoption.
Health Check
Last Commit

1 day ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
1
Star History
23 stars in the last 30 days

Explore Similar Projects

Starred by Eric Zhu Eric Zhu(Coauthor of AutoGen; Research Scientist at Microsoft Research), Jeremy Howard Jeremy Howard(Cofounder of fast.ai), and
8 more.

Qwen-Agent by QwenLM

1.4%
12k
Agent framework for LLM application development
Created 2 years ago
Updated 1 month ago
Feedback? Help us improve.