LLMClientIO

org.llm4s.effect.cats.LLMClientIO
See theLLMClientIO companion trait
object LLMClientIO

Attributes

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

Members list

Value members

Concrete methods

def apply[F[_] : Async](underlying: LLMClient): LLMClientIO[F]

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

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

Attributes

def resource[F[_]](using F: Async[F]): Resource[F, LLMClientIO[F]]

Creates a Resource that acquires an LLMClient from the environment (via Llm4sConfig) on the blocking thread pool and releases it on scope exit.

Creates a Resource that acquires an LLMClient from the environment (via Llm4sConfig) on the blocking thread pool and releases it on scope exit.

Attributes