Package com.langchain.smith.example
Class ExperimentUtilsKt
-
- All Implemented Interfaces:
public final class ExperimentUtilsKt
-
-
Method Summary
Modifier and Type Method Description final static UUIDgenerateUuid5(UUID namespace, String name)Generate a deterministic UUID v5 based on namespace and name. final static StringgenerateExampleId(String datasetId, Map<String, Object> inputs, Map<String, Object> referenceOutputs)Generate a deterministic example ID based on dataset ID, inputs, and reference outputs. final static StringbuildDatasetUrl(Dataset dataset)Constructs the web URL for a dataset from the API base URL. final static StringbuildSessionUrl(String tenantId, String sessionId)Constructs the web URL for a session/experiment from the API base URL. -
-
Method Detail
-
generateUuid5
final static UUID generateUuid5(UUID namespace, String name)
Generate a deterministic UUID v5 based on namespace and name. This ensures idempotent example creation - the same inputs always generate the same ID.
-
generateExampleId
final static String generateExampleId(String datasetId, Map<String, Object> inputs, Map<String, Object> referenceOutputs)
Generate a deterministic example ID based on dataset ID, inputs, and reference outputs.
-
buildDatasetUrl
final static String buildDatasetUrl(Dataset dataset)
Constructs the web URL for a dataset from the API base URL.
-
buildSessionUrl
final static String buildSessionUrl(String tenantId, String sessionId)
Constructs the web URL for a session/experiment from the API base URL.
-
-
-
-