pika-shared 1.1.0 → 1.3.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/bedrock.d.mts +1 -0
- package/dist/types/chatbot/bedrock.d.ts +1 -0
- package/dist/types/chatbot/chatbot-types.d.mts +527 -34
- package/dist/types/chatbot/chatbot-types.d.ts +527 -34
- package/dist/types/chatbot/chatbot-types.js +44 -4
- package/dist/types/chatbot/chatbot-types.js.map +1 -1
- package/dist/types/chatbot/chatbot-types.mjs +35 -5
- package/dist/types/chatbot/chatbot-types.mjs.map +1 -1
- package/dist/util/bedrock.d.mts +1 -0
- package/dist/util/bedrock.d.ts +1 -0
- package/dist/util/instruction-assistance-utils.d.mts +1 -0
- package/dist/util/instruction-assistance-utils.d.ts +1 -0
- package/dist/util/instruction-assistance-utils.js.map +1 -1
- package/dist/util/instruction-assistance-utils.mjs.map +1 -1
- package/dist/util/jwt.d.mts +1 -0
- package/dist/util/jwt.d.ts +1 -0
- 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 +10 -2
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { Trace, AgentCollaboration, RetrievalFilter, FunctionDefinition } from '@aws-sdk/client-bedrock-agent-runtime';
|
|
1
|
+
import { Trace, AgentCollaboration, RetrievalFilter, FunctionDefinition, ActionGroupInvocationInput } from '@aws-sdk/client-bedrock-agent-runtime';
|
|
2
|
+
import { Role } from '@aws-sdk/client-bedrock-agentcore';
|
|
2
3
|
|
|
3
4
|
type CompanyType = 'retailer' | 'supplier';
|
|
5
|
+
declare const DEFAULT_MAX_MEMORY_RECORDS_PER_PROMPT = 25;
|
|
6
|
+
declare const DEFAULT_MAX_K_MATCHES_PER_STRATEGY = 5;
|
|
7
|
+
declare const DEFAULT_MEMORY_STRATEGIES: UserMemoryStrategy[];
|
|
8
|
+
declare const DEFAULT_EVENT_EXPIRY_DURATION = 7;
|
|
4
9
|
/**
|
|
5
10
|
* Data persisted by Bedrock Agent for each session, set
|
|
6
11
|
* by calling the `initSession` function for a lambda
|
|
@@ -33,14 +38,14 @@ interface ChatSession<T extends RecordOrUndef = undefined> {
|
|
|
33
38
|
sessionId: string;
|
|
34
39
|
/** Unique identifier of the user participating in the session */
|
|
35
40
|
userId: string;
|
|
36
|
-
/** Identifier for the agent alias being used */
|
|
37
|
-
agentAliasId: string;
|
|
38
41
|
/** Identifier for the specific agent instance */
|
|
39
42
|
agentId: string;
|
|
40
43
|
/** Identifier for the chat app */
|
|
41
44
|
chatAppId: string;
|
|
42
45
|
/** Unique identifier for the user's identity */
|
|
43
46
|
identityId: string;
|
|
47
|
+
/** Mode of the invocation of the agent */
|
|
48
|
+
invocationMode: ConverseInvocationMode;
|
|
44
49
|
/** Title or name of the chat session */
|
|
45
50
|
title?: string;
|
|
46
51
|
/** ID of the most recent message in the session */
|
|
@@ -493,6 +498,8 @@ interface ChatUserLite {
|
|
|
493
498
|
*/
|
|
494
499
|
interface AuthenticatedUser<T extends RecordOrUndef = undefined, U extends RecordOrUndef = undefined> extends ChatUser<U> {
|
|
495
500
|
authData?: T;
|
|
501
|
+
/** ISO 8601 timestamp of when ChatUser data was last refreshed from DynamoDB (the pikaframework sets this) */
|
|
502
|
+
lastChatUserRefresh?: string;
|
|
496
503
|
}
|
|
497
504
|
/**
|
|
498
505
|
* This is a simplified version of AuthenticatedUser that is used for auth headers.
|
|
@@ -584,8 +591,10 @@ interface ChatAppOverridableFeatures {
|
|
|
584
591
|
showUserRegionInLeftNav: boolean;
|
|
585
592
|
showChatHistoryInStandaloneMode: boolean;
|
|
586
593
|
};
|
|
587
|
-
tags
|
|
594
|
+
tags?: TagsChatAppOverridableFeature;
|
|
588
595
|
agentInstructionAssistance: AgentInstructionChatAppOverridableFeature;
|
|
596
|
+
instructionAugmentation: InstructionAugmentationFeature;
|
|
597
|
+
userMemory: UserMemoryFeature;
|
|
589
598
|
}
|
|
590
599
|
interface AgentInstructionChatAppOverridableFeature {
|
|
591
600
|
enabled: boolean;
|
|
@@ -674,9 +683,6 @@ interface BaseRequestData {
|
|
|
674
683
|
sessionId?: string;
|
|
675
684
|
chatAppId?: string;
|
|
676
685
|
agentId?: string;
|
|
677
|
-
agentAliasId?: string;
|
|
678
|
-
companyId?: string;
|
|
679
|
-
companyType?: CompanyType;
|
|
680
686
|
timezone?: string;
|
|
681
687
|
}
|
|
682
688
|
interface ConverseRequestWithCommand {
|
|
@@ -699,7 +705,29 @@ interface ConverseRequest extends BaseRequestData {
|
|
|
699
705
|
* It allows us to dynamically change the agent used for the conversation.
|
|
700
706
|
*/
|
|
701
707
|
agentId: string;
|
|
708
|
+
/**
|
|
709
|
+
* This is the attribute name in the user's custom data that is used to match against the entity access control lists.
|
|
710
|
+
* This is only used if the entity feature is enabled and the user has an entity associated with them.
|
|
711
|
+
*
|
|
712
|
+
* @see pika-config.ts#siteFeatures.entity.attributeName
|
|
713
|
+
*/
|
|
714
|
+
entityAttributeNameInUserCustomData?: string;
|
|
715
|
+
/**
|
|
716
|
+
* If provided, this will be used to determine the invocation mode of the converse request.
|
|
717
|
+
*
|
|
718
|
+
* If 'chat-app', then the converse request is a chat app request.
|
|
719
|
+
* If 'direct-agent-invoke', then the converse request is a direct agent invoke request and is not
|
|
720
|
+
* in the context of a chat app. Since we are adding mode after the fact, if mode is provided
|
|
721
|
+
* and it doesn't match what we expect, we will throw an error (chat-app requires that chatAppId is provided
|
|
722
|
+
* and direct-agent-invoke requires that chatAppId is not provided).
|
|
723
|
+
*
|
|
724
|
+
* If invocationMode is not provided, uses the presence or absence of chatAppId to determine the mode (if chatAppId
|
|
725
|
+
* is provided, then it's a chat app request, otherwise it's a direct agent invoke request).
|
|
726
|
+
*/
|
|
727
|
+
invocationMode?: ConverseInvocationMode;
|
|
702
728
|
}
|
|
729
|
+
declare const ConverseInvocationModes: readonly ["chat-app", "direct-agent-invoke"];
|
|
730
|
+
type ConverseInvocationMode = (typeof ConverseInvocationModes)[number];
|
|
703
731
|
interface ChatTitleUpdateRequest extends BaseRequestData {
|
|
704
732
|
/** If provided, this will be used as the title for the session */
|
|
705
733
|
title?: string;
|
|
@@ -1091,7 +1119,7 @@ type AgentDefinitionForIdempotentCreateOrUpdate = Omit<AgentDefinition, 'toolIds
|
|
|
1091
1119
|
/**
|
|
1092
1120
|
* Execution type for tool definitions. Right now, only lambda is supported.
|
|
1093
1121
|
*/
|
|
1094
|
-
type ExecutionType = 'lambda' | 'http' | 'inline';
|
|
1122
|
+
type ExecutionType = 'lambda' | 'http' | 'inline' | 'mcp';
|
|
1095
1123
|
/**
|
|
1096
1124
|
* Lifecycle status for tool definitions
|
|
1097
1125
|
*/
|
|
@@ -1107,16 +1135,12 @@ interface ToolLifecycle {
|
|
|
1107
1135
|
/** Optional migration path to newer tool version */
|
|
1108
1136
|
migrationPath?: string;
|
|
1109
1137
|
}
|
|
1110
|
-
/**
|
|
1111
|
-
* JSON Schema definition
|
|
1112
|
-
*/
|
|
1113
|
-
/**
|
|
1114
|
-
* Bedrock function schema definition
|
|
1115
|
-
*/
|
|
1116
1138
|
/**
|
|
1117
1139
|
* Tool definition representing a callable function/service
|
|
1118
1140
|
*/
|
|
1119
|
-
interface
|
|
1141
|
+
interface ToolDefinitionBase {
|
|
1142
|
+
/** Type of execution (lambda, http, inline) */
|
|
1143
|
+
executionType: ExecutionType;
|
|
1120
1144
|
/** Unique tool name/version (e.g., 'weather-basic@1') */
|
|
1121
1145
|
toolId: string;
|
|
1122
1146
|
/** Friendly display name */
|
|
@@ -1125,15 +1149,8 @@ interface ToolDefinition {
|
|
|
1125
1149
|
name: string;
|
|
1126
1150
|
/** Description for LLM consumption. MUST BE LESS THAN 500 CHARACTERS */
|
|
1127
1151
|
description: string;
|
|
1128
|
-
/** Type of execution (lambda, http, inline) */
|
|
1129
|
-
executionType: ExecutionType;
|
|
1130
1152
|
/** Timeout in seconds (default: 30) */
|
|
1131
1153
|
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
1154
|
/**
|
|
1138
1155
|
* List of agent frameworks that this tool supports
|
|
1139
1156
|
*
|
|
@@ -1161,18 +1178,50 @@ interface ToolDefinition {
|
|
|
1161
1178
|
/** If true, this is a test tool that will get deleted after 1 day. This is used for testing. */
|
|
1162
1179
|
test?: boolean;
|
|
1163
1180
|
}
|
|
1164
|
-
|
|
1165
|
-
|
|
1181
|
+
interface LambdaToolDefinition extends ToolDefinitionBase {
|
|
1182
|
+
executionType: 'lambda';
|
|
1183
|
+
/**
|
|
1184
|
+
* If executionType is 'lambda', this is the required ARN of the Lambda function.
|
|
1185
|
+
* Note that the Lambda function must have an 'agent-tool' tag set to 'true'.
|
|
1186
|
+
*/
|
|
1187
|
+
lambdaArn: string;
|
|
1188
|
+
}
|
|
1189
|
+
interface McpToolDefinition extends ToolDefinitionBase {
|
|
1190
|
+
executionType: 'mcp';
|
|
1191
|
+
url: string;
|
|
1192
|
+
auth?: OAuth;
|
|
1193
|
+
}
|
|
1194
|
+
interface InlineToolDefinition extends ToolDefinitionBase {
|
|
1195
|
+
executionType: 'inline';
|
|
1196
|
+
code: string;
|
|
1197
|
+
handler?: (event: ActionGroupInvocationInput, params: Record<string, any>) => Promise<unknown>;
|
|
1198
|
+
}
|
|
1199
|
+
type ToolDefinition = LambdaToolDefinition | McpToolDefinition | InlineToolDefinition;
|
|
1200
|
+
type UpdateableToolDefinitionFields = Extract<keyof ToolDefinitionBase, 'name' | 'displayName' | 'description' | 'executionType' | 'executionTimeout' | 'supportedAgentFrameworks' | 'functionSchema' | 'tags' | 'lifecycle' | 'accessRules'> | 'lambdaArn' | 'url' | 'auth' | 'code';
|
|
1201
|
+
type ToolDefinitionForCreate = (Omit<LambdaToolDefinition, 'version' | 'createdAt' | 'updatedAt' | 'lastModifiedBy' | 'createdBy'> & {
|
|
1166
1202
|
toolId?: ToolDefinition['toolId'];
|
|
1167
|
-
}
|
|
1203
|
+
}) | (Omit<McpToolDefinition, 'version' | 'createdAt' | 'updatedAt' | 'lastModifiedBy' | 'createdBy'> & {
|
|
1204
|
+
toolId?: ToolDefinition['toolId'];
|
|
1205
|
+
});
|
|
1168
1206
|
type ToolDefinitionForIdempotentCreateOrUpdate = Omit<ToolDefinition, 'version' | 'createdAt' | 'updatedAt' | 'lastModifiedBy' | 'createdBy'> & {
|
|
1169
1207
|
lambdaArn: string;
|
|
1170
1208
|
functionSchema: FunctionDefinition[];
|
|
1171
1209
|
supportedAgentFrameworks: ['bedrock'];
|
|
1172
1210
|
};
|
|
1173
|
-
|
|
1211
|
+
interface OAuth {
|
|
1212
|
+
clientId: string;
|
|
1213
|
+
clientSecret: string;
|
|
1214
|
+
tokenUrl: string;
|
|
1215
|
+
token?: {
|
|
1216
|
+
accessToken: string;
|
|
1217
|
+
expires: number;
|
|
1218
|
+
};
|
|
1219
|
+
}
|
|
1220
|
+
type ToolDefinitionForUpdate = (Partial<Omit<LambdaToolDefinition, 'version' | 'createdAt' | 'createdBy' | 'updatedAt' | 'lastModifiedBy'>> & {
|
|
1174
1221
|
toolId: string;
|
|
1175
|
-
}
|
|
1222
|
+
}) | (Partial<Omit<McpToolDefinition, 'version' | 'createdAt' | 'createdBy' | 'updatedAt' | 'lastModifiedBy'>> & {
|
|
1223
|
+
toolId: string;
|
|
1224
|
+
});
|
|
1176
1225
|
type AgentFramework = 'bedrock';
|
|
1177
1226
|
interface CreateAgentRequest {
|
|
1178
1227
|
agent: AgentDefinitionForCreate;
|
|
@@ -1385,7 +1434,7 @@ interface ChatAppDataRequest {
|
|
|
1385
1434
|
/**
|
|
1386
1435
|
* These are the features that are available to be overridden by the chat app.
|
|
1387
1436
|
*/
|
|
1388
|
-
type ChatAppFeature = FileUploadFeatureForChatApp | SuggestionsFeatureForChatApp | PromptInputFieldLabelFeatureForChatApp | UiCustomizationFeatureForChatApp | VerifyResponseFeatureForChatApp | TracesFeatureForChatApp | ChatDisclaimerNoticeFeatureForChatApp | LogoutFeatureForChatApp | SessionInsightsFeatureForChatApp | UserDataOverrideFeatureForChatApp | TagsFeatureForChatApp | AgentInstructionAssistanceFeatureForChatApp;
|
|
1437
|
+
type ChatAppFeature = FileUploadFeatureForChatApp | SuggestionsFeatureForChatApp | PromptInputFieldLabelFeatureForChatApp | UiCustomizationFeatureForChatApp | VerifyResponseFeatureForChatApp | TracesFeatureForChatApp | ChatDisclaimerNoticeFeatureForChatApp | LogoutFeatureForChatApp | SessionInsightsFeatureForChatApp | UserDataOverrideFeatureForChatApp | TagsFeatureForChatApp | AgentInstructionAssistanceFeatureForChatApp | InstructionAugmentationFeatureForChatApp | UserMemoryFeatureForChatApp;
|
|
1389
1438
|
interface Feature {
|
|
1390
1439
|
/**
|
|
1391
1440
|
* Must be unique, only alphanumeric and - _ allowed, may not start with a number
|
|
@@ -1396,7 +1445,7 @@ interface Feature {
|
|
|
1396
1445
|
/** 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
1446
|
enabled: boolean;
|
|
1398
1447
|
}
|
|
1399
|
-
declare const FeatureIdList: readonly ["fileUpload", "promptInputFieldLabel", "suggestions", "uiCustomization", "verifyResponse", "traces", "chatDisclaimerNotice", "logout", "sessionInsights", "userDataOverrides", "tags", "agentInstructionAssistance"];
|
|
1448
|
+
declare const FeatureIdList: readonly ["fileUpload", "promptInputFieldLabel", "suggestions", "uiCustomization", "verifyResponse", "traces", "chatDisclaimerNotice", "logout", "sessionInsights", "userDataOverrides", "tags", "agentInstructionAssistance", "instructionAugmentation", "userMemory"];
|
|
1400
1449
|
type FeatureIdType = (typeof FeatureIdList)[number];
|
|
1401
1450
|
declare const EndToEndFeatureIdList: readonly ["verifyResponse", "traces"];
|
|
1402
1451
|
type EndToEndFeatureIdType = (typeof EndToEndFeatureIdList)[number];
|
|
@@ -1600,6 +1649,12 @@ interface PromptInputFieldLabelFeatureForChatApp extends PromptInputFieldLabelFe
|
|
|
1600
1649
|
interface AgentInstructionAssistanceFeatureForChatApp extends Feature, AgentInstructionAssistanceFeature {
|
|
1601
1650
|
featureId: 'agentInstructionAssistance';
|
|
1602
1651
|
}
|
|
1652
|
+
interface InstructionAugmentationFeatureForChatApp extends InstructionAugmentationFeature, Feature {
|
|
1653
|
+
featureId: 'instructionAugmentation';
|
|
1654
|
+
}
|
|
1655
|
+
interface UserMemoryFeatureForChatApp extends UserMemoryFeature, Feature {
|
|
1656
|
+
featureId: 'userMemory';
|
|
1657
|
+
}
|
|
1603
1658
|
/**
|
|
1604
1659
|
* 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
1660
|
*
|
|
@@ -1736,8 +1791,8 @@ interface TextMessageSegment extends MessageSegmentBase {
|
|
|
1736
1791
|
segmentType: 'text';
|
|
1737
1792
|
}
|
|
1738
1793
|
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"];
|
|
1794
|
+
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 | GetAllMemoryRecordsAdminRequest | GetInstructionsAddedForUserMemoryAdminRequest;
|
|
1795
|
+
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", "getAllMemoryRecords", "getInstructionsAddedForUserMemory"];
|
|
1741
1796
|
type SiteAdminCommand = (typeof SiteAdminCommand)[number];
|
|
1742
1797
|
interface SiteAdminCommandRequestBase {
|
|
1743
1798
|
command: SiteAdminCommand;
|
|
@@ -1760,6 +1815,43 @@ interface SearchTagDefinitionsAdminRequest extends SiteAdminCommandRequestBase {
|
|
|
1760
1815
|
command: 'searchTagDefinitions';
|
|
1761
1816
|
request: TagDefinitionSearchRequest;
|
|
1762
1817
|
}
|
|
1818
|
+
interface SearchSemanticDirectivesAdminRequest extends SiteAdminCommandRequestBase {
|
|
1819
|
+
command: 'searchSemanticDirectives';
|
|
1820
|
+
request: SearchSemanticDirectivesRequest;
|
|
1821
|
+
}
|
|
1822
|
+
interface SemanticDirectiveCreateOrUpdateAdminRequest extends SiteAdminCommandRequestBase {
|
|
1823
|
+
command: 'createOrUpdateSemanticDirective';
|
|
1824
|
+
request: SemanticDirectiveCreateOrUpdateRequest;
|
|
1825
|
+
}
|
|
1826
|
+
interface SemanticDirectiveDeleteAdminRequest extends SiteAdminCommandRequestBase {
|
|
1827
|
+
command: 'deleteSemanticDirective';
|
|
1828
|
+
request: SemanticDirectiveDeleteRequest;
|
|
1829
|
+
}
|
|
1830
|
+
interface GetAllChatAppsAdminRequest extends SiteAdminCommandRequestBase {
|
|
1831
|
+
command: 'getAllChatApps';
|
|
1832
|
+
}
|
|
1833
|
+
interface GetAllAgentsAdminRequest extends SiteAdminCommandRequestBase {
|
|
1834
|
+
command: 'getAllAgents';
|
|
1835
|
+
}
|
|
1836
|
+
interface GetAllToolsAdminRequest extends SiteAdminCommandRequestBase {
|
|
1837
|
+
command: 'getAllTools';
|
|
1838
|
+
}
|
|
1839
|
+
interface GetAllMemoryRecordsAdminRequest extends SiteAdminCommandRequestBase {
|
|
1840
|
+
command: 'getAllMemoryRecords';
|
|
1841
|
+
request: SearchAllMemoryRecordsRequest;
|
|
1842
|
+
}
|
|
1843
|
+
interface GetInstructionsAddedForUserMemoryAdminRequest extends SiteAdminCommandRequestBase {
|
|
1844
|
+
command: 'getInstructionsAddedForUserMemory';
|
|
1845
|
+
request: GetInstructionsAddedForUserMemoryRequest;
|
|
1846
|
+
}
|
|
1847
|
+
/**
|
|
1848
|
+
* Request format for semantic directive data passed to custom CloudFormation resource
|
|
1849
|
+
*/
|
|
1850
|
+
type SemanticDirectiveDataRequest = {
|
|
1851
|
+
userId: string;
|
|
1852
|
+
groupId: string;
|
|
1853
|
+
semanticDirectives: SemanticDirectiveForCreateOrUpdate[];
|
|
1854
|
+
};
|
|
1763
1855
|
interface GetValuesForEntityAutoCompleteRequest extends SiteAdminCommandRequestBase {
|
|
1764
1856
|
command: 'getValuesForEntityAutoComplete';
|
|
1765
1857
|
valueProvidedByUser: string;
|
|
@@ -1803,7 +1895,7 @@ interface ClearSvelteKitCachesRequest extends SiteAdminCommandRequestBase {
|
|
|
1803
1895
|
cacheType: ClearSvelteKitCacheType;
|
|
1804
1896
|
chatAppId?: string;
|
|
1805
1897
|
}
|
|
1806
|
-
declare const ClearSvelteKitCacheTypes: readonly ["chatAppCache", "tagDefinitionsCache", "instructionAssistanceConfigCache", "all"];
|
|
1898
|
+
declare const ClearSvelteKitCacheTypes: readonly ["chatAppCache", "tagDefinitionsCache", "instructionAssistanceConfigCache", "encryptionKeysCache", "all"];
|
|
1807
1899
|
type ClearSvelteKitCacheType = (typeof ClearSvelteKitCacheTypes)[number];
|
|
1808
1900
|
interface GetInstructionAssistanceConfigFromSsmRequest extends SiteAdminCommandRequestBase {
|
|
1809
1901
|
command: 'getInstructionAssistanceConfigFromSsm';
|
|
@@ -1811,7 +1903,22 @@ interface GetInstructionAssistanceConfigFromSsmRequest extends SiteAdminCommandR
|
|
|
1811
1903
|
interface GetInstructionAssistanceConfigFromSsmResponse extends SiteAdminCommandResponseBase {
|
|
1812
1904
|
config: InstructionAssistanceConfig;
|
|
1813
1905
|
}
|
|
1814
|
-
|
|
1906
|
+
interface GetAllChatAppsAdminResponse extends SiteAdminCommandResponseBase {
|
|
1907
|
+
chatApps: ChatApp[];
|
|
1908
|
+
}
|
|
1909
|
+
interface GetAllAgentsAdminResponse extends SiteAdminCommandResponseBase {
|
|
1910
|
+
agents: AgentDefinition[];
|
|
1911
|
+
}
|
|
1912
|
+
interface GetAllToolsAdminResponse extends SiteAdminCommandResponseBase {
|
|
1913
|
+
tools: ToolDefinition[];
|
|
1914
|
+
}
|
|
1915
|
+
interface GetAllMemoryRecordsAdminResponse extends SiteAdminCommandResponseBase {
|
|
1916
|
+
memoryRecords: PagedRecordsResult;
|
|
1917
|
+
}
|
|
1918
|
+
interface GetInstructionsAddedForUserMemoryAdminResponse extends SiteAdminCommandResponseBase {
|
|
1919
|
+
instructions: string;
|
|
1920
|
+
}
|
|
1921
|
+
type SiteAdminResponse = GetAgentResponse | GetInitialDataResponse | RefreshChatAppResponse | CreateOrUpdateChatAppOverrideResponse | DeleteChatAppOverrideResponse | GetValuesForEntityAutoCompleteResponse | GetValuesForUserAutoCompleteResponse | ClearConverseLambdaCacheResponse | ClearSvelteKitCachesResponse | AddChatSessionFeedbackResponse | UpdateChatSessionFeedbackResponse | SessionSearchResponse | GetChatMessagesAsAdminResponse | GetInstructionAssistanceConfigFromSsmResponse | GetAllChatAppsAdminResponse | GetAllAgentsAdminResponse | GetAllToolsAdminResponse | GetAllMemoryRecordsAdminResponse | GetInstructionsAddedForUserMemoryAdminResponse;
|
|
1815
1922
|
interface SiteAdminCommandResponseBase {
|
|
1816
1923
|
success: boolean;
|
|
1817
1924
|
error?: string;
|
|
@@ -2156,6 +2263,392 @@ interface SiteFeatures {
|
|
|
2156
2263
|
tags?: TagsSiteFeature;
|
|
2157
2264
|
/** Configure whether the agent instruction assistance feature is enabled. */
|
|
2158
2265
|
agentInstructionAssistance?: AgentInstructionAssistanceFeature;
|
|
2266
|
+
/** Configure whether the instruction augmentation feature is enabled. */
|
|
2267
|
+
instructionAugmentation?: InstructionAugmentationFeature;
|
|
2268
|
+
/** Configure whether the user memory feature is enabled. */
|
|
2269
|
+
userMemory?: UserMemoryFeature;
|
|
2270
|
+
}
|
|
2271
|
+
/**
|
|
2272
|
+
* Configure whether the user memory feature is enabled.
|
|
2273
|
+
*
|
|
2274
|
+
* When turned on, we will create a global memory space that will be used to store the user's memory
|
|
2275
|
+
* and then we will automatically store memory evnents based on the strategies turned on and the
|
|
2276
|
+
* queries made by the user. Then, we will query the memory to augment the prompt given to the LLM.
|
|
2277
|
+
*/
|
|
2278
|
+
interface UserMemoryFeature {
|
|
2279
|
+
enabled: boolean;
|
|
2280
|
+
/** The maximum number of memory recrods to enrich a single prompt with. Defaults to 25. */
|
|
2281
|
+
maxMemoryRecordsPerPrompt?: number;
|
|
2282
|
+
/** The maximum number of top matches to consider per strategy. Defaults to 5. */
|
|
2283
|
+
maxKMatchesPerStrategy?: number;
|
|
2284
|
+
}
|
|
2285
|
+
interface UserMemoryFeatureWithMemoryInfo extends UserMemoryFeature {
|
|
2286
|
+
memoryId: string;
|
|
2287
|
+
strategies: UserMemoryStrategy[];
|
|
2288
|
+
maxMemoryRecordsPerPrompt: number;
|
|
2289
|
+
maxKMatchesPerStrategy: number;
|
|
2290
|
+
}
|
|
2291
|
+
declare const UserMemoryStrategies: readonly ["preferences", "semantic", "summary"];
|
|
2292
|
+
type UserMemoryStrategy = (typeof UserMemoryStrategies)[number];
|
|
2293
|
+
interface UserMessageContent {
|
|
2294
|
+
type: 'user_message';
|
|
2295
|
+
text: string;
|
|
2296
|
+
}
|
|
2297
|
+
interface AssistantMessageContent {
|
|
2298
|
+
type: 'assistant_message';
|
|
2299
|
+
text: string;
|
|
2300
|
+
}
|
|
2301
|
+
interface AssistantRationaleContent {
|
|
2302
|
+
type: 'assistant_rationale';
|
|
2303
|
+
text: string;
|
|
2304
|
+
}
|
|
2305
|
+
interface ToolInvocationContent {
|
|
2306
|
+
type: 'tool_invocation';
|
|
2307
|
+
invocation: {
|
|
2308
|
+
actionGroupInvocationInput?: any;
|
|
2309
|
+
knowledgeBaseLookupInput?: any;
|
|
2310
|
+
agentCollaboratorInvocationInput?: any;
|
|
2311
|
+
codeInterpreterInvocationInput?: any;
|
|
2312
|
+
};
|
|
2313
|
+
}
|
|
2314
|
+
type MemoryContent = UserMessageContent | AssistantMessageContent | AssistantRationaleContent | ToolInvocationContent;
|
|
2315
|
+
type TypedContentWithRole = {
|
|
2316
|
+
content: MemoryContent;
|
|
2317
|
+
role: Role;
|
|
2318
|
+
};
|
|
2319
|
+
interface MemoryQueryOptions {
|
|
2320
|
+
/** natural-language query for semantic search, default to '*' if not sure what to provide */
|
|
2321
|
+
query: string;
|
|
2322
|
+
/** how many highest-scoring hits to consider (server-side); we still cap with `maxResults` */
|
|
2323
|
+
maxResults: number;
|
|
2324
|
+
/** if you are paging, you can provide the nextToken from the previous response */
|
|
2325
|
+
nextToken?: string;
|
|
2326
|
+
/** how many highest-scoring hits to consider (server-side); we still cap with `maxResults` */
|
|
2327
|
+
topK?: number;
|
|
2328
|
+
}
|
|
2329
|
+
type RetrievedMemoryContent = MemoryContent | string;
|
|
2330
|
+
interface RetrievedMemoryRecordSummary {
|
|
2331
|
+
memoryRecordId: string | undefined;
|
|
2332
|
+
content: RetrievedMemoryContent | undefined;
|
|
2333
|
+
memoryStrategyId: string | undefined;
|
|
2334
|
+
namespaces: string[] | undefined;
|
|
2335
|
+
createdAt: Date | undefined;
|
|
2336
|
+
score?: number | undefined;
|
|
2337
|
+
}
|
|
2338
|
+
type PagedRecordsResult = {
|
|
2339
|
+
records: RetrievedMemoryRecordSummary[];
|
|
2340
|
+
nextToken?: string;
|
|
2341
|
+
};
|
|
2342
|
+
interface SearchAllMyMemoryRecordsRequest {
|
|
2343
|
+
strategy: UserMemoryStrategy;
|
|
2344
|
+
nextToken?: string;
|
|
2345
|
+
}
|
|
2346
|
+
interface SearchAllMyMemoryRecordsResponse {
|
|
2347
|
+
success: boolean;
|
|
2348
|
+
error?: string;
|
|
2349
|
+
results: PagedRecordsResult;
|
|
2350
|
+
}
|
|
2351
|
+
interface SearchAllMemoryRecordsRequest {
|
|
2352
|
+
userId: string;
|
|
2353
|
+
strategy: UserMemoryStrategy;
|
|
2354
|
+
nextToken?: string;
|
|
2355
|
+
}
|
|
2356
|
+
interface SearchAllMemoryRecordsResponse {
|
|
2357
|
+
success: boolean;
|
|
2358
|
+
error?: string;
|
|
2359
|
+
results: PagedRecordsResult;
|
|
2360
|
+
}
|
|
2361
|
+
interface GetInstructionsAddedForUserMemoryRequest {
|
|
2362
|
+
userId: string;
|
|
2363
|
+
strategies: UserMemoryStrategy[];
|
|
2364
|
+
maxMemoryRecordsPerPrompt: number;
|
|
2365
|
+
maxKMatchesPerStrategy: number;
|
|
2366
|
+
prompt: string;
|
|
2367
|
+
}
|
|
2368
|
+
interface GetInstructionsAddedForUserMemoryResponse {
|
|
2369
|
+
success: boolean;
|
|
2370
|
+
error?: string;
|
|
2371
|
+
instructions: string;
|
|
2372
|
+
}
|
|
2373
|
+
/**
|
|
2374
|
+
* Sometimes you need to augment the prompt you will give to the LLM with additional information.
|
|
2375
|
+
* Currently, only one type of augmentation is supported: llm semantic search. This uses the scope of the
|
|
2376
|
+
* agent invocation (chat app ID, agent ID, entity ID) to search for semantic directives in a database
|
|
2377
|
+
* of canned semantic directives that match the scope of the agent invocation. Then, those semantic
|
|
2378
|
+
* directives are added to the prompt to be used by the LLM. The LLM then takes the end user's message
|
|
2379
|
+
* and the semantic directives and uses them to determine if any of the semantic directives should be
|
|
2380
|
+
* included in the prompt. If they should be included, then the semantic directive instruction is added to the prompt.
|
|
2381
|
+
*
|
|
2382
|
+
* Note that by default the feature is turned off. To turn it on, you must set the `enabled` property to `true` or
|
|
2383
|
+
* it will not be turned on. Then, all agents will have the type of augmentation chosen.
|
|
2384
|
+
*
|
|
2385
|
+
* Setting this as a site wide feature sets the default instruction augmentation type used, if turned on. Individual chat apps
|
|
2386
|
+
* may override this behavior, turning off the feature or changing the augmentation type.
|
|
2387
|
+
*
|
|
2388
|
+
* Note that today we only support one type of augmentation: llm semantic directive search. This is a light-weight
|
|
2389
|
+
* approach with a good balance of engineer velocity (don't have to ingest and index embeddings into a knowledge base),
|
|
2390
|
+
* performance and cost.
|
|
2391
|
+
*/
|
|
2392
|
+
interface InstructionAugmentationFeature {
|
|
2393
|
+
enabled: boolean;
|
|
2394
|
+
type?: InstructionAugmentationType;
|
|
2395
|
+
}
|
|
2396
|
+
declare const InstructionAugmentationTypes: readonly ["llm-semantic-directive-search"];
|
|
2397
|
+
type InstructionAugmentationType = (typeof InstructionAugmentationTypes)[number];
|
|
2398
|
+
declare const InstructionAugmentationTypeDisplayNames: {
|
|
2399
|
+
readonly 'llm-semantic-directive-search': "LLM Semantic Directive Search";
|
|
2400
|
+
};
|
|
2401
|
+
type InstructionAugmentationTypeDisplayName = (typeof InstructionAugmentationTypeDisplayNames)[keyof typeof InstructionAugmentationTypeDisplayNames];
|
|
2402
|
+
declare const InstructionAugmentationScopeTypes: readonly ["chatapp", "agent", "tool", "entity", "agent-entity"];
|
|
2403
|
+
type InstructionAugmentationScopeType = (typeof InstructionAugmentationScopeTypes)[number];
|
|
2404
|
+
declare const InstructionAugmentationScopeTypeDisplayNames: {
|
|
2405
|
+
readonly chatapp: "Chat App";
|
|
2406
|
+
readonly agent: "Agent";
|
|
2407
|
+
readonly tool: "Tool";
|
|
2408
|
+
readonly entity: "Entity";
|
|
2409
|
+
readonly 'agent-entity': "Agent and Entity";
|
|
2410
|
+
};
|
|
2411
|
+
type InstructionAugmentationScopeTypeDisplayName = (typeof InstructionAugmentationScopeTypeDisplayNames)[keyof typeof InstructionAugmentationScopeTypeDisplayNames];
|
|
2412
|
+
/**
|
|
2413
|
+
* This is used to take the actual chatapp, agent, tools, and entity values used in a given agent invocation and use them
|
|
2414
|
+
* to go search for the matching semantic directives in the database.
|
|
2415
|
+
*/
|
|
2416
|
+
type InvocationScopes = Partial<Record<InstructionAugmentationScopeType, (string | number | Record<string, string | number>)[] | undefined>>;
|
|
2417
|
+
/**
|
|
2418
|
+
* A semantic directive is a special case or additional instruction paragraph that you might want the LLM to have included
|
|
2419
|
+
* in its context when responding to a user's question but that doesn't belong in the main prompt. So, the LLM will
|
|
2420
|
+
* be given the semantic directives in the context of the user's question and will decide if any of them should be
|
|
2421
|
+
* included in the prompt. If they should be included, then the semantic directive instruction is added to the prompt.
|
|
2422
|
+
*
|
|
2423
|
+
* 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
|
|
2424
|
+
* craft the correct inputs to your tool based on the question from an end user. But, occasionally, you might wish to give
|
|
2425
|
+
* the LLM special instructions on certain details that are specific to a certain situation.
|
|
2426
|
+
*
|
|
2427
|
+
* Semantic directives are stored in a database and are associated with a scope. The scope is used to narrow down which
|
|
2428
|
+
* directives we will give to the light-weight LLM to consider for inclusion in your prompt. We first search the
|
|
2429
|
+
* database based on chat app, agent, tool and entity to get the set of directives that match the scope and then have the
|
|
2430
|
+
* LLM tell us if we should include them in the prompt.
|
|
2431
|
+
*
|
|
2432
|
+
* 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,
|
|
2433
|
+
* assuming you have turned on the entity feature. The value of the entity is entityFeature.attributeName.
|
|
2434
|
+
*
|
|
2435
|
+
* In your pika-config.ts file, you can turn on the entity feature by setting the entity feature to true.
|
|
2436
|
+
*/
|
|
2437
|
+
interface SemanticDirective {
|
|
2438
|
+
/**
|
|
2439
|
+
* You don't set this value directly. Instead, you set the scopeType and scopeValue from which we will construct the scope.
|
|
2440
|
+
*
|
|
2441
|
+
* Remember that we might have a database full of these semantic directives. The scope then narrows down which
|
|
2442
|
+
* directives we will give to the light-weight LLM to consider for inclusion in your prompt. We first search the
|
|
2443
|
+
* database based on chat app, agent, tool and entity to get the set of directives that match the scope and then have the
|
|
2444
|
+
* LLM tell us if we should include them in the prompt.
|
|
2445
|
+
*
|
|
2446
|
+
* We support the following scopes at present:
|
|
2447
|
+
* - chatapp: The ID of the chat app this semantic directive is associated with.
|
|
2448
|
+
* - agent: The ID of the agent this semantic directive is associated with.
|
|
2449
|
+
* - tool: the ID of the tool this semantic directive is associated with.
|
|
2450
|
+
* - entity: The ID of the entity this semantic directive is associated with. Of course, if your pika instance
|
|
2451
|
+
* doesn't turn on the uses of entities, then this scope will not be used.
|
|
2452
|
+
*
|
|
2453
|
+
* We support only the following compound scopes at present:
|
|
2454
|
+
* - agent#{agent-id}#entity#{entity-id}
|
|
2455
|
+
*
|
|
2456
|
+
* Examples:
|
|
2457
|
+
*
|
|
2458
|
+
* - `chatapp#weather-chat-app`
|
|
2459
|
+
* - `agent#weather-agent`
|
|
2460
|
+
* - `tool#weather-tool`
|
|
2461
|
+
* - `entity#account-123`
|
|
2462
|
+
* - `agent#weather-agent#entity#account-123` // matches only for queries by account-123 to the weather agent
|
|
2463
|
+
*/
|
|
2464
|
+
scope: string;
|
|
2465
|
+
/**
|
|
2466
|
+
* The type of scope this semantic directive is associated with. This tells us what
|
|
2467
|
+
* the value in `scopeValue` is.
|
|
2468
|
+
*/
|
|
2469
|
+
scopeType: InstructionAugmentationScopeType;
|
|
2470
|
+
/**
|
|
2471
|
+
* The value of the scope this semantic directive is associated with. This is a string or an object
|
|
2472
|
+
* depending on the value of `scopeType`.
|
|
2473
|
+
*
|
|
2474
|
+
* If `scopeType` is `agent` then this will be the agent ID.
|
|
2475
|
+
* If `scopeType` is `tool` then this will be the tool ID.
|
|
2476
|
+
* If `scopeType` is `entity` then this will be the entity ID (entityFeature.attributeName from user.customData).
|
|
2477
|
+
* If `scopeType` is `agent-entity` then this will be {agent: string, entity: string}.
|
|
2478
|
+
*/
|
|
2479
|
+
scopeValue: string | number | Record<string, string | number>;
|
|
2480
|
+
/**
|
|
2481
|
+
* This plus scope must be unique across all semantic directives.
|
|
2482
|
+
*
|
|
2483
|
+
* Just a human-readable ID for the semantic directive. Consider it a variable name: may use dashes and underscores
|
|
2484
|
+
* and should start with a letter (no spaces or special characters). E.g. "account-details", "customer-support", "order-status", etc.
|
|
2485
|
+
* Used for db queries and to help engineers identify the semantic directive easily in a UI or DB.
|
|
2486
|
+
*/
|
|
2487
|
+
id: string;
|
|
2488
|
+
/**
|
|
2489
|
+
* Used internally to group semantic directives created by a custom cloudformation resource. You shouldn't use this.
|
|
2490
|
+
* For example, a specific agent in a given stack may include CDK to define its semantic directives. Pika needs to
|
|
2491
|
+
* know the complete set of semantic directives that exist for that group so that the agent author can have the
|
|
2492
|
+
* freedom to modify semantic directive scope values. This groupId then is how the pika platform will be able
|
|
2493
|
+
* to query for all the semantic directives created as a "group" by the agent author and know which semantic directives
|
|
2494
|
+
* should be deleted because they are no longer present in the CDK stack.
|
|
2495
|
+
*
|
|
2496
|
+
* Don't set this value directly. Instead, let the custom cloudformation resource set it for you using the
|
|
2497
|
+
* `event.StackName` of the stack that created the semantic directive.
|
|
2498
|
+
*/
|
|
2499
|
+
groupId?: string;
|
|
2500
|
+
/**
|
|
2501
|
+
* This is what the light-weight LLM will use to decide if the question asked by the end user means that
|
|
2502
|
+
* this semantic directive should be included in the prompt to ensure the final LLM gives a correct response.
|
|
2503
|
+
*/
|
|
2504
|
+
description: string;
|
|
2505
|
+
/**
|
|
2506
|
+
* If the light-weight LLM determines that this semantic directive should be included in the prompt, then these
|
|
2507
|
+
* instructions will be included in the final prompt to the final LLM to guide its response.
|
|
2508
|
+
*/
|
|
2509
|
+
instructions: string;
|
|
2510
|
+
/** If true, the semantic directive will not be used to augment the prompt. */
|
|
2511
|
+
disabled?: boolean;
|
|
2512
|
+
/** ISO 8601 formatted timestamp of when the semantic directive was created */
|
|
2513
|
+
createDate: string;
|
|
2514
|
+
/** User who created the semantic directive */
|
|
2515
|
+
createdBy: string;
|
|
2516
|
+
/** User who last updated the semantic directive */
|
|
2517
|
+
lastUpdatedBy: string;
|
|
2518
|
+
/** ISO 8601 formatted timestamp of the last semantic directive update */
|
|
2519
|
+
lastUpdate: string;
|
|
2520
|
+
}
|
|
2521
|
+
interface SemanticDirectiveForCreateOrUpdate extends Omit<SemanticDirective, 'scope' | 'createDate' | 'lastUpdate'> {
|
|
2522
|
+
createdBy: string;
|
|
2523
|
+
lastUpdatedBy: string;
|
|
2524
|
+
}
|
|
2525
|
+
interface SemanticDirectiveCreateOrUpdateRequest {
|
|
2526
|
+
semanticDirective: SemanticDirectiveForCreateOrUpdate;
|
|
2527
|
+
/**
|
|
2528
|
+
* If you are creating one of these objects through the CloudFormation custom resource, then you should set this
|
|
2529
|
+
* to be something that is tied to the stack that did the creation/update and we ask that you prepend it with 'cloudformation/'
|
|
2530
|
+
* so we understand it was created/updated by cloudformation as in 'cloudformation/my-stack-name'.
|
|
2531
|
+
*/
|
|
2532
|
+
userId: string;
|
|
2533
|
+
}
|
|
2534
|
+
interface SemanticDirectiveCreateOrUpdateResponse {
|
|
2535
|
+
success: boolean;
|
|
2536
|
+
semanticDirective: SemanticDirective;
|
|
2537
|
+
}
|
|
2538
|
+
interface SemanticDirectiveScope {
|
|
2539
|
+
scopeType: InstructionAugmentationScopeType;
|
|
2540
|
+
scopeValue: string | number | Record<string, string | number>;
|
|
2541
|
+
}
|
|
2542
|
+
/**
|
|
2543
|
+
* Search request for semantic directives. Supports multiple search patterns based on our DynamoDB table design:
|
|
2544
|
+
* - If findOne is provided, then we will return the first directive that matches the scopeType, scopeValue and id.
|
|
2545
|
+
* - Query by specific scopes (main table access pattern)
|
|
2546
|
+
* - Query by creator and date range (GSI1: createdBy + createDate)
|
|
2547
|
+
* - Query by directive ID(s) across scopes (GSI2: id + scope)
|
|
2548
|
+
* - Date range filtering (created or updated)
|
|
2549
|
+
*
|
|
2550
|
+
* If no search criteria provided, returns all directives with pagination.
|
|
2551
|
+
*/
|
|
2552
|
+
interface SearchSemanticDirectivesRequest {
|
|
2553
|
+
findOne?: {
|
|
2554
|
+
scopeType: InstructionAugmentationScopeType;
|
|
2555
|
+
scopeValue: string | number | Record<string, string | number>;
|
|
2556
|
+
id: string;
|
|
2557
|
+
};
|
|
2558
|
+
/**
|
|
2559
|
+
* Search for directives within specific scopes.
|
|
2560
|
+
* Uses parallel DynamoDB queries against the main table (PK = scope).
|
|
2561
|
+
*/
|
|
2562
|
+
scopes?: SemanticDirectiveScope[];
|
|
2563
|
+
/** Will be used by the custom cloudformation resource to query for all semantic directives created as a "group" by the agent author. */
|
|
2564
|
+
groupId?: string;
|
|
2565
|
+
/**
|
|
2566
|
+
* Search for directives created by a specific user.
|
|
2567
|
+
* When provided, results are automatically sorted by createDate (newest first by default).
|
|
2568
|
+
*
|
|
2569
|
+
* Uses GSI1: createdBy + createDate
|
|
2570
|
+
*/
|
|
2571
|
+
createdBy?: string;
|
|
2572
|
+
/**
|
|
2573
|
+
* Search for directives by specific IDs.
|
|
2574
|
+
* Returns directives matching any of the provided IDs across all scopes.
|
|
2575
|
+
*
|
|
2576
|
+
* Uses GSI2: id + scope
|
|
2577
|
+
*/
|
|
2578
|
+
directiveIds?: string[];
|
|
2579
|
+
/**
|
|
2580
|
+
* Filter directives created after this ISO 8601 timestamp.
|
|
2581
|
+
* Can be combined with other filters.
|
|
2582
|
+
* Example: "2024-01-15T00:00:00Z"
|
|
2583
|
+
*/
|
|
2584
|
+
createdAfter?: string;
|
|
2585
|
+
/**
|
|
2586
|
+
* Filter directives created before this ISO 8601 timestamp.
|
|
2587
|
+
* Can be combined with other filters.
|
|
2588
|
+
* Example: "2024-01-31T23:59:59Z"
|
|
2589
|
+
*/
|
|
2590
|
+
createdBefore?: string;
|
|
2591
|
+
/**
|
|
2592
|
+
* Filter directives updated after this ISO 8601 timestamp.
|
|
2593
|
+
* Can be combined with other filters.
|
|
2594
|
+
*/
|
|
2595
|
+
updatedAfter?: string;
|
|
2596
|
+
/**
|
|
2597
|
+
* Filter directives updated before this ISO 8601 timestamp.
|
|
2598
|
+
* Can be combined with other filters.
|
|
2599
|
+
*/
|
|
2600
|
+
updatedBefore?: string;
|
|
2601
|
+
/**
|
|
2602
|
+
* Sort order for results when using createdBy search or no specific search criteria.
|
|
2603
|
+
* - 'asc': Oldest first
|
|
2604
|
+
* - 'desc': Newest first (default)
|
|
2605
|
+
*/
|
|
2606
|
+
sortOrder?: 'asc' | 'desc';
|
|
2607
|
+
/**
|
|
2608
|
+
* Maximum number of directives to return per page.
|
|
2609
|
+
* Default: 50, Max: 100
|
|
2610
|
+
*/
|
|
2611
|
+
limit?: number;
|
|
2612
|
+
/**
|
|
2613
|
+
* Pagination token from previous search response.
|
|
2614
|
+
* Include your original search criteria when using pagination.
|
|
2615
|
+
*/
|
|
2616
|
+
paginationToken?: Record<string, any>;
|
|
2617
|
+
/**
|
|
2618
|
+
* If true, includes the full directive instructions in response.
|
|
2619
|
+
* If false, returns directive metadata only (scope, id, description, dates, etc).
|
|
2620
|
+
* Default: false (to save bandwidth)
|
|
2621
|
+
*/
|
|
2622
|
+
includeInstructions?: boolean;
|
|
2623
|
+
/**
|
|
2624
|
+
* If true, excludes disabled directives in the response.
|
|
2625
|
+
* Default: false
|
|
2626
|
+
*/
|
|
2627
|
+
excludeDisabled?: boolean;
|
|
2628
|
+
}
|
|
2629
|
+
interface SearchSemanticDirectivesResponse {
|
|
2630
|
+
success: boolean;
|
|
2631
|
+
/** Array of semantic directives matching the search criteria */
|
|
2632
|
+
semanticDirectives: SemanticDirective[];
|
|
2633
|
+
/** Total count of directives found (may be larger than returned array due to pagination) */
|
|
2634
|
+
totalCount?: number;
|
|
2635
|
+
/** If present, there are more results available. Pass this token back in the next request. */
|
|
2636
|
+
paginationToken?: Record<string, any>;
|
|
2637
|
+
}
|
|
2638
|
+
interface SemanticDirectiveDeleteRequest {
|
|
2639
|
+
semanticDirective: {
|
|
2640
|
+
scope: string;
|
|
2641
|
+
id: string;
|
|
2642
|
+
};
|
|
2643
|
+
/**
|
|
2644
|
+
* If you are deleting one of these objects through the CloudFormation custom resource, then you should set this
|
|
2645
|
+
* to be something that is tied to the stack that did the deletion and we ask that you prepend it with 'cloudformation/'
|
|
2646
|
+
* so we understand it was deleted by cloudformation as in 'cloudformation/my-stack-name'.
|
|
2647
|
+
*/
|
|
2648
|
+
userId: string;
|
|
2649
|
+
}
|
|
2650
|
+
interface SemanticDirectiveDeleteResponse {
|
|
2651
|
+
success: boolean;
|
|
2159
2652
|
}
|
|
2160
2653
|
interface TagsSiteFeature {
|
|
2161
2654
|
/**
|
|
@@ -2654,4 +3147,4 @@ interface TagDefInJsonFile {
|
|
|
2654
3147
|
gzippedBase64EncodedString: string;
|
|
2655
3148
|
}
|
|
2656
3149
|
|
|
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 };
|
|
3150
|
+
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 AssistantMessageContent, type AssistantRationaleContent, 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, DEFAULT_EVENT_EXPIRY_DURATION, DEFAULT_MAX_K_MATCHES_PER_STRATEGY, DEFAULT_MAX_MEMORY_RECORDS_PER_PROMPT, DEFAULT_MEMORY_STRATEGIES, 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 GetAllMemoryRecordsAdminRequest, type GetAllMemoryRecordsAdminResponse, 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 GetInstructionsAddedForUserMemoryAdminRequest, type GetInstructionsAddedForUserMemoryAdminResponse, type GetInstructionsAddedForUserMemoryRequest, type GetInstructionsAddedForUserMemoryResponse, 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 InlineToolDefinition, 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 MemoryContent, type MemoryQueryOptions, type MessageSegment, type MessageSegmentBase, MessageSource, type NameValueDescTriple, type NameValuePair, type OAuth, type PagedRecordsResult, type PikaConfig, type PikaStack, type PikaUserRole, PikaUserRoles, type PromptInputFieldLabelFeature, type PromptInputFieldLabelFeatureForChatApp, type RecordOrUndef, type RefreshChatAppRequest, type RefreshChatAppResponse, type RetrievedMemoryContent, type RetrievedMemoryRecordSummary, 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 SearchAllMemoryRecordsRequest, type SearchAllMemoryRecordsResponse, type SearchAllMyMemoryRecordsRequest, type SearchAllMyMemoryRecordsResponse, 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 ToolInvocationContent, type ToolLifecycle, type TracesFeature, type TracesFeatureForChatApp, type TypedContentWithRole, 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 UserMemoryFeature, type UserMemoryFeatureForChatApp, type UserMemoryFeatureWithMemoryInfo, UserMemoryStrategies, type UserMemoryStrategy, type UserMessageContent, 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 };
|