Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions packages/core/src/api/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import { PromptVersion } from "./api/resources/promptVersion/client/Client.js";
import { Prompts } from "./api/resources/prompts/client/Client.js";
import { Scim } from "./api/resources/scim/client/Client.js";
import { ScoreConfigs } from "./api/resources/scoreConfigs/client/Client.js";
import { ScoresV3 } from "./api/resources/scoresV3/client/Client.js";
import { Scores } from "./api/resources/scores/client/Client.js";
import { Sessions } from "./api/resources/sessions/client/Client.js";
import { Trace } from "./api/resources/trace/client/Client.js";
Expand Down Expand Up @@ -97,7 +96,6 @@ export class LangfuseAPIClient {
protected _prompts: Prompts | undefined;
protected _scim: Scim | undefined;
protected _scoreConfigs: ScoreConfigs | undefined;
protected _scoresV3: ScoresV3 | undefined;
protected _scores: Scores | undefined;
protected _sessions: Sessions | undefined;
protected _trace: Trace | undefined;
Expand Down Expand Up @@ -203,10 +201,6 @@ export class LangfuseAPIClient {
return (this._scoreConfigs ??= new ScoreConfigs(this._options));
}

public get scoresV3(): ScoresV3 {
return (this._scoresV3 ??= new ScoresV3(this._options));
}

public get scores(): Scores {
return (this._scores ??= new Scores(this._options));
}
Expand Down
3 changes: 0 additions & 3 deletions packages/core/src/api/api/resources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ export * as scim from "./scim/index.js";
export * from "./scim/types/index.js";
export * as scoreConfigs from "./scoreConfigs/index.js";
export * from "./scoreConfigs/types/index.js";
export * as scoresV3 from "./scoresV3/index.js";
export * from "./scoresV3/types/index.js";
export * as scores from "./scores/index.js";
export * from "./scores/types/index.js";
export * as sessions from "./sessions/index.js";
Expand Down Expand Up @@ -68,7 +66,6 @@ export * from "./promptVersion/client/requests/index.js";
export * from "./prompts/client/requests/index.js";
export * from "./scim/client/requests/index.js";
export * from "./scoreConfigs/client/requests/index.js";
export * from "./scoresV3/client/requests/index.js";
export * from "./scores/client/requests/index.js";
export * from "./sessions/client/requests/index.js";
export * from "./trace/client/requests/index.js";
6 changes: 6 additions & 0 deletions packages/core/src/api/api/resources/legacy/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import * as core from "../../../../core/index.js";
import { MetricsV1 } from "../resources/metricsV1/client/Client.js";
import { ObservationsV1 } from "../resources/observationsV1/client/Client.js";
import { ScoreV1 } from "../resources/scoreV1/client/Client.js";
import { ScoresV2 } from "../resources/scoresV2/client/Client.js";

export declare namespace Legacy {
export interface Options {
Expand Down Expand Up @@ -33,6 +34,7 @@ export class Legacy {
protected _metricsV1: MetricsV1 | undefined;
protected _observationsV1: ObservationsV1 | undefined;
protected _scoreV1: ScoreV1 | undefined;
protected _scoresV2: ScoresV2 | undefined;

constructor(_options: Legacy.Options) {
this._options = _options;
Expand All @@ -49,4 +51,8 @@ export class Legacy {
public get scoreV1(): ScoreV1 {
return (this._scoreV1 ??= new ScoreV1(this._options));
}

public get scoresV2(): ScoresV2 {
return (this._scoresV2 ??= new ScoresV2(this._options));
}
}
3 changes: 3 additions & 0 deletions packages/core/src/api/api/resources/legacy/resources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ export * as observationsV1 from "./observationsV1/index.js";
export * from "./observationsV1/types/index.js";
export * as scoreV1 from "./scoreV1/index.js";
export * from "./scoreV1/types/index.js";
export * as scoresV2 from "./scoresV2/index.js";
export * from "./scoresV2/types/index.js";
export * from "./metricsV1/client/requests/index.js";
export * from "./observationsV1/client/requests/index.js";
export * from "./scoresV2/client/requests/index.js";
Loading
Loading