GenerationHints class

Hints for structured output generation Matches iOS GenerationHints from Features/LLM/StructuredOutput/GenerationHints.swift

Constructors

GenerationHints({double temperature = 0.7, int? maxTokens, double? topP, int? topK, bool stopAtFirstValidJSON = true, bool includeReasoning = false})
const
GenerationHints.forCreative()
Create hints for creative output
factory
GenerationHints.forJSON()
Create hints optimized for JSON output
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
includeReasoning bool
Whether to include reasoning/thinking
final
maxTokens int?
Maximum tokens to generate
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stopAtFirstValidJSON bool
Whether to stop at first valid JSON
final
temperature double
Temperature for generation (0.0 - 1.0)
final
topK int?
Top-k sampling
final
topP double?
Top-p sampling
final

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