@launchdarkly/server-sdk-ai 0.14.0 → 0.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/__tests__/Judge.test.ts +31 -6
  3. package/__tests__/LDAIClientImpl.test.ts +5 -0
  4. package/__tests__/TrackedChat.test.ts +1 -0
  5. package/dist/package.json +1 -1
  6. package/dist/src/LDAIClientImpl.js +2 -2
  7. package/dist/src/LDAIClientImpl.js.map +1 -1
  8. package/dist/src/LDAIConfigTrackerImpl.d.ts +2 -1
  9. package/dist/src/LDAIConfigTrackerImpl.d.ts.map +1 -1
  10. package/dist/src/LDAIConfigTrackerImpl.js +5 -1
  11. package/dist/src/LDAIConfigTrackerImpl.js.map +1 -1
  12. package/dist/src/api/chat/TrackedChat.d.ts.map +1 -1
  13. package/dist/src/api/chat/TrackedChat.js +4 -4
  14. package/dist/src/api/chat/TrackedChat.js.map +1 -1
  15. package/dist/src/api/config/LDAIConfigTracker.d.ts +7 -1
  16. package/dist/src/api/config/LDAIConfigTracker.d.ts.map +1 -1
  17. package/dist/src/api/config/LDAIConfigUtils.js +16 -12
  18. package/dist/src/api/config/LDAIConfigUtils.js.map +1 -1
  19. package/dist/src/api/config/types.d.ts +4 -0
  20. package/dist/src/api/config/types.d.ts.map +1 -1
  21. package/dist/src/api/judge/Judge.d.ts.map +1 -1
  22. package/dist/src/api/judge/Judge.js +2 -0
  23. package/dist/src/api/judge/Judge.js.map +1 -1
  24. package/dist/src/api/judge/types.d.ts +2 -0
  25. package/dist/src/api/judge/types.d.ts.map +1 -1
  26. package/docs/assets/search.js +1 -1
  27. package/docs/classes/AIProvider.html +9 -9
  28. package/docs/classes/AIProviderFactory.html +8 -8
  29. package/docs/classes/Judge.html +18 -18
  30. package/docs/classes/TrackedChat.html +19 -19
  31. package/docs/enums/LDFeedbackKind.html +6 -6
  32. package/docs/functions/createBedrockTokenUsage.html +4 -4
  33. package/docs/functions/createOpenAiUsage.html +4 -4
  34. package/docs/functions/createVercelAISDKTokenUsage.html +4 -4
  35. package/docs/functions/initAi.html +4 -4
  36. package/docs/index.html +4 -4
  37. package/docs/interfaces/ChatResponse.html +7 -7
  38. package/docs/interfaces/EvalScore.html +6 -6
  39. package/docs/interfaces/JudgeResponse.html +17 -7
  40. package/docs/interfaces/LDAIAgentConfig.html +21 -10
  41. package/docs/interfaces/LDAIAgentConfigDefault.html +9 -9
  42. package/docs/interfaces/LDAIAgentRequestConfig.html +7 -7
  43. package/docs/interfaces/LDAIClient.html +14 -14
  44. package/docs/interfaces/LDAICompletionConfig.html +21 -10
  45. package/docs/interfaces/LDAICompletionConfigDefault.html +9 -9
  46. package/docs/interfaces/LDAIConfig.html +18 -8
  47. package/docs/interfaces/LDAIConfigDefault.html +7 -7
  48. package/docs/interfaces/LDAIConfigTracker.html +39 -19
  49. package/docs/interfaces/LDAIJudgeConfig.html +21 -10
  50. package/docs/interfaces/LDAIJudgeConfigDefault.html +9 -9
  51. package/docs/interfaces/LDAIMetrics.html +6 -6
  52. package/docs/interfaces/LDJudge.html +6 -6
  53. package/docs/interfaces/LDJudgeConfiguration.html +5 -5
  54. package/docs/interfaces/LDLogger.html +3 -3
  55. package/docs/interfaces/LDMessage.html +6 -6
  56. package/docs/interfaces/LDModelConfig.html +7 -7
  57. package/docs/interfaces/LDProviderConfig.html +5 -5
  58. package/docs/interfaces/LDTokenUsage.html +7 -7
  59. package/docs/interfaces/StructuredResponse.html +7 -7
  60. package/docs/types/LDAIConfigDefaultKind.html +4 -4
  61. package/docs/types/LDAIConfigKind.html +4 -4
  62. package/docs/types/LDAIConfigMode.html +4 -4
  63. package/docs/types/SupportedAIProvider.html +4 -4
  64. package/docs/variables/SUPPORTED_AI_PROVIDERS.html +4 -4
  65. package/package.json +1 -1
  66. package/src/LDAIClientImpl.ts +2 -2
  67. package/src/LDAIConfigTrackerImpl.ts +12 -2
  68. package/src/api/chat/TrackedChat.ts +9 -5
  69. package/src/api/config/LDAIConfigTracker.ts +8 -1
  70. package/src/api/config/LDAIConfigUtils.ts +20 -9
  71. package/src/api/config/types.ts +4 -0
  72. package/src/api/judge/Judge.ts +2 -0
  73. package/src/api/judge/types.ts +2 -0
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>LDAIAgentConfigDefault | @launchdarkly/server-sdk-ai - v0.14.0</title><meta name="description" content="Documentation for @launchdarkly/server-sdk-ai"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>LDAIAgentConfigDefault | @launchdarkly/server-sdk-ai - v0.14.1</title><meta name="description" content="Documentation for @launchdarkly/server-sdk-ai"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
2
  <div class="tsd-toolbar-contents container">
3
3
  <div class="table-cell" id="tsd-search" data-base="..">
4
4
  <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
@@ -6,7 +6,7 @@
6
6
  <div id="tsd-toolbar-links"></div></div>
7
7
  <ul class="results">
8
8
  <li class="state loading">Preparing search index...</li>
9
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@launchdarkly/server-sdk-ai - v0.14.0</a></div>
9
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@launchdarkly/server-sdk-ai - v0.14.1</a></div>
10
10
  <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
11
  <div class="container container-main">
12
12
  <div class="col-content">
@@ -26,7 +26,7 @@
26
26
  <ul class="tsd-hierarchy">
27
27
  <li><span class="target">LDAIAgentConfigDefault</span></li></ul></li></ul></section><aside class="tsd-sources">
28
28
  <ul>
29
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/config/types.ts#L117">sdk/server-ai/src/api/config/types.ts:117</a></li></ul></aside>
29
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/config/types.ts#L121">sdk/server-ai/src/api/config/types.ts:121</a></li></ul></aside>
30
30
  <section class="tsd-panel-group tsd-index-group">
31
31
  <section class="tsd-panel tsd-index-panel">
32
32
  <details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
@@ -50,7 +50,7 @@
50
50
  <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
51
51
  <p>Inherited from <a href="LDAIConfigDefault.html">LDAIConfigDefault</a>.<a href="LDAIConfigDefault.html#enabled">enabled</a></p>
52
52
  <ul>
53
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/config/types.ts#L91">sdk/server-ai/src/api/config/types.ts:91</a></li></ul></aside></section>
53
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/config/types.ts#L91">sdk/server-ai/src/api/config/types.ts:91</a></li></ul></aside></section>
54
54
  <section class="tsd-panel tsd-member"><a id="instructions" class="tsd-anchor"></a>
55
55
  <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>instructions</span><a href="#instructions" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
56
56
  <div class="tsd-signature"><span class="tsd-kind-property">instructions</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
@@ -58,7 +58,7 @@
58
58
  </div>
59
59
  <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
60
60
  <ul>
61
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/config/types.ts#L121">sdk/server-ai/src/api/config/types.ts:121</a></li></ul></aside></section>
61
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/config/types.ts#L125">sdk/server-ai/src/api/config/types.ts:125</a></li></ul></aside></section>
62
62
  <section class="tsd-panel tsd-member"><a id="judgeConfiguration" class="tsd-anchor"></a>
63
63
  <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>judge<wbr/>Configuration</span><a href="#judgeConfiguration" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
64
64
  <div class="tsd-signature"><span class="tsd-kind-property">judge<wbr/>Configuration</span><span class="tsd-signature-symbol">?:</span> <a href="LDJudgeConfiguration.html" class="tsd-signature-type tsd-kind-interface">LDJudgeConfiguration</a></div>
@@ -67,7 +67,7 @@ References judge AI Configs that should evaluate this AI Config.</p>
67
67
  </div>
68
68
  <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
69
69
  <ul>
70
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/config/types.ts#L126">sdk/server-ai/src/api/config/types.ts:126</a></li></ul></aside></section>
70
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/config/types.ts#L130">sdk/server-ai/src/api/config/types.ts:130</a></li></ul></aside></section>
71
71
  <section class="tsd-panel tsd-member tsd-is-inherited"><a id="model" class="tsd-anchor"></a>
72
72
  <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>model</span><a href="#model" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
73
73
  <div class="tsd-signature"><span class="tsd-kind-property">model</span><span class="tsd-signature-symbol">?:</span> <a href="LDModelConfig.html" class="tsd-signature-type tsd-kind-interface">LDModelConfig</a></div>
@@ -76,7 +76,7 @@ References judge AI Configs that should evaluate this AI Config.</p>
76
76
  <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
77
77
  <p>Inherited from <a href="LDAIConfigDefault.html">LDAIConfigDefault</a>.<a href="LDAIConfigDefault.html#model">model</a></p>
78
78
  <ul>
79
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/config/types.ts#L81">sdk/server-ai/src/api/config/types.ts:81</a></li></ul></aside></section>
79
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/config/types.ts#L81">sdk/server-ai/src/api/config/types.ts:81</a></li></ul></aside></section>
80
80
  <section class="tsd-panel tsd-member tsd-is-inherited"><a id="provider" class="tsd-anchor"></a>
81
81
  <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>provider</span><a href="#provider" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
82
82
  <div class="tsd-signature"><span class="tsd-kind-property">provider</span><span class="tsd-signature-symbol">?:</span> <a href="LDProviderConfig.html" class="tsd-signature-type tsd-kind-interface">LDProviderConfig</a></div>
@@ -85,7 +85,7 @@ References judge AI Configs that should evaluate this AI Config.</p>
85
85
  <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
86
86
  <p>Inherited from <a href="LDAIConfigDefault.html">LDAIConfigDefault</a>.<a href="LDAIConfigDefault.html#provider">provider</a></p>
87
87
  <ul>
88
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/config/types.ts#L86">sdk/server-ai/src/api/config/types.ts:86</a></li></ul></aside></section></section></div>
88
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/config/types.ts#L86">sdk/server-ai/src/api/config/types.ts:86</a></li></ul></aside></section></section></div>
89
89
  <div class="col-sidebar">
90
90
  <div class="page-menu">
91
91
  <div class="tsd-navigation settings">
@@ -111,7 +111,7 @@ References judge AI Configs that should evaluate this AI Config.</p>
111
111
  <li><a href="#model" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>model</span></a></li>
112
112
  <li><a href="#provider" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>provider</span></a></li></ul></div></details></div>
113
113
  <div class="site-menu">
114
- <nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>@launchdarkly/server-<wbr/>sdk-<wbr/>ai -<wbr/> v0.14.0</span></a>
114
+ <nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>@launchdarkly/server-<wbr/>sdk-<wbr/>ai -<wbr/> v0.14.1</span></a>
115
115
  <ul class="tsd-small-nested-navigation">
116
116
  <li><a href="../enums/LDFeedbackKind.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-8"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.45 16V7.24H14.49V8.224H10.518V10.936H14.07V11.908H10.518V15.016H14.49V16H9.45Z" fill="var(--color-text)"></path></g></svg><span>LDFeedback<wbr/>Kind</span></a></li>
117
117
  <li><a href="../classes/AIProvider.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-128"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g></svg><span>AIProvider</span></a></li>
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>LDAIAgentRequestConfig | @launchdarkly/server-sdk-ai - v0.14.0</title><meta name="description" content="Documentation for @launchdarkly/server-sdk-ai"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>LDAIAgentRequestConfig | @launchdarkly/server-sdk-ai - v0.14.1</title><meta name="description" content="Documentation for @launchdarkly/server-sdk-ai"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
2
  <div class="tsd-toolbar-contents container">
3
3
  <div class="table-cell" id="tsd-search" data-base="..">
4
4
  <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
@@ -6,7 +6,7 @@
6
6
  <div id="tsd-toolbar-links"></div></div>
7
7
  <ul class="results">
8
8
  <li class="state loading">Preparing search index...</li>
9
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@launchdarkly/server-sdk-ai - v0.14.0</a></div>
9
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@launchdarkly/server-sdk-ai - v0.14.1</a></div>
10
10
  <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
11
  <div class="container container-main">
12
12
  <div class="col-content">
@@ -24,7 +24,7 @@
24
24
  <ul class="tsd-hierarchy">
25
25
  <li><span class="target">LDAIAgentRequestConfig</span></li></ul></section><aside class="tsd-sources">
26
26
  <ul>
27
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/config/types.ts#L232">sdk/server-ai/src/api/config/types.ts:232</a></li></ul></aside>
27
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/config/types.ts#L236">sdk/server-ai/src/api/config/types.ts:236</a></li></ul></aside>
28
28
  <section class="tsd-panel-group tsd-index-group">
29
29
  <section class="tsd-panel tsd-index-panel">
30
30
  <details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
@@ -45,7 +45,7 @@
45
45
  </div>
46
46
  <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
47
47
  <ul>
48
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/config/types.ts#L241">sdk/server-ai/src/api/config/types.ts:241</a></li></ul></aside></section>
48
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/config/types.ts#L245">sdk/server-ai/src/api/config/types.ts:245</a></li></ul></aside></section>
49
49
  <section class="tsd-panel tsd-member"><a id="key" class="tsd-anchor"></a>
50
50
  <h3 class="tsd-anchor-link"><span>key</span><a href="#key" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
51
51
  <div class="tsd-signature"><span class="tsd-kind-property">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
@@ -53,7 +53,7 @@
53
53
  </div>
54
54
  <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
55
55
  <ul>
56
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/config/types.ts#L236">sdk/server-ai/src/api/config/types.ts:236</a></li></ul></aside></section>
56
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/config/types.ts#L240">sdk/server-ai/src/api/config/types.ts:240</a></li></ul></aside></section>
57
57
  <section class="tsd-panel tsd-member"><a id="variables" class="tsd-anchor"></a>
58
58
  <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>variables</span><a href="#variables" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
59
59
  <div class="tsd-signature"><span class="tsd-kind-property">variables</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type ">Record</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span></div>
@@ -61,7 +61,7 @@
61
61
  </div>
62
62
  <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
63
63
  <ul>
64
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/config/types.ts#L246">sdk/server-ai/src/api/config/types.ts:246</a></li></ul></aside></section></section></div>
64
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/config/types.ts#L250">sdk/server-ai/src/api/config/types.ts:250</a></li></ul></aside></section></section></div>
65
65
  <div class="col-sidebar">
66
66
  <div class="page-menu">
67
67
  <div class="tsd-navigation settings">
@@ -85,7 +85,7 @@
85
85
  <li><a href="#key" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>key</span></a></li>
86
86
  <li><a href="#variables" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>variables</span></a></li></ul></div></details></div>
87
87
  <div class="site-menu">
88
- <nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>@launchdarkly/server-<wbr/>sdk-<wbr/>ai -<wbr/> v0.14.0</span></a>
88
+ <nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>@launchdarkly/server-<wbr/>sdk-<wbr/>ai -<wbr/> v0.14.1</span></a>
89
89
  <ul class="tsd-small-nested-navigation">
90
90
  <li><a href="../enums/LDFeedbackKind.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-8"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.45 16V7.24H14.49V8.224H10.518V10.936H14.07V11.908H10.518V15.016H14.49V16H9.45Z" fill="var(--color-text)"></path></g></svg><span>LDFeedback<wbr/>Kind</span></a></li>
91
91
  <li><a href="../classes/AIProvider.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-128"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g></svg><span>AIProvider</span></a></li>
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>LDAIClient | @launchdarkly/server-sdk-ai - v0.14.0</title><meta name="description" content="Documentation for @launchdarkly/server-sdk-ai"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>LDAIClient | @launchdarkly/server-sdk-ai - v0.14.1</title><meta name="description" content="Documentation for @launchdarkly/server-sdk-ai"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
2
  <div class="tsd-toolbar-contents container">
3
3
  <div class="table-cell" id="tsd-search" data-base="..">
4
4
  <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
@@ -6,7 +6,7 @@
6
6
  <div id="tsd-toolbar-links"></div></div>
7
7
  <ul class="results">
8
8
  <li class="state loading">Preparing search index...</li>
9
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@launchdarkly/server-sdk-ai - v0.14.0</a></div>
9
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@launchdarkly/server-sdk-ai - v0.14.1</a></div>
10
10
  <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
11
  <div class="container container-main">
12
12
  <div class="col-content">
@@ -24,7 +24,7 @@
24
24
  <ul class="tsd-hierarchy">
25
25
  <li><span class="target">LDAIClient</span></li></ul></section><aside class="tsd-sources">
26
26
  <ul>
27
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/LDAIClient.ts#L19">sdk/server-ai/src/api/LDAIClient.ts:19</a></li></ul></aside>
27
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/LDAIClient.ts#L19">sdk/server-ai/src/api/LDAIClient.ts:19</a></li></ul></aside>
28
28
  <section class="tsd-panel-group tsd-index-group">
29
29
  <section class="tsd-panel tsd-index-panel">
30
30
  <details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
@@ -66,7 +66,7 @@
66
66
  <h4>Deprecated</h4><p>Use <code>agentConfig</code> instead. This method will be removed in a future version.</p>
67
67
  </div><aside class="tsd-sources">
68
68
  <ul>
69
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/LDAIClient.ts#L133">sdk/server-ai/src/api/LDAIClient.ts:133</a></li></ul></aside></li></ul></section>
69
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/LDAIClient.ts#L133">sdk/server-ai/src/api/LDAIClient.ts:133</a></li></ul></aside></li></ul></section>
70
70
  <section class="tsd-panel tsd-member"><a id="agentConfig" class="tsd-anchor"></a>
71
71
  <h3 class="tsd-anchor-link"><span>agent<wbr/>Config</span><a href="#agentConfig" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
72
72
  <ul class="tsd-signatures">
@@ -107,7 +107,7 @@ cannot be accessed from LaunchDarkly, then the return value will include informa
107
107
  </code><button>Copy</button></pre>
108
108
  </div><aside class="tsd-sources">
109
109
  <ul>
110
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/LDAIClient.ts#L123">sdk/server-ai/src/api/LDAIClient.ts:123</a></li></ul></aside></li></ul></section>
110
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/LDAIClient.ts#L123">sdk/server-ai/src/api/LDAIClient.ts:123</a></li></ul></aside></li></ul></section>
111
111
  <section class="tsd-panel tsd-member"><a id="agentConfigs" class="tsd-anchor"></a>
112
112
  <h3 class="tsd-anchor-link"><span>agent<wbr/>Configs</span><a href="#agentConfigs" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
113
113
  <ul class="tsd-signatures">
@@ -145,7 +145,7 @@ from the respective <code>defaultValue</code>. The returned <code>tracker</code>
145
145
  </code><button>Copy</button></pre>
146
146
  </div><aside class="tsd-sources">
147
147
  <ul>
148
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/LDAIClient.ts#L220">sdk/server-ai/src/api/LDAIClient.ts:220</a></li></ul></aside></li></ul></section>
148
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/LDAIClient.ts#L220">sdk/server-ai/src/api/LDAIClient.ts:220</a></li></ul></aside></li></ul></section>
149
149
  <section class="tsd-panel tsd-member"><a id="agents" class="tsd-anchor"></a>
150
150
  <h3 class="tsd-anchor-link"><span>agents</span><a href="#agents" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
151
151
  <ul class="tsd-signatures">
@@ -168,7 +168,7 @@ from the respective <code>defaultValue</code>. The returned <code>tracker</code>
168
168
  <h4>Deprecated</h4><p>Use <code>agentConfigs</code> instead. This method will be removed in a future version.</p>
169
169
  </div><aside class="tsd-sources">
170
170
  <ul>
171
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/LDAIClient.ts#L228">sdk/server-ai/src/api/LDAIClient.ts:228</a></li></ul></aside></li></ul></section>
171
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/LDAIClient.ts#L228">sdk/server-ai/src/api/LDAIClient.ts:228</a></li></ul></aside></li></ul></section>
172
172
  <section class="tsd-panel tsd-member"><a id="completionConfig" class="tsd-anchor"></a>
173
173
  <h3 class="tsd-anchor-link"><span>completion<wbr/>Config</span><a href="#completionConfig" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
174
174
  <ul class="tsd-signatures">
@@ -210,7 +210,7 @@ be used to track AI operation metrics (latency, token usage, etc.).</p>
210
210
  </code><button>Copy</button></pre>
211
211
  </div><aside class="tsd-sources">
212
212
  <ul>
213
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/LDAIClient.ts#L73">sdk/server-ai/src/api/LDAIClient.ts:73</a></li></ul></aside></li></ul></section>
213
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/LDAIClient.ts#L73">sdk/server-ai/src/api/LDAIClient.ts:73</a></li></ul></aside></li></ul></section>
214
214
  <section class="tsd-panel tsd-member"><a id="config" class="tsd-anchor"></a>
215
215
  <h3 class="tsd-anchor-link"><span>config</span><a href="#config" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
216
216
  <ul class="tsd-signatures">
@@ -232,7 +232,7 @@ be used to track AI operation metrics (latency, token usage, etc.).</p>
232
232
  <h4>Deprecated</h4><p>Use <code>completionConfig</code> instead. This method will be removed in a future version.</p>
233
233
  </div><aside class="tsd-sources">
234
234
  <ul>
235
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/LDAIClient.ts#L83">sdk/server-ai/src/api/LDAIClient.ts:83</a></li></ul></aside></li></ul></section>
235
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/LDAIClient.ts#L83">sdk/server-ai/src/api/LDAIClient.ts:83</a></li></ul></aside></li></ul></section>
236
236
  <section class="tsd-panel tsd-member"><a id="createChat" class="tsd-anchor"></a>
237
237
  <h3 class="tsd-anchor-link"><span>create<wbr/>Chat</span><a href="#createChat" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
238
238
  <ul class="tsd-signatures">
@@ -273,7 +273,7 @@ The variables will also be used for judge evaluation. For the judge only, the va
273
273
  </code><button>Copy</button></pre>
274
274
  </div><aside class="tsd-sources">
275
275
  <ul>
276
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/LDAIClient.ts#L267">sdk/server-ai/src/api/LDAIClient.ts:267</a></li></ul></aside></li></ul></section>
276
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/LDAIClient.ts#L267">sdk/server-ai/src/api/LDAIClient.ts:267</a></li></ul></aside></li></ul></section>
277
277
  <section class="tsd-panel tsd-member"><a id="createJudge" class="tsd-anchor"></a>
278
278
  <h3 class="tsd-anchor-link"><span>create<wbr/>Judge</span><a href="#createJudge" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
279
279
  <ul class="tsd-signatures">
@@ -312,7 +312,7 @@ The variables <code>message_history</code> and <code>response_to_evaluate</code>
312
312
  </code><button>Copy</button></pre>
313
313
  </div><aside class="tsd-sources">
314
314
  <ul>
315
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/LDAIClient.ts#L318">sdk/server-ai/src/api/LDAIClient.ts:318</a></li></ul></aside></li></ul></section>
315
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/LDAIClient.ts#L318">sdk/server-ai/src/api/LDAIClient.ts:318</a></li></ul></aside></li></ul></section>
316
316
  <section class="tsd-panel tsd-member"><a id="initChat" class="tsd-anchor"></a>
317
317
  <h3 class="tsd-anchor-link"><span>init<wbr/>Chat</span><a href="#initChat" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
318
318
  <ul class="tsd-signatures">
@@ -336,7 +336,7 @@ The variables <code>message_history</code> and <code>response_to_evaluate</code>
336
336
  <h4>Deprecated</h4><p>Use <code>createChat</code> instead. This method will be removed in a future version.</p>
337
337
  </div><aside class="tsd-sources">
338
338
  <ul>
339
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/LDAIClient.ts#L278">sdk/server-ai/src/api/LDAIClient.ts:278</a></li></ul></aside></li></ul></section>
339
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/LDAIClient.ts#L278">sdk/server-ai/src/api/LDAIClient.ts:278</a></li></ul></aside></li></ul></section>
340
340
  <section class="tsd-panel tsd-member"><a id="judgeConfig" class="tsd-anchor"></a>
341
341
  <h3 class="tsd-anchor-link"><span>judge<wbr/>Config</span><a href="#judgeConfig" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
342
342
  <ul class="tsd-signatures">
@@ -374,7 +374,7 @@ be used if the configuration is not available from LaunchDarkly.</p>
374
374
  </code><button>Copy</button></pre>
375
375
  </div><aside class="tsd-sources">
376
376
  <ul>
377
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/LDAIClient.ts#L167">sdk/server-ai/src/api/LDAIClient.ts:167</a></li></ul></aside></li></ul></section></section></div>
377
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/LDAIClient.ts#L167">sdk/server-ai/src/api/LDAIClient.ts:167</a></li></ul></aside></li></ul></section></section></div>
378
378
  <div class="col-sidebar">
379
379
  <div class="page-menu">
380
380
  <div class="tsd-navigation settings">
@@ -405,7 +405,7 @@ be used if the configuration is not available from LaunchDarkly.</p>
405
405
  <li><a href="#initChat" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>init<wbr/>Chat</span></a></li>
406
406
  <li><a href="#judgeConfig" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>judge<wbr/>Config</span></a></li></ul></div></details></div>
407
407
  <div class="site-menu">
408
- <nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>@launchdarkly/server-<wbr/>sdk-<wbr/>ai -<wbr/> v0.14.0</span></a>
408
+ <nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>@launchdarkly/server-<wbr/>sdk-<wbr/>ai -<wbr/> v0.14.1</span></a>
409
409
  <ul class="tsd-small-nested-navigation">
410
410
  <li><a href="../enums/LDFeedbackKind.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-8"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.45 16V7.24H14.49V8.224H10.518V10.936H14.07V11.908H10.518V15.016H14.49V16H9.45Z" fill="var(--color-text)"></path></g></svg><span>LDFeedback<wbr/>Kind</span></a></li>
411
411
  <li><a href="../classes/AIProvider.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-128"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g></svg><span>AIProvider</span></a></li>
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>LDAICompletionConfig | @launchdarkly/server-sdk-ai - v0.14.0</title><meta name="description" content="Documentation for @launchdarkly/server-sdk-ai"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>LDAICompletionConfig | @launchdarkly/server-sdk-ai - v0.14.1</title><meta name="description" content="Documentation for @launchdarkly/server-sdk-ai"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
2
  <div class="tsd-toolbar-contents container">
3
3
  <div class="table-cell" id="tsd-search" data-base="..">
4
4
  <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
@@ -6,7 +6,7 @@
6
6
  <div id="tsd-toolbar-links"></div></div>
7
7
  <ul class="results">
8
8
  <li class="state loading">Preparing search index...</li>
9
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@launchdarkly/server-sdk-ai - v0.14.0</a></div>
9
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@launchdarkly/server-sdk-ai - v0.14.1</a></div>
10
10
  <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
11
  <div class="container container-main">
12
12
  <div class="col-content">
@@ -26,7 +26,7 @@
26
26
  <ul class="tsd-hierarchy">
27
27
  <li><span class="target">LDAICompletionConfig</span></li></ul></li></ul></section><aside class="tsd-sources">
28
28
  <ul>
29
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/config/types.ts#L189">sdk/server-ai/src/api/config/types.ts:189</a></li></ul></aside>
29
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/config/types.ts#L193">sdk/server-ai/src/api/config/types.ts:193</a></li></ul></aside>
30
30
  <section class="tsd-panel-group tsd-index-group">
31
31
  <section class="tsd-panel tsd-index-panel">
32
32
  <details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
@@ -36,6 +36,7 @@
36
36
  <h3 class="tsd-index-heading">Properties</h3>
37
37
  <div class="tsd-index-list"><a href="LDAICompletionConfig.html#enabled" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-1024"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g></svg><span>enabled</span></a>
38
38
  <a href="LDAICompletionConfig.html#judgeConfiguration" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>judge<wbr/>Configuration?</span></a>
39
+ <a href="LDAICompletionConfig.html#key" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>key</span></a>
39
40
  <a href="LDAICompletionConfig.html#messages" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>messages?</span></a>
40
41
  <a href="LDAICompletionConfig.html#model" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>model?</span></a>
41
42
  <a href="LDAICompletionConfig.html#provider" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>provider?</span></a>
@@ -51,7 +52,7 @@
51
52
  <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
52
53
  <p>Inherited from <a href="LDAIConfig.html">LDAIConfig</a>.<a href="LDAIConfig.html#enabled">enabled</a></p>
53
54
  <ul>
54
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/config/types.ts#L101">sdk/server-ai/src/api/config/types.ts:101</a></li></ul></aside></section>
55
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/config/types.ts#L105">sdk/server-ai/src/api/config/types.ts:105</a></li></ul></aside></section>
55
56
  <section class="tsd-panel tsd-member"><a id="judgeConfiguration" class="tsd-anchor"></a>
56
57
  <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>judge<wbr/>Configuration</span><a href="#judgeConfiguration" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
57
58
  <div class="tsd-signature"><span class="tsd-kind-property">judge<wbr/>Configuration</span><span class="tsd-signature-symbol">?:</span> <a href="LDJudgeConfiguration.html" class="tsd-signature-type tsd-kind-interface">LDJudgeConfiguration</a></div>
@@ -60,7 +61,16 @@ References judge AI Configs that should evaluate this AI Config.</p>
60
61
  </div>
61
62
  <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
62
63
  <ul>
63
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/config/types.ts#L198">sdk/server-ai/src/api/config/types.ts:198</a></li></ul></aside></section>
64
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/config/types.ts#L202">sdk/server-ai/src/api/config/types.ts:202</a></li></ul></aside></section>
65
+ <section class="tsd-panel tsd-member tsd-is-inherited"><a id="key" class="tsd-anchor"></a>
66
+ <h3 class="tsd-anchor-link"><span>key</span><a href="#key" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
67
+ <div class="tsd-signature"><span class="tsd-kind-property">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
68
+ <div class="tsd-comment tsd-typography"><p>The key of the AI Config.</p>
69
+ </div>
70
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
71
+ <p>Inherited from <a href="LDAIConfig.html">LDAIConfig</a>.<a href="LDAIConfig.html#key">key</a></p>
72
+ <ul>
73
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/config/types.ts#L101">sdk/server-ai/src/api/config/types.ts:101</a></li></ul></aside></section>
64
74
  <section class="tsd-panel tsd-member"><a id="messages" class="tsd-anchor"></a>
65
75
  <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>messages</span><a href="#messages" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
66
76
  <div class="tsd-signature"><span class="tsd-kind-property">messages</span><span class="tsd-signature-symbol">?:</span> <a href="LDMessage.html" class="tsd-signature-type tsd-kind-interface">LDMessage</a><span class="tsd-signature-symbol">[]</span></div>
@@ -68,7 +78,7 @@ References judge AI Configs that should evaluate this AI Config.</p>
68
78
  </div>
69
79
  <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
70
80
  <ul>
71
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/config/types.ts#L193">sdk/server-ai/src/api/config/types.ts:193</a></li></ul></aside></section>
81
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/config/types.ts#L197">sdk/server-ai/src/api/config/types.ts:197</a></li></ul></aside></section>
72
82
  <section class="tsd-panel tsd-member tsd-is-inherited"><a id="model" class="tsd-anchor"></a>
73
83
  <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>model</span><a href="#model" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
74
84
  <div class="tsd-signature"><span class="tsd-kind-property">model</span><span class="tsd-signature-symbol">?:</span> <a href="LDModelConfig.html" class="tsd-signature-type tsd-kind-interface">LDModelConfig</a></div>
@@ -77,7 +87,7 @@ References judge AI Configs that should evaluate this AI Config.</p>
77
87
  <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
78
88
  <p>Inherited from <a href="LDAIConfig.html">LDAIConfig</a>.<a href="LDAIConfig.html#model">model</a></p>
79
89
  <ul>
80
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/config/types.ts#L81">sdk/server-ai/src/api/config/types.ts:81</a></li></ul></aside></section>
90
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/config/types.ts#L81">sdk/server-ai/src/api/config/types.ts:81</a></li></ul></aside></section>
81
91
  <section class="tsd-panel tsd-member tsd-is-inherited"><a id="provider" class="tsd-anchor"></a>
82
92
  <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>provider</span><a href="#provider" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
83
93
  <div class="tsd-signature"><span class="tsd-kind-property">provider</span><span class="tsd-signature-symbol">?:</span> <a href="LDProviderConfig.html" class="tsd-signature-type tsd-kind-interface">LDProviderConfig</a></div>
@@ -86,7 +96,7 @@ References judge AI Configs that should evaluate this AI Config.</p>
86
96
  <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
87
97
  <p>Inherited from <a href="LDAIConfig.html">LDAIConfig</a>.<a href="LDAIConfig.html#provider">provider</a></p>
88
98
  <ul>
89
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/config/types.ts#L86">sdk/server-ai/src/api/config/types.ts:86</a></li></ul></aside></section>
99
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/config/types.ts#L86">sdk/server-ai/src/api/config/types.ts:86</a></li></ul></aside></section>
90
100
  <section class="tsd-panel tsd-member tsd-is-inherited"><a id="tracker" class="tsd-anchor"></a>
91
101
  <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>tracker</span><a href="#tracker" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
92
102
  <div class="tsd-signature"><span class="tsd-kind-property">tracker</span><span class="tsd-signature-symbol">?:</span> <a href="LDAIConfigTracker.html" class="tsd-signature-type tsd-kind-interface">LDAIConfigTracker</a></div>
@@ -96,7 +106,7 @@ Undefined for disabled configs.</p>
96
106
  <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
97
107
  <p>Inherited from <a href="LDAIConfig.html">LDAIConfig</a>.<a href="LDAIConfig.html#tracker">tracker</a></p>
98
108
  <ul>
99
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/config/types.ts#L107">sdk/server-ai/src/api/config/types.ts:107</a></li></ul></aside></section></section></div>
109
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/config/types.ts#L111">sdk/server-ai/src/api/config/types.ts:111</a></li></ul></aside></section></section></div>
100
110
  <div class="col-sidebar">
101
111
  <div class="page-menu">
102
112
  <div class="tsd-navigation settings">
@@ -118,12 +128,13 @@ Undefined for disabled configs.</p>
118
128
  <ul>
119
129
  <li><a href="#enabled" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>enabled</span></a></li>
120
130
  <li><a href="#judgeConfiguration" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>judge<wbr/>Configuration</span></a></li>
131
+ <li><a href="#key" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>key</span></a></li>
121
132
  <li><a href="#messages" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>messages</span></a></li>
122
133
  <li><a href="#model" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>model</span></a></li>
123
134
  <li><a href="#provider" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>provider</span></a></li>
124
135
  <li><a href="#tracker" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>tracker</span></a></li></ul></div></details></div>
125
136
  <div class="site-menu">
126
- <nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>@launchdarkly/server-<wbr/>sdk-<wbr/>ai -<wbr/> v0.14.0</span></a>
137
+ <nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>@launchdarkly/server-<wbr/>sdk-<wbr/>ai -<wbr/> v0.14.1</span></a>
127
138
  <ul class="tsd-small-nested-navigation">
128
139
  <li><a href="../enums/LDFeedbackKind.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-8"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.45 16V7.24H14.49V8.224H10.518V10.936H14.07V11.908H10.518V15.016H14.49V16H9.45Z" fill="var(--color-text)"></path></g></svg><span>LDFeedback<wbr/>Kind</span></a></li>
129
140
  <li><a href="../classes/AIProvider.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-128"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g></svg><span>AIProvider</span></a></li>
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>LDAICompletionConfigDefault | @launchdarkly/server-sdk-ai - v0.14.0</title><meta name="description" content="Documentation for @launchdarkly/server-sdk-ai"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>LDAICompletionConfigDefault | @launchdarkly/server-sdk-ai - v0.14.1</title><meta name="description" content="Documentation for @launchdarkly/server-sdk-ai"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
2
  <div class="tsd-toolbar-contents container">
3
3
  <div class="table-cell" id="tsd-search" data-base="..">
4
4
  <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
@@ -6,7 +6,7 @@
6
6
  <div id="tsd-toolbar-links"></div></div>
7
7
  <ul class="results">
8
8
  <li class="state loading">Preparing search index...</li>
9
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@launchdarkly/server-sdk-ai - v0.14.0</a></div>
9
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@launchdarkly/server-sdk-ai - v0.14.1</a></div>
10
10
  <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
11
  <div class="container container-main">
12
12
  <div class="col-content">
@@ -26,7 +26,7 @@
26
26
  <ul class="tsd-hierarchy">
27
27
  <li><span class="target">LDAICompletionConfigDefault</span></li></ul></li></ul></section><aside class="tsd-sources">
28
28
  <ul>
29
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/config/types.ts#L132">sdk/server-ai/src/api/config/types.ts:132</a></li></ul></aside>
29
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/config/types.ts#L136">sdk/server-ai/src/api/config/types.ts:136</a></li></ul></aside>
30
30
  <section class="tsd-panel-group tsd-index-group">
31
31
  <section class="tsd-panel tsd-index-panel">
32
32
  <details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
@@ -50,7 +50,7 @@
50
50
  <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
51
51
  <p>Inherited from <a href="LDAIConfigDefault.html">LDAIConfigDefault</a>.<a href="LDAIConfigDefault.html#enabled">enabled</a></p>
52
52
  <ul>
53
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/config/types.ts#L91">sdk/server-ai/src/api/config/types.ts:91</a></li></ul></aside></section>
53
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/config/types.ts#L91">sdk/server-ai/src/api/config/types.ts:91</a></li></ul></aside></section>
54
54
  <section class="tsd-panel tsd-member"><a id="judgeConfiguration" class="tsd-anchor"></a>
55
55
  <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>judge<wbr/>Configuration</span><a href="#judgeConfiguration" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
56
56
  <div class="tsd-signature"><span class="tsd-kind-property">judge<wbr/>Configuration</span><span class="tsd-signature-symbol">?:</span> <a href="LDJudgeConfiguration.html" class="tsd-signature-type tsd-kind-interface">LDJudgeConfiguration</a></div>
@@ -59,7 +59,7 @@ References judge AI Configs that should evaluate this AI Config.</p>
59
59
  </div>
60
60
  <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
61
61
  <ul>
62
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/config/types.ts#L141">sdk/server-ai/src/api/config/types.ts:141</a></li></ul></aside></section>
62
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/config/types.ts#L145">sdk/server-ai/src/api/config/types.ts:145</a></li></ul></aside></section>
63
63
  <section class="tsd-panel tsd-member"><a id="messages" class="tsd-anchor"></a>
64
64
  <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>messages</span><a href="#messages" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
65
65
  <div class="tsd-signature"><span class="tsd-kind-property">messages</span><span class="tsd-signature-symbol">?:</span> <a href="LDMessage.html" class="tsd-signature-type tsd-kind-interface">LDMessage</a><span class="tsd-signature-symbol">[]</span></div>
@@ -67,7 +67,7 @@ References judge AI Configs that should evaluate this AI Config.</p>
67
67
  </div>
68
68
  <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
69
69
  <ul>
70
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/config/types.ts#L136">sdk/server-ai/src/api/config/types.ts:136</a></li></ul></aside></section>
70
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/config/types.ts#L140">sdk/server-ai/src/api/config/types.ts:140</a></li></ul></aside></section>
71
71
  <section class="tsd-panel tsd-member tsd-is-inherited"><a id="model" class="tsd-anchor"></a>
72
72
  <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>model</span><a href="#model" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
73
73
  <div class="tsd-signature"><span class="tsd-kind-property">model</span><span class="tsd-signature-symbol">?:</span> <a href="LDModelConfig.html" class="tsd-signature-type tsd-kind-interface">LDModelConfig</a></div>
@@ -76,7 +76,7 @@ References judge AI Configs that should evaluate this AI Config.</p>
76
76
  <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
77
77
  <p>Inherited from <a href="LDAIConfigDefault.html">LDAIConfigDefault</a>.<a href="LDAIConfigDefault.html#model">model</a></p>
78
78
  <ul>
79
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/config/types.ts#L81">sdk/server-ai/src/api/config/types.ts:81</a></li></ul></aside></section>
79
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/config/types.ts#L81">sdk/server-ai/src/api/config/types.ts:81</a></li></ul></aside></section>
80
80
  <section class="tsd-panel tsd-member tsd-is-inherited"><a id="provider" class="tsd-anchor"></a>
81
81
  <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>provider</span><a href="#provider" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
82
82
  <div class="tsd-signature"><span class="tsd-kind-property">provider</span><span class="tsd-signature-symbol">?:</span> <a href="LDProviderConfig.html" class="tsd-signature-type tsd-kind-interface">LDProviderConfig</a></div>
@@ -85,7 +85,7 @@ References judge AI Configs that should evaluate this AI Config.</p>
85
85
  <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
86
86
  <p>Inherited from <a href="LDAIConfigDefault.html">LDAIConfigDefault</a>.<a href="LDAIConfigDefault.html#provider">provider</a></p>
87
87
  <ul>
88
- <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/a51dcdb/packages/sdk/server-ai/src/api/config/types.ts#L86">sdk/server-ai/src/api/config/types.ts:86</a></li></ul></aside></section></section></div>
88
+ <li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/config/types.ts#L86">sdk/server-ai/src/api/config/types.ts:86</a></li></ul></aside></section></section></div>
89
89
  <div class="col-sidebar">
90
90
  <div class="page-menu">
91
91
  <div class="tsd-navigation settings">
@@ -111,7 +111,7 @@ References judge AI Configs that should evaluate this AI Config.</p>
111
111
  <li><a href="#model" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>model</span></a></li>
112
112
  <li><a href="#provider" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>provider</span></a></li></ul></div></details></div>
113
113
  <div class="site-menu">
114
- <nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>@launchdarkly/server-<wbr/>sdk-<wbr/>ai -<wbr/> v0.14.0</span></a>
114
+ <nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>@launchdarkly/server-<wbr/>sdk-<wbr/>ai -<wbr/> v0.14.1</span></a>
115
115
  <ul class="tsd-small-nested-navigation">
116
116
  <li><a href="../enums/LDFeedbackKind.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-8"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.45 16V7.24H14.49V8.224H10.518V10.936H14.07V11.908H10.518V15.016H14.49V16H9.45Z" fill="var(--color-text)"></path></g></svg><span>LDFeedback<wbr/>Kind</span></a></li>
117
117
  <li><a href="../classes/AIProvider.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-128"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g></svg><span>AIProvider</span></a></li>