Fix Dart tests: add required toolCalls field to InferenceResult
keypair34 committed
Apr 26, 2026 at 16:02 UTC
cab709020e802d96d82e3f8ee47097e1ee9ee498
1 file changed
+3
-4
sdk/dart/test/dart_test.dart
+3
-4
@@ -176,12 +176,14 @@ void main() {
176
durationSecs: 1.5,
177
durationDisplay: '1.5s',
178
finishReason: 'stop',
179
+ toolCalls: [],
180
);
181
const b = InferenceResult(
182
text: 'Hi there!',
183
durationSecs: 1.5,
184
durationDisplay: '1.5s',
185
finishReason: 'stop',
186
+ toolCalls: [],
187
);
188
expect(a, equals(b));
189
});
@@ -211,10 +213,7 @@ void main() {
213
test('sampling factories return correct presets', () {
214
expect(OndeInference.defaultSamplingConfig().temperature, 0.7);
215
expect(OndeInference.deterministicSamplingConfig().temperature, 0.0);
214
- expect(
215
- OndeInference.mobileSamplingConfig().maxTokens,
216
- BigInt.from(128),
217
- );
216
+ expect(OndeInference.mobileSamplingConfig().maxTokens, BigInt.from(128));
217
});
218
});
219