Package com.google.genkit.ai.evaluation
Interface EvalStore
- All Known Implementing Classes:
LocalFileEvalStore
public interface EvalStore
Interface for storing and retrieving evaluation runs.
-
Method Summary
Modifier and TypeMethodDescriptionvoidDeletes an evaluation run.list()Lists all evaluation run keys.Lists evaluation run keys with optional filtering.Loads an evaluation run by ID.voidSaves an evaluation run.
-
Method Details
-
save
Saves an evaluation run.- Parameters:
evalRun- the evaluation run to save- Throws:
Exception- if save fails
-
load
Loads an evaluation run by ID.- Parameters:
evalRunId- the evaluation run ID- Returns:
- the evaluation run, or null if not found
- Throws:
Exception- if load fails
-
list
Lists all evaluation run keys.- Returns:
- list of evaluation run keys
- Throws:
Exception- if listing fails
-
list
Lists evaluation run keys with optional filtering.- Parameters:
actionRef- filter by action referencedatasetId- filter by dataset ID- Returns:
- filtered list of evaluation run keys
- Throws:
Exception- if listing fails
-
delete
Deletes an evaluation run.- Parameters:
evalRunId- the evaluation run ID to delete- Throws:
Exception- if deletion fails
-