LlmCapabilities class final

What a provider can do. A surface reads this before offering a feature, and hides what the provider cannot serve rather than failing when pressed.

Constructors

LlmCapabilities({required bool canComplete, bool canEmbed = false, bool canUseTools = false, int maxContextTokens = 0})
const

Properties

canComplete → bool
Whether LlmProvider.run answers.
final
canEmbed → bool
Whether LlmProvider.embed answers.
final
canUseTools → bool
Whether the provider runs an LlmRequest.toolBinding. False when omitted: tool use is a capability a provider claims.
final
hashCode → int
The hash code for this object.
no setterinherited
maxContextTokens → int
The soft budget, in approximate tokens, for a request's context; zero when the provider states none.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

completion → const LlmCapabilities
A provider that completes text and nothing else.
none → const LlmCapabilities
A provider that can do nothing — an unavailable one.