Capable

org.llm4s.capability.Capable
See theCapable companion class
object Capable

Attributes

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

Members list

Value members

Concrete methods

def assume[C](client: LLMClient)(using check: CapabilityCheck[C]): Capable[C]

A Capable[C] with no check, for a model the registry does not know, such as a local or fine-tuned one. Written in the code, so the assumption is visible in review; the provider still refuses a request the model cannot serve.

A Capable[C] with no check, for a model the registry does not know, such as a local or fine-tuned one. Written in the code, so the assumption is visible in review; the provider still refuses a request the model cannot serve.

Attributes

Extensions

Extensions

extension (capable: Capable[Vision])
def describe(image: Image, question: String, options: CompletionOptions): Result[Completion]

Asks the model about one image: a conversation of one user message holding the image and then the question, sent with client.complete.

Asks the model about one image: a conversation of one user message holding the image and then the question, sent with client.complete.

Attributes

extension (capable: Capable[Tools])
def completeWithTools(conversation: Conversation, tools: Seq[ToolFunction[_, _]], options: CompletionOptions): Result[Completion]

client.complete with tools offered to the model, added to any tools options already has.

client.complete with tools offered to the model, added to any tools options already has.

Attributes