pika-shared 1.0.2 → 1.1.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.
@@ -1,4 +1,4 @@
1
- import { Trace, RetrievalFilter, FunctionDefinition } from '@aws-sdk/client-bedrock-agent-runtime';
1
+ import { Trace, AgentCollaboration, RetrievalFilter, FunctionDefinition } from '@aws-sdk/client-bedrock-agent-runtime';
2
2
 
3
3
  type CompanyType = 'retailer' | 'supplier';
4
4
  /**
@@ -584,6 +584,26 @@ interface ChatAppOverridableFeatures {
584
584
  showUserRegionInLeftNav: boolean;
585
585
  showChatHistoryInStandaloneMode: boolean;
586
586
  };
587
+ tags: TagsChatAppOverridableFeature;
588
+ agentInstructionAssistance: AgentInstructionChatAppOverridableFeature;
589
+ }
590
+ interface AgentInstructionChatAppOverridableFeature {
591
+ enabled: boolean;
592
+ includeOutputFormattingRequirements: boolean;
593
+ includeInstructionsForTags: boolean;
594
+ completeExampleInstructionEnabled: boolean;
595
+ completeExampleInstructionLine?: string;
596
+ jsonOnlyImperativeInstructionEnabled: boolean;
597
+ jsonOnlyImperativeInstructionLine?: string;
598
+ }
599
+ interface InstructionAssistanceConfig {
600
+ outputFormattingRequirements: string;
601
+ tagInstructions?: string;
602
+ completeExampleInstructionLine: string;
603
+ jsonOnlyImperativeInstructionLine: string;
604
+ }
605
+ interface TagsChatAppOverridableFeature {
606
+ tagsEnabled: TagDefinitionLite[];
587
607
  }
588
608
  type ChatAppOverridableFeaturesForConverseFn = Omit<ChatAppOverridableFeatures, 'chatDisclaimerNotice' | 'traces' | 'logout' | 'suggestions' | 'promptInputFieldLabel' | 'uiCustomization' | 'fileUpload'>;
589
609
  /**
@@ -660,11 +680,13 @@ interface BaseRequestData {
660
680
  timezone?: string;
661
681
  }
662
682
  interface ConverseRequestWithCommand {
663
- command: 'clearChatAppCache';
664
- chatAppId?: string;
683
+ command: 'clearConverseLambdaCache';
684
+ cacheType: ClearConverseLambdaCacheType;
665
685
  agentId?: string;
666
686
  userId: string;
667
687
  }
688
+ declare const ClearConverseLambdaCacheTypes: readonly ["agent", "tagDefinitions", "instructionAssistanceConfig", "all"];
689
+ type ClearConverseLambdaCacheType = (typeof ClearConverseLambdaCacheTypes)[number];
668
690
  interface ConverseRequest extends BaseRequestData {
669
691
  message: string;
670
692
  /**
@@ -703,6 +725,15 @@ interface SessionSearchAdminRequest {
703
725
  command: 'sessionSearch';
704
726
  search: SessionSearchRequest<RecordOrUndef>;
705
727
  }
728
+ interface GetAgentRequest {
729
+ command: 'getAgent';
730
+ agentId: string;
731
+ }
732
+ interface GetAgentResponse {
733
+ success: boolean;
734
+ agent: AgentDefinition | undefined;
735
+ error?: string;
736
+ }
706
737
  interface GetChatSessionFeedbackResponse {
707
738
  success: boolean;
708
739
  feedback: ChatSessionFeedback[];
@@ -956,6 +987,10 @@ interface RolloutPolicy {
956
987
  interface AgentDefinition {
957
988
  /** Unique agent identifier (e.g., 'weather-bot') */
958
989
  agentId: string;
990
+ /** Foundation model to use for this agent. */
991
+ foundationModel?: string;
992
+ /** Foundation model to use for verifying the response of this agent. */
993
+ verificationFoundationModel?: string;
959
994
  /** System prompt template (can be a handlebars template with placeholders like {{user.email}}) */
960
995
  basePrompt: string;
961
996
  /** List of access control rules with conditions. If not provided, the agent will be accessible to all users. */
@@ -966,6 +1001,14 @@ interface AgentDefinition {
966
1001
  rolloutPolicy?: RolloutPolicy;
967
1002
  /** Cache configuration for testing and debugging, used in lambdas that create LRU caches for agent definitions */
968
1003
  dontCacheThis?: boolean;
1004
+ /** List of collaborator agent IDs that are used to orchestrate this agent. */
1005
+ collaborators?: {
1006
+ agentId: string;
1007
+ instruction: string;
1008
+ historyRelay: 'TO_COLLABORATOR' | 'TO_AGENT';
1009
+ }[];
1010
+ /** The collaboration type for this agent. */
1011
+ agentCollaboration?: AgentCollaboration;
969
1012
  /** List of tool definitions that this agent uses */
970
1013
  toolIds: string[];
971
1014
  /** A list of knowledge bases that are associated with this agent. */
@@ -1028,6 +1071,7 @@ interface AgentDataRequest {
1028
1071
  type ToolIdToLambdaArnMap = Record<string, string>;
1029
1072
  interface AgentAndTools {
1030
1073
  agent: AgentDefinition;
1074
+ collaborators?: AgentDefinition[];
1031
1075
  tools?: ToolDefinition[];
1032
1076
  }
1033
1077
  interface AgentDataResponse {
@@ -1341,7 +1385,7 @@ interface ChatAppDataRequest {
1341
1385
  /**
1342
1386
  * These are the features that are available to be overridden by the chat app.
1343
1387
  */
1344
- type ChatAppFeature = FileUploadFeatureForChatApp | SuggestionsFeatureForChatApp | PromptInputFieldLabelFeatureForChatApp | UiCustomizationFeatureForChatApp | VerifyResponseFeatureForChatApp | TracesFeatureForChatApp | ChatDisclaimerNoticeFeatureForChatApp | LogoutFeatureForChatApp | SessionInsightsFeatureForChatApp | UserDataOverrideFeatureForChatApp;
1388
+ type ChatAppFeature = FileUploadFeatureForChatApp | SuggestionsFeatureForChatApp | PromptInputFieldLabelFeatureForChatApp | UiCustomizationFeatureForChatApp | VerifyResponseFeatureForChatApp | TracesFeatureForChatApp | ChatDisclaimerNoticeFeatureForChatApp | LogoutFeatureForChatApp | SessionInsightsFeatureForChatApp | UserDataOverrideFeatureForChatApp | TagsFeatureForChatApp | AgentInstructionAssistanceFeatureForChatApp;
1345
1389
  interface Feature {
1346
1390
  /**
1347
1391
  * Must be unique, only alphanumeric and - _ allowed, may not start with a number
@@ -1352,7 +1396,7 @@ interface Feature {
1352
1396
  /** 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. */
1353
1397
  enabled: boolean;
1354
1398
  }
1355
- declare const FeatureIdList: readonly ["fileUpload", "promptInputFieldLabel", "suggestions", "uiCustomization", "verifyResponse", "traces", "chatDisclaimerNotice", "logout", "sessionInsights", "userDataOverrides"];
1399
+ declare const FeatureIdList: readonly ["fileUpload", "promptInputFieldLabel", "suggestions", "uiCustomization", "verifyResponse", "traces", "chatDisclaimerNotice", "logout", "sessionInsights", "userDataOverrides", "tags", "agentInstructionAssistance"];
1356
1400
  type FeatureIdType = (typeof FeatureIdList)[number];
1357
1401
  declare const EndToEndFeatureIdList: readonly ["verifyResponse", "traces"];
1358
1402
  type EndToEndFeatureIdType = (typeof EndToEndFeatureIdList)[number];
@@ -1553,6 +1597,105 @@ interface PromptInputFieldLabelFeature {
1553
1597
  interface PromptInputFieldLabelFeatureForChatApp extends PromptInputFieldLabelFeature, Feature {
1554
1598
  featureId: 'promptInputFieldLabel';
1555
1599
  }
1600
+ interface AgentInstructionAssistanceFeatureForChatApp extends Feature, AgentInstructionAssistanceFeature {
1601
+ featureId: 'agentInstructionAssistance';
1602
+ }
1603
+ /**
1604
+ * 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
+ *
1606
+ * The `includeInstructionsForTags` feature is used to inject the instructions for tags into the prompt at `{{tag-instructions}}` if found in the prompt.
1607
+ * If not found, then the instructions will be appended to the end of the prompt. Note there is a separate feature named `tags` that is used
1608
+ * to define which tags are available for the agent. @see TagsFeatureForChatApp
1609
+ *
1610
+ * Thus the `tags` feature is how you decide which tags your chat app will allow. Each tag is marked as to whether it can be generated by the LLM or a tool.
1611
+ * So, when you turn on the AgentInstructionsAssistance feature in a chat app, pika knows which tags are available that we need to inject into the prompt.
1612
+ *
1613
+ * Note that when an agent is invoked in the context of a chat app, meaning through the pika chat app UI, the agent will be passed a
1614
+ * PromptInstructionAssistance object based on the features of the chat app in question. The site wide features can define the config for this feature
1615
+ * and the chat app can override it. So the pika front end will figure out which config is in play and pass the right value to the agent when it is
1616
+ * invoked.
1617
+ *
1618
+ * If the agent is invoked directly by your own custom client, you can pass in your own PromptInstructionAssistanceFeature object to specify the agent instructions
1619
+ * config.
1620
+ *
1621
+ * A common use case for this is to disable the includeInstructionsForTags.
1622
+ */
1623
+ interface AgentInstructionAssistanceFeature {
1624
+ /**
1625
+ * If enabled, a markdown section titled Output Formatting Requirements will be added into your prompt. You can control where the prompt assistance language is added in
1626
+ * by using a replacement placeholder titled `{{prompt-assistance}}` in your prompt. If found, the prompt assistance language will be added at the location of the placeholder.
1627
+ * The injected prompt assistance language will first add the output formatting requirements, then the instructions for tags,
1628
+ * then the complete example instruction line, and finally the json only imperative instruction line.
1629
+ *
1630
+ * If `{{prompt-assistance}}` is not found, then we look for more fine-grained control by looking for these specific placeholder tags:
1631
+ * `{{output-formatting-requirements}}`, `{{tag-instructions}}`, `{{complete-example-instruction-line}}` and `{{json-only-imperative-instruction-line}}`. Of course,
1632
+ * if you haven't turned on the `includeInstructionsForTags` feature, then we will not inject the tag instructions.
1633
+ *
1634
+ * If neither `{{prompt-assistance}}` nor any of the specific placeholder tags are found, then the prompt assistance language will be appended to the end of the prompt
1635
+ * in this order: output formatting requirements, tag instructions, complete example instruction line, and json only imperative instruction line. If `{{prompt-assistance}}`
1636
+ * is not found and you did not specify all of the specific placeholder tags but you did turn on a feature that means we should inject instructions then we
1637
+ * will add the corresponding instructions to the end of the prompt.
1638
+ *
1639
+ * Here is what will be added to the prompt at a minimum:
1640
+ *
1641
+ * ```markdown
1642
+ * // If includeOutputFormattingRequirements.enabled is true
1643
+ * {{output-formatting-requirements}}
1644
+ *
1645
+ * // If includeInstructionsForTags.enabled is true
1646
+ * {{tag-instructions}}
1647
+ *
1648
+ * // If completeExampleInstructionLine.enabled is true
1649
+ * {{complete-example-instruction-line}}
1650
+ *
1651
+ * // If jsonOnlyImperativeInstructionLine.enabled is true
1652
+ * {{json-only-imperative-instruction-line}}
1653
+ *
1654
+ * ```
1655
+ */
1656
+ enabled: boolean;
1657
+ /**
1658
+ * If enabled, basic output formatting requirements will be injected into the prompt at
1659
+ * `{{output-formatting-requirements}}` if found in the prompt. If not found, then the requirements will be appended to the end of the prompt.
1660
+ * This provides foundational formatting guidance for the agent's responses.
1661
+ */
1662
+ includeOutputFormattingRequirements?: {
1663
+ enabled: boolean;
1664
+ };
1665
+ /**
1666
+ * If enabled, then the instructions for tags that are available for the agent will be injected into the prompt at
1667
+ * `{{tag-instructions}}` if found in the prompt. If not found, then the instructions will be appended to the end of the prompt.
1668
+ */
1669
+ includeInstructionsForTags?: {
1670
+ enabled: boolean;
1671
+ };
1672
+ /**
1673
+ * If true, a line will be added to the prompt assistance language that instructs the agent to include a complete example of the tag structure.
1674
+ * If mdLine is provided, it will be used as the line. If mdLine is not provided, a default line will be used:
1675
+ *
1676
+ * ```markdown
1677
+ * `<answer>##Example markdown\nNormal text and an <image>http://some.url</image> and some **bold text**\n<chart>(...)</chart></answer>`
1678
+ * ```
1679
+ *
1680
+ * This will intelligenlty not include the <image> and <chart> tags in the exmaple if they are not supported in your instructions.
1681
+ */
1682
+ completeExampleInstructionLine?: {
1683
+ enabled: boolean;
1684
+ mdLine?: string;
1685
+ };
1686
+ /**
1687
+ * If true, a line will be added to the prompt assistance language that instructs the agent to only respond with valid JSON.
1688
+ * If mdLine is provided, it will be used as the line. If mdLine is not provided, a default line will be used:
1689
+ *
1690
+ * ```markdown
1691
+ * BE ABSOLUTELY CERTAIN ANY JSON INCLUDED IS 100% VALID (especially for charts). Invalid JSON will break the user experience.
1692
+ * ```
1693
+ */
1694
+ jsonOnlyImperativeInstructionLine?: {
1695
+ enabled: boolean;
1696
+ line?: string;
1697
+ };
1698
+ }
1556
1699
  type SegmentType = 'text' | 'tag';
1557
1700
  /**
1558
1701
  * Represents the status of content being streamed into a segment.
@@ -1593,8 +1736,8 @@ interface TextMessageSegment extends MessageSegmentBase {
1593
1736
  segmentType: 'text';
1594
1737
  }
1595
1738
  type MessageSegment = TagMessageSegment | TextMessageSegment;
1596
- type SiteAdminRequest = GetInitialDataRequest | RefreshChatAppRequest | CreateOrUpdateChatAppOverrideRequest | DeleteChatAppOverrideRequest | GetValuesForEntityAutoCompleteRequest | GetValuesForUserAutoCompleteRequest | ClearChatAppCacheRequest | AddChatSessionFeedbackAdminRequest | UpdateChatSessionFeedbackAdminRequest | SessionSearchAdminRequest | GetChatMessagesAsAdminRequest;
1597
- declare const SiteAdminCommand: readonly ["getInitialData", "refreshChatApp", "createOrUpdateChatAppOverride", "deleteChatAppOverride", "getValuesForEntityAutoComplete", "getValuesForUserAutoComplete", "clearChatAppCache", "addChatSessionFeedback", "updateChatSessionFeedback", "sessionSearch", "getChatMessagesAsAdmin"];
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"];
1598
1741
  type SiteAdminCommand = (typeof SiteAdminCommand)[number];
1599
1742
  interface SiteAdminCommandRequestBase {
1600
1743
  command: SiteAdminCommand;
@@ -1605,6 +1748,18 @@ interface GetChatMessagesAsAdminRequest extends SiteAdminCommandRequestBase {
1605
1748
  chatAppId: string;
1606
1749
  userId: string;
1607
1750
  }
1751
+ interface CreateOrUpdateTagDefinitionAdminRequest extends SiteAdminCommandRequestBase {
1752
+ command: 'createOrUpdateTagDefinition';
1753
+ request: TagDefinitionCreateOrUpdateRequest;
1754
+ }
1755
+ interface DeleteTagDefinitionAdminRequest extends SiteAdminCommandRequestBase {
1756
+ command: 'deleteTagDefinition';
1757
+ request: TagDefinitionDeleteRequest;
1758
+ }
1759
+ interface SearchTagDefinitionsAdminRequest extends SiteAdminCommandRequestBase {
1760
+ command: 'searchTagDefinitions';
1761
+ request: TagDefinitionSearchRequest;
1762
+ }
1608
1763
  interface GetValuesForEntityAutoCompleteRequest extends SiteAdminCommandRequestBase {
1609
1764
  command: 'getValuesForEntityAutoComplete';
1610
1765
  valueProvidedByUser: string;
@@ -1637,12 +1792,26 @@ interface DeleteChatAppOverrideRequest extends SiteAdminCommandRequestBase {
1637
1792
  command: 'deleteChatAppOverride';
1638
1793
  chatAppId: string;
1639
1794
  }
1640
- interface ClearChatAppCacheRequest extends SiteAdminCommandRequestBase {
1641
- command: 'clearChatAppCache';
1795
+ interface ClearConverseLambdaCacheRequest extends SiteAdminCommandRequestBase {
1796
+ command: 'clearConverseLambdaCache';
1797
+ cacheType: ClearConverseLambdaCacheType;
1642
1798
  chatAppId?: string;
1643
1799
  agentId?: string;
1644
1800
  }
1645
- type SiteAdminResponse = GetInitialDataResponse | RefreshChatAppResponse | CreateOrUpdateChatAppOverrideResponse | DeleteChatAppOverrideResponse | GetValuesForEntityAutoCompleteResponse | GetValuesForUserAutoCompleteResponse | ClearChatAppCacheResponse | AddChatSessionFeedbackResponse | UpdateChatSessionFeedbackResponse | SessionSearchResponse | GetChatMessagesAsAdminResponse;
1801
+ interface ClearSvelteKitCachesRequest extends SiteAdminCommandRequestBase {
1802
+ command: 'clearSvelteKitCaches';
1803
+ cacheType: ClearSvelteKitCacheType;
1804
+ chatAppId?: string;
1805
+ }
1806
+ declare const ClearSvelteKitCacheTypes: readonly ["chatAppCache", "tagDefinitionsCache", "instructionAssistanceConfigCache", "all"];
1807
+ type ClearSvelteKitCacheType = (typeof ClearSvelteKitCacheTypes)[number];
1808
+ interface GetInstructionAssistanceConfigFromSsmRequest extends SiteAdminCommandRequestBase {
1809
+ command: 'getInstructionAssistanceConfigFromSsm';
1810
+ }
1811
+ interface GetInstructionAssistanceConfigFromSsmResponse extends SiteAdminCommandResponseBase {
1812
+ config: InstructionAssistanceConfig;
1813
+ }
1814
+ type SiteAdminResponse = GetAgentResponse | GetInitialDataResponse | RefreshChatAppResponse | CreateOrUpdateChatAppOverrideResponse | DeleteChatAppOverrideResponse | GetValuesForEntityAutoCompleteResponse | GetValuesForUserAutoCompleteResponse | ClearConverseLambdaCacheResponse | ClearSvelteKitCachesResponse | AddChatSessionFeedbackResponse | UpdateChatSessionFeedbackResponse | SessionSearchResponse | GetChatMessagesAsAdminResponse | GetInstructionAssistanceConfigFromSsmResponse;
1646
1815
  interface SiteAdminCommandResponseBase {
1647
1816
  success: boolean;
1648
1817
  error?: string;
@@ -1650,7 +1819,11 @@ interface SiteAdminCommandResponseBase {
1650
1819
  interface GetChatMessagesAsAdminResponse extends SiteAdminCommandResponseBase {
1651
1820
  messages: ChatMessage[];
1652
1821
  }
1653
- interface ClearChatAppCacheResponse extends SiteAdminCommandResponseBase {
1822
+ interface ClearConverseLambdaCacheResponse extends SiteAdminCommandResponseBase {
1823
+ }
1824
+ interface ClearSvelteKitCachesResponse extends SiteAdminCommandResponseBase {
1825
+ clearedCount?: number;
1826
+ cacheType: string;
1654
1827
  }
1655
1828
  interface GetValuesForEntityAutoCompleteResponse extends SiteAdminCommandResponseBase {
1656
1829
  data: SimpleOption[] | undefined;
@@ -1979,6 +2152,26 @@ interface SiteFeatures {
1979
2152
  uiCustomization?: UiCustomizationFeature;
1980
2153
  /** Configure whether the session insights feature is enabled. */
1981
2154
  sessionInsights?: SessionInsightsFeature;
2155
+ /** Configure which tag definitions are enabled by default at the site level. */
2156
+ tags?: TagsSiteFeature;
2157
+ /** Configure whether the agent instruction assistance feature is enabled. */
2158
+ agentInstructionAssistance?: AgentInstructionAssistanceFeature;
2159
+ }
2160
+ interface TagsSiteFeature {
2161
+ /**
2162
+ * Whether to enable the tags feature. If this is turned off you will lost a lot of the functionality of the chat app.
2163
+ */
2164
+ enabled: boolean;
2165
+ /**
2166
+ * The tag definitions that are enabled by default. If not provided, then no tag definitions are enabled.
2167
+ * Each chat app can override this list by providing its own list of tagsEnabled in its chat app config.
2168
+ */
2169
+ tagsEnabled?: TagDefinitionLite[];
2170
+ /**
2171
+ * The tag definitions that are prohibited by default. If not provided, then no tag definitions are prohibited.
2172
+ * Chat apps may not override this list.
2173
+ */
2174
+ tagsProhibited?: TagDefinitionLite[];
1982
2175
  }
1983
2176
  /**
1984
2177
  * Configure whether the session insights feature is enabled. When turned on, Pika will
@@ -2015,6 +2208,14 @@ interface SessionInsightsOpenSearchConfig {
2015
2208
  /** Defaults to gp3 if not provided. */
2016
2209
  volumeType?: string;
2017
2210
  }
2211
+ interface TagsFeatureForChatApp extends Feature {
2212
+ featureId: 'tags';
2213
+ /**
2214
+ * The tag definitions that are enabled by default. If not provided, then no tag definitions are enabled.
2215
+ * Each chat app can override this list by providing its own list of tagsEnabled in its chat app config.
2216
+ */
2217
+ tagsEnabled?: TagDefinitionLite[];
2218
+ }
2018
2219
  interface SessionInsightsFeatureForChatApp extends Feature {
2019
2220
  featureId: 'sessionInsights';
2020
2221
  }
@@ -2236,5 +2437,221 @@ interface NameValueDescTriple<T> {
2236
2437
  value: T;
2237
2438
  desc?: string;
2238
2439
  }
2440
+ /**
2441
+ * A component that renders a tag is expected to have a tag definition that defines the tag and the instructions for how to render it.
2442
+ *
2443
+ */
2444
+ interface ComponentTagDefinition<T extends TagDefinitionWidget> {
2445
+ definition: TagDefinition<T>;
2446
+ }
2447
+ interface TagDefinition<T extends TagDefinitionWidget> {
2448
+ /**
2449
+ * The tag type this definition is for. If the tag is one of the built-in pika tags, then you are overriding the built-in pika tag instructions
2450
+ * that will be included in the prompt assistance language.
2451
+ *
2452
+ * If the tag is a custom tag, then you are adding a new custom tag to the agent prompt definition.
2453
+ *
2454
+ * Do not include your scope on the tag name, we will add it for you.
2455
+ */
2456
+ tag: string;
2457
+ /**
2458
+ * We didn't start with the expectation that tags would have a scope that prefixes the tag name. We are now requiring it. However,
2459
+ * a few of our initial tags were not scoped and so we are allowing you to provide a legacy alias for the tag. This is not recommended
2460
+ * and you should use the scope instead.
2461
+ *
2462
+ * Here is the complete set of legacy tag aliases: download, chart, prompt, image. If you try to set this to anything but one of these, we will
2463
+ * error out and not take your tag definition.
2464
+ *
2465
+ * We will remove this in the near future. You've been warned.
2466
+ */
2467
+ legacyTagName?: string;
2468
+ /**
2469
+ * The scope of the tag. This is used to group tags together and prevent collisions with other tags.
2470
+ *
2471
+ * Inside the system, your tag will be known as `<scope>.<tag>`. For example, the chart tag will be known as `<pika.chart></pika.chart>`.
2472
+ *
2473
+ * As a result, scope must not include punctuation of any kind to be valid xml and keep things simple. All lower case is recommended but it's up to you.
2474
+ * Your aim is to ensure uniqueness of the tag name across all tags in the system and to keep it short and simple to use as few characters as possible within reason.
2475
+ *
2476
+ * This will be `pika` for built in tags the platform natively supports. If you are adding a custom tag, you should use a
2477
+ * scope that is unique to your application, chat app or agent.
2478
+ */
2479
+ scope: string;
2480
+ /**
2481
+ * This should be a pluralized noun that represents the tag and be capitalized.
2482
+ *
2483
+ * For example, the chart tag title is "Charts". The prompt tag title is "Follow-up Prompts". The image tag title is "Images".
2484
+ *
2485
+ * Do not use markdown in this title.
2486
+ */
2487
+ tagTitle: string;
2488
+ /**
2489
+ * This should be a short example of the tag structure. It may be used in the prompt assistance language injected into your prompt in a quick list of tags available for the LLM to generate.
2490
+ *
2491
+ * For example, the chart tag structure example is `<pika.chart></pika.chart>`. The prompt tag structure example is `<pika.prompt></pika.prompt>`. The image tag structure example is `<pika.image></pika.image>`.
2492
+ *
2493
+ * Be sure that you use `${scope}.` in front of the tag name.
2494
+ *
2495
+ * Do not use markdown in this example and don't surround with backticks, just the tag structure itself. Don't include a body to the tag, even if it has one.
2496
+ */
2497
+ shortTagEx: string;
2498
+ /**
2499
+ * If true, the tag can be generated by the LLM.
2500
+ */
2501
+ canBeGeneratedByLlm: boolean;
2502
+ /**
2503
+ * If true, the tag will be generated by a tool of an agent.
2504
+ */
2505
+ canBeGeneratedByTool: boolean;
2506
+ /**
2507
+ * A description of the tag. This will be used to describe the tag in admin-facing UI. Don't use markdown in this description.
2508
+ */
2509
+ description: string;
2510
+ /** Cache configuration for testing and debugging, used in lambdas/ecs containers that create LRU caches for tag definitions */
2511
+ dontCacheThis?: boolean;
2512
+ /** You must be explicit about whether this tag is a widget or not and if so what kind. */
2513
+ widget: T;
2514
+ /** If true, the tag will be disabled and not available to the LLM or tools. */
2515
+ disabled?: boolean;
2516
+ /**
2517
+ * If `canBeGeneratedByLlm` is true, you must provide instructions for the LLM to generate the tag since chat app/agent builders can choose
2518
+ * to have the instructions injected into the agent instructions prompt for a given tag.
2519
+ *
2520
+ * When we inject your instructions into the agent instructions prompt, we will do the following:
2521
+ *
2522
+ * 1. We will use the `tagTitle` as the bullet title for your tag instructions: `- **tagTitle:**`
2523
+ * 2. We will wrap your markdown instructions in XML tags to prevent formatting conflicts with the rest of the injected instructions
2524
+ *
2525
+ * Here's a complete example of what we will generate for you:
2526
+ *
2527
+ * ```markdown
2528
+ * - **Charts:**
2529
+ * <tag-instructions type="chart">
2530
+ * To include a pika chart, use the `<pika.chart></pika.chart>` tags.
2531
+ * The content within the tags MUST be valid Chart.js version 4 JSON, including `type` and `data` properties.
2532
+ *
2533
+ * **Example:** `<pika.chart>{"type":"line","data":{"labels":["May","June","July","August"],"datasets":[{"label":"Avg Temperature (°C)","data":[2,3,7,12]}]}}</pika.chart>`
2534
+ *
2535
+ * **Usage:** Include pika charts whenever they can visually represent data, trends, or comparisons effectively.
2536
+ * </tag-instructions>
2537
+ * ```
2538
+ *
2539
+ * The markdown you provide should be well-formatted and can use any standard markdown features (lists, bold, code blocks, etc.).
2540
+ * The XML wrapper ensures that your formatting doesn't interfere with the overall instruction structure.
2541
+ */
2542
+ llmInstructionsMd?: string;
2543
+ /** The user id of the user who created the tag definition */
2544
+ createdBy: string;
2545
+ /** The user id of the user who last updated the tag definition */
2546
+ lastUpdatedBy: string;
2547
+ /** ISO 8601 formatted timestamp of when the session was created */
2548
+ createDate: string;
2549
+ /** ISO 8601 formatted timestamp of the last session update */
2550
+ lastUpdate: string;
2551
+ }
2552
+ interface TagDefinitionLite {
2553
+ tag: string;
2554
+ scope: string;
2555
+ }
2556
+ type TagDefinitionForCreateOrUpdate<T extends TagDefinitionWidget = TagDefinitionWidget> = Omit<TagDefinition<T>, 'createdBy' | 'lastUpdatedBy' | 'createDate' | 'lastUpdate'>;
2557
+ /**
2558
+ * Pika compiled-in components are those defined as part of the compiled svelte front end code in `apps/pika-chat/src/lib/client/features/chat/message-segments/default-components/index.ts`.
2559
+ *
2560
+ * Custom compiled-in components are those defined by the user in their app as a svelte component. They are defined in `apps/pika-chat/src/lib/client/features/chat/message-segments/custom-components/index.ts`.
2561
+ *
2562
+ * Web components are those that are defined as standalone js files that are uploaded to s3 and then dynamically loaded into the front end.
2563
+ * If web-component then the `webComponent` property must be provided.
2564
+ *
2565
+ * Pass through means we will simply pass this through and not process the tag in any way. This is useful for tags that are not meant to be rendered in the front end.
2566
+ */
2567
+ type TagDefinitionWidgetType = 'pass-through' | 'pika-compiled-in' | 'custom-compiled-in' | 'web-component';
2568
+ interface TagDefinitionWidgetPikaCompiledIn extends TagDefinitionWidgetBase {
2569
+ type: 'pika-compiled-in';
2570
+ }
2571
+ interface TagDefinitionWidgetCustomCompiledIn extends TagDefinitionWidgetBase {
2572
+ type: 'custom-compiled-in';
2573
+ }
2574
+ interface TagDefinitionWidgetWebComponent extends TagDefinitionWidgetBase {
2575
+ type: 'web-component';
2576
+ webComponent: TagDefinitionWebComponent;
2577
+ }
2578
+ interface TagDefinitionWidgetPassThrough extends TagDefinitionWidgetBase {
2579
+ type: 'pass-through';
2580
+ }
2581
+ interface TagDefinitionWidgetBase {
2582
+ /**
2583
+ * The type of widget that will be used to render this tag.
2584
+ */
2585
+ type: TagDefinitionWidgetType;
2586
+ }
2587
+ type TagDefinitionWidget = TagDefinitionWidgetPassThrough | TagDefinitionWidgetPikaCompiledIn | TagDefinitionWidgetCustomCompiledIn | TagDefinitionWidgetWebComponent;
2588
+ type TagWebComponentEncoding = 'gzip+base64';
2589
+ interface TagDefinitionWebComponent {
2590
+ type: 'web-component';
2591
+ s3Bucket: string;
2592
+ s3Key: string;
2593
+ encoding: TagWebComponentEncoding;
2594
+ mediaType: 'application/javascript';
2595
+ encodedSizeBytes: number;
2596
+ /** Hash of EXACT S3 object bytes (post-encoding) */
2597
+ encodedSha256Base64: string;
2598
+ }
2599
+ interface TagDefinitionCreateOrUpdateRequest {
2600
+ tagDefinition: TagDefinitionForCreateOrUpdate;
2601
+ /**
2602
+ * If you are creating one of these objects through the CloudFormation custom resource, then you should set this
2603
+ * to be something that is tied to the stack that did the creation/update and we ask that you prepend it with 'cloudformation/'
2604
+ * so we understand it was created/updated by cloudformation as in 'cloudformation/my-stack-name'.
2605
+ */
2606
+ userId: string;
2607
+ }
2608
+ interface TagDefinitionCreateOrUpdateResponse {
2609
+ success: boolean;
2610
+ tagDefinition: TagDefinition<TagDefinitionWidget>;
2611
+ }
2612
+ /**
2613
+ * You don't have to provide anything in this request if you don't want to. If you don't pass in tagsDesire...
2614
+ *
2615
+ * If this is being used in the context of admin API then
2616
+ * you will get all tag definitions. If this is being used in the context of a chat app user, then you will get all tag defs not disabled.
2617
+ *
2618
+ *
2619
+ * If you do pass in tagsDesired, then our dynamodb query will scan the table for all rows (should be performant since there won't be more than a
2620
+ * few hundred tag defs at absolute most) and then will filter them to only those that match the tagsDesired. Note if this is being called in the
2621
+ * context of a chat app user, then you will get all tag defs not disabled even if you pass in tagsDesired.
2622
+ *
2623
+ * Instructions can be big so unless you ask for them, we will not return them.
2624
+ */
2625
+ interface TagDefinitionSearchRequest {
2626
+ tagsDesired?: TagDefinitionLite[];
2627
+ /** If not true, instructions will not be returned to save space. */
2628
+ includeInstructions?: boolean;
2629
+ /**
2630
+ * If you pass in a pagination token, we will return the next page of tag defs. Be sure to include your original
2631
+ * request (tagsDesired, includeInstructions) if they were present in the original request.
2632
+ */
2633
+ paginationToken?: Record<string, any> | undefined;
2634
+ }
2635
+ interface TagDefinitionSearchResponse {
2636
+ success: boolean;
2637
+ tagDefinitions: TagDefinition<TagDefinitionWidget>[];
2638
+ /** If this is present, there are more records that could be returned. Pass this token in to get the next page with the same request. */
2639
+ paginationToken?: Record<string, any> | undefined;
2640
+ }
2641
+ interface TagDefinitionDeleteRequest {
2642
+ tagDefinition: TagDefinitionLite;
2643
+ userId: string;
2644
+ }
2645
+ interface TagDefinitionDeleteResponse {
2646
+ success: boolean;
2647
+ }
2648
+ interface TagDefinitionsJsonFile {
2649
+ tagDefs: TagDefInJsonFile[];
2650
+ }
2651
+ interface TagDefInJsonFile {
2652
+ tag: string;
2653
+ scope: string;
2654
+ gzippedBase64EncodedString: string;
2655
+ }
2239
2656
 
2240
- 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 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 ClearChatAppCacheRequest, type ClearChatAppCacheResponse, type ClearUserOverrideDataRequest, type ClearUserOverrideDataResponse, type CompanyType, 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 CreateToolRequest, type CustomDataUiRepresentation, type DeleteChatAppOverrideRequest, type DeleteChatAppOverrideResponse, 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 GetChatAppsByRulesRequest, type GetChatAppsByRulesResponse, type GetChatMessagesAsAdminRequest, type GetChatMessagesAsAdminResponse, type GetChatSessionFeedbackResponse, type GetChatUserPrefsResponse, type GetInitialDataRequest, type GetInitialDataResponse, type GetInitialDialogDataRequest, type GetInitialDialogDataResponse, 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 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 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 TagMessageSegment, 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 };
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 };