-
Notifications
You must be signed in to change notification settings - Fork 26
feat: Adding agent support for AI Configs #893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@launchdarkly/browser size report |
@launchdarkly/js-sdk-common size report |
@launchdarkly/js-client-sdk-common size report |
@launchdarkly/js-client-sdk size report |
🚨 BugBot couldn't runSomething went wrong. Try again by commenting "bugbot run", or contact support (requestId: serverGenReqId_18dafc40-282b-4e1b-ab38-6508e582def5). |
agents<const T extends readonly LDAIAgentConfig[]>( | ||
agentConfigs: T, | ||
context: LDContext, | ||
): Promise<Record<T[number]['key'], LDAIAgent>>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does agents
have typing related to LDAIAgentConfig and takes configs but agent
(singular) up above does not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The .agents
function takes a list of keys as input and returns a map using those same keys. The typing ensures that the editor's IntelliSense can provide accurate suggestions when retrieving values, its to help users access only the keys they originally passed in.
|
||
await Promise.all( | ||
agentConfigs.map(async (config) => { | ||
const agent = await this._evaluateAgent( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this promise encounter any errors/failures?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The _evaluateAgent
function calls the underlying LaunchDarkly client, which shouldn’t produce any errors, my understanding is that our SDKs are designed not to return errors during evaluation.
CI Check is failing. |
Fixed |
Requirements
Related issues
Provide links to any issues in this repository or elsewhere relating to this pull request.
Describe the solution you've provided
Provide a clear and concise description of what you expect to happen.
Describe alternatives you've considered
Provide a clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context about the pull request here.