ProviderFeatures

org.llm4s.llmconnect.spi.ProviderFeatures
See theProviderFeatures companion object
@Stable
final case class ProviderFeatures

What a provider implementation can actually do, declared by the provider itself.

This is a '''static''' declaration made by a ProviderDescriptor, not a runtime discovery: it describes the client this build ships, so a caller can ask "will streaming work here?" without making a call and reading the error.

streaming and toolCalling default to true because a provider that omits them is claiming the full interface; a provider that cannot honour part of it must say so, and saying so is then visible to users rather than buried in a Left at call time. Cohere and Mistral declared streaming = false until they moved onto llm4s-openai-compatible's shared client, which streams (#925).

Value parameters

customHttpClient

whether the client sends its requests through the HTTP client supplied with LlmClientOptions.withHttpClient. It defaults to false, unlike the other flags, because a provider that predates the option ignores it: a provider opts in with withCustomHttpClient(true) once it honours the supplied client (#2341).

streaming

whether LLMClient.streamComplete is implemented.

toolCalling

whether the provider accepts tool/function definitions.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def withCustomHttpClient(customHttpClient: Boolean): ProviderFeatures
def withStreaming(streaming: Boolean): ProviderFeatures
def withToolCalling(toolCalling: Boolean): ProviderFeatures

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product