TruncationStrategy class

The truncation strategy for a run.

Annotations
  • @immutable

Constructors

TruncationStrategy({required String type, int? lastMessages})
Creates a TruncationStrategy.
const
TruncationStrategy.fromJson(Map<String, dynamic> json)
Creates a TruncationStrategy from JSON.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
lastMessages int?
The number of most recent messages to include.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The truncation type ("auto" or "last_messages").
final

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
override