Skip to content

Commit bc89971

Browse files
author
awstools
committed
feat(client-bedrock-agent-runtime): This release adds trace functionality to Bedrock Prompt Flows
1 parent 9933561 commit bc89971

File tree

5 files changed

+904
-77
lines changed

5 files changed

+904
-77
lines changed

clients/client-bedrock-agent-runtime/src/commands/InvokeAgentCommand.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,8 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat
374374
* // traceId: "STRING_VALUE",
375375
* // text: "STRING_VALUE",
376376
* // type: "PRE_PROCESSING" || "ORCHESTRATION" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "POST_PROCESSING",
377+
* // overrideLambda: "STRING_VALUE",
378+
* // promptCreationMode: "DEFAULT" || "OVERRIDDEN",
377379
* // inferenceConfiguration: { // InferenceConfiguration
378380
* // temperature: Number("float"),
379381
* // topP: Number("float"),
@@ -383,8 +385,6 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat
383385
* // "STRING_VALUE",
384386
* // ],
385387
* // },
386-
* // overrideLambda: "STRING_VALUE",
387-
* // promptCreationMode: "DEFAULT" || "OVERRIDDEN",
388388
* // parserMode: "DEFAULT" || "OVERRIDDEN",
389389
* // },
390390
* // modelInvocationOutput: { // PreProcessingModelInvocationOutput
@@ -505,6 +505,8 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat
505505
* // traceId: "STRING_VALUE",
506506
* // text: "STRING_VALUE",
507507
* // type: "PRE_PROCESSING" || "ORCHESTRATION" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "POST_PROCESSING",
508+
* // overrideLambda: "STRING_VALUE",
509+
* // promptCreationMode: "DEFAULT" || "OVERRIDDEN",
508510
* // inferenceConfiguration: {
509511
* // temperature: Number("float"),
510512
* // topP: Number("float"),
@@ -514,8 +516,6 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat
514516
* // "STRING_VALUE",
515517
* // ],
516518
* // },
517-
* // overrideLambda: "STRING_VALUE",
518-
* // promptCreationMode: "DEFAULT" || "OVERRIDDEN",
519519
* // parserMode: "DEFAULT" || "OVERRIDDEN",
520520
* // },
521521
* // modelInvocationOutput: { // OrchestrationModelInvocationOutput
@@ -536,6 +536,8 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat
536536
* // traceId: "STRING_VALUE",
537537
* // text: "STRING_VALUE",
538538
* // type: "PRE_PROCESSING" || "ORCHESTRATION" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "POST_PROCESSING",
539+
* // overrideLambda: "STRING_VALUE",
540+
* // promptCreationMode: "DEFAULT" || "OVERRIDDEN",
539541
* // inferenceConfiguration: {
540542
* // temperature: Number("float"),
541543
* // topP: Number("float"),
@@ -545,8 +547,6 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat
545547
* // "STRING_VALUE",
546548
* // ],
547549
* // },
548-
* // overrideLambda: "STRING_VALUE",
549-
* // promptCreationMode: "DEFAULT" || "OVERRIDDEN",
550550
* // parserMode: "DEFAULT" || "OVERRIDDEN",
551551
* // },
552552
* // modelInvocationOutput: { // PostProcessingModelInvocationOutput

clients/client-bedrock-agent-runtime/src/commands/InvokeFlowCommand.ts

+38
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export interface InvokeFlowCommandOutput extends InvokeFlowResponse, __MetadataB
5959
* },
6060
* },
6161
* ],
62+
* enableTrace: true || false,
6263
* };
6364
* const command = new InvokeFlowCommand(input);
6465
* const response = await client.send(command);
@@ -74,6 +75,43 @@ export interface InvokeFlowCommandOutput extends InvokeFlowResponse, __MetadataB
7475
* // flowCompletionEvent: { // FlowCompletionEvent
7576
* // completionReason: "SUCCESS", // required
7677
* // },
78+
* // flowTraceEvent: { // FlowTraceEvent
79+
* // trace: { // FlowTrace Union: only one key present
80+
* // nodeInputTrace: { // FlowTraceNodeInputEvent
81+
* // nodeName: "STRING_VALUE", // required
82+
* // timestamp: new Date("TIMESTAMP"), // required
83+
* // fields: [ // FlowTraceNodeInputFields // required
84+
* // { // FlowTraceNodeInputField
85+
* // nodeInputName: "STRING_VALUE", // required
86+
* // content: { // FlowTraceNodeInputContent Union: only one key present
87+
* // document: "DOCUMENT_VALUE",
88+
* // },
89+
* // },
90+
* // ],
91+
* // },
92+
* // nodeOutputTrace: { // FlowTraceNodeOutputEvent
93+
* // nodeName: "STRING_VALUE", // required
94+
* // timestamp: new Date("TIMESTAMP"), // required
95+
* // fields: [ // FlowTraceNodeOutputFields // required
96+
* // { // FlowTraceNodeOutputField
97+
* // nodeOutputName: "STRING_VALUE", // required
98+
* // content: { // FlowTraceNodeOutputContent Union: only one key present
99+
* // document: "DOCUMENT_VALUE",
100+
* // },
101+
* // },
102+
* // ],
103+
* // },
104+
* // conditionNodeResultTrace: { // FlowTraceConditionNodeResultEvent
105+
* // nodeName: "STRING_VALUE", // required
106+
* // timestamp: new Date("TIMESTAMP"), // required
107+
* // satisfiedConditions: [ // FlowTraceConditions // required
108+
* // { // FlowTraceCondition
109+
* // conditionName: "STRING_VALUE", // required
110+
* // },
111+
* // ],
112+
* // },
113+
* // },
114+
* // },
77115
* // internalServerException: { // InternalServerException
78116
* // message: "STRING_VALUE",
79117
* // },

0 commit comments

Comments
 (0)