@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.
- package/CHANGELOG.md +7 -0
- package/__tests__/Judge.test.ts +31 -6
- package/__tests__/LDAIClientImpl.test.ts +5 -0
- package/__tests__/TrackedChat.test.ts +1 -0
- package/dist/package.json +1 -1
- package/dist/src/LDAIClientImpl.js +2 -2
- package/dist/src/LDAIClientImpl.js.map +1 -1
- package/dist/src/LDAIConfigTrackerImpl.d.ts +2 -1
- package/dist/src/LDAIConfigTrackerImpl.d.ts.map +1 -1
- package/dist/src/LDAIConfigTrackerImpl.js +5 -1
- package/dist/src/LDAIConfigTrackerImpl.js.map +1 -1
- package/dist/src/api/chat/TrackedChat.d.ts.map +1 -1
- package/dist/src/api/chat/TrackedChat.js +4 -4
- package/dist/src/api/chat/TrackedChat.js.map +1 -1
- package/dist/src/api/config/LDAIConfigTracker.d.ts +7 -1
- package/dist/src/api/config/LDAIConfigTracker.d.ts.map +1 -1
- package/dist/src/api/config/LDAIConfigUtils.js +16 -12
- package/dist/src/api/config/LDAIConfigUtils.js.map +1 -1
- package/dist/src/api/config/types.d.ts +4 -0
- package/dist/src/api/config/types.d.ts.map +1 -1
- package/dist/src/api/judge/Judge.d.ts.map +1 -1
- package/dist/src/api/judge/Judge.js +2 -0
- package/dist/src/api/judge/Judge.js.map +1 -1
- package/dist/src/api/judge/types.d.ts +2 -0
- package/dist/src/api/judge/types.d.ts.map +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/AIProvider.html +9 -9
- package/docs/classes/AIProviderFactory.html +8 -8
- package/docs/classes/Judge.html +18 -18
- package/docs/classes/TrackedChat.html +19 -19
- package/docs/enums/LDFeedbackKind.html +6 -6
- package/docs/functions/createBedrockTokenUsage.html +4 -4
- package/docs/functions/createOpenAiUsage.html +4 -4
- package/docs/functions/createVercelAISDKTokenUsage.html +4 -4
- package/docs/functions/initAi.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/ChatResponse.html +7 -7
- package/docs/interfaces/EvalScore.html +6 -6
- package/docs/interfaces/JudgeResponse.html +17 -7
- package/docs/interfaces/LDAIAgentConfig.html +21 -10
- package/docs/interfaces/LDAIAgentConfigDefault.html +9 -9
- package/docs/interfaces/LDAIAgentRequestConfig.html +7 -7
- package/docs/interfaces/LDAIClient.html +14 -14
- package/docs/interfaces/LDAICompletionConfig.html +21 -10
- package/docs/interfaces/LDAICompletionConfigDefault.html +9 -9
- package/docs/interfaces/LDAIConfig.html +18 -8
- package/docs/interfaces/LDAIConfigDefault.html +7 -7
- package/docs/interfaces/LDAIConfigTracker.html +39 -19
- package/docs/interfaces/LDAIJudgeConfig.html +21 -10
- package/docs/interfaces/LDAIJudgeConfigDefault.html +9 -9
- package/docs/interfaces/LDAIMetrics.html +6 -6
- package/docs/interfaces/LDJudge.html +6 -6
- package/docs/interfaces/LDJudgeConfiguration.html +5 -5
- package/docs/interfaces/LDLogger.html +3 -3
- package/docs/interfaces/LDMessage.html +6 -6
- package/docs/interfaces/LDModelConfig.html +7 -7
- package/docs/interfaces/LDProviderConfig.html +5 -5
- package/docs/interfaces/LDTokenUsage.html +7 -7
- package/docs/interfaces/StructuredResponse.html +7 -7
- package/docs/types/LDAIConfigDefaultKind.html +4 -4
- package/docs/types/LDAIConfigKind.html +4 -4
- package/docs/types/LDAIConfigMode.html +4 -4
- package/docs/types/SupportedAIProvider.html +4 -4
- package/docs/variables/SUPPORTED_AI_PROVIDERS.html +4 -4
- package/package.json +1 -1
- package/src/LDAIClientImpl.ts +2 -2
- package/src/LDAIConfigTrackerImpl.ts +12 -2
- package/src/api/chat/TrackedChat.ts +9 -5
- package/src/api/config/LDAIConfigTracker.ts +8 -1
- package/src/api/config/LDAIConfigUtils.ts +20 -9
- package/src/api/config/types.ts +4 -0
- package/src/api/judge/Judge.ts +2 -0
- package/src/api/judge/types.ts +2 -0
package/docs/classes/Judge.html
CHANGED
|
@@ -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>Judge | @launchdarkly/server-sdk-ai - v0.14.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Judge | @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.
|
|
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 @@ other AI Configs using structured output.</p>
|
|
|
26
26
|
<ul class="tsd-hierarchy">
|
|
27
27
|
<li><span class="target">Judge</span></li></ul></section><aside class="tsd-sources">
|
|
28
28
|
<ul>
|
|
29
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
29
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/judge/Judge.ts#L18">sdk/server-ai/src/api/judge/Judge.ts:18</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">
|
|
@@ -75,34 +75,34 @@ other AI Configs using structured output.</p>
|
|
|
75
75
|
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">logger</span>: <a href="../interfaces/LDLogger.html" class="tsd-signature-type tsd-kind-interface">LDLogger</a></h5><code class="tsd-tag ts-flagOptional">Optional</code> </li></ul></div>
|
|
76
76
|
<h4 class="tsd-returns-title">Returns <a href="Judge.html" class="tsd-signature-type tsd-kind-class">Judge</a></h4><aside class="tsd-sources">
|
|
77
77
|
<ul>
|
|
78
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
78
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/judge/Judge.ts#L22">sdk/server-ai/src/api/judge/Judge.ts:22</a></li></ul></aside></li></ul></section></section>
|
|
79
79
|
<section class="tsd-panel-group tsd-member-group">
|
|
80
80
|
<h2>Properties</h2>
|
|
81
81
|
<section class="tsd-panel tsd-member tsd-is-private"><a id="_aiConfig" class="tsd-anchor"></a>
|
|
82
82
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span>_ai<wbr/>Config</span><a href="#_aiConfig" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
83
83
|
<div class="tsd-signature"><span class="tsd-kind-property">_ai<wbr/>Config</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/LDAIJudgeConfig.html" class="tsd-signature-type tsd-kind-interface">LDAIJudgeConfig</a></div><aside class="tsd-sources">
|
|
84
84
|
<ul>
|
|
85
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
85
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/judge/Judge.ts#L23">sdk/server-ai/src/api/judge/Judge.ts:23</a></li></ul></aside></section>
|
|
86
86
|
<section class="tsd-panel tsd-member tsd-is-private"><a id="_aiConfigTracker" class="tsd-anchor"></a>
|
|
87
87
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span>_ai<wbr/>Config<wbr/>Tracker</span><a href="#_aiConfigTracker" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
88
88
|
<div class="tsd-signature"><span class="tsd-kind-property">_ai<wbr/>Config<wbr/>Tracker</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/LDAIConfigTracker.html" class="tsd-signature-type tsd-kind-interface">LDAIConfigTracker</a></div><aside class="tsd-sources">
|
|
89
89
|
<ul>
|
|
90
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
90
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/judge/Judge.ts#L24">sdk/server-ai/src/api/judge/Judge.ts:24</a></li></ul></aside></section>
|
|
91
91
|
<section class="tsd-panel tsd-member tsd-is-private"><a id="_aiProvider" class="tsd-anchor"></a>
|
|
92
92
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span>_ai<wbr/>Provider</span><a href="#_aiProvider" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
93
93
|
<div class="tsd-signature"><span class="tsd-kind-property">_ai<wbr/>Provider</span><span class="tsd-signature-symbol">:</span> <a href="AIProvider.html" class="tsd-signature-type tsd-kind-class">AIProvider</a></div><aside class="tsd-sources">
|
|
94
94
|
<ul>
|
|
95
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
95
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/judge/Judge.ts#L25">sdk/server-ai/src/api/judge/Judge.ts:25</a></li></ul></aside></section>
|
|
96
96
|
<section class="tsd-panel tsd-member tsd-is-private"><a id="_evaluationResponseStructure" class="tsd-anchor"></a>
|
|
97
97
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span>_evaluation<wbr/>Response<wbr/>Structure</span><a href="#_evaluationResponseStructure" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
98
98
|
<div class="tsd-signature"><span class="tsd-kind-property">_evaluation<wbr/>Response<wbr/>Structure</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">Record</span><span class="tsd-signature-symbol"><</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">></span></div><aside class="tsd-sources">
|
|
99
99
|
<ul>
|
|
100
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
100
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/judge/Judge.ts#L20">sdk/server-ai/src/api/judge/Judge.ts:20</a></li></ul></aside></section>
|
|
101
101
|
<section class="tsd-panel tsd-member tsd-is-private"><a id="_logger" class="tsd-anchor"></a>
|
|
102
102
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <code class="tsd-tag ts-flagOptional">Optional</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span>_logger</span><a href="#_logger" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
103
103
|
<div class="tsd-signature"><span class="tsd-kind-property">_logger</span><span class="tsd-signature-symbol">?:</span> <a href="../interfaces/LDLogger.html" class="tsd-signature-type tsd-kind-interface">LDLogger</a></div><aside class="tsd-sources">
|
|
104
104
|
<ul>
|
|
105
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
105
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/judge/Judge.ts#L19">sdk/server-ai/src/api/judge/Judge.ts:19</a></li></ul></aside></section></section>
|
|
106
106
|
<section class="tsd-panel-group tsd-member-group">
|
|
107
107
|
<h2>Methods</h2>
|
|
108
108
|
<section class="tsd-panel tsd-member tsd-is-private"><a id="_constructEvaluationMessages" class="tsd-anchor"></a>
|
|
@@ -122,7 +122,7 @@ other AI Configs using structured output.</p>
|
|
|
122
122
|
<h4 class="tsd-returns-title">Returns <a href="../interfaces/LDMessage.html" class="tsd-signature-type tsd-kind-interface">LDMessage</a><span class="tsd-signature-symbol">[]</span></h4>
|
|
123
123
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
124
124
|
<ul>
|
|
125
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
125
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/judge/Judge.ts#L150">sdk/server-ai/src/api/judge/Judge.ts:150</a></li></ul></aside></li></ul></section>
|
|
126
126
|
<section class="tsd-panel tsd-member tsd-is-private"><a id="_interpolateMessage" class="tsd-anchor"></a>
|
|
127
127
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>_interpolate<wbr/>Message</span><a href="#_interpolateMessage" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
128
128
|
<ul class="tsd-signatures tsd-is-private">
|
|
@@ -140,7 +140,7 @@ other AI Configs using structured output.</p>
|
|
|
140
140
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
|
|
141
141
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
142
142
|
<ul>
|
|
143
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
143
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/judge/Judge.ts#L165">sdk/server-ai/src/api/judge/Judge.ts:165</a></li></ul></aside></li></ul></section>
|
|
144
144
|
<section class="tsd-panel tsd-member tsd-is-private"><a id="_parseEvaluationResponse" class="tsd-anchor"></a>
|
|
145
145
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>_parse<wbr/>Evaluation<wbr/>Response</span><a href="#_parseEvaluationResponse" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
146
146
|
<ul class="tsd-signatures tsd-is-private">
|
|
@@ -156,7 +156,7 @@ other AI Configs using structured output.</p>
|
|
|
156
156
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Record</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><a href="../interfaces/EvalScore.html" class="tsd-signature-type tsd-kind-interface">EvalScore</a><span class="tsd-signature-symbol">></span></h4>
|
|
157
157
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
158
158
|
<ul>
|
|
159
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
159
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/judge/Judge.ts#L172">sdk/server-ai/src/api/judge/Judge.ts:172</a></li></ul></aside></li></ul></section>
|
|
160
160
|
<section class="tsd-panel tsd-member"><a id="evaluate" class="tsd-anchor"></a>
|
|
161
161
|
<h3 class="tsd-anchor-link"><span>evaluate</span><a href="#evaluate" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
162
162
|
<ul class="tsd-signatures">
|
|
@@ -183,7 +183,7 @@ other AI Configs using structured output.</p>
|
|
|
183
183
|
|
|
184
184
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
185
185
|
<ul>
|
|
186
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
186
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/judge/Judge.ts#L42">sdk/server-ai/src/api/judge/Judge.ts:42</a></li></ul></aside></li></ul></section>
|
|
187
187
|
<section class="tsd-panel tsd-member"><a id="evaluateMessages" class="tsd-anchor"></a>
|
|
188
188
|
<h3 class="tsd-anchor-link"><span>evaluate<wbr/>Messages</span><a href="#evaluateMessages" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
189
189
|
<ul class="tsd-signatures">
|
|
@@ -210,7 +210,7 @@ other AI Configs using structured output.</p>
|
|
|
210
210
|
|
|
211
211
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
212
212
|
<ul>
|
|
213
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
213
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/judge/Judge.ts#L115">sdk/server-ai/src/api/judge/Judge.ts:115</a></li></ul></aside></li></ul></section>
|
|
214
214
|
<section class="tsd-panel tsd-member"><a id="getAIConfig" class="tsd-anchor"></a>
|
|
215
215
|
<h3 class="tsd-anchor-link"><span>getAIConfig</span><a href="#getAIConfig" 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">
|
|
@@ -221,7 +221,7 @@ other AI Configs using structured output.</p>
|
|
|
221
221
|
<h4 class="tsd-returns-title">Returns <a href="../interfaces/LDAIJudgeConfig.html" class="tsd-signature-type tsd-kind-interface">LDAIJudgeConfig</a></h4>
|
|
222
222
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
223
223
|
<ul>
|
|
224
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
224
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/judge/Judge.ts#L129">sdk/server-ai/src/api/judge/Judge.ts:129</a></li></ul></aside></li></ul></section>
|
|
225
225
|
<section class="tsd-panel tsd-member"><a id="getProvider" class="tsd-anchor"></a>
|
|
226
226
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Provider</span><a href="#getProvider" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
227
227
|
<ul class="tsd-signatures">
|
|
@@ -232,7 +232,7 @@ other AI Configs using structured output.</p>
|
|
|
232
232
|
<h4 class="tsd-returns-title">Returns <a href="AIProvider.html" class="tsd-signature-type tsd-kind-class">AIProvider</a></h4>
|
|
233
233
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
234
234
|
<ul>
|
|
235
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
235
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/judge/Judge.ts#L143">sdk/server-ai/src/api/judge/Judge.ts:143</a></li></ul></aside></li></ul></section>
|
|
236
236
|
<section class="tsd-panel tsd-member"><a id="getTracker" class="tsd-anchor"></a>
|
|
237
237
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Tracker</span><a href="#getTracker" 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">
|
|
@@ -243,7 +243,7 @@ other AI Configs using structured output.</p>
|
|
|
243
243
|
<h4 class="tsd-returns-title">Returns <a href="../interfaces/LDAIConfigTracker.html" class="tsd-signature-type tsd-kind-interface">LDAIConfigTracker</a></h4>
|
|
244
244
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
245
245
|
<ul>
|
|
246
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
246
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/judge/Judge.ts#L136">sdk/server-ai/src/api/judge/Judge.ts:136</a></li></ul></aside></li></ul></section></section></div>
|
|
247
247
|
<div class="col-sidebar">
|
|
248
248
|
<div class="page-menu">
|
|
249
249
|
<div class="tsd-navigation settings">
|
|
@@ -278,7 +278,7 @@ other AI Configs using structured output.</p>
|
|
|
278
278
|
<li><a href="#getProvider" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Provider</span></a></li>
|
|
279
279
|
<li><a href="#getTracker" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Tracker</span></a></li></ul></div></details></div>
|
|
280
280
|
<div class="site-menu">
|
|
281
|
-
<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.
|
|
281
|
+
<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>
|
|
282
282
|
<ul class="tsd-small-nested-navigation">
|
|
283
283
|
<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>
|
|
284
284
|
<li><a href="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>TrackedChat | @launchdarkly/server-sdk-ai - v0.14.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>TrackedChat | @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.
|
|
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">
|
|
@@ -27,7 +27,7 @@ the actual model invocation to the provider.</p>
|
|
|
27
27
|
<ul class="tsd-hierarchy">
|
|
28
28
|
<li><span class="target">TrackedChat</span></li></ul></section><aside class="tsd-sources">
|
|
29
29
|
<ul>
|
|
30
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
30
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/chat/TrackedChat.ts#L16">sdk/server-ai/src/api/chat/TrackedChat.ts:16</a></li></ul></aside>
|
|
31
31
|
<section class="tsd-panel-group tsd-index-group">
|
|
32
32
|
<section class="tsd-panel tsd-index-panel">
|
|
33
33
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
@@ -79,39 +79,39 @@ the actual model invocation to the provider.</p>
|
|
|
79
79
|
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">_logger</span>: <a href="../interfaces/LDLogger.html" class="tsd-signature-type tsd-kind-interface">LDLogger</a></h5><code class="tsd-tag ts-flagOptional">Optional</code> </li></ul></div>
|
|
80
80
|
<h4 class="tsd-returns-title">Returns <a href="TrackedChat.html" class="tsd-signature-type tsd-kind-class">TrackedChat</a></h4><aside class="tsd-sources">
|
|
81
81
|
<ul>
|
|
82
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
82
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/chat/TrackedChat.ts#L19">sdk/server-ai/src/api/chat/TrackedChat.ts:19</a></li></ul></aside></li></ul></section></section>
|
|
83
83
|
<section class="tsd-panel-group tsd-member-group">
|
|
84
84
|
<h2>Properties</h2>
|
|
85
85
|
<section class="tsd-panel tsd-member tsd-is-private"><a id="_logger" class="tsd-anchor"></a>
|
|
86
86
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <code class="tsd-tag ts-flagOptional">Optional</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span>_logger</span><a href="#_logger" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
87
87
|
<div class="tsd-signature"><span class="tsd-kind-property">_logger</span><span class="tsd-signature-symbol">?:</span> <a href="../interfaces/LDLogger.html" class="tsd-signature-type tsd-kind-interface">LDLogger</a></div><aside class="tsd-sources">
|
|
88
88
|
<ul>
|
|
89
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
89
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/chat/TrackedChat.ts#L24">sdk/server-ai/src/api/chat/TrackedChat.ts:24</a></li></ul></aside></section>
|
|
90
90
|
<section class="tsd-panel tsd-member tsd-is-protected"><a id="aiConfig" class="tsd-anchor"></a>
|
|
91
91
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span>ai<wbr/>Config</span><a href="#aiConfig" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
92
92
|
<div class="tsd-signature"><span class="tsd-kind-property">ai<wbr/>Config</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/LDAICompletionConfig.html" class="tsd-signature-type tsd-kind-interface">LDAICompletionConfig</a></div><aside class="tsd-sources">
|
|
93
93
|
<ul>
|
|
94
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
94
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/chat/TrackedChat.ts#L20">sdk/server-ai/src/api/chat/TrackedChat.ts:20</a></li></ul></aside></section>
|
|
95
95
|
<section class="tsd-panel tsd-member tsd-is-protected"><a id="judges" class="tsd-anchor"></a>
|
|
96
96
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span>judges</span><a href="#judges" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
97
97
|
<div class="tsd-signature"><span class="tsd-kind-property">judges</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">Record</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><a href="Judge.html" class="tsd-signature-type tsd-kind-class">Judge</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> = {}</span></div><aside class="tsd-sources">
|
|
98
98
|
<ul>
|
|
99
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
99
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/chat/TrackedChat.ts#L23">sdk/server-ai/src/api/chat/TrackedChat.ts:23</a></li></ul></aside></section>
|
|
100
100
|
<section class="tsd-panel tsd-member tsd-is-protected"><a id="messages" class="tsd-anchor"></a>
|
|
101
101
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</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>
|
|
102
102
|
<div class="tsd-signature"><span class="tsd-kind-property">messages</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/LDMessage.html" class="tsd-signature-type tsd-kind-interface">LDMessage</a><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources">
|
|
103
103
|
<ul>
|
|
104
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
104
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/chat/TrackedChat.ts#L17">sdk/server-ai/src/api/chat/TrackedChat.ts:17</a></li></ul></aside></section>
|
|
105
105
|
<section class="tsd-panel tsd-member tsd-is-protected"><a id="provider" class="tsd-anchor"></a>
|
|
106
106
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <code class="tsd-tag ts-flagReadonly">Readonly</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>
|
|
107
107
|
<div class="tsd-signature"><span class="tsd-kind-property">provider</span><span class="tsd-signature-symbol">:</span> <a href="AIProvider.html" class="tsd-signature-type tsd-kind-class">AIProvider</a></div><aside class="tsd-sources">
|
|
108
108
|
<ul>
|
|
109
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
109
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/chat/TrackedChat.ts#L22">sdk/server-ai/src/api/chat/TrackedChat.ts:22</a></li></ul></aside></section>
|
|
110
110
|
<section class="tsd-panel tsd-member tsd-is-protected"><a id="tracker" class="tsd-anchor"></a>
|
|
111
111
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <code class="tsd-tag ts-flagReadonly">Readonly</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>
|
|
112
112
|
<div class="tsd-signature"><span class="tsd-kind-property">tracker</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/LDAIConfigTracker.html" class="tsd-signature-type tsd-kind-interface">LDAIConfigTracker</a></div><aside class="tsd-sources">
|
|
113
113
|
<ul>
|
|
114
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
114
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/chat/TrackedChat.ts#L21">sdk/server-ai/src/api/chat/TrackedChat.ts:21</a></li></ul></aside></section></section>
|
|
115
115
|
<section class="tsd-panel-group tsd-member-group">
|
|
116
116
|
<h2>Methods</h2>
|
|
117
117
|
<section class="tsd-panel tsd-member tsd-is-private"><a id="_evaluateWithJudges" class="tsd-anchor"></a>
|
|
@@ -137,7 +137,7 @@ Returns a promise that resolves to an array of evaluation results.</p>
|
|
|
137
137
|
|
|
138
138
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
139
139
|
<ul>
|
|
140
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
140
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/chat/TrackedChat.ts#L70">sdk/server-ai/src/api/chat/TrackedChat.ts:70</a></li></ul></aside></li></ul></section>
|
|
141
141
|
<section class="tsd-panel tsd-member"><a id="appendMessages" class="tsd-anchor"></a>
|
|
142
142
|
<h3 class="tsd-anchor-link"><span>append<wbr/>Messages</span><a href="#appendMessages" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
143
143
|
<ul class="tsd-signatures">
|
|
@@ -157,7 +157,7 @@ which is useful for managing multi-turn conversations or injecting context.</p>
|
|
|
157
157
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
158
158
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
159
159
|
<ul>
|
|
160
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
160
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/chat/TrackedChat.ts#L143">sdk/server-ai/src/api/chat/TrackedChat.ts:143</a></li></ul></aside></li></ul></section>
|
|
161
161
|
<section class="tsd-panel tsd-member"><a id="getConfig" class="tsd-anchor"></a>
|
|
162
162
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Config</span><a href="#getConfig" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
163
163
|
<ul class="tsd-signatures">
|
|
@@ -168,7 +168,7 @@ which is useful for managing multi-turn conversations or injecting context.</p>
|
|
|
168
168
|
<h4 class="tsd-returns-title">Returns <a href="../interfaces/LDAICompletionConfig.html" class="tsd-signature-type tsd-kind-interface">LDAICompletionConfig</a></h4>
|
|
169
169
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
170
170
|
<ul>
|
|
171
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
171
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/chat/TrackedChat.ts#L109">sdk/server-ai/src/api/chat/TrackedChat.ts:109</a></li></ul></aside></li></ul></section>
|
|
172
172
|
<section class="tsd-panel tsd-member"><a id="getJudges" class="tsd-anchor"></a>
|
|
173
173
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Judges</span><a href="#getJudges" 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">
|
|
@@ -180,7 +180,7 @@ Returns a record of judge instances keyed by their configuration keys.</p>
|
|
|
180
180
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Record</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><a href="Judge.html" class="tsd-signature-type tsd-kind-class">Judge</a><span class="tsd-signature-symbol">></span></h4>
|
|
181
181
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
182
182
|
<ul>
|
|
183
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
183
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/chat/TrackedChat.ts#L132">sdk/server-ai/src/api/chat/TrackedChat.ts:132</a></li></ul></aside></li></ul></section>
|
|
184
184
|
<section class="tsd-panel tsd-member"><a id="getMessages" class="tsd-anchor"></a>
|
|
185
185
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Messages</span><a href="#getMessages" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
186
186
|
<ul class="tsd-signatures">
|
|
@@ -202,7 +202,7 @@ Returns a record of judge instances keyed by their configuration keys.</p>
|
|
|
202
202
|
|
|
203
203
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
204
204
|
<ul>
|
|
205
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
205
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/chat/TrackedChat.ts#L156">sdk/server-ai/src/api/chat/TrackedChat.ts:156</a></li></ul></aside></li></ul></section>
|
|
206
206
|
<section class="tsd-panel tsd-member"><a id="getProvider" class="tsd-anchor"></a>
|
|
207
207
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Provider</span><a href="#getProvider" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
208
208
|
<ul class="tsd-signatures">
|
|
@@ -214,7 +214,7 @@ This provides direct access to the provider for advanced use cases.</p>
|
|
|
214
214
|
<h4 class="tsd-returns-title">Returns <a href="AIProvider.html" class="tsd-signature-type tsd-kind-class">AIProvider</a></h4>
|
|
215
215
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
216
216
|
<ul>
|
|
217
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
217
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/chat/TrackedChat.ts#L124">sdk/server-ai/src/api/chat/TrackedChat.ts:124</a></li></ul></aside></li></ul></section>
|
|
218
218
|
<section class="tsd-panel tsd-member"><a id="getTracker" class="tsd-anchor"></a>
|
|
219
219
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Tracker</span><a href="#getTracker" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
220
220
|
<ul class="tsd-signatures">
|
|
@@ -225,7 +225,7 @@ This provides direct access to the provider for advanced use cases.</p>
|
|
|
225
225
|
<h4 class="tsd-returns-title">Returns <a href="../interfaces/LDAIConfigTracker.html" class="tsd-signature-type tsd-kind-interface">LDAIConfigTracker</a></h4>
|
|
226
226
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
227
227
|
<ul>
|
|
228
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
228
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/chat/TrackedChat.ts#L116">sdk/server-ai/src/api/chat/TrackedChat.ts:116</a></li></ul></aside></li></ul></section>
|
|
229
229
|
<section class="tsd-panel tsd-member"><a id="invoke" class="tsd-anchor"></a>
|
|
230
230
|
<h3 class="tsd-anchor-link"><span>invoke</span><a href="#invoke" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
231
231
|
<ul class="tsd-signatures">
|
|
@@ -242,7 +242,7 @@ This method handles conversation management and tracking, delegating to the prov
|
|
|
242
242
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/ChatResponse.html" class="tsd-signature-type tsd-kind-interface">ChatResponse</a><span class="tsd-signature-symbol">></span></h4>
|
|
243
243
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
244
244
|
<ul>
|
|
245
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
245
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/chat/TrackedChat.ts#L33">sdk/server-ai/src/api/chat/TrackedChat.ts:33</a></li></ul></aside></li></ul></section></section></div>
|
|
246
246
|
<div class="col-sidebar">
|
|
247
247
|
<div class="page-menu">
|
|
248
248
|
<div class="tsd-navigation settings">
|
|
@@ -278,7 +278,7 @@ This method handles conversation management and tracking, delegating to the prov
|
|
|
278
278
|
<li><a href="#getTracker" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Tracker</span></a></li>
|
|
279
279
|
<li><a href="#invoke" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>invoke</span></a></li></ul></div></details></div>
|
|
280
280
|
<div class="site-menu">
|
|
281
|
-
<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.
|
|
281
|
+
<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>
|
|
282
282
|
<ul class="tsd-small-nested-navigation">
|
|
283
283
|
<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>
|
|
284
284
|
<li><a href="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>LDFeedbackKind | @launchdarkly/server-sdk-ai - v0.14.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>LDFeedbackKind | @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.
|
|
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">
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
</div>
|
|
21
21
|
<div class="tsd-comment tsd-typography"></div></section><aside class="tsd-sources">
|
|
22
22
|
<ul>
|
|
23
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
23
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/metrics/LDFeedbackKind.ts#L4">sdk/server-ai/src/api/metrics/LDFeedbackKind.ts:4</a></li></ul></aside>
|
|
24
24
|
<section class="tsd-panel-group tsd-index-group">
|
|
25
25
|
<section class="tsd-panel tsd-index-panel">
|
|
26
26
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
</div>
|
|
41
41
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
42
42
|
<ul>
|
|
43
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
43
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/metrics/LDFeedbackKind.ts#L12">sdk/server-ai/src/api/metrics/LDFeedbackKind.ts:12</a></li></ul></aside></section>
|
|
44
44
|
<section class="tsd-panel tsd-member"><a id="Positive" class="tsd-anchor"></a>
|
|
45
45
|
<h3 class="tsd-anchor-link"><span>Positive</span><a href="#Positive" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
46
46
|
<div class="tsd-signature"><span class="tsd-kind-enum-member">Positive</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"positive"</span></div>
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
</div>
|
|
49
49
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
50
50
|
<ul>
|
|
51
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
51
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/metrics/LDFeedbackKind.ts#L8">sdk/server-ai/src/api/metrics/LDFeedbackKind.ts:8</a></li></ul></aside></section></section></div>
|
|
52
52
|
<div class="col-sidebar">
|
|
53
53
|
<div class="page-menu">
|
|
54
54
|
<div class="tsd-navigation settings">
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
<li><a href="#Negative" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>Negative</span></a></li>
|
|
72
72
|
<li><a href="#Positive" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>Positive</span></a></li></ul></div></details></div>
|
|
73
73
|
<div class="site-menu">
|
|
74
|
-
<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.
|
|
74
|
+
<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>
|
|
75
75
|
<ul class="tsd-small-nested-navigation">
|
|
76
76
|
<li><a href="LDFeedbackKind.html" class="current"><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>
|
|
77
77
|
<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>createBedrockTokenUsage | @launchdarkly/server-sdk-ai - v0.14.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>createBedrockTokenUsage | @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.
|
|
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">
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-property">total<wbr/>Tokens</span><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span></h5></li></ul></li></ul></div>
|
|
34
34
|
<h4 class="tsd-returns-title">Returns <a href="../interfaces/LDTokenUsage.html" class="tsd-signature-type tsd-kind-interface">LDTokenUsage</a></h4><aside class="tsd-sources">
|
|
35
35
|
<ul>
|
|
36
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
36
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/metrics/BedrockTokenUsage.ts#L3">sdk/server-ai/src/api/metrics/BedrockTokenUsage.ts:3</a></li></ul></aside></li></ul></section></div>
|
|
37
37
|
<div class="col-sidebar">
|
|
38
38
|
<div class="page-menu">
|
|
39
39
|
<div class="tsd-navigation settings">
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
<div class="tsd-theme-toggle">
|
|
51
51
|
<h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div>
|
|
52
52
|
<div class="site-menu">
|
|
53
|
-
<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.
|
|
53
|
+
<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>
|
|
54
54
|
<ul class="tsd-small-nested-navigation">
|
|
55
55
|
<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>
|
|
56
56
|
<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>createOpenAiUsage | @launchdarkly/server-sdk-ai - v0.14.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>createOpenAiUsage | @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.
|
|
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">
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-property">total_<wbr/>tokens</span><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span></h5></li></ul></li></ul></div>
|
|
34
34
|
<h4 class="tsd-returns-title">Returns <a href="../interfaces/LDTokenUsage.html" class="tsd-signature-type tsd-kind-interface">LDTokenUsage</a></h4><aside class="tsd-sources">
|
|
35
35
|
<ul>
|
|
36
|
-
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/
|
|
36
|
+
<li>Defined in <a href="https://github.com/launchdarkly/js-core/blob/f40a435/packages/sdk/server-ai/src/api/metrics/OpenAiUsage.ts#L3">sdk/server-ai/src/api/metrics/OpenAiUsage.ts:3</a></li></ul></aside></li></ul></section></div>
|
|
37
37
|
<div class="col-sidebar">
|
|
38
38
|
<div class="page-menu">
|
|
39
39
|
<div class="tsd-navigation settings">
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
<div class="tsd-theme-toggle">
|
|
51
51
|
<h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div>
|
|
52
52
|
<div class="site-menu">
|
|
53
|
-
<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.
|
|
53
|
+
<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>
|
|
54
54
|
<ul class="tsd-small-nested-navigation">
|
|
55
55
|
<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>
|
|
56
56
|
<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>
|