LlmCapabilities class

LLM capabilities configuration.

Constructors

LlmCapabilities({bool completion = true, bool streaming = false, bool embedding = false, bool toolCalling = false, bool vision = false, bool audio = false, bool rag = false, int? maxContextTokens, int? maxOutputTokens})
const
LlmCapabilities.fromJson(Map<String, dynamic> json)
Create from JSON.
factory
LlmCapabilities.full()
Full-featured capability set.
const
LlmCapabilities.minimal()
Minimal capability set (completion only).
const

Properties

audio → bool
Whether audio input is supported.
final
completion → bool
Whether completion is supported (always true).
final
embedding → bool
Whether text embeddings are supported.
final
hashCode → int
The hash code for this object.
no setterinherited
maxContextTokens → int?
Maximum context window size in tokens.
final
maxOutputTokens → int?
Maximum output tokens per request.
final
rag → bool
Whether retrieval-augmented generation is supported.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
streaming → bool
Whether streaming completion is supported.
final
toolCalling → bool
Whether tool/function calling is supported.
final
vision → bool
Whether vision (image input) is supported.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Convert to JSON.
toString() → String
A string representation of this object.
inherited

Operators

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