LLMClientZ

org.llm4s.zio.LLMClientZ
See theLLMClientZ companion trait
object LLMClientZ

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
LLMClientZ.type

Members list

Value members

Concrete methods

def apply(underlying: LLMClient): LLMClientZ

Wraps an already-constructed LLMClient. Does not manage its lifecycle.

Wraps an already-constructed LLMClient. Does not manage its lifecycle.

Attributes

Concrete fields

val layer: ZLayer[Any, LLMError, LLMClientZ]

ZLayer that acquires an LLMClient from the environment (via Llm4sConfig) on the blocking thread pool and finalises it on scope exit.

ZLayer that acquires an LLMClient from the environment (via Llm4sConfig) on the blocking thread pool and finalises it on scope exit.

Attributes