BackendJsonSchemaThinkingChatGeneration class abstract
Optional BackendJsonSchemaChatGeneration extension for models qualified to reason before their schema-constrained reply.
The constraint applies after the reasoning channel closes. A model whose family is not qualified keeps supportsJsonSchemaChatThinking false, and a request with thinking is refused before generation.
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsJsonSchemaChatGeneration → bool
-
True only after successful provider admission for the loaded model.
no setterinherited
- supportsJsonSchemaChatThinking → bool
-
True only after prepareJsonSchemaChat admitted a model qualified to
reason before its schema-constrained reply.
no setter
Methods
-
generateChatWithJsonSchema(
int contextHandle, List< LlamaChatMessage> messages, GenerationParams params, {required Map<String, dynamic> jsonSchema, Map<String, dynamic> ? chatTemplateKwargs, DateTime? templateNow}) → Stream<List< int> > -
Streams schema-constrained text chat with thinking explicitly disabled.
inherited
-
generateChatWithJsonSchemaAndThinking(
int contextHandle, List< LlamaChatMessage> messages, GenerationParams params, {required Map<String, dynamic> jsonSchema, Map<String, dynamic> ? chatTemplateKwargs, DateTime? templateNow}) → Stream<List< int> > - Streams the model's reasoning, then its schema-constrained reply.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prepareJsonSchemaChat(
) → Future< void> -
Admits the loaded model or throws a typed unsupported/runtime error.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited