Skip to content

Commit e5fd31d

Browse files
chore: Updates version to 0.52.0
1 parent 42f7970 commit e5fd31d

File tree

14 files changed

+420
-50
lines changed

14 files changed

+420
-50
lines changed

Package.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ extension Target.Dependency {
4444
static var smithyWaitersAPI: Self { .product(name: "SmithyWaitersAPI", package: "smithy-swift") }
4545
static var smithyTestUtils: Self { .product(name: "SmithyTestUtil", package: "smithy-swift") }
4646
static var smithyStreams: Self { .product(name: "SmithyStreams", package: "smithy-swift") }
47-
static var smithyXML: Self { .product(name: "SmithyXML", package: "smithy-swift") }
4847
}
4948

5049
// MARK: - Base Package
@@ -80,7 +79,6 @@ let package = Package(
8079
.smithyRetries,
8180
.smithyEventStreamsAPI,
8281
.smithyEventStreamsAuthAPI,
83-
.smithyXML,
8482
.awsSDKCommon,
8583
.awsSDKHTTPAuth,
8684
.awsSDKIdentity
@@ -257,7 +255,7 @@ func addResolvedTargets() {
257255
// MARK: - Generated
258256

259257
addDependencies(
260-
clientRuntimeVersion: "0.54.0",
258+
clientRuntimeVersion: "0.55.0",
261259
crtVersion: "0.32.0"
262260
)
263261

Package.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.51.0
1+
0.52.0

Sources/Core/AWSSDKForSwift/Documentation.docc/AWSSDKForSwift.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,23 @@ A pure-Swift SDK for accessing all published AWS services.
88

99
This SDK is open-source. Code is available on Github [here](https://github.com/awslabs/aws-sdk-swift).
1010

11-
## Service Documentation
1211

12+
## AWS Runtime Module Documentation
13+
14+
[AWSClientRuntime](../../../../../swift/api/awsclientruntime/latest)
15+
16+
[AWSSDKChecksums](../../../../../swift/api/awssdkchecksums/latest)
17+
18+
[AWSSDKCommon](../../../../../swift/api/awssdkcommon/latest)
19+
20+
[AWSSDKEventStreamsAuth](../../../../../swift/api/awssdkeventstreamsauth/latest)
21+
22+
[AWSSDKHTTPAuth](../../../../../swift/api/awssdkhttpauth/latest)
23+
24+
[AWSSDKIdentity](../../../../../swift/api/awssdkidentity/latest)
25+
26+
27+
## Service Documentation
1328

1429
[AWSACM](../../../../../swift/api/awsacm/latest)
1530

Sources/Services/AWSBedrockAgentRuntime/Sources/AWSBedrockAgentRuntime/BedrockAgentRuntimeClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ extension BedrockAgentRuntimeClient {
436436

437437
/// Performs the `InvokeFlow` operation on the `AmazonBedrockAgentRunTimeService` service.
438438
///
439-
/// Invokes an alias of a flow to run the inputs that you specify and return the output of each node as a stream. If there's an error, the error is returned. For more information, see [Test a flow in Amazon Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-test.html) in the Amazon Bedrock User Guide.
439+
/// Invokes an alias of a flow to run the inputs that you specify and return the output of each node as a stream. If there's an error, the error is returned. For more information, see [Test a flow in Amazon Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-test.html) in the Amazon Bedrock User Guide. The CLI doesn't support streaming operations in Amazon Bedrock, including InvokeFlow.
440440
///
441441
/// - Parameter InvokeFlowInput : [no documentation found]
442442
///

Sources/Services/AWSBedrockAgentRuntime/Sources/AWSBedrockAgentRuntime/Models.swift

Lines changed: 159 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -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

408408
extension 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

516516
extension 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

572572
extension 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+
26192719
extension 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+
51775324
extension BedrockAgentRuntimeClientTypes.Observation {
51785325

51795326
static func read(from reader: SmithyJSON.Reader) throws -> BedrockAgentRuntimeClientTypes.Observation {

0 commit comments

Comments
 (0)