Skip to content

Commit 574ffd7

Browse files
jsonbaileyclaude
andcommitted
fix: remove graphKey param from trackJudgeResult after upstream refactor
getTrackData() no longer accepts graphKey — it comes from the constructor. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3c79377 commit 574ffd7

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

packages/sdk/server-ai/src/LDAIConfigTrackerImpl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,15 @@ export class LDAIConfigTrackerImpl implements LDAIConfigTracker {
119119
);
120120
}
121121

122-
trackJudgeResult(result: LDJudgeResult, graphKey?: string) {
122+
trackJudgeResult(result: LDJudgeResult) {
123123
if (!result.sampled || !result.success) {
124124
return;
125125
}
126126
if (result.metricKey !== undefined && result.score !== undefined) {
127127
this._ldClient.track(
128128
result.metricKey,
129129
this._context,
130-
{ ...this.getTrackData(graphKey), judgeConfigKey: result.judgeConfigKey },
130+
{ ...this.getTrackData(), judgeConfigKey: result.judgeConfigKey },
131131
result.score,
132132
);
133133
}

packages/sdk/server-ai/src/api/config/LDAIConfigTracker.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,8 @@ export interface LDAIConfigTracker {
121121
* No event is emitted when the result was not sampled (result.sampled is false).
122122
*
123123
* @param result Judge result containing score, reasoning, and metadata
124-
* @param graphKey When provided, associates this metric with the specified agent graph key.
125124
*/
126-
trackJudgeResult(result: LDJudgeResult, graphKey?: string): void;
125+
trackJudgeResult(result: LDJudgeResult): void;
127126

128127
/**
129128
* Track a single tool invocation.

0 commit comments

Comments
 (0)