PlaygroundSettings class

The playground's backend and generation settings; the defaults reach OrchestrANT's orchestrant-serve.

Constructors

PlaygroundSettings({PlaygroundSourceKind kind = PlaygroundSourceKind.endpoint, String modelDir = '', String provider = 'cpu', String baseUrl = 'http://127.0.0.1:18200', String model = 'smollm2_135m_instruct-cpu', String apiKey = '', String systemPrompt = '', int maxNewTokens = 256, double temperature = 0.0})
const

Properties

apiKey → String
final
baseUrl → String
final
hashCode → int
The hash code for this object.
no setterinherited
kind → PlaygroundSourceKind
final
maxNewTokens → int
final
model → String
final
modelDir → String
A GenAI model directory, for PlaygroundSourceKind.local.
final
provider → String
cpu, cuda or dml, for PlaygroundSourceKind.local.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
systemPrompt → String
final
temperature → double
0 decodes greedily.
final

Methods

copyWith({PlaygroundSourceKind? kind, String? modelDir, String? provider, String? baseUrl, String? model, String? apiKey, String? systemPrompt, int? maxNewTokens, double? temperature}) → PlaygroundSettings
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
options() → dynamic
source() → dynamic
The bridge's source: the model directory, or the endpoint with its model and key.
toString() → String
A string representation of this object.
inherited

Operators

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