Skip to content

Commit d0751ea

Browse files
committed
feat: v0.4.0
1 parent ff6ff7d commit d0751ea

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

judgeval-java/src/main/java/com/judgmentlabs/judgeval/Judgeval.java

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
package com.judgmentlabs.judgeval.v1;
1+
package com.judgmentlabs.judgeval;
22

33
import java.util.Objects;
44

5-
import com.judgmentlabs.judgeval.Env;
6-
import com.judgmentlabs.judgeval.internal.api.JudgmentSyncClient;
75
import com.judgmentlabs.judgeval.evaluation.EvaluationFactory;
6+
import com.judgmentlabs.judgeval.internal.api.JudgmentSyncClient;
87
import com.judgmentlabs.judgeval.scorers.ScorersFactory;
98
import com.judgmentlabs.judgeval.tracer.TracerFactory;
109

@@ -13,9 +12,9 @@
1312
* evaluation factories.
1413
*/
1514
public class Judgeval {
16-
private final String apiKey;
17-
private final String organizationId;
18-
private final String apiUrl;
15+
private final String apiKey;
16+
private final String organizationId;
17+
private final String apiUrl;
1918
private final JudgmentSyncClient internalClient;
2019

2120
protected Judgeval(Builder builder) {
@@ -65,15 +64,15 @@ public static Builder builder() {
6564
* Builder for configuring and creating Judgeval instances.
6665
*/
6766
public static class Builder {
68-
private String apiKey = Env.JUDGMENT_API_KEY;
67+
private String apiKey = Env.JUDGMENT_API_KEY;
6968
private String organizationId = Env.JUDGMENT_ORG_ID;
70-
private String apiUrl = Env.JUDGMENT_API_URL;
69+
private String apiUrl = Env.JUDGMENT_API_URL;
7170

7271
/**
7372
* Sets the API key for authentication.
7473
*
7574
* @param apiKey
76-
* the API key
75+
* the API key
7776
* @return this builder
7877
*/
7978
public Builder apiKey(String apiKey) {
@@ -85,7 +84,7 @@ public Builder apiKey(String apiKey) {
8584
* Sets the organization ID.
8685
*
8786
* @param organizationId
88-
* the organization ID
87+
* the organization ID
8988
* @return this builder
9089
*/
9190
public Builder organizationId(String organizationId) {
@@ -97,7 +96,7 @@ public Builder organizationId(String organizationId) {
9796
* Sets the API URL.
9897
*
9998
* @param apiUrl
100-
* the API URL
99+
* the API URL
101100
* @return this builder
102101
*/
103102
public Builder apiUrl(String apiUrl) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/**
22
* Judgeval SDK v1 API.
33
*/
4-
package com.judgmentlabs.judgeval.v1;
4+
package com.judgmentlabs.judgeval;

judgeval-java/src/test/java/com/judgmentlabs/judgeval/JudgevalTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
package com.judgmentlabs.judgeval.v1;
1+
package com.judgmentlabs.judgeval;
22

3-
import static org.junit.jupiter.api.Assertions.*;
3+
import static org.junit.jupiter.api.Assertions.assertNotNull;
4+
import static org.junit.jupiter.api.Assertions.assertThrows;
45

56
import org.junit.jupiter.api.Test;
67

@@ -11,7 +12,7 @@
1112
class JudgevalTest {
1213
private static final String TEST_API_URL = "https://api.test.com";
1314
private static final String TEST_API_KEY = "test-key";
14-
private static final String TEST_ORG_ID = "test-org";
15+
private static final String TEST_ORG_ID = "test-org";
1516

1617
@Test
1718
void builder_withAllParameters_buildsSuccessfully() {

0 commit comments

Comments
 (0)