@@ -398,25 +398,25 @@ extension BedrockAgentRuntimeClientTypes {
398398 ///
399399 /// * [InvokeFlow request](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_RequestSyntax)
400400 public enum FlowInputContent {
401- /// The input for the flow input node.
401+ /// The input to send to the prompt flow input node.
402402 case document( SmithyReadWrite . Document )
403403 case sdkUnknown( Swift . String )
404404 }
405405
406406}
407407
408408extension BedrockAgentRuntimeClientTypes {
409- /// Contains information about an input into the flow and what to do with it. This data type is used in the following API operations:
409+ /// Contains information about an input into the prompt flow and where to send it. This data type is used in the following API operations:
410410 ///
411411 /// * [InvokeFlow request](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_RequestSyntax)
412412 public struct FlowInput {
413- /// Contains information about an input into the flow.
413+ /// Contains information about an input into the prompt flow.
414414 /// This member is required.
415415 public var content : BedrockAgentRuntimeClientTypes . FlowInputContent ?
416- /// A name for the input of the flow input node.
416+ /// The name of the flow input node that begins the prompt flow .
417417 /// This member is required.
418418 public var nodeName : Swift . String ?
419- /// A name for the output of the flow input node.
419+ /// The name of the output from the flow input node that begins the prompt flow .
420420 /// This member is required.
421421 public var nodeOutputName : Swift . String ?
422422
@@ -514,11 +514,11 @@ extension BedrockAgentRuntimeClientTypes.FlowCompletionEvent: Swift.CustomDebugS
514514}
515515
516516extension BedrockAgentRuntimeClientTypes {
517- /// Contains information about the output node . This data type is used in the following API operations:
517+ /// Contains information about the content in an output from prompt flow invocation . This data type is used in the following API operations:
518518 ///
519519 /// * [InvokeFlow request](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_RequestSyntax)
520520 public enum FlowOutputContent {
521- /// A name for the output of the flow .
521+ /// The content in the output.
522522 case document( SmithyReadWrite . Document )
523523 case sdkUnknown( Swift . String )
524524 }
@@ -570,17 +570,17 @@ extension BedrockAgentRuntimeClientTypes {
570570}
571571
572572extension BedrockAgentRuntimeClientTypes {
573- /// Contains information about an output from flow invoction. This data type is used in the following API operations:
573+ /// Contains information about an output from prompt flow invoction. This data type is used in the following API operations:
574574 ///
575575 /// * [InvokeFlow response](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_ResponseSyntax)
576576 public struct FlowOutputEvent {
577- /// The output of the node .
577+ /// The content in the output .
578578 /// This member is required.
579579 public var content : BedrockAgentRuntimeClientTypes . FlowOutputContent ?
580- /// The name of the node to which input was provided .
580+ /// The name of the flow output node that the output is from .
581581 /// This member is required.
582582 public var nodeName : Swift . String ?
583- /// The type of node to which input was provided .
583+ /// The type of the node that the output is from .
584584 /// This member is required.
585585 public var nodeType : BedrockAgentRuntimeClientTypes . NodeType ?
586586
@@ -2479,7 +2479,7 @@ extension BedrockAgentRuntimeClientTypes {
24792479 public var temperature : Swift . Float ?
24802480 /// While generating a response, the model determines the probability of the following token at each point of generation. The value that you set for topK is the number of most-likely candidates from which the model chooses the next token in the sequence. For example, if you set topK to 50, the model selects the next token from among the top 50 most likely choices.
24812481 public var topk : Swift . Int ?
2482- /// While generating a response, the model determines the probability of the following token at each point of generation. The value that you set for Top P determines the number of most-likely candidates from which the model chooses the next token in the sequence. For example, if you set topP to 80 , the model only selects the next token from the top 80% of the probability distribution of next tokens.
2482+ /// While generating a response, the model determines the probability of the following token at each point of generation. The value that you set for Top P determines the number of most-likely candidates from which the model chooses the next token in the sequence. For example, if you set topP to 0.8 , the model only selects the next token from the top 80% of the probability distribution of next tokens.
24832483 public var topp : Swift . Float ?
24842484
24852485 public init (
@@ -2616,6 +2616,106 @@ extension BedrockAgentRuntimeClientTypes.ModelInvocationInput: Swift.CustomDebug
26162616 }
26172617}
26182618
2619+ extension BedrockAgentRuntimeClientTypes {
2620+ /// Contains information of the usage of the foundation model.
2621+ public struct Usage {
2622+ /// Contains information about the input tokens from the foundation model usage.
2623+ public var inputTokens : Swift . Int ?
2624+ /// Contains information about the output tokens from the foundation model usage.
2625+ public var outputTokens : Swift . Int ?
2626+
2627+ public init (
2628+ inputTokens: Swift . Int ? = nil ,
2629+ outputTokens: Swift . Int ? = nil
2630+ )
2631+ {
2632+ self . inputTokens = inputTokens
2633+ self . outputTokens = outputTokens
2634+ }
2635+ }
2636+
2637+ }
2638+
2639+ extension BedrockAgentRuntimeClientTypes . Usage : Swift . CustomDebugStringConvertible {
2640+ public var debugDescription : Swift . String {
2641+ " CONTENT_REDACTED "
2642+ }
2643+ }
2644+
2645+ extension BedrockAgentRuntimeClientTypes {
2646+ /// Provides details of the foundation model.
2647+ public struct Metadata {
2648+ /// Contains details of the foundation model usage.
2649+ public var usage : BedrockAgentRuntimeClientTypes . Usage ?
2650+
2651+ public init (
2652+ usage: BedrockAgentRuntimeClientTypes . Usage ? = nil
2653+ )
2654+ {
2655+ self . usage = usage
2656+ }
2657+ }
2658+
2659+ }
2660+
2661+ extension BedrockAgentRuntimeClientTypes . Metadata : Swift . CustomDebugStringConvertible {
2662+ public var debugDescription : Swift . String {
2663+ " CONTENT_REDACTED "
2664+ }
2665+ }
2666+
2667+ extension BedrockAgentRuntimeClientTypes {
2668+ /// Contains the raw output from the foundation model.
2669+ public struct RawResponse {
2670+ /// The foundation model's raw output content.
2671+ public var content : Swift . String ?
2672+
2673+ public init (
2674+ content: Swift . String ? = nil
2675+ )
2676+ {
2677+ self . content = content
2678+ }
2679+ }
2680+
2681+ }
2682+
2683+ extension BedrockAgentRuntimeClientTypes . RawResponse : Swift . CustomDebugStringConvertible {
2684+ public var debugDescription : Swift . String {
2685+ " CONTENT_REDACTED "
2686+ }
2687+ }
2688+
2689+ extension BedrockAgentRuntimeClientTypes {
2690+ /// The foundation model output from the orchestration step.
2691+ public struct OrchestrationModelInvocationOutput {
2692+ /// Contains information about the foundation model output.
2693+ public var metadata : BedrockAgentRuntimeClientTypes . Metadata ?
2694+ /// Contains details of the raw response from the foundation model output.
2695+ public var rawResponse : BedrockAgentRuntimeClientTypes . RawResponse ?
2696+ /// The unique identifier of the trace.
2697+ public var traceId : Swift . String ?
2698+
2699+ public init (
2700+ metadata: BedrockAgentRuntimeClientTypes . Metadata ? = nil ,
2701+ rawResponse: BedrockAgentRuntimeClientTypes . RawResponse ? = nil ,
2702+ traceId: Swift . String ? = nil
2703+ )
2704+ {
2705+ self . metadata = metadata
2706+ self . rawResponse = rawResponse
2707+ self . traceId = traceId
2708+ }
2709+ }
2710+
2711+ }
2712+
2713+ extension BedrockAgentRuntimeClientTypes . OrchestrationModelInvocationOutput : Swift . CustomDebugStringConvertible {
2714+ public var debugDescription : Swift . String {
2715+ " CONTENT_REDACTED "
2716+ }
2717+ }
2718+
26192719extension BedrockAgentRuntimeClientTypes {
26202720 /// Contains the JSON-formatted string returned by the API invoked by the code interpreter.
26212721 public struct CodeInterpreterInvocationOutput {
@@ -2876,6 +2976,8 @@ extension BedrockAgentRuntimeClientTypes {
28762976 ///
28772977 /// * The inferenceConfiguration, parserMode, and overrideLambda values are set in the [PromptOverrideConfiguration](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html) object that was set when the agent was created or updated.
28782978 case modelinvocationinput( BedrockAgentRuntimeClientTypes . ModelInvocationInput )
2979+ /// Contains information pertaining to the output from the foundation model that is being invoked.
2980+ case modelinvocationoutput( BedrockAgentRuntimeClientTypes . OrchestrationModelInvocationOutput )
28792981 case sdkUnknown( Swift . String )
28802982 }
28812983
@@ -5168,12 +5270,57 @@ extension BedrockAgentRuntimeClientTypes.OrchestrationTrace {
51685270 return . observation( try reader [ " observation " ] . read ( with: BedrockAgentRuntimeClientTypes . Observation. read ( from: ) ) )
51695271 case " modelInvocationInput " :
51705272 return . modelinvocationinput( try reader [ " modelInvocationInput " ] . read ( with: BedrockAgentRuntimeClientTypes . ModelInvocationInput. read ( from: ) ) )
5273+ case " modelInvocationOutput " :
5274+ return . modelinvocationoutput( try reader [ " modelInvocationOutput " ] . read ( with: BedrockAgentRuntimeClientTypes . OrchestrationModelInvocationOutput. read ( from: ) ) )
51715275 default :
51725276 return . sdkUnknown( name ?? " " )
51735277 }
51745278 }
51755279}
51765280
5281+ extension BedrockAgentRuntimeClientTypes . OrchestrationModelInvocationOutput {
5282+
5283+ static func read( from reader: SmithyJSON . Reader ) throws -> BedrockAgentRuntimeClientTypes . OrchestrationModelInvocationOutput {
5284+ guard reader. hasContent else { throw SmithyReadWrite . ReaderError. requiredValueNotPresent }
5285+ var value = BedrockAgentRuntimeClientTypes . OrchestrationModelInvocationOutput ( )
5286+ value. traceId = try reader [ " traceId " ] . readIfPresent ( )
5287+ value. rawResponse = try reader [ " rawResponse " ] . readIfPresent ( with: BedrockAgentRuntimeClientTypes . RawResponse. read ( from: ) )
5288+ value. metadata = try reader [ " metadata " ] . readIfPresent ( with: BedrockAgentRuntimeClientTypes . Metadata. read ( from: ) )
5289+ return value
5290+ }
5291+ }
5292+
5293+ extension BedrockAgentRuntimeClientTypes . Metadata {
5294+
5295+ static func read( from reader: SmithyJSON . Reader ) throws -> BedrockAgentRuntimeClientTypes . Metadata {
5296+ guard reader. hasContent else { throw SmithyReadWrite . ReaderError. requiredValueNotPresent }
5297+ var value = BedrockAgentRuntimeClientTypes . Metadata ( )
5298+ value. usage = try reader [ " usage " ] . readIfPresent ( with: BedrockAgentRuntimeClientTypes . Usage. read ( from: ) )
5299+ return value
5300+ }
5301+ }
5302+
5303+ extension BedrockAgentRuntimeClientTypes . Usage {
5304+
5305+ static func read( from reader: SmithyJSON . Reader ) throws -> BedrockAgentRuntimeClientTypes . Usage {
5306+ guard reader. hasContent else { throw SmithyReadWrite . ReaderError. requiredValueNotPresent }
5307+ var value = BedrockAgentRuntimeClientTypes . Usage ( )
5308+ value. inputTokens = try reader [ " inputTokens " ] . readIfPresent ( )
5309+ value. outputTokens = try reader [ " outputTokens " ] . readIfPresent ( )
5310+ return value
5311+ }
5312+ }
5313+
5314+ extension BedrockAgentRuntimeClientTypes . RawResponse {
5315+
5316+ static func read( from reader: SmithyJSON . Reader ) throws -> BedrockAgentRuntimeClientTypes . RawResponse {
5317+ guard reader. hasContent else { throw SmithyReadWrite . ReaderError. requiredValueNotPresent }
5318+ var value = BedrockAgentRuntimeClientTypes . RawResponse ( )
5319+ value. content = try reader [ " content " ] . readIfPresent ( )
5320+ return value
5321+ }
5322+ }
5323+
51775324extension BedrockAgentRuntimeClientTypes . Observation {
51785325
51795326 static func read( from reader: SmithyJSON . Reader ) throws -> BedrockAgentRuntimeClientTypes . Observation {
0 commit comments