EvaluationGenerator class

Generates inference trajectories from eval sets.

Constructors

EvaluationGenerator()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

convertEventsToEvalInvocations(List<Event> events, {Map<String, AppDetails>? appDetailsPerInvocation, Map<String, double>? durationsPerInvocation, Map<String, double>? modelDurationsPerInvocation, Map<String, double>? toolDurationsPerInvocation}) → List<Invocation>
Converts raw runner events into eval Invocation objects.
generateInferencesFromRootAgent({required BaseAgent rootAgent, UserSimulator<BaseUserSimulatorConfig>? userSimulator, EvalCase? evalCase, SessionInput? initialSession, String? sessionId, BaseSessionService? sessionService, BaseArtifactService? artifactService, BaseMemoryService? memoryService, App? app, String? appName, String? userId}) → Future<List<Invocation>>
Generates evaluation Invocations by running rootAgent (or app) against userSimulator or evalCase.
generateInferencesFromRootAgentLive({required BaseAgent rootAgent, UserSimulator<BaseUserSimulatorConfig>? userSimulator, EvalCase? evalCase, SessionInput? initialSession, String? sessionId, BaseSessionService? sessionService, BaseArtifactService? artifactService, BaseMemoryService? memoryService, App? app, String? appName, String? userId, int liveTimeoutSeconds = 30}) → Future<List<Invocation>>
Generates evaluation Invocations in Live (bidirectional streaming) mode.
generateResponses({required EvalSet evalSet, required BaseAgent rootAgent, int repeatNum = 3, String appName = 'EvaluationGenerator', String userId = 'test_user_id', UserSimulatorProvider? userSimulatorProvider, int? parallelism}) → Future<List<EvalCaseResponses>>
Runs evalSet against rootAgent and returns generated trajectories.