diff --git a/clients/client-bedrock-agent-runtime/src/commands/InvokeAgentCommand.ts b/clients/client-bedrock-agent-runtime/src/commands/InvokeAgentCommand.ts index 3cefd2441324..69c5c6046328 100644 --- a/clients/client-bedrock-agent-runtime/src/commands/InvokeAgentCommand.ts +++ b/clients/client-bedrock-agent-runtime/src/commands/InvokeAgentCommand.ts @@ -374,6 +374,8 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat * // traceId: "STRING_VALUE", * // text: "STRING_VALUE", * // type: "PRE_PROCESSING" || "ORCHESTRATION" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "POST_PROCESSING", + * // overrideLambda: "STRING_VALUE", + * // promptCreationMode: "DEFAULT" || "OVERRIDDEN", * // inferenceConfiguration: { // InferenceConfiguration * // temperature: Number("float"), * // topP: Number("float"), @@ -383,8 +385,6 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat * // "STRING_VALUE", * // ], * // }, - * // overrideLambda: "STRING_VALUE", - * // promptCreationMode: "DEFAULT" || "OVERRIDDEN", * // parserMode: "DEFAULT" || "OVERRIDDEN", * // }, * // modelInvocationOutput: { // PreProcessingModelInvocationOutput @@ -505,6 +505,8 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat * // traceId: "STRING_VALUE", * // text: "STRING_VALUE", * // type: "PRE_PROCESSING" || "ORCHESTRATION" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "POST_PROCESSING", + * // overrideLambda: "STRING_VALUE", + * // promptCreationMode: "DEFAULT" || "OVERRIDDEN", * // inferenceConfiguration: { * // temperature: Number("float"), * // topP: Number("float"), @@ -514,8 +516,6 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat * // "STRING_VALUE", * // ], * // }, - * // overrideLambda: "STRING_VALUE", - * // promptCreationMode: "DEFAULT" || "OVERRIDDEN", * // parserMode: "DEFAULT" || "OVERRIDDEN", * // }, * // modelInvocationOutput: { // OrchestrationModelInvocationOutput @@ -536,6 +536,8 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat * // traceId: "STRING_VALUE", * // text: "STRING_VALUE", * // type: "PRE_PROCESSING" || "ORCHESTRATION" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "POST_PROCESSING", + * // overrideLambda: "STRING_VALUE", + * // promptCreationMode: "DEFAULT" || "OVERRIDDEN", * // inferenceConfiguration: { * // temperature: Number("float"), * // topP: Number("float"), @@ -545,8 +547,6 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat * // "STRING_VALUE", * // ], * // }, - * // overrideLambda: "STRING_VALUE", - * // promptCreationMode: "DEFAULT" || "OVERRIDDEN", * // parserMode: "DEFAULT" || "OVERRIDDEN", * // }, * // modelInvocationOutput: { // PostProcessingModelInvocationOutput diff --git a/clients/client-bedrock-agent-runtime/src/commands/InvokeFlowCommand.ts b/clients/client-bedrock-agent-runtime/src/commands/InvokeFlowCommand.ts index dd90f00078ac..ba8fabc47871 100644 --- a/clients/client-bedrock-agent-runtime/src/commands/InvokeFlowCommand.ts +++ b/clients/client-bedrock-agent-runtime/src/commands/InvokeFlowCommand.ts @@ -59,6 +59,7 @@ export interface InvokeFlowCommandOutput extends InvokeFlowResponse, __MetadataB * }, * }, * ], + * enableTrace: true || false, * }; * const command = new InvokeFlowCommand(input); * const response = await client.send(command); @@ -74,6 +75,43 @@ export interface InvokeFlowCommandOutput extends InvokeFlowResponse, __MetadataB * // flowCompletionEvent: { // FlowCompletionEvent * // completionReason: "SUCCESS", // required * // }, + * // flowTraceEvent: { // FlowTraceEvent + * // trace: { // FlowTrace Union: only one key present + * // nodeInputTrace: { // FlowTraceNodeInputEvent + * // nodeName: "STRING_VALUE", // required + * // timestamp: new Date("TIMESTAMP"), // required + * // fields: [ // FlowTraceNodeInputFields // required + * // { // FlowTraceNodeInputField + * // nodeInputName: "STRING_VALUE", // required + * // content: { // FlowTraceNodeInputContent Union: only one key present + * // document: "DOCUMENT_VALUE", + * // }, + * // }, + * // ], + * // }, + * // nodeOutputTrace: { // FlowTraceNodeOutputEvent + * // nodeName: "STRING_VALUE", // required + * // timestamp: new Date("TIMESTAMP"), // required + * // fields: [ // FlowTraceNodeOutputFields // required + * // { // FlowTraceNodeOutputField + * // nodeOutputName: "STRING_VALUE", // required + * // content: { // FlowTraceNodeOutputContent Union: only one key present + * // document: "DOCUMENT_VALUE", + * // }, + * // }, + * // ], + * // }, + * // conditionNodeResultTrace: { // FlowTraceConditionNodeResultEvent + * // nodeName: "STRING_VALUE", // required + * // timestamp: new Date("TIMESTAMP"), // required + * // satisfiedConditions: [ // FlowTraceConditions // required + * // { // FlowTraceCondition + * // conditionName: "STRING_VALUE", // required + * // }, + * // ], + * // }, + * // }, + * // }, * // internalServerException: { // InternalServerException * // message: "STRING_VALUE", * // }, diff --git a/clients/client-bedrock-agent-runtime/src/models/models_0.ts b/clients/client-bedrock-agent-runtime/src/models/models_0.ts index f0ad2a5e0951..9f7fc9a1cffd 100644 --- a/clients/client-bedrock-agent-runtime/src/models/models_0.ts +++ b/clients/client-bedrock-agent-runtime/src/models/models_0.ts @@ -252,14 +252,6 @@ export class InternalServerException extends __BaseException { /** *
Contains information about an input into the flow.
- *This data type is used in the following API operations:
- *- * InvokeFlow request - *
- *Contains information about an input into the prompt flow and where to send it.
- *This data type is used in the following API operations:
- *- * InvokeFlow request - *
- *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 Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
+ * @public + */ + enableTrace?: boolean; } /** @@ -366,14 +356,6 @@ export type FlowCompletionReason = (typeof FlowCompletionReason)[keyof typeof Fl /** *Contains information about why a flow completed.
- *This data type is used in the following API operations:
- *- * InvokeFlow response - *
- *Contains information about the content in an output from prompt flow invocation.
- *This data type is used in the following API operations:
- *- * InvokeFlow request - *
- *Contains information about an output from prompt flow invoction.
- *This data type is used in the following API operations:
- *- * InvokeFlow response - *
- *Contains information about a condition that was satisfied. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
+ * @public + */ +export interface FlowTraceCondition { + /** + *The name of the condition.
+ * @public + */ + conditionName: string | undefined; +} + +/** + *Contains information about an output from a condition node. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
+ * @public + */ +export interface FlowTraceConditionNodeResultEvent { + /** + *The name of the condition node.
+ * @public + */ + nodeName: string | undefined; + + /** + *The date and time that the trace was returned.
+ * @public + */ + timestamp: Date | undefined; + + /** + *An array of objects containing information about the conditions that were satisfied.
+ * @public + */ + satisfiedConditions: FlowTraceCondition[] | undefined; +} + +/** + *Contains the content of the node input. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
+ * @public + */ +export type FlowTraceNodeInputContent = + | FlowTraceNodeInputContent.DocumentMember + | FlowTraceNodeInputContent.$UnknownMember; + +/** + * @public + */ +export namespace FlowTraceNodeInputContent { + /** + *The content of the node input.
+ * @public + */ + export interface DocumentMember { + document: __DocumentType; + $unknown?: never; + } + + /** + * @public + */ + export interface $UnknownMember { + document?: never; + $unknown: [string, any]; + } + + export interface VisitorContains information about a field in the input into a node. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
+ * @public + */ +export interface FlowTraceNodeInputField { + /** + *The name of the node input.
+ * @public + */ + nodeInputName: string | undefined; + + /** + *The content of the node input.
+ * @public + */ + content: FlowTraceNodeInputContent | undefined; +} + +/** + *Contains information about the input into a node. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
+ * @public + */ +export interface FlowTraceNodeInputEvent { + /** + *The name of the node that received the input.
+ * @public + */ + nodeName: string | undefined; + + /** + *The date and time that the trace was returned.
+ * @public + */ + timestamp: Date | undefined; + + /** + *An array of objects containing information about each field in the input.
+ * @public + */ + fields: FlowTraceNodeInputField[] | undefined; +} + +/** + *Contains the content of the node output. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
+ * @public + */ +export type FlowTraceNodeOutputContent = + | FlowTraceNodeOutputContent.DocumentMember + | FlowTraceNodeOutputContent.$UnknownMember; + +/** + * @public + */ +export namespace FlowTraceNodeOutputContent { + /** + *The content of the node output.
+ * @public + */ + export interface DocumentMember { + document: __DocumentType; + $unknown?: never; + } + + /** + * @public + */ + export interface $UnknownMember { + document?: never; + $unknown: [string, any]; + } + + export interface VisitorContains information about a field in the output from a node. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
+ * @public + */ +export interface FlowTraceNodeOutputField { + /** + *The name of the node output.
+ * @public + */ + nodeOutputName: string | undefined; + + /** + *The content of the node output.
+ * @public + */ + content: FlowTraceNodeOutputContent | undefined; +} + +/** + *Contains information about the output from a node. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
+ * @public + */ +export interface FlowTraceNodeOutputEvent { + /** + *The name of the node that yielded the output.
+ * @public + */ + nodeName: string | undefined; + + /** + *The date and time that the trace was returned.
+ * @public + */ + timestamp: Date | undefined; + + /** + *An array of objects containing information about each field in the output.
+ * @public + */ + fields: FlowTraceNodeOutputField[] | undefined; +} + +/** + *Contains information about an input or output for a node in the flow. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
+ * @public + */ +export type FlowTrace = + | FlowTrace.ConditionNodeResultTraceMember + | FlowTrace.NodeInputTraceMember + | FlowTrace.NodeOutputTraceMember + | FlowTrace.$UnknownMember; + +/** + * @public + */ +export namespace FlowTrace { + /** + *Contains information about the input into a node.
+ * @public + */ + export interface NodeInputTraceMember { + nodeInputTrace: FlowTraceNodeInputEvent; + nodeOutputTrace?: never; + conditionNodeResultTrace?: never; + $unknown?: never; + } + + /** + *Contains information about the output from a node.
+ * @public + */ + export interface NodeOutputTraceMember { + nodeInputTrace?: never; + nodeOutputTrace: FlowTraceNodeOutputEvent; + conditionNodeResultTrace?: never; + $unknown?: never; + } + + /** + *Contains information about an output from a condition node.
+ * @public + */ + export interface ConditionNodeResultTraceMember { + nodeInputTrace?: never; + nodeOutputTrace?: never; + conditionNodeResultTrace: FlowTraceConditionNodeResultEvent; + $unknown?: never; + } + + /** + * @public + */ + export interface $UnknownMember { + nodeInputTrace?: never; + nodeOutputTrace?: never; + conditionNodeResultTrace?: never; + $unknown: [string, any]; + } + + export interface VisitorContains information about a trace, which tracks an input or output for a node in the flow. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
+ * @public + */ +export interface FlowTraceEvent { + /** + *The trace object containing information about an input or output for a node in the flow.
+ * @public + */ + trace: FlowTrace | undefined; +} + /** *The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
* @public @@ -563,14 +814,6 @@ export class ValidationException extends __BaseException { /** *The output of the flow.
- *This data type is used in the following API operations:
- *- * InvokeFlow response - *
- *Contains information about a trace, which tracks an input or output for a node in the flow.
+ * @public + */ + export interface FlowTraceEventMember { + flowOutputEvent?: never; + flowCompletionEvent?: never; + flowTraceEvent: FlowTraceEvent; internalServerException?: never; validationException?: never; resourceNotFoundException?: never; @@ -636,6 +902,7 @@ export namespace FlowResponseStream { export interface InternalServerExceptionMember { flowOutputEvent?: never; flowCompletionEvent?: never; + flowTraceEvent?: never; internalServerException: InternalServerException; validationException?: never; resourceNotFoundException?: never; @@ -655,6 +922,7 @@ export namespace FlowResponseStream { export interface ValidationExceptionMember { flowOutputEvent?: never; flowCompletionEvent?: never; + flowTraceEvent?: never; internalServerException?: never; validationException: ValidationException; resourceNotFoundException?: never; @@ -674,6 +942,7 @@ export namespace FlowResponseStream { export interface ResourceNotFoundExceptionMember { flowOutputEvent?: never; flowCompletionEvent?: never; + flowTraceEvent?: never; internalServerException?: never; validationException?: never; resourceNotFoundException: ResourceNotFoundException; @@ -693,6 +962,7 @@ export namespace FlowResponseStream { export interface ServiceQuotaExceededExceptionMember { flowOutputEvent?: never; flowCompletionEvent?: never; + flowTraceEvent?: never; internalServerException?: never; validationException?: never; resourceNotFoundException?: never; @@ -712,6 +982,7 @@ export namespace FlowResponseStream { export interface ThrottlingExceptionMember { flowOutputEvent?: never; flowCompletionEvent?: never; + flowTraceEvent?: never; internalServerException?: never; validationException?: never; resourceNotFoundException?: never; @@ -731,6 +1002,7 @@ export namespace FlowResponseStream { export interface AccessDeniedExceptionMember { flowOutputEvent?: never; flowCompletionEvent?: never; + flowTraceEvent?: never; internalServerException?: never; validationException?: never; resourceNotFoundException?: never; @@ -750,6 +1022,7 @@ export namespace FlowResponseStream { export interface ConflictExceptionMember { flowOutputEvent?: never; flowCompletionEvent?: never; + flowTraceEvent?: never; internalServerException?: never; validationException?: never; resourceNotFoundException?: never; @@ -769,6 +1042,7 @@ export namespace FlowResponseStream { export interface DependencyFailedExceptionMember { flowOutputEvent?: never; flowCompletionEvent?: never; + flowTraceEvent?: never; internalServerException?: never; validationException?: never; resourceNotFoundException?: never; @@ -788,6 +1062,7 @@ export namespace FlowResponseStream { export interface BadGatewayExceptionMember { flowOutputEvent?: never; flowCompletionEvent?: never; + flowTraceEvent?: never; internalServerException?: never; validationException?: never; resourceNotFoundException?: never; @@ -806,6 +1081,7 @@ export namespace FlowResponseStream { export interface $UnknownMember { flowOutputEvent?: never; flowCompletionEvent?: never; + flowTraceEvent?: never; internalServerException?: never; validationException?: never; resourceNotFoundException?: never; @@ -821,6 +1097,7 @@ export namespace FlowResponseStream { export interface VisitorSpecifications about the inference parameters that were provided alongside the prompt. These are specified in the PromptOverrideConfiguration object that was set when the agent was created or updated. For more information, see Inference parameters for foundation models.
- * @public - */ - inferenceConfiguration?: InferenceConfiguration; - /** *The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent sequence.
* @public @@ -2537,6 +2809,12 @@ export interface ModelInvocationInput { */ promptCreationMode?: CreationMode; + /** + *Specifications about the inference parameters that were provided alongside the prompt. These are specified in the PromptOverrideConfiguration object that was set when the agent was created or updated. For more information, see Inference parameters for foundation models.
+ * @public + */ + inferenceConfiguration?: InferenceConfiguration; + /** *Specifies whether to override the default parser Lambda function when parsing the raw foundation model output in the part of the agent sequence defined by the promptType
.
Contains the template for the prompt that's sent to the model for response generation.
+ *Contains the template for the prompt that's sent to the model for response generation. Generation prompts must include the $search_results$
variable. For more information, see Use placeholder variables in the user guide.
Contains the template for the prompt that's sent to the model for response generation.
+ *Contains the template for the prompt that's sent to the model. Orchestration prompts must include the $conversation_history$
and $output_format_instructions$
variables. For more information, see Use placeholder variables in the user guide.
Contains information about why a flow completed.
\nThis data type is used in the following API operations:
\n\n InvokeFlow response\n
\nContains information about why a flow completed.
", "smithy.api#sensitive": {} } }, @@ -1768,7 +1768,7 @@ } }, "traits": { - "smithy.api#documentation": "Contains information about an input into the prompt flow and where to send it.
\nThis data type is used in the following API operations:
\n\n InvokeFlow request\n
\nContains information about an input into the prompt flow and where to send it.
" } }, "com.amazonaws.bedrockagentruntime#FlowInputContent": { @@ -1782,7 +1782,7 @@ } }, "traits": { - "smithy.api#documentation": "Contains information about an input into the flow.
\nThis data type is used in the following API operations:
\n\n InvokeFlow request\n
\nContains information about an input into the flow.
", "smithy.api#sensitive": {} } }, @@ -1809,7 +1809,7 @@ } }, "traits": { - "smithy.api#documentation": "Contains information about the content in an output from prompt flow invocation.
\nThis data type is used in the following API operations:
\n\n InvokeFlow request\n
\nContains information about the content in an output from prompt flow invocation.
" } }, "com.amazonaws.bedrockagentruntime#FlowOutputEvent": { @@ -1838,7 +1838,7 @@ } }, "traits": { - "smithy.api#documentation": "Contains information about an output from prompt flow invoction.
\nThis data type is used in the following API operations:
\n\n InvokeFlow response\n
\nContains information about an output from prompt flow invoction.
", "smithy.api#sensitive": {} } }, @@ -1865,6 +1865,12 @@ "smithy.api#documentation": "Contains information about why the flow completed.
" } }, + "flowTraceEvent": { + "target": "com.amazonaws.bedrockagentruntime#FlowTraceEvent", + "traits": { + "smithy.api#documentation": "Contains information about a trace, which tracks an input or output for a node in the flow.
" + } + }, "internalServerException": { "target": "com.amazonaws.bedrockagentruntime#InternalServerException", "traits": { @@ -1921,10 +1927,269 @@ } }, "traits": { - "smithy.api#documentation": "The output of the flow.
\nThis data type is used in the following API operations:
\n\n InvokeFlow response\n
\nThe output of the flow.
", "smithy.api#streaming": {} } }, + "com.amazonaws.bedrockagentruntime#FlowTrace": { + "type": "union", + "members": { + "nodeInputTrace": { + "target": "com.amazonaws.bedrockagentruntime#FlowTraceNodeInputEvent", + "traits": { + "smithy.api#documentation": "Contains information about the input into a node.
" + } + }, + "nodeOutputTrace": { + "target": "com.amazonaws.bedrockagentruntime#FlowTraceNodeOutputEvent", + "traits": { + "smithy.api#documentation": "Contains information about the output from a node.
" + } + }, + "conditionNodeResultTrace": { + "target": "com.amazonaws.bedrockagentruntime#FlowTraceConditionNodeResultEvent", + "traits": { + "smithy.api#documentation": "Contains information about an output from a condition node.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Contains information about an input or output for a node in the flow. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.bedrockagentruntime#FlowTraceCondition": { + "type": "structure", + "members": { + "conditionName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The name of the condition.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Contains information about a condition that was satisfied. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.bedrockagentruntime#FlowTraceConditionNodeResultEvent": { + "type": "structure", + "members": { + "nodeName": { + "target": "com.amazonaws.bedrockagentruntime#NodeName", + "traits": { + "smithy.api#documentation": "The name of the condition node.
", + "smithy.api#required": {} + } + }, + "timestamp": { + "target": "com.amazonaws.bedrockagentruntime#DateTimestamp", + "traits": { + "smithy.api#documentation": "The date and time that the trace was returned.
", + "smithy.api#required": {} + } + }, + "satisfiedConditions": { + "target": "com.amazonaws.bedrockagentruntime#FlowTraceConditions", + "traits": { + "smithy.api#documentation": "An array of objects containing information about the conditions that were satisfied.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Contains information about an output from a condition node. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.bedrockagentruntime#FlowTraceConditions": { + "type": "list", + "member": { + "target": "com.amazonaws.bedrockagentruntime#FlowTraceCondition" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 5 + } + } + }, + "com.amazonaws.bedrockagentruntime#FlowTraceEvent": { + "type": "structure", + "members": { + "trace": { + "target": "com.amazonaws.bedrockagentruntime#FlowTrace", + "traits": { + "smithy.api#documentation": "The trace object containing information about an input or output for a node in the flow.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Contains information about a trace, which tracks an input or output for a node in the flow. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
" + } + }, + "com.amazonaws.bedrockagentruntime#FlowTraceNodeInputContent": { + "type": "union", + "members": { + "document": { + "target": "smithy.api#Document", + "traits": { + "smithy.api#documentation": "The content of the node input.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Contains the content of the node input. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.bedrockagentruntime#FlowTraceNodeInputEvent": { + "type": "structure", + "members": { + "nodeName": { + "target": "com.amazonaws.bedrockagentruntime#NodeName", + "traits": { + "smithy.api#documentation": "The name of the node that received the input.
", + "smithy.api#required": {} + } + }, + "timestamp": { + "target": "com.amazonaws.bedrockagentruntime#DateTimestamp", + "traits": { + "smithy.api#documentation": "The date and time that the trace was returned.
", + "smithy.api#required": {} + } + }, + "fields": { + "target": "com.amazonaws.bedrockagentruntime#FlowTraceNodeInputFields", + "traits": { + "smithy.api#documentation": "An array of objects containing information about each field in the input.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Contains information about the input into a node. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.bedrockagentruntime#FlowTraceNodeInputField": { + "type": "structure", + "members": { + "nodeInputName": { + "target": "com.amazonaws.bedrockagentruntime#NodeInputName", + "traits": { + "smithy.api#documentation": "The name of the node input.
", + "smithy.api#required": {} + } + }, + "content": { + "target": "com.amazonaws.bedrockagentruntime#FlowTraceNodeInputContent", + "traits": { + "smithy.api#documentation": "The content of the node input.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Contains information about a field in the input into a node. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.bedrockagentruntime#FlowTraceNodeInputFields": { + "type": "list", + "member": { + "target": "com.amazonaws.bedrockagentruntime#FlowTraceNodeInputField" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 5 + } + } + }, + "com.amazonaws.bedrockagentruntime#FlowTraceNodeOutputContent": { + "type": "union", + "members": { + "document": { + "target": "smithy.api#Document", + "traits": { + "smithy.api#documentation": "The content of the node output.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Contains the content of the node output. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
" + } + }, + "com.amazonaws.bedrockagentruntime#FlowTraceNodeOutputEvent": { + "type": "structure", + "members": { + "nodeName": { + "target": "com.amazonaws.bedrockagentruntime#NodeName", + "traits": { + "smithy.api#documentation": "The name of the node that yielded the output.
", + "smithy.api#required": {} + } + }, + "timestamp": { + "target": "com.amazonaws.bedrockagentruntime#DateTimestamp", + "traits": { + "smithy.api#documentation": "The date and time that the trace was returned.
", + "smithy.api#required": {} + } + }, + "fields": { + "target": "com.amazonaws.bedrockagentruntime#FlowTraceNodeOutputFields", + "traits": { + "smithy.api#documentation": "An array of objects containing information about each field in the output.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Contains information about the output from a node. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.bedrockagentruntime#FlowTraceNodeOutputField": { + "type": "structure", + "members": { + "nodeOutputName": { + "target": "com.amazonaws.bedrockagentruntime#NodeOutputName", + "traits": { + "smithy.api#documentation": "The name of the node output.
", + "smithy.api#required": {} + } + }, + "content": { + "target": "com.amazonaws.bedrockagentruntime#FlowTraceNodeOutputContent", + "traits": { + "smithy.api#documentation": "The content of the node output.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Contains information about a field in the output from a node. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.bedrockagentruntime#FlowTraceNodeOutputFields": { + "type": "list", + "member": { + "target": "com.amazonaws.bedrockagentruntime#FlowTraceNodeOutputField" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2 + } + } + }, "com.amazonaws.bedrockagentruntime#Function": { "type": "string", "traits": { @@ -2055,7 +2320,7 @@ "promptTemplate": { "target": "com.amazonaws.bedrockagentruntime#PromptTemplate", "traits": { - "smithy.api#documentation": "Contains the template for the prompt that's sent to the model for response generation.
" + "smithy.api#documentation": "Contains the template for the prompt that's sent to the model for response generation. Generation prompts must include the $search_results$
variable. For more information, see Use placeholder variables in the user guide.
A list of objects, each containing information about an input into the flow.
", "smithy.api#required": {} } + }, + "enableTrace": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "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 Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
" + } } }, "traits": { @@ -3853,12 +4124,6 @@ "smithy.api#documentation": "The step in the agent sequence.
" } }, - "inferenceConfiguration": { - "target": "com.amazonaws.bedrockagentruntime#InferenceConfiguration", - "traits": { - "smithy.api#documentation": "Specifications about the inference parameters that were provided alongside the prompt. These are specified in the PromptOverrideConfiguration object that was set when the agent was created or updated. For more information, see Inference parameters for foundation models.
" - } - }, "overrideLambda": { "target": "com.amazonaws.bedrockagentruntime#LambdaArn", "traits": { @@ -3871,6 +4136,12 @@ "smithy.api#documentation": "Specifies whether the default prompt template was OVERRIDDEN
. If it was, the basePromptTemplate
that was set in the PromptOverrideConfiguration object when the agent was created or updated is used instead.
Specifications about the inference parameters that were provided alongside the prompt. These are specified in the PromptOverrideConfiguration object that was set when the agent was created or updated. For more information, see Inference parameters for foundation models.
" + } + }, "parserMode": { "target": "com.amazonaws.bedrockagentruntime#CreationMode", "traits": { @@ -3893,6 +4164,12 @@ "smithy.api#pattern": "^\\S*$" } }, + "com.amazonaws.bedrockagentruntime#NodeInputName": { + "type": "string", + "traits": { + "smithy.api#pattern": "^[a-zA-Z]([_]?[0-9a-zA-Z]){0,99}$" + } + }, "com.amazonaws.bedrockagentruntime#NodeName": { "type": "string", "traits": { @@ -4015,7 +4292,7 @@ "promptTemplate": { "target": "com.amazonaws.bedrockagentruntime#PromptTemplate", "traits": { - "smithy.api#documentation": "Contains the template for the prompt that's sent to the model for response generation.
" + "smithy.api#documentation": "Contains the template for the prompt that's sent to the model. Orchestration prompts must include the $conversation_history$
and $output_format_instructions$
variables. For more information, see Use placeholder variables in the user guide.