LLMCapable

org.llm4s.types.typeclass.LLMCapable
See theLLMCapable companion object
trait LLMCapable[A]

Type class for types that can interact with LLMs.

Provides a unified interface for different types to be processed by LLMs, enabling generic algorithms that work across various input types.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def fromCompletion(completion: Completion): Result[A]

Extract structured data from completion

Extract structured data from completion

Attributes

Convert value to conversation format

Convert value to conversation format

Attributes

def validate(value: A): Result[Unit]

Validate that the type can be processed

Validate that the type can be processed

Attributes