pika-shared 1.1.0 → 1.2.0
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/dist/types/chatbot/chatbot-types.d.mts +394 -31
- package/dist/types/chatbot/chatbot-types.d.ts +394 -31
- package/dist/types/chatbot/chatbot-types.js +30 -4
- package/dist/types/chatbot/chatbot-types.js.map +1 -1
- package/dist/types/chatbot/chatbot-types.mjs +26 -5
- package/dist/types/chatbot/chatbot-types.mjs.map +1 -1
- package/dist/util/instruction-assistance-utils.js.map +1 -1
- package/dist/util/instruction-assistance-utils.mjs.map +1 -1
- package/dist/util/server-client-utils.d.mts +17 -1
- package/dist/util/server-client-utils.d.ts +17 -1
- package/dist/util/server-client-utils.js +63 -0
- package/dist/util/server-client-utils.js.map +1 -1
- package/dist/util/server-client-utils.mjs +62 -1
- package/dist/util/server-client-utils.mjs.map +1 -1
- package/package.json +8 -1
|
@@ -165,6 +165,7 @@ var PikaUserRoles = [
|
|
|
165
165
|
];
|
|
166
166
|
var FeatureTypeArr = ["instruction", "history"];
|
|
167
167
|
var ClearConverseLambdaCacheTypes = ["agent", "tagDefinitions", "instructionAssistanceConfig", "all"];
|
|
168
|
+
var ConverseInvocationModes = ["chat-app", "direct-agent-invoke"];
|
|
168
169
|
var SESSION_SEARCH_SORT_FIELDS = ["createDate", "lastUpdate", "sessionId", "inputTokens", "outputTokens", "totalCost", "insightGoalAchievementScore"];
|
|
169
170
|
var SESSION_SEARCH_SORT_FIELDS_VALUES = [
|
|
170
171
|
{ name: "Create Date", value: "createDate" },
|
|
@@ -235,7 +236,8 @@ var FeatureIdList = [
|
|
|
235
236
|
"sessionInsights",
|
|
236
237
|
"userDataOverrides",
|
|
237
238
|
"tags",
|
|
238
|
-
"agentInstructionAssistance"
|
|
239
|
+
"agentInstructionAssistance",
|
|
240
|
+
"instructionAugmentation"
|
|
239
241
|
];
|
|
240
242
|
var EndToEndFeatureIdList = ["verifyResponse", "traces"];
|
|
241
243
|
var FEATURE_NAMES = {
|
|
@@ -250,7 +252,8 @@ var FEATURE_NAMES = {
|
|
|
250
252
|
sessionInsights: "Session Insights",
|
|
251
253
|
userDataOverrides: "User Data Override",
|
|
252
254
|
tags: "Tags",
|
|
253
|
-
agentInstructionAssistance: "Agent Instruction Assistance"
|
|
255
|
+
agentInstructionAssistance: "Agent Instruction Assistance",
|
|
256
|
+
instructionAugmentation: "Instruction Augmentation"
|
|
254
257
|
};
|
|
255
258
|
var SiteAdminCommand = [
|
|
256
259
|
"getAgent",
|
|
@@ -269,9 +272,15 @@ var SiteAdminCommand = [
|
|
|
269
272
|
"createOrUpdateTagDefinition",
|
|
270
273
|
"deleteTagDefinition",
|
|
271
274
|
"searchTagDefinitions",
|
|
272
|
-
"
|
|
275
|
+
"searchSemanticDirectives",
|
|
276
|
+
"createOrUpdateSemanticDirective",
|
|
277
|
+
"deleteSemanticDirective",
|
|
278
|
+
"getInstructionAssistanceConfigFromSsm",
|
|
279
|
+
"getAllChatApps",
|
|
280
|
+
"getAllAgents",
|
|
281
|
+
"getAllTools"
|
|
273
282
|
];
|
|
274
|
-
var ClearSvelteKitCacheTypes = ["chatAppCache", "tagDefinitionsCache", "instructionAssistanceConfigCache", "all"];
|
|
283
|
+
var ClearSvelteKitCacheTypes = ["chatAppCache", "tagDefinitionsCache", "instructionAssistanceConfigCache", "encryptionKeysCache", "all"];
|
|
275
284
|
var ContentAdminCommand = ["viewContentForUser", "stopViewingContentForUser", "getValuesForAutoComplete"];
|
|
276
285
|
var UserOverrideDataCommand = ["getInitialDialogData", "getValuesForAutoComplete", "saveUserOverrideData", "clearUserOverrideData"];
|
|
277
286
|
var Accurate = "A";
|
|
@@ -309,6 +318,18 @@ var VerifyResponseRetryableClassificationDescriptions = {
|
|
|
309
318
|
},
|
|
310
319
|
[Inaccurate]: { classification: Inaccurate, label: "Inaccurate", description: "The response is inaccurate or contains made up information" }
|
|
311
320
|
};
|
|
321
|
+
var InstructionAugmentationTypes = ["llm-semantic-directive-search"];
|
|
322
|
+
var InstructionAugmentationTypeDisplayNames = {
|
|
323
|
+
"llm-semantic-directive-search": "LLM Semantic Directive Search"
|
|
324
|
+
};
|
|
325
|
+
var InstructionAugmentationScopeTypes = ["chatapp", "agent", "tool", "entity", "agent-entity"];
|
|
326
|
+
var InstructionAugmentationScopeTypeDisplayNames = {
|
|
327
|
+
chatapp: "Chat App",
|
|
328
|
+
agent: "Agent",
|
|
329
|
+
tool: "Tool",
|
|
330
|
+
entity: "Entity",
|
|
331
|
+
"agent-entity": "Agent and Entity"
|
|
332
|
+
};
|
|
312
333
|
|
|
313
334
|
exports.Accurate = Accurate;
|
|
314
335
|
exports.AccurateWithStatedAssumptions = AccurateWithStatedAssumptions;
|
|
@@ -318,6 +339,7 @@ exports.ChatMessageFileUseCase = ChatMessageFileUseCase;
|
|
|
318
339
|
exports.ClearConverseLambdaCacheTypes = ClearConverseLambdaCacheTypes;
|
|
319
340
|
exports.ClearSvelteKitCacheTypes = ClearSvelteKitCacheTypes;
|
|
320
341
|
exports.ContentAdminCommand = ContentAdminCommand;
|
|
342
|
+
exports.ConverseInvocationModes = ConverseInvocationModes;
|
|
321
343
|
exports.EndToEndFeatureIdList = EndToEndFeatureIdList;
|
|
322
344
|
exports.FEATURE_NAMES = FEATURE_NAMES;
|
|
323
345
|
exports.FEEDBACK_INTERNAL_COMMENT_STATUS = FEEDBACK_INTERNAL_COMMENT_STATUS;
|
|
@@ -328,6 +350,10 @@ exports.FeatureIdList = FeatureIdList;
|
|
|
328
350
|
exports.FeatureTypeArr = FeatureTypeArr;
|
|
329
351
|
exports.INSIGHT_STATUS_NEEDS_INSIGHTS_ANALYSIS = INSIGHT_STATUS_NEEDS_INSIGHTS_ANALYSIS;
|
|
330
352
|
exports.Inaccurate = Inaccurate;
|
|
353
|
+
exports.InstructionAugmentationScopeTypeDisplayNames = InstructionAugmentationScopeTypeDisplayNames;
|
|
354
|
+
exports.InstructionAugmentationScopeTypes = InstructionAugmentationScopeTypes;
|
|
355
|
+
exports.InstructionAugmentationTypeDisplayNames = InstructionAugmentationTypeDisplayNames;
|
|
356
|
+
exports.InstructionAugmentationTypes = InstructionAugmentationTypes;
|
|
331
357
|
exports.MessageSource = MessageSource;
|
|
332
358
|
exports.PikaUserRoles = PikaUserRoles;
|
|
333
359
|
exports.RetryableVerifyResponseClassifications = RetryableVerifyResponseClassifications;
|