briyah 2.0.0 → 2.0.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/README.md +245 -65
- package/dist-sdk/server/src/app.controller.js +1 -1
- package/dist-sdk/server/src/app.service.d.ts +2 -0
- package/dist-sdk/server/src/app.service.js +25 -4
- package/dist-sdk/server/src/config/prompt-resolver.d.ts +2 -0
- package/dist-sdk/server/src/config/prompt-resolver.js +14 -7
- package/dist-sdk/server/src/packs/pack-instantiation.service.d.ts +2 -1
- package/dist-sdk/server/src/packs/pack-instantiation.service.js +16 -5
- package/dist-sdk/server/src/room/room-message.service.d.ts +2 -1
- package/dist-sdk/server/src/room/room-message.service.js +3 -2
- package/dist-sdk/server/src/room/room.js +4 -2
- package/dist-sdk/server/src/sdk/index.d.ts +2 -2
- package/dist-sdk/shared/types/app.types.d.ts +9 -0
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/highlight.css +7 -0
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/Agent.html +73 -73
- package/docs/classes/Briyah.html +16 -16
- package/docs/classes/BriyahConfigService.html +7 -7
- package/docs/classes/NativeToolRegistry.html +10 -10
- package/docs/classes/PackInstantiationService.html +20 -9
- package/docs/classes/PackService.html +13 -13
- package/docs/classes/Room.html +90 -90
- package/docs/classes/RoomMessage.html +22 -22
- package/docs/enums/MessageAction.html +18 -18
- package/docs/functions/availableToolPacks.html +4 -4
- package/docs/functions/dnd5eTools.html +4 -4
- package/docs/functions/installToolPacks.html +4 -4
- package/docs/functions/registerToolPacks.html +4 -4
- package/docs/hierarchy.html +9 -9
- package/docs/index.html +155 -41
- package/docs/interfaces/AgentCreationOptions.html +12 -12
- package/docs/interfaces/AgentInfo.html +30 -30
- package/docs/interfaces/AgentMessagesResponse.html +8 -8
- package/docs/interfaces/AppService.html +216 -185
- package/docs/interfaces/Artifact.html +9 -9
- package/docs/interfaces/ArtifactMetadata.html +13 -13
- package/docs/interfaces/ArtifactWriteOptions.html +7 -7
- package/docs/interfaces/AttachDocumentResponse.html +6 -6
- package/docs/interfaces/BriyahConfigOptions.html +12 -12
- package/docs/interfaces/ChapterInfo.html +6 -6
- package/docs/interfaces/Character.html +10 -10
- package/docs/interfaces/CreateAgentResponse.html +5 -5
- package/docs/interfaces/CreateRoomResponse.html +6 -6
- package/docs/interfaces/CreateStoryResponse.html +5 -5
- package/docs/interfaces/FileList.html +5 -5
- package/docs/interfaces/FileMetadata.html +10 -10
- package/docs/interfaces/IConfigService.html +5 -5
- package/docs/interfaces/InstantiateModels.html +6 -6
- package/docs/interfaces/InstantiateRoomResult.html +7 -7
- package/docs/interfaces/LoadedPack.html +16 -16
- package/docs/interfaces/LoggingOptions.html +9 -9
- package/docs/interfaces/Message.html +9 -9
- package/docs/interfaces/ModelChoice.html +7 -7
- package/docs/interfaces/ModelInfo.html +8 -8
- package/docs/interfaces/NativeToolDefinition.html +10 -10
- package/docs/interfaces/PackAgentTemplate.html +9 -9
- package/docs/interfaces/PackRoomTemplate.html +11 -11
- package/docs/interfaces/PackView.html +20 -20
- package/docs/interfaces/PreparedPromptResponse.html +6 -6
- package/docs/interfaces/ProcessTextResponse.html +10 -10
- package/docs/interfaces/PromptFile.html +7 -7
- package/docs/interfaces/PromptFileContent.html +8 -8
- package/docs/interfaces/PromptFilesResponse.html +5 -5
- package/docs/interfaces/PromptFolder.html +8 -8
- package/docs/interfaces/PromptFolderDefaults.html +19 -19
- package/docs/interfaces/PromptFolderDefaultsResponse.html +21 -8
- package/docs/interfaces/PromptFoldersResponse.html +5 -5
- package/docs/interfaces/RoomDetails.html +19 -19
- package/docs/interfaces/RoomErrorUpdate.html +82 -0
- package/docs/interfaces/RoomInfo.html +10 -10
- package/docs/interfaces/RoomMessageUpdate.html +30 -15
- package/docs/interfaces/RoomMessagesResponse.html +6 -6
- package/docs/interfaces/SendMessageResult.html +6 -6
- package/docs/interfaces/StoryErrorEvent.html +8 -8
- package/docs/interfaces/StoryIdea.html +8 -8
- package/docs/interfaces/StoryInfo.html +28 -28
- package/docs/interfaces/StoryIntroduceCharacterEvent.html +7 -7
- package/docs/interfaces/StoryProgressChapterEvent.html +6 -6
- package/docs/interfaces/StoryState.html +12 -12
- package/docs/interfaces/StoryStateEvent.html +7 -7
- package/docs/interfaces/ToolArtifact.html +9 -9
- package/docs/interfaces/ToolCaller.html +7 -7
- package/docs/interfaces/ToolDefinition.html +9 -9
- package/docs/interfaces/ToolHelpers.html +6 -6
- package/docs/interfaces/ToolParameter.html +8 -8
- package/docs/interfaces/ToolRoomAccess.html +14 -14
- package/docs/interfaces/ToolSummary.html +8 -8
- package/docs/interfaces/ToolsResponse.html +7 -7
- package/docs/interfaces/Transaction.html +13 -13
- package/docs/interfaces/TransactionHistoryResponse.html +6 -6
- package/docs/modules.html +8 -8
- package/docs/types/PackOrigin.html +4 -4
- package/docs/types/PromptScope.html +4 -4
- package/docs/types/RoomTurnMode.html +4 -4
- package/docs/types/RoomUpdate.html +36 -0
- package/docs/types/RosterOverrides.html +42 -0
- package/docs/types/ToolContext.html +4 -4
- package/docs/types/ToolRunResult.html +4 -4
- package/package.json +1 -1
- package/src/tools/packs/dnd5e/README.md +39 -3
package/docs/classes/Briyah.html
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Briyah | Briyah SDK - v2.0.
|
|
2
|
-
<div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Briyah SDK - v2.0.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Briyah | Briyah SDK - v2.0.1</title><meta name="description" content="Documentation for Briyah SDK"/><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/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar">
|
|
2
|
+
<div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Briyah SDK - v2.0.1</a>
|
|
3
3
|
<div id="tsd-toolbar-links"><a href="https://github.com/your-org/briyah">GitHub</a><a href="https://www.npmjs.com/package/briyah">npm</a></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/>
|
|
4
4
|
<ul role="listbox" id="tsd-search-results"></ul>
|
|
5
5
|
<div id="tsd-search-status" aria-live="polite" aria-atomic="true">
|
|
@@ -22,7 +22,7 @@ requiring NestJS dependency injection setup.</p>
|
|
|
22
22
|
|
|
23
23
|
</div></div></section><aside class="tsd-sources">
|
|
24
24
|
<ul>
|
|
25
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
25
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/sdk/briyah.ts#L51">server/src/sdk/briyah.ts:51</a></li></ul></aside>
|
|
26
26
|
<section class="tsd-panel-group tsd-index-group">
|
|
27
27
|
<section class="tsd-panel tsd-index-panel">
|
|
28
28
|
<details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
@@ -65,7 +65,7 @@ requiring NestJS dependency injection setup.</p>
|
|
|
65
65
|
</div></li></ul></div>
|
|
66
66
|
<h4 class="tsd-returns-title">Returns <a href="" class="tsd-signature-type tsd-kind-class">Briyah</a></h4><aside class="tsd-sources">
|
|
67
67
|
<ul>
|
|
68
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
68
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/sdk/briyah.ts#L71">server/src/sdk/briyah.ts:71</a></li></ul></aside></div></li></ul></section></section></details>
|
|
69
69
|
<details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
70
70
|
<h2 class="tsd-anchor-link" id="methods-1">Methods<a href="#methods-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2></summary>
|
|
71
71
|
<section>
|
|
@@ -98,7 +98,7 @@ requiring NestJS dependency injection setup.</p>
|
|
|
98
98
|
<h4 class="tsd-anchor-link" id="throws">Throws<a href="#throws" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>Error if init() has not been called</p>
|
|
99
99
|
</div></div><aside class="tsd-sources">
|
|
100
100
|
<ul>
|
|
101
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
101
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/sdk/briyah.ts#L401">server/src/sdk/briyah.ts:401</a></li></ul></aside></div></li></ul></section>
|
|
102
102
|
<section class="tsd-panel tsd-member">
|
|
103
103
|
<h3 class="tsd-anchor-link" id="getcachestats"><span>get<wbr/>Cache<wbr/>Stats</span><a href="#getcachestats" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
104
104
|
<ul class="tsd-signatures">
|
|
@@ -116,7 +116,7 @@ requiring NestJS dependency injection setup.</p>
|
|
|
116
116
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">cachedUsers</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">users</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">ageMinutes</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">userId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">[]</span> <span class="tsd-signature-symbol">}</span></h4><p>Cache statistics object</p>
|
|
117
117
|
<aside class="tsd-sources">
|
|
118
118
|
<ul>
|
|
119
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
119
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/sdk/briyah.ts#L431">server/src/sdk/briyah.ts:431</a></li></ul></aside></div></li></ul></section>
|
|
120
120
|
<section class="tsd-panel tsd-member">
|
|
121
121
|
<h3 class="tsd-anchor-link" id="getconfigservice"><span>get<wbr/>Config<wbr/>Service</span><a href="#getconfigservice" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
122
122
|
<ul class="tsd-signatures">
|
|
@@ -130,7 +130,7 @@ Primarily for internal use or debugging.</p>
|
|
|
130
130
|
<h4 class="tsd-returns-title">Returns <a href="BriyahConfigService.html" class="tsd-signature-type tsd-kind-class">BriyahConfigService</a></h4><p>The BriyahConfigService instance</p>
|
|
131
131
|
<aside class="tsd-sources">
|
|
132
132
|
<ul>
|
|
133
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
133
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/sdk/briyah.ts#L531">server/src/sdk/briyah.ts:531</a></li></ul></aside></div></li></ul></section>
|
|
134
134
|
<section class="tsd-panel tsd-member">
|
|
135
135
|
<h3 class="tsd-anchor-link" id="init"><span>init</span><a href="#init" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
136
136
|
<ul class="tsd-signatures">
|
|
@@ -143,7 +143,7 @@ Must be called before using getAppService()</p>
|
|
|
143
143
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>Promise that resolves when initialization is complete</p>
|
|
144
144
|
<aside class="tsd-sources">
|
|
145
145
|
<ul>
|
|
146
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
146
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/sdk/briyah.ts#L214">server/src/sdk/briyah.ts:214</a></li></ul></aside></div></li></ul></section>
|
|
147
147
|
<section class="tsd-panel tsd-member">
|
|
148
148
|
<h3 class="tsd-anchor-link" id="isinitialized"><span>is<wbr/>Initialized</span><a href="#isinitialized" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
149
149
|
<ul class="tsd-signatures">
|
|
@@ -155,7 +155,7 @@ Must be called before using getAppService()</p>
|
|
|
155
155
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>True if init() has been called, false otherwise</p>
|
|
156
156
|
<aside class="tsd-sources">
|
|
157
157
|
<ul>
|
|
158
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
158
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/sdk/briyah.ts#L461">server/src/sdk/briyah.ts:461</a></li></ul></aside></div></li></ul></section>
|
|
159
159
|
<section class="tsd-panel tsd-member">
|
|
160
160
|
<h3 class="tsd-anchor-link" id="listnativetools"><span>list<wbr/>Native<wbr/>Tools</span><a href="#listnativetools" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
161
161
|
<ul class="tsd-signatures">
|
|
@@ -167,7 +167,7 @@ Must be called before using getAppService()</p>
|
|
|
167
167
|
<h4 class="tsd-returns-title">Returns <a href="../interfaces/NativeToolDefinition.html" class="tsd-signature-type tsd-kind-interface">NativeToolDefinition</a><span class="tsd-signature-symbol">[]</span></h4><p>The registered native tool definitions</p>
|
|
168
168
|
<aside class="tsd-sources">
|
|
169
169
|
<ul>
|
|
170
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
170
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/sdk/briyah.ts#L519">server/src/sdk/briyah.ts:519</a></li></ul></aside></div></li></ul></section>
|
|
171
171
|
<section class="tsd-panel tsd-member">
|
|
172
172
|
<h3 class="tsd-anchor-link" id="registertool"><span>register<wbr/>Tool</span><a href="#registertool" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
173
173
|
<ul class="tsd-signatures">
|
|
@@ -199,7 +199,7 @@ not persisted. Can be called before or after <code>init()</code>.</p>
|
|
|
199
199
|
|
|
200
200
|
</div></div><aside class="tsd-sources">
|
|
201
201
|
<ul>
|
|
202
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
202
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/sdk/briyah.ts#L494">server/src/sdk/briyah.ts:494</a></li></ul></aside></div></li></ul></section>
|
|
203
203
|
<section class="tsd-panel tsd-member">
|
|
204
204
|
<h3 class="tsd-anchor-link" id="registertools"><span>register<wbr/>Tools</span><a href="#registertools" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
205
205
|
<ul class="tsd-signatures">
|
|
@@ -216,7 +216,7 @@ not persisted. Can be called before or after <code>init()</code>.</p>
|
|
|
216
216
|
</div></li></ul></div>
|
|
217
217
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
218
218
|
<ul>
|
|
219
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
219
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/sdk/briyah.ts#L502">server/src/sdk/briyah.ts:502</a></li></ul></aside></div></li></ul></section>
|
|
220
220
|
<section class="tsd-panel tsd-member">
|
|
221
221
|
<h3 class="tsd-anchor-link" id="removeuserservice"><span>remove<wbr/>User<wbr/>Service</span><a href="#removeuserservice" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
222
222
|
<ul class="tsd-signatures">
|
|
@@ -235,7 +235,7 @@ or when a user logs out and you want to clean up their cached data.</p>
|
|
|
235
235
|
</div></li></ul></div>
|
|
236
236
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
237
237
|
<ul>
|
|
238
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
238
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/sdk/briyah.ts#L417">server/src/sdk/briyah.ts:417</a></li></ul></aside></div></li></ul></section>
|
|
239
239
|
<section class="tsd-panel tsd-member">
|
|
240
240
|
<h3 class="tsd-anchor-link" id="shutdown"><span>shutdown</span><a href="#shutdown" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
241
241
|
<ul class="tsd-signatures">
|
|
@@ -249,7 +249,7 @@ Should be called when your application is shutting down.</p>
|
|
|
249
249
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>Promise that resolves when shutdown is complete</p>
|
|
250
250
|
<aside class="tsd-sources">
|
|
251
251
|
<ul>
|
|
252
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
252
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/sdk/briyah.ts#L443">server/src/sdk/briyah.ts:443</a></li></ul></aside></div></li></ul></section>
|
|
253
253
|
<section class="tsd-panel tsd-member">
|
|
254
254
|
<h3 class="tsd-anchor-link" id="unregistertool"><span>unregister<wbr/>Tool</span><a href="#unregistertool" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
255
255
|
<ul class="tsd-signatures">
|
|
@@ -267,7 +267,7 @@ Should be called when your application is shutting down.</p>
|
|
|
267
267
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>True if a tool was removed</p>
|
|
268
268
|
<aside class="tsd-sources">
|
|
269
269
|
<ul>
|
|
270
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
270
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/sdk/briyah.ts#L511">server/src/sdk/briyah.ts:511</a></li></ul></aside></div></li></ul></section></section></details></div>
|
|
271
271
|
<div class="col-sidebar">
|
|
272
272
|
<div class="page-menu">
|
|
273
273
|
<div class="tsd-navigation settings">
|
|
@@ -289,7 +289,7 @@ Should be called when your application is shutting down.</p>
|
|
|
289
289
|
<div><a href="#getappservice"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>App<wbr/>Service</span></a><a href="#getcachestats"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Cache<wbr/>Stats</span></a><a href="#getconfigservice"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Config<wbr/>Service</span></a><a href="#init"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>init</span></a><a href="#isinitialized"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>is<wbr/>Initialized</span></a><a href="#listnativetools"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>list<wbr/>Native<wbr/>Tools</span></a><a href="#registertool"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>register<wbr/>Tool</span></a><a href="#registertools"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>register<wbr/>Tools</span></a><a href="#removeuserservice"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>remove<wbr/>User<wbr/>Service</span></a><a href="#shutdown"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>shutdown</span></a><a href="#unregistertool"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>unregister<wbr/>Tool</span></a></div></details></div></details></div>
|
|
290
290
|
<div class="site-menu">
|
|
291
291
|
<nav id="tsd-sidebar-links" class="tsd-navigation"><a href="https://github.com/your-org/briyah" class="tsd-nav-link">GitHub</a><a href="https://www.npmjs.com/package/briyah" class="tsd-nav-link">npm</a></nav>
|
|
292
|
-
<nav class="tsd-navigation"><a href="../modules.html">Briyah SDK - v2.0.
|
|
292
|
+
<nav class="tsd-navigation"><a href="../modules.html">Briyah SDK - v2.0.1</a>
|
|
293
293
|
<ul class="tsd-small-nested-navigation" id="tsd-nav-container">
|
|
294
294
|
<li>Loading...</li></ul></nav></div></div></div><footer>
|
|
295
295
|
<p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>BriyahConfigService | Briyah SDK - v2.0.
|
|
2
|
-
<div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Briyah SDK - v2.0.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>BriyahConfigService | Briyah SDK - v2.0.1</title><meta name="description" content="Documentation for Briyah SDK"/><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/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar">
|
|
2
|
+
<div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Briyah SDK - v2.0.1</a>
|
|
3
3
|
<div id="tsd-toolbar-links"><a href="https://github.com/your-org/briyah">GitHub</a><a href="https://www.npmjs.com/package/briyah">npm</a></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/>
|
|
4
4
|
<ul role="listbox" id="tsd-search-results"></ul>
|
|
5
5
|
<div id="tsd-search-status" aria-live="polite" aria-atomic="true">
|
|
@@ -19,7 +19,7 @@ Replaces NestJS ConfigService with a simple wrapper around environment variables
|
|
|
19
19
|
<ul class="tsd-hierarchy">
|
|
20
20
|
<li><a href="../interfaces/IConfigService.html" class="tsd-signature-type tsd-kind-interface">IConfigService</a></li></ul></section><aside class="tsd-sources">
|
|
21
21
|
<ul>
|
|
22
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
22
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/sdk/briyah-config.ts#L77">server/src/sdk/briyah-config.ts:77</a></li></ul></aside>
|
|
23
23
|
<section class="tsd-panel-group tsd-index-group">
|
|
24
24
|
<section class="tsd-panel tsd-index-panel">
|
|
25
25
|
<details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
@@ -49,7 +49,7 @@ Replaces NestJS ConfigService with a simple wrapper around environment variables
|
|
|
49
49
|
<li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/BriyahConfigOptions.html" class="tsd-signature-type tsd-kind-interface">BriyahConfigOptions</a></span></li></ul></div>
|
|
50
50
|
<h4 class="tsd-returns-title">Returns <a href="" class="tsd-signature-type tsd-kind-class">BriyahConfigService</a></h4><aside class="tsd-sources">
|
|
51
51
|
<ul>
|
|
52
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
52
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/sdk/briyah-config.ts#L80">server/src/sdk/briyah-config.ts:80</a></li></ul></aside></div></li></ul></section></section></details>
|
|
53
53
|
<details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
54
54
|
<h2 class="tsd-anchor-link" id="methods-1">Methods<a href="#methods-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2></summary>
|
|
55
55
|
<section>
|
|
@@ -78,7 +78,7 @@ Replaces NestJS ConfigService with a simple wrapper around environment variables
|
|
|
78
78
|
<aside class="tsd-sources">
|
|
79
79
|
<p>Implementation of <a href="../interfaces/IConfigService.html">IConfigService</a>.<a href="../interfaces/IConfigService.html#get">get</a></p>
|
|
80
80
|
<ul>
|
|
81
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
81
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/sdk/briyah-config.ts#L122">server/src/sdk/briyah-config.ts:122</a></li></ul></aside></div></li></ul></section>
|
|
82
82
|
<section class="tsd-panel tsd-member">
|
|
83
83
|
<h3 class="tsd-anchor-link" id="getall"><span>get<wbr/>All</span><a href="#getall" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
84
84
|
<ul class="tsd-signatures">
|
|
@@ -90,7 +90,7 @@ Replaces NestJS ConfigService with a simple wrapper around environment variables
|
|
|
90
90
|
<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> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><p>A copy of the environment variables</p>
|
|
91
91
|
<aside class="tsd-sources">
|
|
92
92
|
<ul>
|
|
93
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
93
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/sdk/briyah-config.ts#L134">server/src/sdk/briyah-config.ts:134</a></li></ul></aside></div></li></ul></section></section></details></div>
|
|
94
94
|
<div class="col-sidebar">
|
|
95
95
|
<div class="page-menu">
|
|
96
96
|
<div class="tsd-navigation settings">
|
|
@@ -112,7 +112,7 @@ Replaces NestJS ConfigService with a simple wrapper around environment variables
|
|
|
112
112
|
<div><a href="#get"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get</span></a><a href="#getall"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>All</span></a></div></details></div></details></div>
|
|
113
113
|
<div class="site-menu">
|
|
114
114
|
<nav id="tsd-sidebar-links" class="tsd-navigation"><a href="https://github.com/your-org/briyah" class="tsd-nav-link">GitHub</a><a href="https://www.npmjs.com/package/briyah" class="tsd-nav-link">npm</a></nav>
|
|
115
|
-
<nav class="tsd-navigation"><a href="../modules.html">Briyah SDK - v2.0.
|
|
115
|
+
<nav class="tsd-navigation"><a href="../modules.html">Briyah SDK - v2.0.1</a>
|
|
116
116
|
<ul class="tsd-small-nested-navigation" id="tsd-nav-container">
|
|
117
117
|
<li>Loading...</li></ul></nav></div></div></div><footer>
|
|
118
118
|
<p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>NativeToolRegistry | Briyah SDK - v2.0.
|
|
2
|
-
<div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Briyah SDK - v2.0.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>NativeToolRegistry | Briyah SDK - v2.0.1</title><meta name="description" content="Documentation for Briyah SDK"/><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/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar">
|
|
2
|
+
<div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Briyah SDK - v2.0.1</a>
|
|
3
3
|
<div id="tsd-toolbar-links"><a href="https://github.com/your-org/briyah">GitHub</a><a href="https://www.npmjs.com/package/briyah">npm</a></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/>
|
|
4
4
|
<ul role="listbox" id="tsd-search-results"></ul>
|
|
5
5
|
<div id="tsd-search-status" aria-live="polite" aria-atomic="true">
|
|
@@ -19,7 +19,7 @@ global); it comes from the opaque context threaded to the handler and the
|
|
|
19
19
|
existing per-user AppService boundary.</p>
|
|
20
20
|
</div></section><aside class="tsd-sources">
|
|
21
21
|
<ul>
|
|
22
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
22
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/tools/native-tool-registry.service.ts#L15">server/src/tools/native-tool-registry.service.ts:15</a></li></ul></aside>
|
|
23
23
|
<section class="tsd-panel-group tsd-index-group">
|
|
24
24
|
<section class="tsd-panel tsd-index-panel">
|
|
25
25
|
<details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
@@ -63,7 +63,7 @@ existing per-user AppService boundary.</p>
|
|
|
63
63
|
<li><span><span class="tsd-kind-parameter">name</span>: <span class="tsd-signature-type">string</span></span></li></ul></div>
|
|
64
64
|
<h4 class="tsd-returns-title">Returns <a href="../interfaces/NativeToolDefinition.html" class="tsd-signature-type tsd-kind-interface">NativeToolDefinition</a></h4><aside class="tsd-sources">
|
|
65
65
|
<ul>
|
|
66
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
66
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/tools/native-tool-registry.service.ts#L54">server/src/tools/native-tool-registry.service.ts:54</a></li></ul></aside></div></li></ul></section>
|
|
67
67
|
<section class="tsd-panel tsd-member">
|
|
68
68
|
<h3 class="tsd-anchor-link" id="has"><span>has</span><a href="#has" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
69
69
|
<ul class="tsd-signatures">
|
|
@@ -76,7 +76,7 @@ existing per-user AppService boundary.</p>
|
|
|
76
76
|
<li><span><span class="tsd-kind-parameter">name</span>: <span class="tsd-signature-type">string</span></span></li></ul></div>
|
|
77
77
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><aside class="tsd-sources">
|
|
78
78
|
<ul>
|
|
79
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
79
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/tools/native-tool-registry.service.ts#L58">server/src/tools/native-tool-registry.service.ts:58</a></li></ul></aside></div></li></ul></section>
|
|
80
80
|
<section class="tsd-panel tsd-member">
|
|
81
81
|
<h3 class="tsd-anchor-link" id="listtools"><span>list<wbr/>Tools</span><a href="#listtools" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
82
82
|
<ul class="tsd-signatures">
|
|
@@ -85,7 +85,7 @@ existing per-user AppService boundary.</p>
|
|
|
85
85
|
<div class="tsd-description">
|
|
86
86
|
<h4 class="tsd-returns-title">Returns <a href="../interfaces/NativeToolDefinition.html" class="tsd-signature-type tsd-kind-interface">NativeToolDefinition</a><span class="tsd-signature-symbol">[]</span></h4><aside class="tsd-sources">
|
|
87
87
|
<ul>
|
|
88
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
88
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/tools/native-tool-registry.service.ts#L62">server/src/tools/native-tool-registry.service.ts:62</a></li></ul></aside></div></li></ul></section>
|
|
89
89
|
<section class="tsd-panel tsd-member">
|
|
90
90
|
<h3 class="tsd-anchor-link" id="registertool"><span>register<wbr/>Tool</span><a href="#registertool" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
91
91
|
<ul class="tsd-signatures">
|
|
@@ -102,7 +102,7 @@ existing per-user AppService boundary.</p>
|
|
|
102
102
|
</div></li></ul></div>
|
|
103
103
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
104
104
|
<ul>
|
|
105
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
105
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/tools/native-tool-registry.service.ts#L22">server/src/tools/native-tool-registry.service.ts:22</a></li></ul></aside></div></li></ul></section>
|
|
106
106
|
<section class="tsd-panel tsd-member">
|
|
107
107
|
<h3 class="tsd-anchor-link" id="registertools"><span>register<wbr/>Tools</span><a href="#registertools" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
108
108
|
<ul class="tsd-signatures">
|
|
@@ -119,7 +119,7 @@ existing per-user AppService boundary.</p>
|
|
|
119
119
|
</div></li></ul></div>
|
|
120
120
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
121
121
|
<ul>
|
|
122
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
122
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/tools/native-tool-registry.service.ts#L41">server/src/tools/native-tool-registry.service.ts:41</a></li></ul></aside></div></li></ul></section>
|
|
123
123
|
<section class="tsd-panel tsd-member">
|
|
124
124
|
<h3 class="tsd-anchor-link" id="unregistertool"><span>unregister<wbr/>Tool</span><a href="#unregistertool" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
125
125
|
<ul class="tsd-signatures">
|
|
@@ -137,7 +137,7 @@ existing per-user AppService boundary.</p>
|
|
|
137
137
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>True if a tool was removed</p>
|
|
138
138
|
<aside class="tsd-sources">
|
|
139
139
|
<ul>
|
|
140
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
140
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/tools/native-tool-registry.service.ts#L50">server/src/tools/native-tool-registry.service.ts:50</a></li></ul></aside></div></li></ul></section></section></details></div>
|
|
141
141
|
<div class="col-sidebar">
|
|
142
142
|
<div class="page-menu">
|
|
143
143
|
<div class="tsd-navigation settings">
|
|
@@ -159,7 +159,7 @@ existing per-user AppService boundary.</p>
|
|
|
159
159
|
<div><a href="#gettool"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Tool</span></a><a href="#has"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>has</span></a><a href="#listtools"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>list<wbr/>Tools</span></a><a href="#registertool"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>register<wbr/>Tool</span></a><a href="#registertools"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>register<wbr/>Tools</span></a><a href="#unregistertool"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>unregister<wbr/>Tool</span></a></div></details></div></details></div>
|
|
160
160
|
<div class="site-menu">
|
|
161
161
|
<nav id="tsd-sidebar-links" class="tsd-navigation"><a href="https://github.com/your-org/briyah" class="tsd-nav-link">GitHub</a><a href="https://www.npmjs.com/package/briyah" class="tsd-nav-link">npm</a></nav>
|
|
162
|
-
<nav class="tsd-navigation"><a href="../modules.html">Briyah SDK - v2.0.
|
|
162
|
+
<nav class="tsd-navigation"><a href="../modules.html">Briyah SDK - v2.0.1</a>
|
|
163
163
|
<ul class="tsd-small-nested-navigation" id="tsd-nav-container">
|
|
164
164
|
<li>Loading...</li></ul></nav></div></div></div><footer>
|
|
165
165
|
<p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>PackInstantiationService | Briyah SDK - v2.0.
|
|
2
|
-
<div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Briyah SDK - v2.0.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>PackInstantiationService | Briyah SDK - v2.0.1</title><meta name="description" content="Documentation for Briyah SDK"/><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/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar">
|
|
2
|
+
<div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Briyah SDK - v2.0.1</a>
|
|
3
3
|
<div id="tsd-toolbar-links"><a href="https://github.com/your-org/briyah">GitHub</a><a href="https://www.npmjs.com/package/briyah">npm</a></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/>
|
|
4
4
|
<ul role="listbox" id="tsd-search-results"></ul>
|
|
5
5
|
<div id="tsd-search-status" aria-live="polite" aria-atomic="true">
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<li><a href="" aria-current="page">PackInstantiationService</a></li></ul>
|
|
12
12
|
<h1>Class PackInstantiationService</h1></div><aside class="tsd-sources">
|
|
13
13
|
<ul>
|
|
14
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
14
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/packs/pack-instantiation.service.ts#L69">server/src/packs/pack-instantiation.service.ts:69</a></li></ul></aside>
|
|
15
15
|
<section class="tsd-panel-group tsd-index-group">
|
|
16
16
|
<section class="tsd-panel tsd-index-panel">
|
|
17
17
|
<details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
<li><span><span class="tsd-kind-parameter">roomStore</span>: <span class="tsd-signature-type">RoomStoreService</span></span></li></ul></div>
|
|
44
44
|
<h4 class="tsd-returns-title">Returns <a href="" class="tsd-signature-type tsd-kind-class">PackInstantiationService</a></h4><aside class="tsd-sources">
|
|
45
45
|
<ul>
|
|
46
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
46
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/packs/pack-instantiation.service.ts#L70">server/src/packs/pack-instantiation.service.ts:70</a></li></ul></aside></div></li></ul></section></section></details>
|
|
47
47
|
<details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
48
48
|
<h2 class="tsd-anchor-link" id="methods-1">Methods<a href="#methods-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2></summary>
|
|
49
49
|
<section>
|
|
@@ -83,12 +83,12 @@ courtroom exists.</p>
|
|
|
83
83
|
<h4 class="tsd-anchor-link" id="throws-1">Throws<a href="#throws-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>If the pack is off</p>
|
|
84
84
|
</div></div><aside class="tsd-sources">
|
|
85
85
|
<ul>
|
|
86
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
86
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/packs/pack-instantiation.service.ts#L209">server/src/packs/pack-instantiation.service.ts:209</a></li></ul></aside></div></li></ul></section>
|
|
87
87
|
<section class="tsd-panel tsd-member">
|
|
88
88
|
<h3 class="tsd-anchor-link" id="instantiateroom"><span>instantiate<wbr/>Room</span><a href="#instantiateroom" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
89
89
|
<ul class="tsd-signatures">
|
|
90
90
|
<li class="">
|
|
91
|
-
<div class="tsd-signature tsd-anchor-link" id="instantiateroom-1"><span class="tsd-kind-call-signature">instantiateRoom</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">packName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">roomKey</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">models</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/InstantiateModels.html" class="tsd-signature-type tsd-kind-interface">InstantiateModels</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">name</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/InstantiateRoomResult.html" class="tsd-signature-type tsd-kind-interface">InstantiateRoomResult</a><span class="tsd-signature-symbol">></span><a href="#instantiateroom-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
91
|
+
<div class="tsd-signature tsd-anchor-link" id="instantiateroom-1"><span class="tsd-kind-call-signature">instantiateRoom</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">packName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">roomKey</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">models</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/InstantiateModels.html" class="tsd-signature-type tsd-kind-interface">InstantiateModels</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">name</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">overrides</span><span class="tsd-signature-symbol">?:</span> <a href="../types/RosterOverrides.html" class="tsd-signature-type tsd-kind-type-alias">RosterOverrides</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/InstantiateRoomResult.html" class="tsd-signature-type tsd-kind-interface">InstantiateRoomResult</a><span class="tsd-signature-symbol">></span><a href="#instantiateroom-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
92
92
|
<div class="tsd-description">
|
|
93
93
|
<div class="tsd-comment tsd-typography"><p>Builds a room from a pack's room template, with its whole cast.</p>
|
|
94
94
|
</div>
|
|
@@ -106,6 +106,11 @@ courtroom exists.</p>
|
|
|
106
106
|
</div></li>
|
|
107
107
|
<li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">name</span>: <span class="tsd-signature-type">string</span></span>
|
|
108
108
|
<div class="tsd-comment tsd-typography"><p>Overrides the template's room name</p>
|
|
109
|
+
</div></li>
|
|
110
|
+
<li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">overrides</span>: <a href="../types/RosterOverrides.html" class="tsd-signature-type tsd-kind-type-alias">RosterOverrides</a></span>
|
|
111
|
+
<div class="tsd-comment tsd-typography"><p>Per-agent changes, keyed by roster key — most usefully
|
|
112
|
+
<code>{ player: { agentNickname: 'Homer' } }</code>. Applied over the template's own
|
|
113
|
+
overrides, which are applied over the prompt folder's defaults</p>
|
|
109
114
|
</div></li></ul></div>
|
|
110
115
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/InstantiateRoomResult.html" class="tsd-signature-type tsd-kind-interface">InstantiateRoomResult</a><span class="tsd-signature-symbol">></span></h4><p>The room, its agents, and anything that did not go to plan</p>
|
|
111
116
|
|
|
@@ -114,10 +119,16 @@ courtroom exists.</p>
|
|
|
114
119
|
<h4 class="tsd-anchor-link" id="throws-2">Throws<a href="#throws-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>If the pack or the template does not exist</p>
|
|
115
120
|
</div>
|
|
116
121
|
<div class="tsd-tag-throws">
|
|
117
|
-
<h4 class="tsd-anchor-link" id="throws-3">Throws<a href="#throws-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>If the pack is off,
|
|
122
|
+
<h4 class="tsd-anchor-link" id="throws-3">Throws<a href="#throws-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>If the pack is off, the template is inconsistent, or
|
|
123
|
+
an override names a key that is not on the roster</p>
|
|
124
|
+
</div>
|
|
125
|
+
<div class="tsd-tag-example">
|
|
126
|
+
<h4 class="tsd-anchor-link" id="example">Example<a href="#example" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="typescript"><span class="hl-6">const</span><span class="hl-1"> { </span><span class="hl-7">roomId</span><span class="hl-1"> } = </span><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-4">packInstantiation</span><span class="hl-1">.</span><span class="hl-0">instantiateRoom</span><span class="hl-1">(</span><br/><span class="hl-1"> </span><span class="hl-2">'dnd5e'</span><span class="hl-1">, </span><span class="hl-2">'table'</span><span class="hl-1">,</span><br/><span class="hl-1"> { </span><span class="hl-4">primary:</span><span class="hl-1"> { </span><span class="hl-4">aiServiceName:</span><span class="hl-1"> </span><span class="hl-2">'Anthropic'</span><span class="hl-1">, </span><span class="hl-4">aiModel:</span><span class="hl-1"> </span><span class="hl-2">'claude-sonnet-5'</span><span class="hl-1"> } },</span><br/><span class="hl-1"> </span><span class="hl-2">'Tuesday Night Game'</span><span class="hl-1">,</span><br/><span class="hl-1"> { </span><span class="hl-4">player:</span><span class="hl-1"> { </span><span class="hl-4">agentName:</span><span class="hl-1"> </span><span class="hl-2">'Homer'</span><span class="hl-1">, </span><span class="hl-4">agentNickname:</span><span class="hl-1"> </span><span class="hl-2">'Homer'</span><span class="hl-1"> } },</span><br/><span class="hl-1">);</span>
|
|
127
|
+
</code><button type="button">Copy</button></pre>
|
|
128
|
+
|
|
118
129
|
</div></div><aside class="tsd-sources">
|
|
119
130
|
<ul>
|
|
120
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
131
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/1a8dc08591eb0354e3644da7a14d27b30625ced5/server/src/packs/pack-instantiation.service.ts#L101">server/src/packs/pack-instantiation.service.ts:101</a></li></ul></aside></div></li></ul></section></section></details></div>
|
|
121
132
|
<div class="col-sidebar">
|
|
122
133
|
<div class="page-menu">
|
|
123
134
|
<div class="tsd-navigation settings">
|
|
@@ -139,7 +150,7 @@ courtroom exists.</p>
|
|
|
139
150
|
<div><a href="#instantiateagent"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>instantiate<wbr/>Agent</span></a><a href="#instantiateroom"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>instantiate<wbr/>Room</span></a></div></details></div></details></div>
|
|
140
151
|
<div class="site-menu">
|
|
141
152
|
<nav id="tsd-sidebar-links" class="tsd-navigation"><a href="https://github.com/your-org/briyah" class="tsd-nav-link">GitHub</a><a href="https://www.npmjs.com/package/briyah" class="tsd-nav-link">npm</a></nav>
|
|
142
|
-
<nav class="tsd-navigation"><a href="../modules.html">Briyah SDK - v2.0.
|
|
153
|
+
<nav class="tsd-navigation"><a href="../modules.html">Briyah SDK - v2.0.1</a>
|
|
143
154
|
<ul class="tsd-small-nested-navigation" id="tsd-nav-container">
|
|
144
155
|
<li>Loading...</li></ul></nav></div></div></div><footer>
|
|
145
156
|
<p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer>
|