Skip to content

Commit

Permalink
feat(client-bedrock-agent-runtime): This release adds trace functiona…
Browse files Browse the repository at this point in the history
…lity to Bedrock Prompt Flows
  • Loading branch information
awstools committed Nov 8, 2024
1 parent 9933561 commit bc89971
Show file tree
Hide file tree
Showing 5 changed files with 904 additions and 77 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand All @@ -383,8 +385,6 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat
* // "STRING_VALUE",
* // ],
* // },
* // overrideLambda: "STRING_VALUE",
* // promptCreationMode: "DEFAULT" || "OVERRIDDEN",
* // parserMode: "DEFAULT" || "OVERRIDDEN",
* // },
* // modelInvocationOutput: { // PreProcessingModelInvocationOutput
Expand Down Expand Up @@ -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"),
Expand All @@ -514,8 +516,6 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat
* // "STRING_VALUE",
* // ],
* // },
* // overrideLambda: "STRING_VALUE",
* // promptCreationMode: "DEFAULT" || "OVERRIDDEN",
* // parserMode: "DEFAULT" || "OVERRIDDEN",
* // },
* // modelInvocationOutput: { // OrchestrationModelInvocationOutput
Expand All @@ -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"),
Expand All @@ -545,8 +547,6 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat
* // "STRING_VALUE",
* // ],
* // },
* // overrideLambda: "STRING_VALUE",
* // promptCreationMode: "DEFAULT" || "OVERRIDDEN",
* // parserMode: "DEFAULT" || "OVERRIDDEN",
* // },
* // modelInvocationOutput: { // PostProcessingModelInvocationOutput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export interface InvokeFlowCommandOutput extends InvokeFlowResponse, __MetadataB
* },
* },
* ],
* enableTrace: true || false,
* };
* const command = new InvokeFlowCommand(input);
* const response = await client.send(command);
Expand All @@ -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",
* // },
Expand Down
Loading

0 comments on commit bc89971

Please sign in to comment.