|
394 | 394 | "type":"string",
|
395 | 395 | "max":2048,
|
396 | 396 | "min":1,
|
397 |
| - "pattern":"^(arn:aws(-[^:]{1,10})?:bedrock:[a-z0-9-]{1,20}:([0-9]{12})?:([a-z-]{1,20}/)?)?([a-z0-9.-]{1,63}){0,2}(([:][a-z0-9-]{1,63}){0,2})?(/[a-z0-9]{1,12})?$" |
| 397 | + "pattern":"^(arn:aws(-[^:]+)?:(bedrock|sagemaker):[a-z0-9-]{1,20}:([0-9]{12})?:([a-z-]+/)?)?([a-z0-9.-]{1,63}){0,2}(([:][a-z0-9-]{1,63}){0,2})?(/[a-z0-9]{1,12})?$" |
398 | 398 | },
|
399 | 399 | "Boolean":{
|
400 | 400 | "type":"boolean",
|
|
823 | 823 | "documentation":"<p>The reason that the flow completed.</p>"
|
824 | 824 | }
|
825 | 825 | },
|
826 |
| - "documentation":"<p>Contains information about why a flow completed.</p> <p>This data type is used in the following API operations:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_ResponseSyntax\">InvokeFlow response</a> </p> </li> </ul>", |
| 826 | + "documentation":"<p>Contains information about why a flow completed.</p>", |
827 | 827 | "event":true,
|
828 | 828 | "sensitive":true
|
829 | 829 | },
|
|
858 | 858 | "documentation":"<p>The name of the output from the flow input node that begins the prompt flow.</p>"
|
859 | 859 | }
|
860 | 860 | },
|
861 |
| - "documentation":"<p>Contains information about an input into the prompt flow and where to send it.</p> <p>This data type is used in the following API operations:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_RequestSyntax\">InvokeFlow request</a> </p> </li> </ul>" |
| 861 | + "documentation":"<p>Contains information about an input into the prompt flow and where to send it.</p>" |
862 | 862 | },
|
863 | 863 | "FlowInputContent":{
|
864 | 864 | "type":"structure",
|
|
868 | 868 | "documentation":"<p>The input to send to the prompt flow input node.</p>"
|
869 | 869 | }
|
870 | 870 | },
|
871 |
| - "documentation":"<p>Contains information about an input into the flow.</p> <p>This data type is used in the following API operations:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_RequestSyntax\">InvokeFlow request</a> </p> </li> </ul>", |
| 871 | + "documentation":"<p>Contains information about an input into the flow.</p>", |
872 | 872 | "sensitive":true,
|
873 | 873 | "union":true
|
874 | 874 | },
|
|
886 | 886 | "documentation":"<p>The content in the output.</p>"
|
887 | 887 | }
|
888 | 888 | },
|
889 |
| - "documentation":"<p>Contains information about the content in an output from prompt flow invocation.</p> <p>This data type is used in the following API operations:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_RequestSyntax\">InvokeFlow request</a> </p> </li> </ul>", |
| 889 | + "documentation":"<p>Contains information about the content in an output from prompt flow invocation.</p>", |
890 | 890 | "union":true
|
891 | 891 | },
|
892 | 892 | "FlowOutputEvent":{
|
|
910 | 910 | "documentation":"<p>The type of the node that the output is from.</p>"
|
911 | 911 | }
|
912 | 912 | },
|
913 |
| - "documentation":"<p>Contains information about an output from prompt flow invoction.</p> <p>This data type is used in the following API operations:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_ResponseSyntax\">InvokeFlow response</a> </p> </li> </ul>", |
| 913 | + "documentation":"<p>Contains information about an output from prompt flow invoction.</p>", |
914 | 914 | "event":true,
|
915 | 915 | "sensitive":true
|
916 | 916 | },
|
|
941 | 941 | "shape":"FlowOutputEvent",
|
942 | 942 | "documentation":"<p>Contains information about an output from flow invocation.</p>"
|
943 | 943 | },
|
| 944 | + "flowTraceEvent":{ |
| 945 | + "shape":"FlowTraceEvent", |
| 946 | + "documentation":"<p>Contains information about a trace, which tracks an input or output for a node in the flow.</p>" |
| 947 | + }, |
944 | 948 | "internalServerException":{
|
945 | 949 | "shape":"InternalServerException",
|
946 | 950 | "documentation":"<p>An internal server error occurred. Retry your request.</p>"
|
|
962 | 966 | "documentation":"<p>Input validation failed. Check your request parameters and retry the request.</p>"
|
963 | 967 | }
|
964 | 968 | },
|
965 |
| - "documentation":"<p>The output of the flow.</p> <p>This data type is used in the following API operations:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_ResponseSyntax\">InvokeFlow response</a> </p> </li> </ul>", |
| 969 | + "documentation":"<p>The output of the flow.</p>", |
966 | 970 | "eventstream":true
|
967 | 971 | },
|
| 972 | + "FlowTrace":{ |
| 973 | + "type":"structure", |
| 974 | + "members":{ |
| 975 | + "conditionNodeResultTrace":{ |
| 976 | + "shape":"FlowTraceConditionNodeResultEvent", |
| 977 | + "documentation":"<p>Contains information about an output from a condition node.</p>" |
| 978 | + }, |
| 979 | + "nodeInputTrace":{ |
| 980 | + "shape":"FlowTraceNodeInputEvent", |
| 981 | + "documentation":"<p>Contains information about the input into a node.</p>" |
| 982 | + }, |
| 983 | + "nodeOutputTrace":{ |
| 984 | + "shape":"FlowTraceNodeOutputEvent", |
| 985 | + "documentation":"<p>Contains information about the output from a node.</p>" |
| 986 | + } |
| 987 | + }, |
| 988 | + "documentation":"<p>Contains information about an input or output for a node in the flow. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html\">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>", |
| 989 | + "sensitive":true, |
| 990 | + "union":true |
| 991 | + }, |
| 992 | + "FlowTraceCondition":{ |
| 993 | + "type":"structure", |
| 994 | + "required":["conditionName"], |
| 995 | + "members":{ |
| 996 | + "conditionName":{ |
| 997 | + "shape":"String", |
| 998 | + "documentation":"<p>The name of the condition.</p>" |
| 999 | + } |
| 1000 | + }, |
| 1001 | + "documentation":"<p>Contains information about a condition that was satisfied. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html\">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>", |
| 1002 | + "sensitive":true |
| 1003 | + }, |
| 1004 | + "FlowTraceConditionNodeResultEvent":{ |
| 1005 | + "type":"structure", |
| 1006 | + "required":[ |
| 1007 | + "nodeName", |
| 1008 | + "satisfiedConditions", |
| 1009 | + "timestamp" |
| 1010 | + ], |
| 1011 | + "members":{ |
| 1012 | + "nodeName":{ |
| 1013 | + "shape":"NodeName", |
| 1014 | + "documentation":"<p>The name of the condition node.</p>" |
| 1015 | + }, |
| 1016 | + "satisfiedConditions":{ |
| 1017 | + "shape":"FlowTraceConditions", |
| 1018 | + "documentation":"<p>An array of objects containing information about the conditions that were satisfied.</p>" |
| 1019 | + }, |
| 1020 | + "timestamp":{ |
| 1021 | + "shape":"DateTimestamp", |
| 1022 | + "documentation":"<p>The date and time that the trace was returned.</p>" |
| 1023 | + } |
| 1024 | + }, |
| 1025 | + "documentation":"<p>Contains information about an output from a condition node. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html\">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>", |
| 1026 | + "sensitive":true |
| 1027 | + }, |
| 1028 | + "FlowTraceConditions":{ |
| 1029 | + "type":"list", |
| 1030 | + "member":{"shape":"FlowTraceCondition"}, |
| 1031 | + "max":5, |
| 1032 | + "min":1 |
| 1033 | + }, |
| 1034 | + "FlowTraceEvent":{ |
| 1035 | + "type":"structure", |
| 1036 | + "required":["trace"], |
| 1037 | + "members":{ |
| 1038 | + "trace":{ |
| 1039 | + "shape":"FlowTrace", |
| 1040 | + "documentation":"<p>The trace object containing information about an input or output for a node in the flow.</p>" |
| 1041 | + } |
| 1042 | + }, |
| 1043 | + "documentation":"<p>Contains information about a trace, which tracks an input or output for a node in the flow. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html\">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>", |
| 1044 | + "event":true |
| 1045 | + }, |
| 1046 | + "FlowTraceNodeInputContent":{ |
| 1047 | + "type":"structure", |
| 1048 | + "members":{ |
| 1049 | + "document":{ |
| 1050 | + "shape":"Document", |
| 1051 | + "documentation":"<p>The content of the node input.</p>" |
| 1052 | + } |
| 1053 | + }, |
| 1054 | + "documentation":"<p>Contains the content of the node input. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html\">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>", |
| 1055 | + "sensitive":true, |
| 1056 | + "union":true |
| 1057 | + }, |
| 1058 | + "FlowTraceNodeInputEvent":{ |
| 1059 | + "type":"structure", |
| 1060 | + "required":[ |
| 1061 | + "fields", |
| 1062 | + "nodeName", |
| 1063 | + "timestamp" |
| 1064 | + ], |
| 1065 | + "members":{ |
| 1066 | + "fields":{ |
| 1067 | + "shape":"FlowTraceNodeInputFields", |
| 1068 | + "documentation":"<p>An array of objects containing information about each field in the input.</p>" |
| 1069 | + }, |
| 1070 | + "nodeName":{ |
| 1071 | + "shape":"NodeName", |
| 1072 | + "documentation":"<p>The name of the node that received the input.</p>" |
| 1073 | + }, |
| 1074 | + "timestamp":{ |
| 1075 | + "shape":"DateTimestamp", |
| 1076 | + "documentation":"<p>The date and time that the trace was returned.</p>" |
| 1077 | + } |
| 1078 | + }, |
| 1079 | + "documentation":"<p>Contains information about the input into a node. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html\">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>", |
| 1080 | + "sensitive":true |
| 1081 | + }, |
| 1082 | + "FlowTraceNodeInputField":{ |
| 1083 | + "type":"structure", |
| 1084 | + "required":[ |
| 1085 | + "content", |
| 1086 | + "nodeInputName" |
| 1087 | + ], |
| 1088 | + "members":{ |
| 1089 | + "content":{ |
| 1090 | + "shape":"FlowTraceNodeInputContent", |
| 1091 | + "documentation":"<p>The content of the node input.</p>" |
| 1092 | + }, |
| 1093 | + "nodeInputName":{ |
| 1094 | + "shape":"NodeInputName", |
| 1095 | + "documentation":"<p>The name of the node input.</p>" |
| 1096 | + } |
| 1097 | + }, |
| 1098 | + "documentation":"<p>Contains information about a field in the input into a node. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html\">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>", |
| 1099 | + "sensitive":true |
| 1100 | + }, |
| 1101 | + "FlowTraceNodeInputFields":{ |
| 1102 | + "type":"list", |
| 1103 | + "member":{"shape":"FlowTraceNodeInputField"}, |
| 1104 | + "max":5, |
| 1105 | + "min":1 |
| 1106 | + }, |
| 1107 | + "FlowTraceNodeOutputContent":{ |
| 1108 | + "type":"structure", |
| 1109 | + "members":{ |
| 1110 | + "document":{ |
| 1111 | + "shape":"Document", |
| 1112 | + "documentation":"<p>The content of the node output.</p>" |
| 1113 | + } |
| 1114 | + }, |
| 1115 | + "documentation":"<p>Contains the content of the node output. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html\">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>", |
| 1116 | + "union":true |
| 1117 | + }, |
| 1118 | + "FlowTraceNodeOutputEvent":{ |
| 1119 | + "type":"structure", |
| 1120 | + "required":[ |
| 1121 | + "fields", |
| 1122 | + "nodeName", |
| 1123 | + "timestamp" |
| 1124 | + ], |
| 1125 | + "members":{ |
| 1126 | + "fields":{ |
| 1127 | + "shape":"FlowTraceNodeOutputFields", |
| 1128 | + "documentation":"<p>An array of objects containing information about each field in the output.</p>" |
| 1129 | + }, |
| 1130 | + "nodeName":{ |
| 1131 | + "shape":"NodeName", |
| 1132 | + "documentation":"<p>The name of the node that yielded the output.</p>" |
| 1133 | + }, |
| 1134 | + "timestamp":{ |
| 1135 | + "shape":"DateTimestamp", |
| 1136 | + "documentation":"<p>The date and time that the trace was returned.</p>" |
| 1137 | + } |
| 1138 | + }, |
| 1139 | + "documentation":"<p>Contains information about the output from a node. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html\">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>", |
| 1140 | + "sensitive":true |
| 1141 | + }, |
| 1142 | + "FlowTraceNodeOutputField":{ |
| 1143 | + "type":"structure", |
| 1144 | + "required":[ |
| 1145 | + "content", |
| 1146 | + "nodeOutputName" |
| 1147 | + ], |
| 1148 | + "members":{ |
| 1149 | + "content":{ |
| 1150 | + "shape":"FlowTraceNodeOutputContent", |
| 1151 | + "documentation":"<p>The content of the node output.</p>" |
| 1152 | + }, |
| 1153 | + "nodeOutputName":{ |
| 1154 | + "shape":"NodeOutputName", |
| 1155 | + "documentation":"<p>The name of the node output.</p>" |
| 1156 | + } |
| 1157 | + }, |
| 1158 | + "documentation":"<p>Contains information about a field in the output from a node. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html\">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>", |
| 1159 | + "sensitive":true |
| 1160 | + }, |
| 1161 | + "FlowTraceNodeOutputFields":{ |
| 1162 | + "type":"list", |
| 1163 | + "member":{"shape":"FlowTraceNodeOutputField"}, |
| 1164 | + "max":2, |
| 1165 | + "min":1 |
| 1166 | + }, |
968 | 1167 | "Function":{
|
969 | 1168 | "type":"string",
|
970 | 1169 | "sensitive":true
|
|
1068 | 1267 | },
|
1069 | 1268 | "promptTemplate":{
|
1070 | 1269 | "shape":"PromptTemplate",
|
1071 |
| - "documentation":"<p>Contains the template for the prompt that's sent to the model for response generation.</p>" |
| 1270 | + "documentation":"<p>Contains the template for the prompt that's sent to the model for response generation. Generation prompts must include the <code>$search_results$</code> variable. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html\">Use placeholder variables</a> in the user guide.</p>" |
1072 | 1271 | }
|
1073 | 1272 | },
|
1074 | 1273 | "documentation":"<p>Contains configurations for response generation based on the knowledge base query results.</p> <p>This data type is used in the following API operations:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax\">RetrieveAndGenerate request</a> </p> </li> </ul>"
|
|
1756 | 1955 | "inputs"
|
1757 | 1956 | ],
|
1758 | 1957 | "members":{
|
| 1958 | + "enableTrace":{ |
| 1959 | + "shape":"Boolean", |
| 1960 | + "documentation":"<p>Specifies whether to return the trace for the flow or not. Traces track inputs and outputs for nodes in the flow. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html\">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>" |
| 1961 | + }, |
1759 | 1962 | "flowAliasIdentifier":{
|
1760 | 1963 | "shape":"FlowAliasIdentifier",
|
1761 | 1964 | "documentation":"<p>The unique identifier of the flow alias.</p>",
|
|
2083 | 2286 | "min":1,
|
2084 | 2287 | "pattern":"^\\S*$"
|
2085 | 2288 | },
|
| 2289 | + "NodeInputName":{ |
| 2290 | + "type":"string", |
| 2291 | + "pattern":"^[a-zA-Z]([_]?[0-9a-zA-Z]){0,99}$" |
| 2292 | + }, |
2086 | 2293 | "NodeName":{
|
2087 | 2294 | "type":"string",
|
2088 | 2295 | "pattern":"^[a-zA-Z]([_]?[0-9a-zA-Z]){0,99}$"
|
|
2155 | 2362 | },
|
2156 | 2363 | "promptTemplate":{
|
2157 | 2364 | "shape":"PromptTemplate",
|
2158 |
| - "documentation":"<p>Contains the template for the prompt that's sent to the model for response generation.</p>" |
| 2365 | + "documentation":"<p>Contains the template for the prompt that's sent to the model. Orchestration prompts must include the <code>$conversation_history$</code> and <code>$output_format_instructions$</code> variables. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html\">Use placeholder variables</a> in the user guide.</p>" |
2159 | 2366 | },
|
2160 | 2367 | "queryTransformationConfiguration":{
|
2161 | 2368 | "shape":"QueryTransformationConfiguration",
|
|
0 commit comments