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
|
@@ -41,6 +41,8 @@ interface ChatSession<T extends RecordOrUndef = undefined> {
|
|
|
41
41
|
chatAppId: string;
|
|
42
42
|
/** Unique identifier for the user's identity */
|
|
43
43
|
identityId: string;
|
|
44
|
+
/** Mode of the invocation of the agent */
|
|
45
|
+
invocationMode: ConverseInvocationMode;
|
|
44
46
|
/** Title or name of the chat session */
|
|
45
47
|
title?: string;
|
|
46
48
|
/** ID of the most recent message in the session */
|
|
@@ -493,6 +495,8 @@ interface ChatUserLite {
|
|
|
493
495
|
*/
|
|
494
496
|
interface AuthenticatedUser<T extends RecordOrUndef = undefined, U extends RecordOrUndef = undefined> extends ChatUser<U> {
|
|
495
497
|
authData?: T;
|
|
498
|
+
/** ISO 8601 timestamp of when ChatUser data was last refreshed from DynamoDB (the pikaframework sets this) */
|
|
499
|
+
lastChatUserRefresh?: string;
|
|
496
500
|
}
|
|
497
501
|
/**
|
|
498
502
|
* This is a simplified version of AuthenticatedUser that is used for auth headers.
|
|
@@ -584,8 +588,9 @@ interface ChatAppOverridableFeatures {
|
|
|
584
588
|
showUserRegionInLeftNav: boolean;
|
|
585
589
|
showChatHistoryInStandaloneMode: boolean;
|
|
586
590
|
};
|
|
587
|
-
tags
|
|
591
|
+
tags?: TagsChatAppOverridableFeature;
|
|
588
592
|
agentInstructionAssistance: AgentInstructionChatAppOverridableFeature;
|
|
593
|
+
instructionAugmentation: InstructionAugmentationFeature;
|
|
589
594
|
}
|
|
590
595
|
interface AgentInstructionChatAppOverridableFeature {
|
|
591
596
|
enabled: boolean;
|
|
@@ -674,9 +679,6 @@ interface BaseRequestData {
|
|
|
674
679
|
sessionId?: string;
|
|
675
680
|
chatAppId?: string;
|
|
676
681
|
agentId?: string;
|
|
677
|
-
agentAliasId?: string;
|
|
678
|
-
companyId?: string;
|
|
679
|
-
companyType?: CompanyType;
|
|
680
682
|
timezone?: string;
|
|
681
683
|
}
|
|
682
684
|
interface ConverseRequestWithCommand {
|
|
@@ -699,7 +701,29 @@ interface ConverseRequest extends BaseRequestData {
|
|
|
699
701
|
* It allows us to dynamically change the agent used for the conversation.
|
|
700
702
|
*/
|
|
701
703
|
agentId: string;
|
|
704
|
+
/**
|
|
705
|
+
* This is the attribute name in the user's custom data that is used to match against the entity access control lists.
|
|
706
|
+
* This is only used if the entity feature is enabled and the user has an entity associated with them.
|
|
707
|
+
*
|
|
708
|
+
* @see pika-config.ts#siteFeatures.entity.attributeName
|
|
709
|
+
*/
|
|
710
|
+
entityAttributeNameInUserCustomData?: string;
|
|
711
|
+
/**
|
|
712
|
+
* If provided, this will be used to determine the invocation mode of the converse request.
|
|
713
|
+
*
|
|
714
|
+
* If 'chat-app', then the converse request is a chat app request.
|
|
715
|
+
* If 'direct-agent-invoke', then the converse request is a direct agent invoke request and is not
|
|
716
|
+
* in the context of a chat app. Since we are adding mode after the fact, if mode is provided
|
|
717
|
+
* and it doesn't match what we expect, we will throw an error (chat-app requires that chatAppId is provided
|
|
718
|
+
* and direct-agent-invoke requires that chatAppId is not provided).
|
|
719
|
+
*
|
|
720
|
+
* If invocationMode is not provided, uses the presence or absence of chatAppId to determine the mode (if chatAppId
|
|
721
|
+
* is provided, then it's a chat app request, otherwise it's a direct agent invoke request).
|
|
722
|
+
*/
|
|
723
|
+
invocationMode?: ConverseInvocationMode;
|
|
702
724
|
}
|
|
725
|
+
declare const ConverseInvocationModes: readonly ["chat-app", "direct-agent-invoke"];
|
|
726
|
+
type ConverseInvocationMode = (typeof ConverseInvocationModes)[number];
|
|
703
727
|
interface ChatTitleUpdateRequest extends BaseRequestData {
|
|
704
728
|
/** If provided, this will be used as the title for the session */
|
|
705
729
|
title?: string;
|
|
@@ -1091,7 +1115,7 @@ type AgentDefinitionForIdempotentCreateOrUpdate = Omit<AgentDefinition, 'toolIds
|
|
|
1091
1115
|
/**
|
|
1092
1116
|
* Execution type for tool definitions. Right now, only lambda is supported.
|
|
1093
1117
|
*/
|
|
1094
|
-
type ExecutionType = 'lambda' | 'http' | 'inline';
|
|
1118
|
+
type ExecutionType = 'lambda' | 'http' | 'inline' | 'mcp';
|
|
1095
1119
|
/**
|
|
1096
1120
|
* Lifecycle status for tool definitions
|
|
1097
1121
|
*/
|
|
@@ -1107,16 +1131,12 @@ interface ToolLifecycle {
|
|
|
1107
1131
|
/** Optional migration path to newer tool version */
|
|
1108
1132
|
migrationPath?: string;
|
|
1109
1133
|
}
|
|
1110
|
-
/**
|
|
1111
|
-
* JSON Schema definition
|
|
1112
|
-
*/
|
|
1113
|
-
/**
|
|
1114
|
-
* Bedrock function schema definition
|
|
1115
|
-
*/
|
|
1116
1134
|
/**
|
|
1117
1135
|
* Tool definition representing a callable function/service
|
|
1118
1136
|
*/
|
|
1119
|
-
interface
|
|
1137
|
+
interface ToolDefinitionBase {
|
|
1138
|
+
/** Type of execution (lambda, http, inline) */
|
|
1139
|
+
executionType: ExecutionType;
|
|
1120
1140
|
/** Unique tool name/version (e.g., 'weather-basic@1') */
|
|
1121
1141
|
toolId: string;
|
|
1122
1142
|
/** Friendly display name */
|
|
@@ -1125,15 +1145,8 @@ interface ToolDefinition {
|
|
|
1125
1145
|
name: string;
|
|
1126
1146
|
/** Description for LLM consumption. MUST BE LESS THAN 500 CHARACTERS */
|
|
1127
1147
|
description: string;
|
|
1128
|
-
/** Type of execution (lambda, http, inline) */
|
|
1129
|
-
executionType: ExecutionType;
|
|
1130
1148
|
/** Timeout in seconds (default: 30) */
|
|
1131
1149
|
executionTimeout?: number;
|
|
1132
|
-
/**
|
|
1133
|
-
* If executionType is 'lambda', this is the required ARN of the Lambda function.
|
|
1134
|
-
* Note that the Lambda function must have an 'agent-tool' tag set to 'true'.
|
|
1135
|
-
*/
|
|
1136
|
-
lambdaArn?: string;
|
|
1137
1150
|
/**
|
|
1138
1151
|
* List of agent frameworks that this tool supports
|
|
1139
1152
|
*
|
|
@@ -1161,18 +1174,45 @@ interface ToolDefinition {
|
|
|
1161
1174
|
/** If true, this is a test tool that will get deleted after 1 day. This is used for testing. */
|
|
1162
1175
|
test?: boolean;
|
|
1163
1176
|
}
|
|
1164
|
-
|
|
1165
|
-
|
|
1177
|
+
interface LambdaToolDefinition extends ToolDefinitionBase {
|
|
1178
|
+
executionType: 'lambda';
|
|
1179
|
+
/**
|
|
1180
|
+
* If executionType is 'lambda', this is the required ARN of the Lambda function.
|
|
1181
|
+
* Note that the Lambda function must have an 'agent-tool' tag set to 'true'.
|
|
1182
|
+
*/
|
|
1183
|
+
lambdaArn: string;
|
|
1184
|
+
}
|
|
1185
|
+
interface McpToolDefinition extends ToolDefinitionBase {
|
|
1186
|
+
executionType: 'mcp';
|
|
1187
|
+
url: string;
|
|
1188
|
+
auth?: OAuth;
|
|
1189
|
+
}
|
|
1190
|
+
type ToolDefinition = LambdaToolDefinition | McpToolDefinition;
|
|
1191
|
+
type UpdateableToolDefinitionFields = Extract<keyof ToolDefinitionBase, 'name' | 'displayName' | 'description' | 'executionType' | 'executionTimeout' | 'supportedAgentFrameworks' | 'functionSchema' | 'tags' | 'lifecycle' | 'accessRules'> | 'lambdaArn' | 'url' | 'auth';
|
|
1192
|
+
type ToolDefinitionForCreate = (Omit<LambdaToolDefinition, 'version' | 'createdAt' | 'updatedAt' | 'lastModifiedBy' | 'createdBy'> & {
|
|
1166
1193
|
toolId?: ToolDefinition['toolId'];
|
|
1167
|
-
}
|
|
1194
|
+
}) | (Omit<McpToolDefinition, 'version' | 'createdAt' | 'updatedAt' | 'lastModifiedBy' | 'createdBy'> & {
|
|
1195
|
+
toolId?: ToolDefinition['toolId'];
|
|
1196
|
+
});
|
|
1168
1197
|
type ToolDefinitionForIdempotentCreateOrUpdate = Omit<ToolDefinition, 'version' | 'createdAt' | 'updatedAt' | 'lastModifiedBy' | 'createdBy'> & {
|
|
1169
1198
|
lambdaArn: string;
|
|
1170
1199
|
functionSchema: FunctionDefinition[];
|
|
1171
1200
|
supportedAgentFrameworks: ['bedrock'];
|
|
1172
1201
|
};
|
|
1173
|
-
|
|
1202
|
+
interface OAuth {
|
|
1203
|
+
clientId: string;
|
|
1204
|
+
clientSecret: string;
|
|
1205
|
+
tokenUrl: string;
|
|
1206
|
+
token?: {
|
|
1207
|
+
accessToken: string;
|
|
1208
|
+
expires: number;
|
|
1209
|
+
};
|
|
1210
|
+
}
|
|
1211
|
+
type ToolDefinitionForUpdate = (Partial<Omit<LambdaToolDefinition, 'version' | 'createdAt' | 'createdBy' | 'updatedAt' | 'lastModifiedBy'>> & {
|
|
1174
1212
|
toolId: string;
|
|
1175
|
-
}
|
|
1213
|
+
}) | (Partial<Omit<McpToolDefinition, 'version' | 'createdAt' | 'createdBy' | 'updatedAt' | 'lastModifiedBy'>> & {
|
|
1214
|
+
toolId: string;
|
|
1215
|
+
});
|
|
1176
1216
|
type AgentFramework = 'bedrock';
|
|
1177
1217
|
interface CreateAgentRequest {
|
|
1178
1218
|
agent: AgentDefinitionForCreate;
|
|
@@ -1385,7 +1425,7 @@ interface ChatAppDataRequest {
|
|
|
1385
1425
|
/**
|
|
1386
1426
|
* These are the features that are available to be overridden by the chat app.
|
|
1387
1427
|
*/
|
|
1388
|
-
type ChatAppFeature = FileUploadFeatureForChatApp | SuggestionsFeatureForChatApp | PromptInputFieldLabelFeatureForChatApp | UiCustomizationFeatureForChatApp | VerifyResponseFeatureForChatApp | TracesFeatureForChatApp | ChatDisclaimerNoticeFeatureForChatApp | LogoutFeatureForChatApp | SessionInsightsFeatureForChatApp | UserDataOverrideFeatureForChatApp | TagsFeatureForChatApp | AgentInstructionAssistanceFeatureForChatApp;
|
|
1428
|
+
type ChatAppFeature = FileUploadFeatureForChatApp | SuggestionsFeatureForChatApp | PromptInputFieldLabelFeatureForChatApp | UiCustomizationFeatureForChatApp | VerifyResponseFeatureForChatApp | TracesFeatureForChatApp | ChatDisclaimerNoticeFeatureForChatApp | LogoutFeatureForChatApp | SessionInsightsFeatureForChatApp | UserDataOverrideFeatureForChatApp | TagsFeatureForChatApp | AgentInstructionAssistanceFeatureForChatApp | InstructionAugmentationFeatureForChatApp;
|
|
1389
1429
|
interface Feature {
|
|
1390
1430
|
/**
|
|
1391
1431
|
* Must be unique, only alphanumeric and - _ allowed, may not start with a number
|
|
@@ -1396,7 +1436,7 @@ interface Feature {
|
|
|
1396
1436
|
/** Whether the feature is on or off for the chat app in question. Most features are off by default, see the specific feature for details. */
|
|
1397
1437
|
enabled: boolean;
|
|
1398
1438
|
}
|
|
1399
|
-
declare const FeatureIdList: readonly ["fileUpload", "promptInputFieldLabel", "suggestions", "uiCustomization", "verifyResponse", "traces", "chatDisclaimerNotice", "logout", "sessionInsights", "userDataOverrides", "tags", "agentInstructionAssistance"];
|
|
1439
|
+
declare const FeatureIdList: readonly ["fileUpload", "promptInputFieldLabel", "suggestions", "uiCustomization", "verifyResponse", "traces", "chatDisclaimerNotice", "logout", "sessionInsights", "userDataOverrides", "tags", "agentInstructionAssistance", "instructionAugmentation"];
|
|
1400
1440
|
type FeatureIdType = (typeof FeatureIdList)[number];
|
|
1401
1441
|
declare const EndToEndFeatureIdList: readonly ["verifyResponse", "traces"];
|
|
1402
1442
|
type EndToEndFeatureIdType = (typeof EndToEndFeatureIdList)[number];
|
|
@@ -1600,6 +1640,9 @@ interface PromptInputFieldLabelFeatureForChatApp extends PromptInputFieldLabelFe
|
|
|
1600
1640
|
interface AgentInstructionAssistanceFeatureForChatApp extends Feature, AgentInstructionAssistanceFeature {
|
|
1601
1641
|
featureId: 'agentInstructionAssistance';
|
|
1602
1642
|
}
|
|
1643
|
+
interface InstructionAugmentationFeatureForChatApp extends InstructionAugmentationFeature, Feature {
|
|
1644
|
+
featureId: 'instructionAugmentation';
|
|
1645
|
+
}
|
|
1603
1646
|
/**
|
|
1604
1647
|
* The prompt instruction assistance feature is used to add a markdown section to the prompt that instructs the agent on how to format its response.
|
|
1605
1648
|
*
|
|
@@ -1736,8 +1779,8 @@ interface TextMessageSegment extends MessageSegmentBase {
|
|
|
1736
1779
|
segmentType: 'text';
|
|
1737
1780
|
}
|
|
1738
1781
|
type MessageSegment = TagMessageSegment | TextMessageSegment;
|
|
1739
|
-
type SiteAdminRequest = GetAgentRequest | GetInitialDataRequest | RefreshChatAppRequest | CreateOrUpdateChatAppOverrideRequest | DeleteChatAppOverrideRequest | GetValuesForEntityAutoCompleteRequest | GetValuesForUserAutoCompleteRequest | ClearConverseLambdaCacheRequest | ClearSvelteKitCachesRequest | AddChatSessionFeedbackAdminRequest | UpdateChatSessionFeedbackAdminRequest | SessionSearchAdminRequest | GetChatMessagesAsAdminRequest | CreateOrUpdateTagDefinitionAdminRequest | DeleteTagDefinitionAdminRequest | SearchTagDefinitionsAdminRequest | GetInstructionAssistanceConfigFromSsmRequest;
|
|
1740
|
-
declare const SiteAdminCommand: readonly ["getAgent", "getInitialData", "refreshChatApp", "createOrUpdateChatAppOverride", "deleteChatAppOverride", "getValuesForEntityAutoComplete", "getValuesForUserAutoComplete", "clearConverseLambdaCache", "clearSvelteKitCaches", "addChatSessionFeedback", "updateChatSessionFeedback", "sessionSearch", "getChatMessagesAsAdmin", "createOrUpdateTagDefinition", "deleteTagDefinition", "searchTagDefinitions", "getInstructionAssistanceConfigFromSsm"];
|
|
1782
|
+
type SiteAdminRequest = GetAgentRequest | GetInitialDataRequest | RefreshChatAppRequest | CreateOrUpdateChatAppOverrideRequest | DeleteChatAppOverrideRequest | GetValuesForEntityAutoCompleteRequest | GetValuesForUserAutoCompleteRequest | ClearConverseLambdaCacheRequest | ClearSvelteKitCachesRequest | AddChatSessionFeedbackAdminRequest | UpdateChatSessionFeedbackAdminRequest | SessionSearchAdminRequest | GetChatMessagesAsAdminRequest | CreateOrUpdateTagDefinitionAdminRequest | DeleteTagDefinitionAdminRequest | SearchTagDefinitionsAdminRequest | SearchSemanticDirectivesAdminRequest | SemanticDirectiveCreateOrUpdateAdminRequest | SemanticDirectiveDeleteAdminRequest | GetInstructionAssistanceConfigFromSsmRequest | GetAllChatAppsAdminRequest | GetAllAgentsAdminRequest | GetAllToolsAdminRequest;
|
|
1783
|
+
declare const SiteAdminCommand: readonly ["getAgent", "getInitialData", "refreshChatApp", "createOrUpdateChatAppOverride", "deleteChatAppOverride", "getValuesForEntityAutoComplete", "getValuesForUserAutoComplete", "clearConverseLambdaCache", "clearSvelteKitCaches", "addChatSessionFeedback", "updateChatSessionFeedback", "sessionSearch", "getChatMessagesAsAdmin", "createOrUpdateTagDefinition", "deleteTagDefinition", "searchTagDefinitions", "searchSemanticDirectives", "createOrUpdateSemanticDirective", "deleteSemanticDirective", "getInstructionAssistanceConfigFromSsm", "getAllChatApps", "getAllAgents", "getAllTools"];
|
|
1741
1784
|
type SiteAdminCommand = (typeof SiteAdminCommand)[number];
|
|
1742
1785
|
interface SiteAdminCommandRequestBase {
|
|
1743
1786
|
command: SiteAdminCommand;
|
|
@@ -1760,6 +1803,35 @@ interface SearchTagDefinitionsAdminRequest extends SiteAdminCommandRequestBase {
|
|
|
1760
1803
|
command: 'searchTagDefinitions';
|
|
1761
1804
|
request: TagDefinitionSearchRequest;
|
|
1762
1805
|
}
|
|
1806
|
+
interface SearchSemanticDirectivesAdminRequest extends SiteAdminCommandRequestBase {
|
|
1807
|
+
command: 'searchSemanticDirectives';
|
|
1808
|
+
request: SearchSemanticDirectivesRequest;
|
|
1809
|
+
}
|
|
1810
|
+
interface SemanticDirectiveCreateOrUpdateAdminRequest extends SiteAdminCommandRequestBase {
|
|
1811
|
+
command: 'createOrUpdateSemanticDirective';
|
|
1812
|
+
request: SemanticDirectiveCreateOrUpdateRequest;
|
|
1813
|
+
}
|
|
1814
|
+
interface SemanticDirectiveDeleteAdminRequest extends SiteAdminCommandRequestBase {
|
|
1815
|
+
command: 'deleteSemanticDirective';
|
|
1816
|
+
request: SemanticDirectiveDeleteRequest;
|
|
1817
|
+
}
|
|
1818
|
+
interface GetAllChatAppsAdminRequest extends SiteAdminCommandRequestBase {
|
|
1819
|
+
command: 'getAllChatApps';
|
|
1820
|
+
}
|
|
1821
|
+
interface GetAllAgentsAdminRequest extends SiteAdminCommandRequestBase {
|
|
1822
|
+
command: 'getAllAgents';
|
|
1823
|
+
}
|
|
1824
|
+
interface GetAllToolsAdminRequest extends SiteAdminCommandRequestBase {
|
|
1825
|
+
command: 'getAllTools';
|
|
1826
|
+
}
|
|
1827
|
+
/**
|
|
1828
|
+
* Request format for semantic directive data passed to custom CloudFormation resource
|
|
1829
|
+
*/
|
|
1830
|
+
type SemanticDirectiveDataRequest = {
|
|
1831
|
+
userId: string;
|
|
1832
|
+
groupId: string;
|
|
1833
|
+
semanticDirectives: SemanticDirectiveForCreateOrUpdate[];
|
|
1834
|
+
};
|
|
1763
1835
|
interface GetValuesForEntityAutoCompleteRequest extends SiteAdminCommandRequestBase {
|
|
1764
1836
|
command: 'getValuesForEntityAutoComplete';
|
|
1765
1837
|
valueProvidedByUser: string;
|
|
@@ -1803,7 +1875,7 @@ interface ClearSvelteKitCachesRequest extends SiteAdminCommandRequestBase {
|
|
|
1803
1875
|
cacheType: ClearSvelteKitCacheType;
|
|
1804
1876
|
chatAppId?: string;
|
|
1805
1877
|
}
|
|
1806
|
-
declare const ClearSvelteKitCacheTypes: readonly ["chatAppCache", "tagDefinitionsCache", "instructionAssistanceConfigCache", "all"];
|
|
1878
|
+
declare const ClearSvelteKitCacheTypes: readonly ["chatAppCache", "tagDefinitionsCache", "instructionAssistanceConfigCache", "encryptionKeysCache", "all"];
|
|
1807
1879
|
type ClearSvelteKitCacheType = (typeof ClearSvelteKitCacheTypes)[number];
|
|
1808
1880
|
interface GetInstructionAssistanceConfigFromSsmRequest extends SiteAdminCommandRequestBase {
|
|
1809
1881
|
command: 'getInstructionAssistanceConfigFromSsm';
|
|
@@ -1811,7 +1883,16 @@ interface GetInstructionAssistanceConfigFromSsmRequest extends SiteAdminCommandR
|
|
|
1811
1883
|
interface GetInstructionAssistanceConfigFromSsmResponse extends SiteAdminCommandResponseBase {
|
|
1812
1884
|
config: InstructionAssistanceConfig;
|
|
1813
1885
|
}
|
|
1814
|
-
|
|
1886
|
+
interface GetAllChatAppsAdminResponse extends SiteAdminCommandResponseBase {
|
|
1887
|
+
chatApps: ChatApp[];
|
|
1888
|
+
}
|
|
1889
|
+
interface GetAllAgentsAdminResponse extends SiteAdminCommandResponseBase {
|
|
1890
|
+
agents: AgentDefinition[];
|
|
1891
|
+
}
|
|
1892
|
+
interface GetAllToolsAdminResponse extends SiteAdminCommandResponseBase {
|
|
1893
|
+
tools: ToolDefinition[];
|
|
1894
|
+
}
|
|
1895
|
+
type SiteAdminResponse = GetAgentResponse | GetInitialDataResponse | RefreshChatAppResponse | CreateOrUpdateChatAppOverrideResponse | DeleteChatAppOverrideResponse | GetValuesForEntityAutoCompleteResponse | GetValuesForUserAutoCompleteResponse | ClearConverseLambdaCacheResponse | ClearSvelteKitCachesResponse | AddChatSessionFeedbackResponse | UpdateChatSessionFeedbackResponse | SessionSearchResponse | GetChatMessagesAsAdminResponse | GetInstructionAssistanceConfigFromSsmResponse | GetAllChatAppsAdminResponse | GetAllAgentsAdminResponse | GetAllToolsAdminResponse;
|
|
1815
1896
|
interface SiteAdminCommandResponseBase {
|
|
1816
1897
|
success: boolean;
|
|
1817
1898
|
error?: string;
|
|
@@ -2156,6 +2237,288 @@ interface SiteFeatures {
|
|
|
2156
2237
|
tags?: TagsSiteFeature;
|
|
2157
2238
|
/** Configure whether the agent instruction assistance feature is enabled. */
|
|
2158
2239
|
agentInstructionAssistance?: AgentInstructionAssistanceFeature;
|
|
2240
|
+
/** Configure whether the instruction augmentation feature is enabled. */
|
|
2241
|
+
instructionAugmentation?: InstructionAugmentationFeature;
|
|
2242
|
+
}
|
|
2243
|
+
/**
|
|
2244
|
+
* Sometimes you need to augment the prompt you will give to the LLM with additional information.
|
|
2245
|
+
* Currently, only one type of augmentation is supported: llm semantic search. This uses the scope of the
|
|
2246
|
+
* agent invocation (chat app ID, agent ID, entity ID) to search for semantic directives in a database
|
|
2247
|
+
* of canned semantic directives that match the scope of the agent invocation. Then, those semantic
|
|
2248
|
+
* directives are added to the prompt to be used by the LLM. The LLM then takes the end user's message
|
|
2249
|
+
* and the semantic directives and uses them to determine if any of the semantic directives should be
|
|
2250
|
+
* included in the prompt. If they should be included, then the semantic directive instruction is added to the prompt.
|
|
2251
|
+
*
|
|
2252
|
+
* Note that by default the feature is turned off. To turn it on, you must set the `enabled` property to `true` or
|
|
2253
|
+
* it will not be turned on. Then, all agents will have the type of augmentation chosen.
|
|
2254
|
+
*
|
|
2255
|
+
* Setting this as a site wide feature sets the default instruction augmentation type used, if turned on. Individual chat apps
|
|
2256
|
+
* may override this behavior, turning off the feature or changing the augmentation type.
|
|
2257
|
+
*
|
|
2258
|
+
* Note that today we only support one type of augmentation: llm semantic directive search. This is a light-weight
|
|
2259
|
+
* approach with a good balance of engineer velocity (don't have to ingest and index embeddings into a knowledge base),
|
|
2260
|
+
* performance and cost.
|
|
2261
|
+
*/
|
|
2262
|
+
interface InstructionAugmentationFeature {
|
|
2263
|
+
enabled: boolean;
|
|
2264
|
+
type?: InstructionAugmentationType;
|
|
2265
|
+
}
|
|
2266
|
+
declare const InstructionAugmentationTypes: readonly ["llm-semantic-directive-search"];
|
|
2267
|
+
type InstructionAugmentationType = (typeof InstructionAugmentationTypes)[number];
|
|
2268
|
+
declare const InstructionAugmentationTypeDisplayNames: {
|
|
2269
|
+
readonly 'llm-semantic-directive-search': "LLM Semantic Directive Search";
|
|
2270
|
+
};
|
|
2271
|
+
type InstructionAugmentationTypeDisplayName = (typeof InstructionAugmentationTypeDisplayNames)[keyof typeof InstructionAugmentationTypeDisplayNames];
|
|
2272
|
+
declare const InstructionAugmentationScopeTypes: readonly ["chatapp", "agent", "tool", "entity", "agent-entity"];
|
|
2273
|
+
type InstructionAugmentationScopeType = (typeof InstructionAugmentationScopeTypes)[number];
|
|
2274
|
+
declare const InstructionAugmentationScopeTypeDisplayNames: {
|
|
2275
|
+
readonly chatapp: "Chat App";
|
|
2276
|
+
readonly agent: "Agent";
|
|
2277
|
+
readonly tool: "Tool";
|
|
2278
|
+
readonly entity: "Entity";
|
|
2279
|
+
readonly 'agent-entity': "Agent and Entity";
|
|
2280
|
+
};
|
|
2281
|
+
type InstructionAugmentationScopeTypeDisplayName = (typeof InstructionAugmentationScopeTypeDisplayNames)[keyof typeof InstructionAugmentationScopeTypeDisplayNames];
|
|
2282
|
+
/**
|
|
2283
|
+
* This is used to take the actual chatapp, agent, tools, and entity values used in a given agent invocation and use them
|
|
2284
|
+
* to go search for the matching semantic directives in the database.
|
|
2285
|
+
*/
|
|
2286
|
+
type InvocationScopes = Partial<Record<InstructionAugmentationScopeType, (string | number | Record<string, string | number>)[] | undefined>>;
|
|
2287
|
+
/**
|
|
2288
|
+
* A semantic directive is a special case or additional instruction paragraph that you might want the LLM to have included
|
|
2289
|
+
* in its context when responding to a user's question but that doesn't belong in the main prompt. So, the LLM will
|
|
2290
|
+
* be given the semantic directives in the context of the user's question and will decide if any of them should be
|
|
2291
|
+
* included in the prompt. If they should be included, then the semantic directive instruction is added to the prompt.
|
|
2292
|
+
*
|
|
2293
|
+
* One of the main use cases for this is when you have a tool with certain inputs and most of the time the LLM can
|
|
2294
|
+
* craft the correct inputs to your tool based on the question from an end user. But, occasionally, you might wish to give
|
|
2295
|
+
* the LLM special instructions on certain details that are specific to a certain situation.
|
|
2296
|
+
*
|
|
2297
|
+
* Semantic directives are stored in a database and are associated with a scope. The scope is used to narrow down which
|
|
2298
|
+
* directives we will give to the light-weight LLM to consider for inclusion in your prompt. We first search the
|
|
2299
|
+
* database based on chat app, agent, tool and entity to get the set of directives that match the scope and then have the
|
|
2300
|
+
* LLM tell us if we should include them in the prompt.
|
|
2301
|
+
*
|
|
2302
|
+
* IMPORTANT: when you see us refer to 'entity' in a scope, it means that the entity is the entity that is associated with the user,
|
|
2303
|
+
* assuming you have turned on the entity feature. The value of the entity is entityFeature.attributeName.
|
|
2304
|
+
*
|
|
2305
|
+
* In your pika-config.ts file, you can turn on the entity feature by setting the entity feature to true.
|
|
2306
|
+
*/
|
|
2307
|
+
interface SemanticDirective {
|
|
2308
|
+
/**
|
|
2309
|
+
* You don't set this value directly. Instead, you set the scopeType and scopeValue from which we will construct the scope.
|
|
2310
|
+
*
|
|
2311
|
+
* Remember that we might have a database full of these semantic directives. The scope then narrows down which
|
|
2312
|
+
* directives we will give to the light-weight LLM to consider for inclusion in your prompt. We first search the
|
|
2313
|
+
* database based on chat app, agent, tool and entity to get the set of directives that match the scope and then have the
|
|
2314
|
+
* LLM tell us if we should include them in the prompt.
|
|
2315
|
+
*
|
|
2316
|
+
* We support the following scopes at present:
|
|
2317
|
+
* - chatapp: The ID of the chat app this semantic directive is associated with.
|
|
2318
|
+
* - agent: The ID of the agent this semantic directive is associated with.
|
|
2319
|
+
* - tool: the ID of the tool this semantic directive is associated with.
|
|
2320
|
+
* - entity: The ID of the entity this semantic directive is associated with. Of course, if your pika instance
|
|
2321
|
+
* doesn't turn on the uses of entities, then this scope will not be used.
|
|
2322
|
+
*
|
|
2323
|
+
* We support only the following compound scopes at present:
|
|
2324
|
+
* - agent#{agent-id}#entity#{entity-id}
|
|
2325
|
+
*
|
|
2326
|
+
* Examples:
|
|
2327
|
+
*
|
|
2328
|
+
* - `chatapp#weather-chat-app`
|
|
2329
|
+
* - `agent#weather-agent`
|
|
2330
|
+
* - `tool#weather-tool`
|
|
2331
|
+
* - `entity#account-123`
|
|
2332
|
+
* - `agent#weather-agent#entity#account-123` // matches only for queries by account-123 to the weather agent
|
|
2333
|
+
*/
|
|
2334
|
+
scope: string;
|
|
2335
|
+
/**
|
|
2336
|
+
* The type of scope this semantic directive is associated with. This tells us what
|
|
2337
|
+
* the value in `scopeValue` is.
|
|
2338
|
+
*/
|
|
2339
|
+
scopeType: InstructionAugmentationScopeType;
|
|
2340
|
+
/**
|
|
2341
|
+
* The value of the scope this semantic directive is associated with. This is a string or an object
|
|
2342
|
+
* depending on the value of `scopeType`.
|
|
2343
|
+
*
|
|
2344
|
+
* If `scopeType` is `agent` then this will be the agent ID.
|
|
2345
|
+
* If `scopeType` is `tool` then this will be the tool ID.
|
|
2346
|
+
* If `scopeType` is `entity` then this will be the entity ID (entityFeature.attributeName from user.customData).
|
|
2347
|
+
* If `scopeType` is `agent-entity` then this will be {agent: string, entity: string}.
|
|
2348
|
+
*/
|
|
2349
|
+
scopeValue: string | number | Record<string, string | number>;
|
|
2350
|
+
/**
|
|
2351
|
+
* This plus scope must be unique across all semantic directives.
|
|
2352
|
+
*
|
|
2353
|
+
* Just a human-readable ID for the semantic directive. Consider it a variable name: may use dashes and underscores
|
|
2354
|
+
* and should start with a letter (no spaces or special characters). E.g. "account-details", "customer-support", "order-status", etc.
|
|
2355
|
+
* Used for db queries and to help engineers identify the semantic directive easily in a UI or DB.
|
|
2356
|
+
*/
|
|
2357
|
+
id: string;
|
|
2358
|
+
/**
|
|
2359
|
+
* Used internally to group semantic directives created by a custom cloudformation resource. You shouldn't use this.
|
|
2360
|
+
* For example, a specific agent in a given stack may include CDK to define its semantic directives. Pika needs to
|
|
2361
|
+
* know the complete set of semantic directives that exist for that group so that the agent author can have the
|
|
2362
|
+
* freedom to modify semantic directive scope values. This groupId then is how the pika platform will be able
|
|
2363
|
+
* to query for all the semantic directives created as a "group" by the agent author and know which semantic directives
|
|
2364
|
+
* should be deleted because they are no longer present in the CDK stack.
|
|
2365
|
+
*
|
|
2366
|
+
* Don't set this value directly. Instead, let the custom cloudformation resource set it for you using the
|
|
2367
|
+
* `event.StackName` of the stack that created the semantic directive.
|
|
2368
|
+
*/
|
|
2369
|
+
groupId?: string;
|
|
2370
|
+
/**
|
|
2371
|
+
* This is what the light-weight LLM will use to decide if the question asked by the end user means that
|
|
2372
|
+
* this semantic directive should be included in the prompt to ensure the final LLM gives a correct response.
|
|
2373
|
+
*/
|
|
2374
|
+
description: string;
|
|
2375
|
+
/**
|
|
2376
|
+
* If the light-weight LLM determines that this semantic directive should be included in the prompt, then these
|
|
2377
|
+
* instructions will be included in the final prompt to the final LLM to guide its response.
|
|
2378
|
+
*/
|
|
2379
|
+
instructions: string;
|
|
2380
|
+
/** If true, the semantic directive will not be used to augment the prompt. */
|
|
2381
|
+
disabled?: boolean;
|
|
2382
|
+
/** ISO 8601 formatted timestamp of when the semantic directive was created */
|
|
2383
|
+
createDate: string;
|
|
2384
|
+
/** User who created the semantic directive */
|
|
2385
|
+
createdBy: string;
|
|
2386
|
+
/** User who last updated the semantic directive */
|
|
2387
|
+
lastUpdatedBy: string;
|
|
2388
|
+
/** ISO 8601 formatted timestamp of the last semantic directive update */
|
|
2389
|
+
lastUpdate: string;
|
|
2390
|
+
}
|
|
2391
|
+
interface SemanticDirectiveForCreateOrUpdate extends Omit<SemanticDirective, 'scope' | 'createDate' | 'lastUpdate'> {
|
|
2392
|
+
createdBy: string;
|
|
2393
|
+
lastUpdatedBy: string;
|
|
2394
|
+
}
|
|
2395
|
+
interface SemanticDirectiveCreateOrUpdateRequest {
|
|
2396
|
+
semanticDirective: SemanticDirectiveForCreateOrUpdate;
|
|
2397
|
+
/**
|
|
2398
|
+
* If you are creating one of these objects through the CloudFormation custom resource, then you should set this
|
|
2399
|
+
* to be something that is tied to the stack that did the creation/update and we ask that you prepend it with 'cloudformation/'
|
|
2400
|
+
* so we understand it was created/updated by cloudformation as in 'cloudformation/my-stack-name'.
|
|
2401
|
+
*/
|
|
2402
|
+
userId: string;
|
|
2403
|
+
}
|
|
2404
|
+
interface SemanticDirectiveCreateOrUpdateResponse {
|
|
2405
|
+
success: boolean;
|
|
2406
|
+
semanticDirective: SemanticDirective;
|
|
2407
|
+
}
|
|
2408
|
+
interface SemanticDirectiveScope {
|
|
2409
|
+
scopeType: InstructionAugmentationScopeType;
|
|
2410
|
+
scopeValue: string | number | Record<string, string | number>;
|
|
2411
|
+
}
|
|
2412
|
+
/**
|
|
2413
|
+
* Search request for semantic directives. Supports multiple search patterns based on our DynamoDB table design:
|
|
2414
|
+
* - If findOne is provided, then we will return the first directive that matches the scopeType, scopeValue and id.
|
|
2415
|
+
* - Query by specific scopes (main table access pattern)
|
|
2416
|
+
* - Query by creator and date range (GSI1: createdBy + createDate)
|
|
2417
|
+
* - Query by directive ID(s) across scopes (GSI2: id + scope)
|
|
2418
|
+
* - Date range filtering (created or updated)
|
|
2419
|
+
*
|
|
2420
|
+
* If no search criteria provided, returns all directives with pagination.
|
|
2421
|
+
*/
|
|
2422
|
+
interface SearchSemanticDirectivesRequest {
|
|
2423
|
+
findOne?: {
|
|
2424
|
+
scopeType: InstructionAugmentationScopeType;
|
|
2425
|
+
scopeValue: string | number | Record<string, string | number>;
|
|
2426
|
+
id: string;
|
|
2427
|
+
};
|
|
2428
|
+
/**
|
|
2429
|
+
* Search for directives within specific scopes.
|
|
2430
|
+
* Uses parallel DynamoDB queries against the main table (PK = scope).
|
|
2431
|
+
*/
|
|
2432
|
+
scopes?: SemanticDirectiveScope[];
|
|
2433
|
+
/** Will be used by the custom cloudformation resource to query for all semantic directives created as a "group" by the agent author. */
|
|
2434
|
+
groupId?: string;
|
|
2435
|
+
/**
|
|
2436
|
+
* Search for directives created by a specific user.
|
|
2437
|
+
* When provided, results are automatically sorted by createDate (newest first by default).
|
|
2438
|
+
*
|
|
2439
|
+
* Uses GSI1: createdBy + createDate
|
|
2440
|
+
*/
|
|
2441
|
+
createdBy?: string;
|
|
2442
|
+
/**
|
|
2443
|
+
* Search for directives by specific IDs.
|
|
2444
|
+
* Returns directives matching any of the provided IDs across all scopes.
|
|
2445
|
+
*
|
|
2446
|
+
* Uses GSI2: id + scope
|
|
2447
|
+
*/
|
|
2448
|
+
directiveIds?: string[];
|
|
2449
|
+
/**
|
|
2450
|
+
* Filter directives created after this ISO 8601 timestamp.
|
|
2451
|
+
* Can be combined with other filters.
|
|
2452
|
+
* Example: "2024-01-15T00:00:00Z"
|
|
2453
|
+
*/
|
|
2454
|
+
createdAfter?: string;
|
|
2455
|
+
/**
|
|
2456
|
+
* Filter directives created before this ISO 8601 timestamp.
|
|
2457
|
+
* Can be combined with other filters.
|
|
2458
|
+
* Example: "2024-01-31T23:59:59Z"
|
|
2459
|
+
*/
|
|
2460
|
+
createdBefore?: string;
|
|
2461
|
+
/**
|
|
2462
|
+
* Filter directives updated after this ISO 8601 timestamp.
|
|
2463
|
+
* Can be combined with other filters.
|
|
2464
|
+
*/
|
|
2465
|
+
updatedAfter?: string;
|
|
2466
|
+
/**
|
|
2467
|
+
* Filter directives updated before this ISO 8601 timestamp.
|
|
2468
|
+
* Can be combined with other filters.
|
|
2469
|
+
*/
|
|
2470
|
+
updatedBefore?: string;
|
|
2471
|
+
/**
|
|
2472
|
+
* Sort order for results when using createdBy search or no specific search criteria.
|
|
2473
|
+
* - 'asc': Oldest first
|
|
2474
|
+
* - 'desc': Newest first (default)
|
|
2475
|
+
*/
|
|
2476
|
+
sortOrder?: 'asc' | 'desc';
|
|
2477
|
+
/**
|
|
2478
|
+
* Maximum number of directives to return per page.
|
|
2479
|
+
* Default: 50, Max: 100
|
|
2480
|
+
*/
|
|
2481
|
+
limit?: number;
|
|
2482
|
+
/**
|
|
2483
|
+
* Pagination token from previous search response.
|
|
2484
|
+
* Include your original search criteria when using pagination.
|
|
2485
|
+
*/
|
|
2486
|
+
paginationToken?: Record<string, any>;
|
|
2487
|
+
/**
|
|
2488
|
+
* If true, includes the full directive instructions in response.
|
|
2489
|
+
* If false, returns directive metadata only (scope, id, description, dates, etc).
|
|
2490
|
+
* Default: false (to save bandwidth)
|
|
2491
|
+
*/
|
|
2492
|
+
includeInstructions?: boolean;
|
|
2493
|
+
/**
|
|
2494
|
+
* If true, excludes disabled directives in the response.
|
|
2495
|
+
* Default: false
|
|
2496
|
+
*/
|
|
2497
|
+
excludeDisabled?: boolean;
|
|
2498
|
+
}
|
|
2499
|
+
interface SearchSemanticDirectivesResponse {
|
|
2500
|
+
success: boolean;
|
|
2501
|
+
/** Array of semantic directives matching the search criteria */
|
|
2502
|
+
semanticDirectives: SemanticDirective[];
|
|
2503
|
+
/** Total count of directives found (may be larger than returned array due to pagination) */
|
|
2504
|
+
totalCount?: number;
|
|
2505
|
+
/** If present, there are more results available. Pass this token back in the next request. */
|
|
2506
|
+
paginationToken?: Record<string, any>;
|
|
2507
|
+
}
|
|
2508
|
+
interface SemanticDirectiveDeleteRequest {
|
|
2509
|
+
semanticDirective: {
|
|
2510
|
+
scope: string;
|
|
2511
|
+
id: string;
|
|
2512
|
+
};
|
|
2513
|
+
/**
|
|
2514
|
+
* If you are deleting one of these objects through the CloudFormation custom resource, then you should set this
|
|
2515
|
+
* to be something that is tied to the stack that did the deletion and we ask that you prepend it with 'cloudformation/'
|
|
2516
|
+
* so we understand it was deleted by cloudformation as in 'cloudformation/my-stack-name'.
|
|
2517
|
+
*/
|
|
2518
|
+
userId: string;
|
|
2519
|
+
}
|
|
2520
|
+
interface SemanticDirectiveDeleteResponse {
|
|
2521
|
+
success: boolean;
|
|
2159
2522
|
}
|
|
2160
2523
|
interface TagsSiteFeature {
|
|
2161
2524
|
/**
|
|
@@ -2654,4 +3017,4 @@ interface TagDefInJsonFile {
|
|
|
2654
3017
|
gzippedBase64EncodedString: string;
|
|
2655
3018
|
}
|
|
2656
3019
|
|
|
2657
|
-
export { type AccessRule, type AccessRules, Accurate, AccurateWithStatedAssumptions, AccurateWithUnstatedAssumptions, type AddChatSessionFeedbackAdminRequest, type AddChatSessionFeedbackRequest, type AddChatSessionFeedbackResponse, type AgentAndTools, type AgentDataRequest, type AgentDataResponse, type AgentDefinition, type AgentDefinitionForCreate, type AgentDefinitionForIdempotentCreateOrUpdate, type AgentDefinitionForUpdate, type AgentFramework, type AgentInstructionAssistanceFeature, type AgentInstructionAssistanceFeatureForChatApp, type AgentInstructionChatAppOverridableFeature, type ApplyRulesAs, type Attachment, type AuthenticateResult, type AuthenticatedUser, type BaseRequestData, type BaseStackConfig, type ChatApp, type ChatAppDataRequest, type ChatAppDataResponse, type ChatAppFeature, type ChatAppForCreate, type ChatAppForIdempotentCreateOrUpdate, type ChatAppForUpdate, type ChatAppLite, type ChatAppMode, type ChatAppOverridableFeatures, type ChatAppOverridableFeaturesForConverseFn, type ChatAppOverride, type ChatAppOverrideDdb, type ChatAppOverrideForCreateOrUpdate, type ChatDisclaimerNoticeFeature, type ChatDisclaimerNoticeFeatureForChatApp, type ChatMessage, type ChatMessageFile, type ChatMessageFileBase, ChatMessageFileLocationType, type ChatMessageFileS3, ChatMessageFileUseCase, type ChatMessageForCreate, type ChatMessageForRendering, type ChatMessageResponse, type ChatMessageUsage, type ChatMessagesResponse, type ChatSession, type ChatSessionFeedback, type ChatSessionFeedbackForCreate, type ChatSessionFeedbackForUpdate, type ChatSessionForCreate, type ChatSessionLiteForUpdate, type ChatSessionResponse, type ChatSessionsResponse, type ChatTitleUpdateRequest, type ChatUser, type ChatUserAddOrUpdateResponse, type ChatUserFeature, type ChatUserFeatureBase, type ChatUserLite, type ChatUserResponse, type ChatUserSearchResponse, type ClearConverseLambdaCacheRequest, type ClearConverseLambdaCacheResponse, type ClearConverseLambdaCacheType, ClearConverseLambdaCacheTypes, type ClearSvelteKitCacheType, ClearSvelteKitCacheTypes, type ClearSvelteKitCachesRequest, type ClearSvelteKitCachesResponse, type ClearUserOverrideDataRequest, type ClearUserOverrideDataResponse, type CompanyType, type ComponentTagDefinition, ContentAdminCommand, type ContentAdminCommandRequestBase, type ContentAdminCommandResponseBase, type ContentAdminData, type ContentAdminRequest, type ContentAdminResponse, type ContentAdminSiteFeature, type ConverseRequest, type ConverseRequestWithCommand, type CreateAgentRequest, type CreateChatAppRequest, type CreateOrUpdateChatAppOverrideRequest, type CreateOrUpdateChatAppOverrideResponse, type CreateOrUpdateTagDefinitionAdminRequest, type CreateToolRequest, type CustomDataUiRepresentation, type DeleteChatAppOverrideRequest, type DeleteChatAppOverrideResponse, type DeleteTagDefinitionAdminRequest, EndToEndFeatureIdList, type EndToEndFeatureIdType, type EntitySiteFeature, type ExecutionType, FEATURE_NAMES, FEEDBACK_INTERNAL_COMMENT_STATUS, FEEDBACK_INTERNAL_COMMENT_STATUS_VALUES, FEEDBACK_INTERNAL_COMMENT_TYPE, FEEDBACK_INTERNAL_COMMENT_TYPE_VALUES, type Feature, type FeatureError, FeatureIdList, type FeatureIdType, type FeatureType, FeatureTypeArr, type FeedbackInternalComment, type FeedbackInternalCommentStatus, type FeedbackInternalCommentType, type FileUploadFeature, type FileUploadFeatureForChatApp, type GetAgentRequest, type GetAgentResponse, type GetChatAppsByRulesRequest, type GetChatAppsByRulesResponse, type GetChatMessagesAsAdminRequest, type GetChatMessagesAsAdminResponse, type GetChatSessionFeedbackResponse, type GetChatUserPrefsResponse, type GetInitialDataRequest, type GetInitialDataResponse, type GetInitialDialogDataRequest, type GetInitialDialogDataResponse, type GetInstructionAssistanceConfigFromSsmRequest, type GetInstructionAssistanceConfigFromSsmResponse, type GetValuesForAutoCompleteRequest, type GetValuesForAutoCompleteResponse, type GetValuesForContentAdminAutoCompleteRequest, type GetValuesForContentAdminAutoCompleteResponse, type GetValuesForEntityAutoCompleteRequest, type GetValuesForEntityAutoCompleteResponse, type GetValuesForUserAutoCompleteRequest, type GetValuesForUserAutoCompleteResponse, type GetViewingContentForUserResponse, type HistoryFeature, type HomePageLinksToChatAppsSiteFeature, type HomePageSiteFeature, INSIGHT_STATUS_NEEDS_INSIGHTS_ANALYSIS, Inaccurate, type InsightStatusNeedsInsightsAnalysis, type InsightsSearchParams, type InstructionAssistanceConfig, type InstructionFeature, type KnowledgeBase, type LifecycleStatus, type LogoutFeature, type LogoutFeatureForChatApp, type MessageSegment, type MessageSegmentBase, MessageSource, type NameValueDescTriple, type NameValuePair, type PikaConfig, type PikaStack, type PikaUserRole, PikaUserRoles, type PromptInputFieldLabelFeature, type PromptInputFieldLabelFeatureForChatApp, type RecordOrUndef, type RefreshChatAppRequest, type RefreshChatAppResponse, type RetryableVerifyResponseClassification, RetryableVerifyResponseClassifications, type RolloutPolicy, SCORE_SEARCH_OPERATORS, SCORE_SEARCH_OPERATORS_VALUES, SESSION_FEEDBACK_SEVERITY, SESSION_FEEDBACK_SEVERITY_VALUES, SESSION_FEEDBACK_STATUS, SESSION_FEEDBACK_STATUS_VALUES, SESSION_FEEDBACK_TYPE, SESSION_FEEDBACK_TYPE_VALUES, SESSION_INSIGHT_GOAL_COMPLETION_STATUS, SESSION_INSIGHT_GOAL_COMPLETION_STATUS_VALUES, SESSION_INSIGHT_METRICS_AI_CONFIDENCE_LEVEL, SESSION_INSIGHT_METRICS_AI_CONFIDENCE_LEVEL_VALUES, SESSION_INSIGHT_METRICS_COMPLEXITY_LEVEL, SESSION_INSIGHT_METRICS_COMPLEXITY_LEVEL_VALUES, SESSION_INSIGHT_METRICS_SESSION_DURATION_ESTIMATE, SESSION_INSIGHT_METRICS_SESSION_DURATION_ESTIMATE_VALUES, SESSION_INSIGHT_METRICS_USER_EFFORT_REQUIRED, SESSION_INSIGHT_METRICS_USER_EFFORT_REQUIRED_VALUES, SESSION_INSIGHT_SATISFACTION_LEVEL, SESSION_INSIGHT_SATISFACTION_LEVEL_VALUES, SESSION_INSIGHT_USER_SENTIMENT, SESSION_INSIGHT_USER_SENTIMENT_VALUES, SESSION_SEARCH_DATE_PRESETS, SESSION_SEARCH_DATE_PRESETS_SHORT_VALUES, SESSION_SEARCH_DATE_PRESETS_VALUES, SESSION_SEARCH_DATE_TYPES, SESSION_SEARCH_DATE_TYPES_VALUES, SESSION_SEARCH_SORT_FIELDS, SESSION_SEARCH_SORT_FIELDS_VALUES, type SaveUserOverrideDataRequest, type SaveUserOverrideDataResponse, type ScoreSearchOperator, type ScoreSearchParams, type SearchTagDefinitionsAdminRequest, type SearchToolsRequest, type SegmentType, type SessionAttributes, type SessionAttributesWithoutToken, type SessionData, type SessionDataWithChatUserCustomDataSpreadIn, type SessionFeedbackSeverity, type SessionFeedbackStatus, type SessionFeedbackType, type SessionInsightGoalCompletionStatus, type SessionInsightMetricsAiConfidenceLevel, type SessionInsightMetricsComplexityLevel, type SessionInsightMetricsSessionDurationEstimate, type SessionInsightMetricsUserEffortRequired, type SessionInsightSatisfactionLevel, type SessionInsightScoring, type SessionInsightUsage, type SessionInsightUserSentiment, type SessionInsights, type SessionInsightsFeature, type SessionInsightsFeatureForChatApp, type SessionInsightsOpenSearchConfig, type SessionSearchAdminRequest, type SessionSearchDateFilter, type SessionSearchDatePreset, type SessionSearchDateType, type SessionSearchRequest, type SessionSearchResponse, type SessionSearchSortField, type SetChatUserPrefsRequest, type SetChatUserPrefsResponse, type SimpleAuthenticatedUser, type SimpleOption, SiteAdminCommand, type SiteAdminCommandRequestBase, type SiteAdminCommandResponseBase, type SiteAdminFeature, type SiteAdminRequest, type SiteAdminResponse, type SiteFeatures, type StopViewingContentForUserRequest, type StopViewingContentForUserResponse, type StreamingStatus, type SuggestionsFeature, type SuggestionsFeatureForChatApp, type TagDefInJsonFile, type TagDefinition, type TagDefinitionCreateOrUpdateRequest, type TagDefinitionCreateOrUpdateResponse, type TagDefinitionDeleteRequest, type TagDefinitionDeleteResponse, type TagDefinitionForCreateOrUpdate, type TagDefinitionLite, type TagDefinitionSearchRequest, type TagDefinitionSearchResponse, type TagDefinitionWebComponent, type TagDefinitionWidget, type TagDefinitionWidgetBase, type TagDefinitionWidgetCustomCompiledIn, type TagDefinitionWidgetPassThrough, type TagDefinitionWidgetPikaCompiledIn, type TagDefinitionWidgetType, type TagDefinitionWidgetWebComponent, type TagDefinitionsJsonFile, type TagMessageSegment, type TagWebComponentEncoding, type TagsChatAppOverridableFeature, type TagsFeatureForChatApp, type TagsSiteFeature, type TextMessageSegment, type ToolDefinition, type ToolDefinitionForCreate, type ToolDefinitionForIdempotentCreateOrUpdate, type ToolDefinitionForUpdate, type ToolIdToLambdaArnMap, type ToolLifecycle, type TracesFeature, type TracesFeatureForChatApp, UPDATEABLE_FEEDBACK_FIELDS, type UiCustomizationFeature, type UiCustomizationFeatureForChatApp, Unclassified, type UpdateAgentRequest, type UpdateChatAppRequest, type UpdateChatSessionFeedbackAdminRequest, type UpdateChatSessionFeedbackRequest, type UpdateChatSessionFeedbackResponse, type UpdateToolRequest, type UpdateableAgentDefinitionFields, type UpdateableChatAppFields, type UpdateableChatAppOverrideFields, type UpdateableFeedbackFields, type UpdateableToolDefinitionFields, type UserChatAppRule, type UserDataOverrideFeatureForChatApp, type UserDataOverrideSettings, type UserDataOverridesSiteFeature, type UserOverrideData, UserOverrideDataCommand, type UserOverrideDataCommandRequest, type UserOverrideDataCommandRequestBase, type UserOverrideDataCommandResponse, type UserOverrideDataCommandResponseBase, type UserPrefs, type UserRole, type UserType, UserTypes, type VerifyResponseClassification, type VerifyResponseClassificationDescription, VerifyResponseClassificationDescriptions, VerifyResponseClassifications, type VerifyResponseFeature, type VerifyResponseFeatureForChatApp, type VerifyResponseRetryableClassificationDescription, VerifyResponseRetryableClassificationDescriptions, type ViewContentForUserRequest, type ViewContentForUserResponse, type VitePreviewConfig, type ViteServerConfig };
|
|
3020
|
+
export { type AccessRule, type AccessRules, Accurate, AccurateWithStatedAssumptions, AccurateWithUnstatedAssumptions, type AddChatSessionFeedbackAdminRequest, type AddChatSessionFeedbackRequest, type AddChatSessionFeedbackResponse, type AgentAndTools, type AgentDataRequest, type AgentDataResponse, type AgentDefinition, type AgentDefinitionForCreate, type AgentDefinitionForIdempotentCreateOrUpdate, type AgentDefinitionForUpdate, type AgentFramework, type AgentInstructionAssistanceFeature, type AgentInstructionAssistanceFeatureForChatApp, type AgentInstructionChatAppOverridableFeature, type ApplyRulesAs, type Attachment, type AuthenticateResult, type AuthenticatedUser, type BaseRequestData, type BaseStackConfig, type ChatApp, type ChatAppDataRequest, type ChatAppDataResponse, type ChatAppFeature, type ChatAppForCreate, type ChatAppForIdempotentCreateOrUpdate, type ChatAppForUpdate, type ChatAppLite, type ChatAppMode, type ChatAppOverridableFeatures, type ChatAppOverridableFeaturesForConverseFn, type ChatAppOverride, type ChatAppOverrideDdb, type ChatAppOverrideForCreateOrUpdate, type ChatDisclaimerNoticeFeature, type ChatDisclaimerNoticeFeatureForChatApp, type ChatMessage, type ChatMessageFile, type ChatMessageFileBase, ChatMessageFileLocationType, type ChatMessageFileS3, ChatMessageFileUseCase, type ChatMessageForCreate, type ChatMessageForRendering, type ChatMessageResponse, type ChatMessageUsage, type ChatMessagesResponse, type ChatSession, type ChatSessionFeedback, type ChatSessionFeedbackForCreate, type ChatSessionFeedbackForUpdate, type ChatSessionForCreate, type ChatSessionLiteForUpdate, type ChatSessionResponse, type ChatSessionsResponse, type ChatTitleUpdateRequest, type ChatUser, type ChatUserAddOrUpdateResponse, type ChatUserFeature, type ChatUserFeatureBase, type ChatUserLite, type ChatUserResponse, type ChatUserSearchResponse, type ClearConverseLambdaCacheRequest, type ClearConverseLambdaCacheResponse, type ClearConverseLambdaCacheType, ClearConverseLambdaCacheTypes, type ClearSvelteKitCacheType, ClearSvelteKitCacheTypes, type ClearSvelteKitCachesRequest, type ClearSvelteKitCachesResponse, type ClearUserOverrideDataRequest, type ClearUserOverrideDataResponse, type CompanyType, type ComponentTagDefinition, ContentAdminCommand, type ContentAdminCommandRequestBase, type ContentAdminCommandResponseBase, type ContentAdminData, type ContentAdminRequest, type ContentAdminResponse, type ContentAdminSiteFeature, type ConverseInvocationMode, ConverseInvocationModes, type ConverseRequest, type ConverseRequestWithCommand, type CreateAgentRequest, type CreateChatAppRequest, type CreateOrUpdateChatAppOverrideRequest, type CreateOrUpdateChatAppOverrideResponse, type CreateOrUpdateTagDefinitionAdminRequest, type CreateToolRequest, type CustomDataUiRepresentation, type DeleteChatAppOverrideRequest, type DeleteChatAppOverrideResponse, type DeleteTagDefinitionAdminRequest, EndToEndFeatureIdList, type EndToEndFeatureIdType, type EntitySiteFeature, type ExecutionType, FEATURE_NAMES, FEEDBACK_INTERNAL_COMMENT_STATUS, FEEDBACK_INTERNAL_COMMENT_STATUS_VALUES, FEEDBACK_INTERNAL_COMMENT_TYPE, FEEDBACK_INTERNAL_COMMENT_TYPE_VALUES, type Feature, type FeatureError, FeatureIdList, type FeatureIdType, type FeatureType, FeatureTypeArr, type FeedbackInternalComment, type FeedbackInternalCommentStatus, type FeedbackInternalCommentType, type FileUploadFeature, type FileUploadFeatureForChatApp, type GetAgentRequest, type GetAgentResponse, type GetAllAgentsAdminRequest, type GetAllAgentsAdminResponse, type GetAllChatAppsAdminRequest, type GetAllChatAppsAdminResponse, type GetAllToolsAdminRequest, type GetAllToolsAdminResponse, type GetChatAppsByRulesRequest, type GetChatAppsByRulesResponse, type GetChatMessagesAsAdminRequest, type GetChatMessagesAsAdminResponse, type GetChatSessionFeedbackResponse, type GetChatUserPrefsResponse, type GetInitialDataRequest, type GetInitialDataResponse, type GetInitialDialogDataRequest, type GetInitialDialogDataResponse, type GetInstructionAssistanceConfigFromSsmRequest, type GetInstructionAssistanceConfigFromSsmResponse, type GetValuesForAutoCompleteRequest, type GetValuesForAutoCompleteResponse, type GetValuesForContentAdminAutoCompleteRequest, type GetValuesForContentAdminAutoCompleteResponse, type GetValuesForEntityAutoCompleteRequest, type GetValuesForEntityAutoCompleteResponse, type GetValuesForUserAutoCompleteRequest, type GetValuesForUserAutoCompleteResponse, type GetViewingContentForUserResponse, type HistoryFeature, type HomePageLinksToChatAppsSiteFeature, type HomePageSiteFeature, INSIGHT_STATUS_NEEDS_INSIGHTS_ANALYSIS, Inaccurate, type InsightStatusNeedsInsightsAnalysis, type InsightsSearchParams, type InstructionAssistanceConfig, type InstructionAugmentationFeature, type InstructionAugmentationFeatureForChatApp, type InstructionAugmentationScopeType, type InstructionAugmentationScopeTypeDisplayName, InstructionAugmentationScopeTypeDisplayNames, InstructionAugmentationScopeTypes, type InstructionAugmentationType, type InstructionAugmentationTypeDisplayName, InstructionAugmentationTypeDisplayNames, InstructionAugmentationTypes, type InstructionFeature, type InvocationScopes, type KnowledgeBase, type LambdaToolDefinition, type LifecycleStatus, type LogoutFeature, type LogoutFeatureForChatApp, type McpToolDefinition, type MessageSegment, type MessageSegmentBase, MessageSource, type NameValueDescTriple, type NameValuePair, type OAuth, type PikaConfig, type PikaStack, type PikaUserRole, PikaUserRoles, type PromptInputFieldLabelFeature, type PromptInputFieldLabelFeatureForChatApp, type RecordOrUndef, type RefreshChatAppRequest, type RefreshChatAppResponse, type RetryableVerifyResponseClassification, RetryableVerifyResponseClassifications, type RolloutPolicy, SCORE_SEARCH_OPERATORS, SCORE_SEARCH_OPERATORS_VALUES, SESSION_FEEDBACK_SEVERITY, SESSION_FEEDBACK_SEVERITY_VALUES, SESSION_FEEDBACK_STATUS, SESSION_FEEDBACK_STATUS_VALUES, SESSION_FEEDBACK_TYPE, SESSION_FEEDBACK_TYPE_VALUES, SESSION_INSIGHT_GOAL_COMPLETION_STATUS, SESSION_INSIGHT_GOAL_COMPLETION_STATUS_VALUES, SESSION_INSIGHT_METRICS_AI_CONFIDENCE_LEVEL, SESSION_INSIGHT_METRICS_AI_CONFIDENCE_LEVEL_VALUES, SESSION_INSIGHT_METRICS_COMPLEXITY_LEVEL, SESSION_INSIGHT_METRICS_COMPLEXITY_LEVEL_VALUES, SESSION_INSIGHT_METRICS_SESSION_DURATION_ESTIMATE, SESSION_INSIGHT_METRICS_SESSION_DURATION_ESTIMATE_VALUES, SESSION_INSIGHT_METRICS_USER_EFFORT_REQUIRED, SESSION_INSIGHT_METRICS_USER_EFFORT_REQUIRED_VALUES, SESSION_INSIGHT_SATISFACTION_LEVEL, SESSION_INSIGHT_SATISFACTION_LEVEL_VALUES, SESSION_INSIGHT_USER_SENTIMENT, SESSION_INSIGHT_USER_SENTIMENT_VALUES, SESSION_SEARCH_DATE_PRESETS, SESSION_SEARCH_DATE_PRESETS_SHORT_VALUES, SESSION_SEARCH_DATE_PRESETS_VALUES, SESSION_SEARCH_DATE_TYPES, SESSION_SEARCH_DATE_TYPES_VALUES, SESSION_SEARCH_SORT_FIELDS, SESSION_SEARCH_SORT_FIELDS_VALUES, type SaveUserOverrideDataRequest, type SaveUserOverrideDataResponse, type ScoreSearchOperator, type ScoreSearchParams, type SearchSemanticDirectivesAdminRequest, type SearchSemanticDirectivesRequest, type SearchSemanticDirectivesResponse, type SearchTagDefinitionsAdminRequest, type SearchToolsRequest, type SegmentType, type SemanticDirective, type SemanticDirectiveCreateOrUpdateAdminRequest, type SemanticDirectiveCreateOrUpdateRequest, type SemanticDirectiveCreateOrUpdateResponse, type SemanticDirectiveDataRequest, type SemanticDirectiveDeleteAdminRequest, type SemanticDirectiveDeleteRequest, type SemanticDirectiveDeleteResponse, type SemanticDirectiveForCreateOrUpdate, type SemanticDirectiveScope, type SessionAttributes, type SessionAttributesWithoutToken, type SessionData, type SessionDataWithChatUserCustomDataSpreadIn, type SessionFeedbackSeverity, type SessionFeedbackStatus, type SessionFeedbackType, type SessionInsightGoalCompletionStatus, type SessionInsightMetricsAiConfidenceLevel, type SessionInsightMetricsComplexityLevel, type SessionInsightMetricsSessionDurationEstimate, type SessionInsightMetricsUserEffortRequired, type SessionInsightSatisfactionLevel, type SessionInsightScoring, type SessionInsightUsage, type SessionInsightUserSentiment, type SessionInsights, type SessionInsightsFeature, type SessionInsightsFeatureForChatApp, type SessionInsightsOpenSearchConfig, type SessionSearchAdminRequest, type SessionSearchDateFilter, type SessionSearchDatePreset, type SessionSearchDateType, type SessionSearchRequest, type SessionSearchResponse, type SessionSearchSortField, type SetChatUserPrefsRequest, type SetChatUserPrefsResponse, type SimpleAuthenticatedUser, type SimpleOption, SiteAdminCommand, type SiteAdminCommandRequestBase, type SiteAdminCommandResponseBase, type SiteAdminFeature, type SiteAdminRequest, type SiteAdminResponse, type SiteFeatures, type StopViewingContentForUserRequest, type StopViewingContentForUserResponse, type StreamingStatus, type SuggestionsFeature, type SuggestionsFeatureForChatApp, type TagDefInJsonFile, type TagDefinition, type TagDefinitionCreateOrUpdateRequest, type TagDefinitionCreateOrUpdateResponse, type TagDefinitionDeleteRequest, type TagDefinitionDeleteResponse, type TagDefinitionForCreateOrUpdate, type TagDefinitionLite, type TagDefinitionSearchRequest, type TagDefinitionSearchResponse, type TagDefinitionWebComponent, type TagDefinitionWidget, type TagDefinitionWidgetBase, type TagDefinitionWidgetCustomCompiledIn, type TagDefinitionWidgetPassThrough, type TagDefinitionWidgetPikaCompiledIn, type TagDefinitionWidgetType, type TagDefinitionWidgetWebComponent, type TagDefinitionsJsonFile, type TagMessageSegment, type TagWebComponentEncoding, type TagsChatAppOverridableFeature, type TagsFeatureForChatApp, type TagsSiteFeature, type TextMessageSegment, type ToolDefinition, type ToolDefinitionBase, type ToolDefinitionForCreate, type ToolDefinitionForIdempotentCreateOrUpdate, type ToolDefinitionForUpdate, type ToolIdToLambdaArnMap, type ToolLifecycle, type TracesFeature, type TracesFeatureForChatApp, UPDATEABLE_FEEDBACK_FIELDS, type UiCustomizationFeature, type UiCustomizationFeatureForChatApp, Unclassified, type UpdateAgentRequest, type UpdateChatAppRequest, type UpdateChatSessionFeedbackAdminRequest, type UpdateChatSessionFeedbackRequest, type UpdateChatSessionFeedbackResponse, type UpdateToolRequest, type UpdateableAgentDefinitionFields, type UpdateableChatAppFields, type UpdateableChatAppOverrideFields, type UpdateableFeedbackFields, type UpdateableToolDefinitionFields, type UserChatAppRule, type UserDataOverrideFeatureForChatApp, type UserDataOverrideSettings, type UserDataOverridesSiteFeature, type UserOverrideData, UserOverrideDataCommand, type UserOverrideDataCommandRequest, type UserOverrideDataCommandRequestBase, type UserOverrideDataCommandResponse, type UserOverrideDataCommandResponseBase, type UserPrefs, type UserRole, type UserType, UserTypes, type VerifyResponseClassification, type VerifyResponseClassificationDescription, VerifyResponseClassificationDescriptions, VerifyResponseClassifications, type VerifyResponseFeature, type VerifyResponseFeatureForChatApp, type VerifyResponseRetryableClassificationDescription, VerifyResponseRetryableClassificationDescriptions, type ViewContentForUserRequest, type ViewContentForUserResponse, type VitePreviewConfig, type ViteServerConfig };
|