77import com .langfuse .client .core .ClientOptions ;
88import com .langfuse .client .core .Suppliers ;
99import java .util .function .Supplier ;
10+ import com .langfuse .client .resources .annotationqueues .AnnotationQueuesClient ;
1011import com .langfuse .client .resources .comments .CommentsClient ;
1112import com .langfuse .client .resources .datasetitems .DatasetItemsClient ;
1213import com .langfuse .client .resources .datasetrunitems .DatasetRunItemsClient ;
1718import com .langfuse .client .resources .metrics .MetricsClient ;
1819import com .langfuse .client .resources .models .ModelsClient ;
1920import com .langfuse .client .resources .observations .ObservationsClient ;
21+ import com .langfuse .client .resources .organizations .OrganizationsClient ;
2022import com .langfuse .client .resources .projects .ProjectsClient ;
2123import com .langfuse .client .resources .prompts .PromptsClient ;
2224import com .langfuse .client .resources .promptversion .PromptVersionClient ;
25+ import com .langfuse .client .resources .scim .ScimClient ;
2326import com .langfuse .client .resources .score .ScoreClient ;
2427import com .langfuse .client .resources .scoreconfigs .ScoreConfigsClient ;
28+ import com .langfuse .client .resources .scorev2 .ScoreV2Client ;
2529import com .langfuse .client .resources .sessions .SessionsClient ;
2630import com .langfuse .client .resources .trace .TraceClient ;
2731
2832public class LangfuseClient {
2933 protected final ClientOptions clientOptions ;
3034
35+ protected final Supplier <AnnotationQueuesClient > annotationQueuesClient ;
36+
3137 protected final Supplier <CommentsClient > commentsClient ;
3238
3339 protected final Supplier <DatasetItemsClient > datasetItemsClient ;
@@ -48,14 +54,20 @@ public class LangfuseClient {
4854
4955 protected final Supplier <ObservationsClient > observationsClient ;
5056
57+ protected final Supplier <OrganizationsClient > organizationsClient ;
58+
5159 protected final Supplier <ProjectsClient > projectsClient ;
5260
5361 protected final Supplier <PromptVersionClient > promptVersionClient ;
5462
5563 protected final Supplier <PromptsClient > promptsClient ;
5664
65+ protected final Supplier <ScimClient > scimClient ;
66+
5767 protected final Supplier <ScoreConfigsClient > scoreConfigsClient ;
5868
69+ protected final Supplier <ScoreV2Client > scoreV2Client ;
70+
5971 protected final Supplier <ScoreClient > scoreClient ;
6072
6173 protected final Supplier <SessionsClient > sessionsClient ;
@@ -64,6 +76,7 @@ public class LangfuseClient {
6476
6577 public LangfuseClient (ClientOptions clientOptions ) {
6678 this .clientOptions = clientOptions ;
79+ this .annotationQueuesClient = Suppliers .memoize (() -> new AnnotationQueuesClient (clientOptions ));
6780 this .commentsClient = Suppliers .memoize (() -> new CommentsClient (clientOptions ));
6881 this .datasetItemsClient = Suppliers .memoize (() -> new DatasetItemsClient (clientOptions ));
6982 this .datasetRunItemsClient = Suppliers .memoize (() -> new DatasetRunItemsClient (clientOptions ));
@@ -74,15 +87,22 @@ public LangfuseClient(ClientOptions clientOptions) {
7487 this .metricsClient = Suppliers .memoize (() -> new MetricsClient (clientOptions ));
7588 this .modelsClient = Suppliers .memoize (() -> new ModelsClient (clientOptions ));
7689 this .observationsClient = Suppliers .memoize (() -> new ObservationsClient (clientOptions ));
90+ this .organizationsClient = Suppliers .memoize (() -> new OrganizationsClient (clientOptions ));
7791 this .projectsClient = Suppliers .memoize (() -> new ProjectsClient (clientOptions ));
7892 this .promptVersionClient = Suppliers .memoize (() -> new PromptVersionClient (clientOptions ));
7993 this .promptsClient = Suppliers .memoize (() -> new PromptsClient (clientOptions ));
94+ this .scimClient = Suppliers .memoize (() -> new ScimClient (clientOptions ));
8095 this .scoreConfigsClient = Suppliers .memoize (() -> new ScoreConfigsClient (clientOptions ));
96+ this .scoreV2Client = Suppliers .memoize (() -> new ScoreV2Client (clientOptions ));
8197 this .scoreClient = Suppliers .memoize (() -> new ScoreClient (clientOptions ));
8298 this .sessionsClient = Suppliers .memoize (() -> new SessionsClient (clientOptions ));
8399 this .traceClient = Suppliers .memoize (() -> new TraceClient (clientOptions ));
84100 }
85101
102+ public AnnotationQueuesClient annotationQueues () {
103+ return this .annotationQueuesClient .get ();
104+ }
105+
86106 public CommentsClient comments () {
87107 return this .commentsClient .get ();
88108 }
@@ -123,6 +143,10 @@ public ObservationsClient observations() {
123143 return this .observationsClient .get ();
124144 }
125145
146+ public OrganizationsClient organizations () {
147+ return this .organizationsClient .get ();
148+ }
149+
126150 public ProjectsClient projects () {
127151 return this .projectsClient .get ();
128152 }
@@ -135,10 +159,18 @@ public PromptsClient prompts() {
135159 return this .promptsClient .get ();
136160 }
137161
162+ public ScimClient scim () {
163+ return this .scimClient .get ();
164+ }
165+
138166 public ScoreConfigsClient scoreConfigs () {
139167 return this .scoreConfigsClient .get ();
140168 }
141169
170+ public ScoreV2Client scoreV2 () {
171+ return this .scoreV2Client .get ();
172+ }
173+
142174 public ScoreClient score () {
143175 return this .scoreClient .get ();
144176 }
0 commit comments