org.llm4s.llmconnect.middleware.LLMClientPipeline
See theLLMClientPipeline companion object
Builder for composing middleware into a pipeline around a base LLMClient.
Middleware is applied in FIFO order: the first middleware added is closest to the base client, the last added is the outermost wrapper.
Usage:
val client = LLMClientPipeline(openAIClient)
.use(LoggingMiddleware(logger)) // innermost
.use(MetricsMiddleware(collector))
.use(RateLimitingMiddleware(config)) // outermost
.build()
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article