Discover and explore top open-source AI tools and projects—updated daily.
llm4sAgentic and LLM programming framework for Scala
Top 100.0% on SourcePulse
Summary
LLM4S provides a robust, scalable Scala framework for building reliable LLM applications. It targets Scala and JVM developers, leveraging type safety, functional programming, and the JVM ecosystem to enhance AI development.
How It Works
LLM4S utilizes Scala's type safety and functional paradigms for predictable AI systems. Its architecture features multi-provider connectors, an agent framework, RAG engine, and observability. A key innovation is using ScalaMeta for automatic tool definition generation from Scala methods, enabling secure, containerized execution and dynamic mapping.
Quick Start & Requirements
sbt new llm4s/llm4s.g8 --name=<your.project.name> --package=<your.organization> --version=<your.project.version> --llm4s_version=0.3.2 --scala_version=3.7.1 --munit_version=1.1.1 --directory=<your.project.name> --force. Run examples with sbt "samples/runMain org.llm4s.samples.basic.BasicLLMCallingExample".OPENAI_API_KEY).Highlighted Details
Maintenance & Community
An active community gathers for weekly "LLM4S Dev Hour" sessions on Discord. The project participated in Google Summer of Code 2025 under Scala Center, offering mentorship opportunities. A partnership with Scalac is producing an AI-focused blog series.
Licensing & Compatibility
Licensed under the permissive MIT License, ensuring broad compatibility and commercial use. Designed for seamless JVM ecosystem integration.
Limitations & Caveats
LLM4S is a "broad pre-1.0 Scala AI framework" prioritizing production readiness. It exclusively targets Scala 3.7.1.
3 weeks ago
Inactive
openai