Skip to content

Commit 1cbd337

Browse files
authored
chore: remove _agentConfigInternal and use _agentConfig directly (#1297)
1 parent 400d971 commit 1cbd337

1 file changed

Lines changed: 1 addition & 21 deletions

File tree

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

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ export class LDAIClientImpl implements LDAIClient {
446446
const agentConfigs: Record<string, LDAIAgentConfig> = {};
447447
const fetchResults = await Promise.all(
448448
[...allKeys].map(async (key) => {
449-
const config = await this._agentConfigInternal(key, context, graphKey, variables);
449+
const config = await this._agentConfig(key, context, disabledAIConfig, variables, graphKey);
450450
return { key, config };
451451
}),
452452
);
@@ -470,26 +470,6 @@ export class LDAIClientImpl implements LDAIClient {
470470
return LDGraphTrackerImpl.fromResumptionToken(token, this._ldClient, context);
471471
}
472472

473-
/**
474-
* Fetches a single agent config without tracking usage (used internally by agentGraph).
475-
*/
476-
private async _agentConfigInternal(
477-
key: string,
478-
context: LDContext,
479-
graphKey?: string,
480-
variables?: Record<string, unknown>,
481-
): Promise<LDAIAgentConfig> {
482-
const config = await this._evaluate(
483-
key,
484-
context,
485-
disabledAIConfig,
486-
'agent',
487-
variables,
488-
graphKey,
489-
);
490-
return config as LDAIAgentConfig;
491-
}
492-
493473
/**
494474
* Returns the set of all node keys reachable from the root via BFS.
495475
*/

0 commit comments

Comments
 (0)