Frameworks and runtimes

Each page here puts LLM4S into a runtime your application already has.

  • Pick your stack - One program in plain Result, cats-effect, ZIO and Pekko side by side: the semantics every bridge shares, and the differences
  • cats-effect - LLMClientIO and AgentIO for cats-effect IO and fs2 streaming
  • ZIO - LLMClientZ and AgentZ for ZIO 2 and ZIO Streams
  • Apache Pekko - LLMClientPekko and AgentPekko for Pekko Streams
  • Direct Style and Ox - Plain Result code on virtual threads, and llm4s-ox for streamed completions as an Ox Flow, fan-out, races and retries
  • Jupyter Notebooks - Run LLM4S in Jupyter with the Almond Scala kernel

Elsewhere: Spring Boot, Quarkus, Micronaut and Helidon are under Java and Kotlin; Spark, Flink and Kafka are under RAG and Data; http4s, ZIO HTTP, Tapir and Play servers are in Serving an Agent over HTTP.


Table of contents