CompositeTraceExporter class

Fans out events to multiple exporters. Order is preserved within each exporter; cross-exporter order is not guaranteed.

Implemented types

Constructors

CompositeTraceExporter(List<TraceExporter> exporters)

Properties

exporters List<TraceExporter>
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() Future<void>
Flush + release resources. Called once at the end of the run.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onLLMCall({required Trial trial, required List<LLMMessage> requestMessages, required ModelConfig modelConfig, required ModelMessage? response, required Duration duration, Object? error}) Future<void>
Called for each LLM call. response is null on errors.
override
onRunEnd({required String runName, required String suiteName, required Map<String, double> aggregateScores}) Future<void>
Called when a dataset run completes. Implementations may use this hook to record run-level aggregate scores (pass@k, F1 …).
override
onToolCall({required Trial trial, required ToolCallRecord record}) Future<void>
Called for each tool call.
override
onTrialEnd({required Trial trial, required Transcript transcript, required Outcome outcome, required List<Score> scores}) Future<void>
Called when trial finishes with the final transcript, outcome, and scores. Implementations should attach all scores here.
override
onTrialStart(Trial trial, EvalTask task) Future<void>
Called when a trial starts.
override
toString() String
A string representation of this object.
inherited

Operators

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