@aws-sdk/client-bedrock-agent-runtime 3.758.0 → 3.765.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-cjs/index.js +295 -24
- package/dist-es/models/models_0.js +42 -5
- package/dist-es/models/models_1.js +21 -4
- package/dist-es/protocols/Aws_restJson1.js +213 -5
- package/dist-types/commands/CreateSessionCommand.d.ts +1 -1
- package/dist-types/commands/InvokeAgentCommand.d.ts +49 -0
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +269 -64
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +244 -106
- package/dist-types/models/models_1.d.ts +256 -66
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +69 -25
- package/dist-types/ts3.4/models/models_1.d.ts +46 -11
- package/package.json +1 -1
|
@@ -1,4 +1,64 @@
|
|
|
1
|
-
import { AgentActionGroup, BedrockModelConfigurations, ConversationHistory, ExternalSourcesRetrieveAndGenerateConfiguration, FilterAttribute, GenerationConfiguration, GuardrailConfiguration, GuardrailConfigurationWithArn, ImplicitFilterConfiguration, InlineBedrockModelConfigurations, InlineSessionState, InputFile, InvocationResultMember, KnowledgeBaseQuery, OrchestrationConfiguration, PromptOverrideConfiguration, RetrieveAndGenerateInput, RetrieveAndGenerateSessionConfiguration, RetrieveAndGenerateType, SearchType, StreamingConfigurations, VectorSearchRerankingConfiguration } from "./models_0";
|
|
1
|
+
import { AgentActionGroup, AgentCollaboration, BedrockModelConfigurations, CollaboratorConfiguration, ConversationHistory, ExternalSourcesRetrieveAndGenerateConfiguration, FilterAttribute, GenerationConfiguration, GuardrailConfiguration, GuardrailConfigurationWithArn, ImplicitFilterConfiguration, InlineBedrockModelConfigurations, InlineSessionState, InputFile, InvocationResultMember, KnowledgeBaseQuery, OrchestrationConfiguration, PromptOverrideConfiguration, RetrieveAndGenerateInput, RetrieveAndGenerateSessionConfiguration, RetrieveAndGenerateType, SearchType, StreamingConfigurations, VectorSearchRerankingConfiguration } from "./models_0";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface ListTagsForResourceRequest {
|
|
6
|
+
/**
|
|
7
|
+
* <p>The Amazon Resource Name (ARN) of the resource for which to list tags.</p>
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
resourceArn: string | undefined;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
export interface ListTagsForResourceResponse {
|
|
16
|
+
/**
|
|
17
|
+
* <p>The key-value pairs for the tags associated with the resource.</p>
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
tags?: Record<string, string> | undefined;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export interface TagResourceRequest {
|
|
26
|
+
/**
|
|
27
|
+
* <p>The Amazon Resource Name (ARN) of the resource to tag.</p>
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
resourceArn: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* <p>An object containing key-value pairs that define the tags to attach to the resource.</p>
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
35
|
+
tags: Record<string, string> | undefined;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
40
|
+
export interface TagResourceResponse {
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
export interface UntagResourceRequest {
|
|
46
|
+
/**
|
|
47
|
+
* <p>The Amazon Resource Name (ARN) of the resource from which to remove tags.</p>
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
resourceArn: string | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* <p>A list of keys of the tags to remove from the resource.</p>
|
|
53
|
+
* @public
|
|
54
|
+
*/
|
|
55
|
+
tagKeys: string[] | undefined;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
export interface UntagResourceResponse {
|
|
61
|
+
}
|
|
2
62
|
/**
|
|
3
63
|
* <p>Specifies the filters to use on the metadata attributes in the knowledge base data sources before returning results. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html">Query configurations</a>. See the examples below to see how to use these filters.</p>
|
|
4
64
|
* <p>This data type is used in the following API operations:</p>
|
|
@@ -44,7 +104,16 @@ export declare namespace RetrievalFilter {
|
|
|
44
104
|
$unknown?: never;
|
|
45
105
|
}
|
|
46
106
|
/**
|
|
47
|
-
* <p>Knowledge base data sources
|
|
107
|
+
* <p>Knowledge base data sources are returned when:</p>
|
|
108
|
+
* <ul>
|
|
109
|
+
* <li>
|
|
110
|
+
* <p>It contains a metadata attribute whose name matches the <code>key</code> and whose value doesn't match the <code>value</code>
|
|
111
|
+
* in this object.</p>
|
|
112
|
+
* </li>
|
|
113
|
+
* <li>
|
|
114
|
+
* <p>The key is not present in the document.</p>
|
|
115
|
+
* </li>
|
|
116
|
+
* </ul>
|
|
48
117
|
* <p>The following example would return data sources that don't contain an <code>animal</code> attribute whose value is <code>cat</code>.</p>
|
|
49
118
|
* <p>
|
|
50
119
|
* <code>"notEquals": \{ "key": "animal", "value": "cat" \}</code>
|
|
@@ -565,7 +634,9 @@ export interface RetrieveRequest {
|
|
|
565
634
|
export interface RetrieveAndGenerateConfiguration {
|
|
566
635
|
/**
|
|
567
636
|
* <p>The type of resource that contains your data for retrieving information and generating responses.</p>
|
|
568
|
-
* <
|
|
637
|
+
* <note>
|
|
638
|
+
* <p>If you choose to use <code>EXTERNAL_SOURCES</code>, then currently only Anthropic Claude 3 Sonnet models for knowledge bases are supported.</p>
|
|
639
|
+
* </note>
|
|
569
640
|
* @public
|
|
570
641
|
*/
|
|
571
642
|
type: RetrieveAndGenerateType | undefined;
|
|
@@ -581,124 +652,90 @@ export interface RetrieveAndGenerateConfiguration {
|
|
|
581
652
|
externalSourcesConfiguration?: ExternalSourcesRetrieveAndGenerateConfiguration | undefined;
|
|
582
653
|
}
|
|
583
654
|
/**
|
|
655
|
+
* <p>
|
|
656
|
+
* List of inline collaborators.
|
|
657
|
+
* </p>
|
|
584
658
|
* @public
|
|
585
659
|
*/
|
|
586
|
-
export interface
|
|
587
|
-
/**
|
|
588
|
-
* <p>
|
|
589
|
-
* The unique identifier of the session. Use the same value across requests to continue the same conversation.
|
|
590
|
-
* </p>
|
|
591
|
-
* @public
|
|
592
|
-
*/
|
|
593
|
-
sessionId: string | undefined;
|
|
660
|
+
export interface Collaborator {
|
|
594
661
|
/**
|
|
595
662
|
* <p>
|
|
596
|
-
* The Amazon Resource Name (ARN) of the
|
|
663
|
+
* The Amazon Resource Name (ARN) of the AWS KMS key that encrypts the inline collaborator.
|
|
597
664
|
* </p>
|
|
598
665
|
* @public
|
|
599
666
|
*/
|
|
600
667
|
customerEncryptionKeyArn?: string | undefined;
|
|
601
668
|
/**
|
|
602
669
|
* <p>
|
|
603
|
-
*
|
|
604
|
-
* </p>
|
|
605
|
-
* @public
|
|
606
|
-
*/
|
|
607
|
-
endSession?: boolean | undefined;
|
|
608
|
-
/**
|
|
609
|
-
* <p>
|
|
610
|
-
* Specifies whether to turn on the trace or not to track the agent's reasoning process. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/trace-events.html">Using trace</a>.
|
|
611
|
-
*
|
|
612
|
-
* </p>
|
|
613
|
-
* @public
|
|
614
|
-
*/
|
|
615
|
-
enableTrace?: boolean | undefined;
|
|
616
|
-
/**
|
|
617
|
-
* <p>
|
|
618
|
-
* The prompt text to send to the agent.
|
|
619
|
-
* </p>
|
|
620
|
-
* <note>
|
|
621
|
-
* <p>If you include <code>returnControlInvocationResults</code> in the <code>sessionState</code> field, the <code>inputText</code> field will be ignored.</p>
|
|
622
|
-
* </note>
|
|
623
|
-
* @public
|
|
624
|
-
*/
|
|
625
|
-
inputText?: string | undefined;
|
|
626
|
-
/**
|
|
627
|
-
* <p>
|
|
628
|
-
* Parameters that specify the various attributes of a sessions. You can include attributes for the session or prompt or, if you configured an
|
|
629
|
-
* action group to return control, results from invocation of the action group. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html">Control session context</a>.
|
|
630
|
-
* </p>
|
|
631
|
-
* <note>
|
|
632
|
-
* <p>If you include <code>returnControlInvocationResults</code> in the <code>sessionState</code> field, the <code>inputText</code> field will be ignored.</p>
|
|
633
|
-
* </note>
|
|
634
|
-
* @public
|
|
635
|
-
*/
|
|
636
|
-
inlineSessionState?: InlineSessionState | undefined;
|
|
637
|
-
/**
|
|
638
|
-
* <p>
|
|
639
|
-
* The <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns">model identifier (ID)</a> of the model to use for orchestration by the inline agent. For example, <code>meta.llama3-1-70b-instruct-v1:0</code>.
|
|
670
|
+
* The foundation model used by the inline collaborator agent.
|
|
640
671
|
* </p>
|
|
641
672
|
* @public
|
|
642
673
|
*/
|
|
643
674
|
foundationModel: string | undefined;
|
|
644
675
|
/**
|
|
645
676
|
* <p>
|
|
646
|
-
*
|
|
677
|
+
* Instruction that tell the inline collaborator agent what it should do and how it should interact with users.
|
|
647
678
|
* </p>
|
|
648
679
|
* @public
|
|
649
680
|
*/
|
|
650
681
|
instruction: string | undefined;
|
|
651
682
|
/**
|
|
652
683
|
* <p>
|
|
653
|
-
* The number of seconds for which the
|
|
684
|
+
* The number of seconds for which the Amazon Bedrock keeps information about the user's conversation with the inline collaborator agent.</p>
|
|
685
|
+
* <p>A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.
|
|
654
686
|
* </p>
|
|
655
|
-
* <p>A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and the data provided before the timeout is deleted.</p>
|
|
656
687
|
* @public
|
|
657
688
|
*/
|
|
658
689
|
idleSessionTTLInSeconds?: number | undefined;
|
|
659
690
|
/**
|
|
660
691
|
* <p>
|
|
661
|
-
*
|
|
692
|
+
* List of action groups with each action group defining tasks the inline collaborator agent needs to carry out.
|
|
662
693
|
* </p>
|
|
663
694
|
* @public
|
|
664
695
|
*/
|
|
665
696
|
actionGroups?: AgentActionGroup[] | undefined;
|
|
666
697
|
/**
|
|
667
698
|
* <p>
|
|
668
|
-
*
|
|
699
|
+
* Knowledge base associated with the inline collaborator agent.
|
|
669
700
|
* </p>
|
|
670
701
|
* @public
|
|
671
702
|
*/
|
|
672
703
|
knowledgeBases?: KnowledgeBase[] | undefined;
|
|
673
704
|
/**
|
|
674
705
|
* <p>
|
|
675
|
-
*
|
|
706
|
+
* Details of the guardwrail associated with the inline collaborator.
|
|
676
707
|
* </p>
|
|
677
708
|
* @public
|
|
678
709
|
*/
|
|
679
710
|
guardrailConfiguration?: GuardrailConfigurationWithArn | undefined;
|
|
680
711
|
/**
|
|
681
712
|
* <p>
|
|
682
|
-
*
|
|
713
|
+
* Contains configurations to override prompt templates in different parts of an inline collaborator sequence. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html">Advanced prompts</a>.
|
|
683
714
|
* </p>
|
|
684
715
|
* @public
|
|
685
716
|
*/
|
|
686
717
|
promptOverrideConfiguration?: PromptOverrideConfiguration | undefined;
|
|
687
718
|
/**
|
|
688
|
-
* <p>
|
|
719
|
+
* <p>
|
|
720
|
+
* Defines how the inline supervisor agent handles information across multiple collaborator agents to coordinate a final response.
|
|
721
|
+
* </p>
|
|
689
722
|
* @public
|
|
690
723
|
*/
|
|
691
|
-
|
|
724
|
+
agentCollaboration?: AgentCollaboration | undefined;
|
|
692
725
|
/**
|
|
693
726
|
* <p>
|
|
694
|
-
*
|
|
727
|
+
* Settings of the collaborator agent.
|
|
695
728
|
* </p>
|
|
696
|
-
* <note>
|
|
697
|
-
* <p>To use agent streaming, you need permissions to perform the <code>bedrock:InvokeModelWithResponseStream</code> action.</p>
|
|
698
|
-
* </note>
|
|
699
729
|
* @public
|
|
700
730
|
*/
|
|
701
|
-
|
|
731
|
+
collaboratorConfigurations?: CollaboratorConfiguration[] | undefined;
|
|
732
|
+
/**
|
|
733
|
+
* <p>
|
|
734
|
+
* Name of the inline collaborator agent which must be the same name as specified for <code>collaboratorName</code>.
|
|
735
|
+
* </p>
|
|
736
|
+
* @public
|
|
737
|
+
*/
|
|
738
|
+
agentName?: string | undefined;
|
|
702
739
|
}
|
|
703
740
|
/**
|
|
704
741
|
* @public
|
|
@@ -756,12 +793,20 @@ export interface RetrieveAndGenerateStreamRequest {
|
|
|
756
793
|
*/
|
|
757
794
|
export interface SessionState {
|
|
758
795
|
/**
|
|
759
|
-
* <p>Contains attributes that persist across a session and the values of those attributes.</p>
|
|
796
|
+
* <p>Contains attributes that persist across a session and the values of those attributes. If <code>sessionAttributes</code> are passed to a supervisor agent in <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-multi-agent-collaboration.html">multi-agent collaboration</a>, it will be forwarded to all agent collaborators.</p>
|
|
760
797
|
* @public
|
|
761
798
|
*/
|
|
762
799
|
sessionAttributes?: Record<string, string> | undefined;
|
|
763
800
|
/**
|
|
764
|
-
* <p>Contains attributes that persist across a prompt and the values of those attributes.
|
|
801
|
+
* <p>Contains attributes that persist across a prompt and the values of those attributes. </p>
|
|
802
|
+
* <ul>
|
|
803
|
+
* <li>
|
|
804
|
+
* <p>In orchestration prompt template, these attributes replace the $prompt_session_attributes$ placeholder variable. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html">Prompt template placeholder variables</a>.</p>
|
|
805
|
+
* </li>
|
|
806
|
+
* <li>
|
|
807
|
+
* <p>In <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-multi-agent-collaboration.html">multi-agent collaboration</a>, the <code>promptSessionAttributes</code> will only be used by supervisor agent when $prompt_session_attributes$ is present in prompt template. </p>
|
|
808
|
+
* </li>
|
|
809
|
+
* </ul>
|
|
765
810
|
* @public
|
|
766
811
|
*/
|
|
767
812
|
promptSessionAttributes?: Record<string, string> | undefined;
|
|
@@ -865,6 +910,147 @@ export interface InvokeAgentRequest {
|
|
|
865
910
|
*/
|
|
866
911
|
sourceArn?: string | undefined;
|
|
867
912
|
}
|
|
913
|
+
/**
|
|
914
|
+
* @public
|
|
915
|
+
*/
|
|
916
|
+
export interface InvokeInlineAgentRequest {
|
|
917
|
+
/**
|
|
918
|
+
* <p>
|
|
919
|
+
* The Amazon Resource Name (ARN) of the Amazon Web Services KMS key to use to encrypt your inline agent.
|
|
920
|
+
* </p>
|
|
921
|
+
* @public
|
|
922
|
+
*/
|
|
923
|
+
customerEncryptionKeyArn?: string | undefined;
|
|
924
|
+
/**
|
|
925
|
+
* <p>
|
|
926
|
+
* The <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns">model identifier (ID)</a> of the model to use for orchestration by the inline agent. For example, <code>meta.llama3-1-70b-instruct-v1:0</code>.
|
|
927
|
+
* </p>
|
|
928
|
+
* @public
|
|
929
|
+
*/
|
|
930
|
+
foundationModel: string | undefined;
|
|
931
|
+
/**
|
|
932
|
+
* <p>
|
|
933
|
+
* The instructions that tell the inline agent what it should do and how it should interact with users.
|
|
934
|
+
* </p>
|
|
935
|
+
* @public
|
|
936
|
+
*/
|
|
937
|
+
instruction: string | undefined;
|
|
938
|
+
/**
|
|
939
|
+
* <p>
|
|
940
|
+
* The number of seconds for which the inline agent should maintain session information. After this time expires, the subsequent <code>InvokeInlineAgent</code> request begins a new session.
|
|
941
|
+
* </p>
|
|
942
|
+
* <p>A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and the data provided before the timeout is deleted.</p>
|
|
943
|
+
* @public
|
|
944
|
+
*/
|
|
945
|
+
idleSessionTTLInSeconds?: number | undefined;
|
|
946
|
+
/**
|
|
947
|
+
* <p>
|
|
948
|
+
* A list of action groups with each action group defining the action the inline agent needs to carry out.
|
|
949
|
+
* </p>
|
|
950
|
+
* @public
|
|
951
|
+
*/
|
|
952
|
+
actionGroups?: AgentActionGroup[] | undefined;
|
|
953
|
+
/**
|
|
954
|
+
* <p>
|
|
955
|
+
* Contains information of the knowledge bases to associate with.
|
|
956
|
+
* </p>
|
|
957
|
+
* @public
|
|
958
|
+
*/
|
|
959
|
+
knowledgeBases?: KnowledgeBase[] | undefined;
|
|
960
|
+
/**
|
|
961
|
+
* <p>
|
|
962
|
+
* The <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html">guardrails</a> to assign to the inline agent.
|
|
963
|
+
* </p>
|
|
964
|
+
* @public
|
|
965
|
+
*/
|
|
966
|
+
guardrailConfiguration?: GuardrailConfigurationWithArn | undefined;
|
|
967
|
+
/**
|
|
968
|
+
* <p>
|
|
969
|
+
* Configurations for advanced prompts used to override the default prompts to enhance the accuracy of the inline agent.
|
|
970
|
+
* </p>
|
|
971
|
+
* @public
|
|
972
|
+
*/
|
|
973
|
+
promptOverrideConfiguration?: PromptOverrideConfiguration | undefined;
|
|
974
|
+
/**
|
|
975
|
+
* <p>
|
|
976
|
+
* Defines how the inline collaborator agent handles information across multiple collaborator agents to coordinate a final response. The inline collaborator agent can also be the supervisor.
|
|
977
|
+
* </p>
|
|
978
|
+
* @public
|
|
979
|
+
*/
|
|
980
|
+
agentCollaboration?: AgentCollaboration | undefined;
|
|
981
|
+
/**
|
|
982
|
+
* <p>
|
|
983
|
+
* Settings for an inline agent collaborator called with <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeInlineAgent.html">InvokeInlineAgent</a>.
|
|
984
|
+
* </p>
|
|
985
|
+
* @public
|
|
986
|
+
*/
|
|
987
|
+
collaboratorConfigurations?: CollaboratorConfiguration[] | undefined;
|
|
988
|
+
/**
|
|
989
|
+
* <p>
|
|
990
|
+
* The unique identifier of the session. Use the same value across requests to continue the same conversation.
|
|
991
|
+
* </p>
|
|
992
|
+
* @public
|
|
993
|
+
*/
|
|
994
|
+
sessionId: string | undefined;
|
|
995
|
+
/**
|
|
996
|
+
* <p>
|
|
997
|
+
* Specifies whether to end the session with the inline agent or not.
|
|
998
|
+
* </p>
|
|
999
|
+
* @public
|
|
1000
|
+
*/
|
|
1001
|
+
endSession?: boolean | undefined;
|
|
1002
|
+
/**
|
|
1003
|
+
* <p>
|
|
1004
|
+
* Specifies whether to turn on the trace or not to track the agent's reasoning process. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/trace-events.html">Using trace</a>.
|
|
1005
|
+
*
|
|
1006
|
+
* </p>
|
|
1007
|
+
* @public
|
|
1008
|
+
*/
|
|
1009
|
+
enableTrace?: boolean | undefined;
|
|
1010
|
+
/**
|
|
1011
|
+
* <p>
|
|
1012
|
+
* The prompt text to send to the agent.
|
|
1013
|
+
* </p>
|
|
1014
|
+
* <note>
|
|
1015
|
+
* <p>If you include <code>returnControlInvocationResults</code> in the <code>sessionState</code> field, the <code>inputText</code> field will be ignored.</p>
|
|
1016
|
+
* </note>
|
|
1017
|
+
* @public
|
|
1018
|
+
*/
|
|
1019
|
+
inputText?: string | undefined;
|
|
1020
|
+
/**
|
|
1021
|
+
* <p>
|
|
1022
|
+
* Specifies the configurations for streaming.
|
|
1023
|
+
* </p>
|
|
1024
|
+
* <note>
|
|
1025
|
+
* <p>To use agent streaming, you need permissions to perform the <code>bedrock:InvokeModelWithResponseStream</code> action.</p>
|
|
1026
|
+
* </note>
|
|
1027
|
+
* @public
|
|
1028
|
+
*/
|
|
1029
|
+
streamingConfigurations?: StreamingConfigurations | undefined;
|
|
1030
|
+
/**
|
|
1031
|
+
* <p>
|
|
1032
|
+
* Parameters that specify the various attributes of a sessions. You can include attributes for the session or prompt or, if you configured an
|
|
1033
|
+
* action group to return control, results from invocation of the action group. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html">Control session context</a>.
|
|
1034
|
+
* </p>
|
|
1035
|
+
* <note>
|
|
1036
|
+
* <p>If you include <code>returnControlInvocationResults</code> in the <code>sessionState</code> field, the <code>inputText</code> field will be ignored.</p>
|
|
1037
|
+
* </note>
|
|
1038
|
+
* @public
|
|
1039
|
+
*/
|
|
1040
|
+
inlineSessionState?: InlineSessionState | undefined;
|
|
1041
|
+
/**
|
|
1042
|
+
* <p>
|
|
1043
|
+
* List of collaborator inline agents.
|
|
1044
|
+
* </p>
|
|
1045
|
+
* @public
|
|
1046
|
+
*/
|
|
1047
|
+
collaborators?: Collaborator[] | undefined;
|
|
1048
|
+
/**
|
|
1049
|
+
* <p>Model settings for the request.</p>
|
|
1050
|
+
* @public
|
|
1051
|
+
*/
|
|
1052
|
+
bedrockModelConfigurations?: InlineBedrockModelConfigurations | undefined;
|
|
1053
|
+
}
|
|
868
1054
|
/**
|
|
869
1055
|
* @internal
|
|
870
1056
|
*/
|
|
@@ -900,7 +1086,7 @@ export declare const RetrieveAndGenerateConfigurationFilterSensitiveLog: (obj: R
|
|
|
900
1086
|
/**
|
|
901
1087
|
* @internal
|
|
902
1088
|
*/
|
|
903
|
-
export declare const
|
|
1089
|
+
export declare const CollaboratorFilterSensitiveLog: (obj: Collaborator) => any;
|
|
904
1090
|
/**
|
|
905
1091
|
* @internal
|
|
906
1092
|
*/
|
|
@@ -917,3 +1103,7 @@ export declare const SessionStateFilterSensitiveLog: (obj: SessionState) => any;
|
|
|
917
1103
|
* @internal
|
|
918
1104
|
*/
|
|
919
1105
|
export declare const InvokeAgentRequestFilterSensitiveLog: (obj: InvokeAgentRequest) => any;
|
|
1106
|
+
/**
|
|
1107
|
+
* @internal
|
|
1108
|
+
*/
|
|
1109
|
+
export declare const InvokeInlineAgentRequestFilterSensitiveLog: (obj: InvokeInlineAgentRequest) => any;
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ServiceInputTypes,
|
|
6
6
|
ServiceOutputTypes,
|
|
7
7
|
} from "../BedrockAgentRuntimeClient";
|
|
8
|
-
import { TagResourceRequest, TagResourceResponse } from "../models/
|
|
8
|
+
import { TagResourceRequest, TagResourceResponse } from "../models/models_1";
|
|
9
9
|
export { __MetadataBearer };
|
|
10
10
|
export { $Command };
|
|
11
11
|
export interface TagResourceCommandInput extends TagResourceRequest {}
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
UntagResourceRequest,
|
|
10
10
|
UntagResourceResponse,
|
|
11
|
-
} from "../models/
|
|
11
|
+
} from "../models/models_1";
|
|
12
12
|
export { __MetadataBearer };
|
|
13
13
|
export { $Command };
|
|
14
14
|
export interface UntagResourceCommandInput extends UntagResourceRequest {}
|
|
@@ -69,6 +69,9 @@ export interface ActionGroupInvocationOutput {
|
|
|
69
69
|
export declare const ActionGroupSignature: {
|
|
70
70
|
readonly AMAZON_CODEINTERPRETER: "AMAZON.CodeInterpreter";
|
|
71
71
|
readonly AMAZON_USERINPUT: "AMAZON.UserInput";
|
|
72
|
+
readonly ANTHROPIC_BASH: "ANTHROPIC.Bash";
|
|
73
|
+
readonly ANTHROPIC_COMPUTER: "ANTHROPIC.Computer";
|
|
74
|
+
readonly ANTHROPIC_TEXTEDITOR: "ANTHROPIC.TextEditor";
|
|
72
75
|
};
|
|
73
76
|
export type ActionGroupSignature =
|
|
74
77
|
(typeof ActionGroupSignature)[keyof typeof ActionGroupSignature];
|
|
@@ -160,15 +163,54 @@ export interface AgentActionGroup {
|
|
|
160
163
|
actionGroupExecutor?: ActionGroupExecutor | undefined;
|
|
161
164
|
apiSchema?: APISchema | undefined;
|
|
162
165
|
functionSchema?: FunctionSchema | undefined;
|
|
166
|
+
parentActionGroupSignatureParams?: Record<string, string> | undefined;
|
|
163
167
|
}
|
|
168
|
+
export declare const AgentCollaboration: {
|
|
169
|
+
readonly DISABLED: "DISABLED";
|
|
170
|
+
readonly SUPERVISOR: "SUPERVISOR";
|
|
171
|
+
readonly SUPERVISOR_ROUTER: "SUPERVISOR_ROUTER";
|
|
172
|
+
};
|
|
173
|
+
export type AgentCollaboration =
|
|
174
|
+
(typeof AgentCollaboration)[keyof typeof AgentCollaboration];
|
|
164
175
|
export declare const ConfirmationState: {
|
|
165
176
|
readonly CONFIRM: "CONFIRM";
|
|
166
177
|
readonly DENY: "DENY";
|
|
167
178
|
};
|
|
168
179
|
export type ConfirmationState =
|
|
169
180
|
(typeof ConfirmationState)[keyof typeof ConfirmationState];
|
|
181
|
+
export declare const ImageInputFormat: {
|
|
182
|
+
readonly GIF: "gif";
|
|
183
|
+
readonly JPEG: "jpeg";
|
|
184
|
+
readonly PNG: "png";
|
|
185
|
+
readonly WEBP: "webp";
|
|
186
|
+
};
|
|
187
|
+
export type ImageInputFormat =
|
|
188
|
+
(typeof ImageInputFormat)[keyof typeof ImageInputFormat];
|
|
189
|
+
export type ImageInputSource =
|
|
190
|
+
| ImageInputSource.BytesMember
|
|
191
|
+
| ImageInputSource.$UnknownMember;
|
|
192
|
+
export declare namespace ImageInputSource {
|
|
193
|
+
interface BytesMember {
|
|
194
|
+
bytes: Uint8Array;
|
|
195
|
+
$unknown?: never;
|
|
196
|
+
}
|
|
197
|
+
interface $UnknownMember {
|
|
198
|
+
bytes?: never;
|
|
199
|
+
$unknown: [string, any];
|
|
200
|
+
}
|
|
201
|
+
interface Visitor<T> {
|
|
202
|
+
bytes: (value: Uint8Array) => T;
|
|
203
|
+
_: (name: string, value: any) => T;
|
|
204
|
+
}
|
|
205
|
+
const visit: <T>(value: ImageInputSource, visitor: Visitor<T>) => T;
|
|
206
|
+
}
|
|
207
|
+
export interface ImageInput {
|
|
208
|
+
format: ImageInputFormat | undefined;
|
|
209
|
+
source: ImageInputSource | undefined;
|
|
210
|
+
}
|
|
170
211
|
export interface ContentBody {
|
|
171
212
|
body?: string | undefined;
|
|
213
|
+
images?: ImageInput[] | undefined;
|
|
172
214
|
}
|
|
173
215
|
export declare const ResponseState: {
|
|
174
216
|
readonly FAILURE: "FAILURE";
|
|
@@ -1800,6 +1842,7 @@ export interface TracePart {
|
|
|
1800
1842
|
agentAliasId?: string | undefined;
|
|
1801
1843
|
agentVersion?: string | undefined;
|
|
1802
1844
|
callerChain?: Caller[] | undefined;
|
|
1845
|
+
eventTime?: Date | undefined;
|
|
1803
1846
|
collaboratorName?: string | undefined;
|
|
1804
1847
|
}
|
|
1805
1848
|
export type ResponseStream =
|
|
@@ -2102,17 +2145,22 @@ export interface InvokeAgentResponse {
|
|
|
2102
2145
|
export interface InlineBedrockModelConfigurations {
|
|
2103
2146
|
performanceConfig?: PerformanceConfiguration | undefined;
|
|
2104
2147
|
}
|
|
2148
|
+
export declare const RelayConversationHistory: {
|
|
2149
|
+
readonly DISABLED: "DISABLED";
|
|
2150
|
+
readonly TO_COLLABORATOR: "TO_COLLABORATOR";
|
|
2151
|
+
};
|
|
2152
|
+
export type RelayConversationHistory =
|
|
2153
|
+
(typeof RelayConversationHistory)[keyof typeof RelayConversationHistory];
|
|
2154
|
+
export interface CollaboratorConfiguration {
|
|
2155
|
+
collaboratorName: string | undefined;
|
|
2156
|
+
collaboratorInstruction: string | undefined;
|
|
2157
|
+
agentAliasArn?: string | undefined;
|
|
2158
|
+
relayConversationHistory?: RelayConversationHistory | undefined;
|
|
2159
|
+
}
|
|
2105
2160
|
export interface GuardrailConfigurationWithArn {
|
|
2106
2161
|
guardrailIdentifier: string | undefined;
|
|
2107
2162
|
guardrailVersion: string | undefined;
|
|
2108
2163
|
}
|
|
2109
|
-
export interface InlineSessionState {
|
|
2110
|
-
sessionAttributes?: Record<string, string> | undefined;
|
|
2111
|
-
promptSessionAttributes?: Record<string, string> | undefined;
|
|
2112
|
-
returnControlInvocationResults?: InvocationResultMember[] | undefined;
|
|
2113
|
-
invocationId?: string | undefined;
|
|
2114
|
-
files?: InputFile[] | undefined;
|
|
2115
|
-
}
|
|
2116
2164
|
export declare const PromptState: {
|
|
2117
2165
|
readonly DISABLED: "DISABLED";
|
|
2118
2166
|
readonly ENABLED: "ENABLED";
|
|
@@ -2125,12 +2173,21 @@ export interface PromptConfiguration {
|
|
|
2125
2173
|
basePromptTemplate?: string | undefined;
|
|
2126
2174
|
inferenceConfiguration?: InferenceConfiguration | undefined;
|
|
2127
2175
|
parserMode?: CreationMode | undefined;
|
|
2176
|
+
foundationModel?: string | undefined;
|
|
2128
2177
|
additionalModelRequestFields?: __DocumentType | undefined;
|
|
2129
2178
|
}
|
|
2130
2179
|
export interface PromptOverrideConfiguration {
|
|
2131
2180
|
promptConfigurations: PromptConfiguration[] | undefined;
|
|
2132
2181
|
overrideLambda?: string | undefined;
|
|
2133
2182
|
}
|
|
2183
|
+
export interface InlineSessionState {
|
|
2184
|
+
sessionAttributes?: Record<string, string> | undefined;
|
|
2185
|
+
promptSessionAttributes?: Record<string, string> | undefined;
|
|
2186
|
+
returnControlInvocationResults?: InvocationResultMember[] | undefined;
|
|
2187
|
+
invocationId?: string | undefined;
|
|
2188
|
+
files?: InputFile[] | undefined;
|
|
2189
|
+
conversationHistory?: ConversationHistory | undefined;
|
|
2190
|
+
}
|
|
2134
2191
|
export interface InlineAgentPayloadPart {
|
|
2135
2192
|
bytes?: Uint8Array | undefined;
|
|
2136
2193
|
attribution?: Attribution | undefined;
|
|
@@ -3269,22 +3326,6 @@ export interface UpdateSessionResponse {
|
|
|
3269
3326
|
createdAt: Date | undefined;
|
|
3270
3327
|
lastUpdatedAt: Date | undefined;
|
|
3271
3328
|
}
|
|
3272
|
-
export interface ListTagsForResourceRequest {
|
|
3273
|
-
resourceArn: string | undefined;
|
|
3274
|
-
}
|
|
3275
|
-
export interface ListTagsForResourceResponse {
|
|
3276
|
-
tags?: Record<string, string> | undefined;
|
|
3277
|
-
}
|
|
3278
|
-
export interface TagResourceRequest {
|
|
3279
|
-
resourceArn: string | undefined;
|
|
3280
|
-
tags: Record<string, string> | undefined;
|
|
3281
|
-
}
|
|
3282
|
-
export interface TagResourceResponse {}
|
|
3283
|
-
export interface UntagResourceRequest {
|
|
3284
|
-
resourceArn: string | undefined;
|
|
3285
|
-
tagKeys: string[] | undefined;
|
|
3286
|
-
}
|
|
3287
|
-
export interface UntagResourceResponse {}
|
|
3288
3329
|
export declare const ActionGroupInvocationInputFilterSensitiveLog: (
|
|
3289
3330
|
obj: ActionGroupInvocationInput
|
|
3290
3331
|
) => any;
|
|
@@ -3552,8 +3593,8 @@ export declare const ResponseStreamFilterSensitiveLog: (
|
|
|
3552
3593
|
export declare const InvokeAgentResponseFilterSensitiveLog: (
|
|
3553
3594
|
obj: InvokeAgentResponse
|
|
3554
3595
|
) => any;
|
|
3555
|
-
export declare const
|
|
3556
|
-
obj:
|
|
3596
|
+
export declare const CollaboratorConfigurationFilterSensitiveLog: (
|
|
3597
|
+
obj: CollaboratorConfiguration
|
|
3557
3598
|
) => any;
|
|
3558
3599
|
export declare const PromptConfigurationFilterSensitiveLog: (
|
|
3559
3600
|
obj: PromptConfiguration
|
|
@@ -3561,6 +3602,9 @@ export declare const PromptConfigurationFilterSensitiveLog: (
|
|
|
3561
3602
|
export declare const PromptOverrideConfigurationFilterSensitiveLog: (
|
|
3562
3603
|
obj: PromptOverrideConfiguration
|
|
3563
3604
|
) => any;
|
|
3605
|
+
export declare const InlineSessionStateFilterSensitiveLog: (
|
|
3606
|
+
obj: InlineSessionState
|
|
3607
|
+
) => any;
|
|
3564
3608
|
export declare const InlineAgentPayloadPartFilterSensitiveLog: (
|
|
3565
3609
|
obj: InlineAgentPayloadPart
|
|
3566
3610
|
) => any;
|