Skip to content

Commit

Permalink
chore: Updates version to 1.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-sdk-swift-automation committed Oct 2, 2024
1 parent da35e2b commit 2d2160a
Show file tree
Hide file tree
Showing 15 changed files with 1,863 additions and 184 deletions.
2 changes: 1 addition & 1 deletion Package.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.10
1.0.11
2 changes: 1 addition & 1 deletion Package.version.next
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.11
1.0.12
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ extension AppStreamClientTypes {
extension AppStreamClientTypes {

public enum Action: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable {
case autoTimeZoneRedirection
case clipboardCopyFromLocalDevice
case clipboardCopyToLocalDevice
case domainPasswordSignin
Expand All @@ -88,6 +89,7 @@ extension AppStreamClientTypes {

public static var allCases: [Action] {
return [
.autoTimeZoneRedirection,
.clipboardCopyFromLocalDevice,
.clipboardCopyToLocalDevice,
.domainPasswordSignin,
Expand All @@ -105,6 +107,7 @@ extension AppStreamClientTypes {

public var rawValue: Swift.String {
switch self {
case .autoTimeZoneRedirection: return "AUTO_TIME_ZONE_REDIRECTION"
case .clipboardCopyFromLocalDevice: return "CLIPBOARD_COPY_FROM_LOCAL_DEVICE"
case .clipboardCopyToLocalDevice: return "CLIPBOARD_COPY_TO_LOCAL_DEVICE"
case .domainPasswordSignin: return "DOMAIN_PASSWORD_SIGNIN"
Expand Down
172 changes: 166 additions & 6 deletions Sources/Services/AWSB2bi/Sources/AWSB2bi/B2biClient.swift

Large diffs are not rendered by default.

1,319 changes: 1,268 additions & 51 deletions Sources/Services/AWSB2bi/Sources/AWSB2bi/Models.swift

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3090,17 +3090,25 @@ extension BedrockAgentRuntimeClientTypes {

/// The foundation model output from the post-processing step.
public struct PostProcessingModelInvocationOutput: Swift.Sendable {
/// Provides details of the foundation model.
public var metadata: BedrockAgentRuntimeClientTypes.Metadata?
/// Details about the response from the Lambda parsing of the output of the post-processing step.
public var parsedResponse: BedrockAgentRuntimeClientTypes.PostProcessingParsedResponse?
/// Contains the raw output from the foundation model.
public var rawResponse: BedrockAgentRuntimeClientTypes.RawResponse?
/// The unique identifier of the trace.
public var traceId: Swift.String?

public init(
metadata: BedrockAgentRuntimeClientTypes.Metadata? = nil,
parsedResponse: BedrockAgentRuntimeClientTypes.PostProcessingParsedResponse? = nil,
rawResponse: BedrockAgentRuntimeClientTypes.RawResponse? = nil,
traceId: Swift.String? = nil
)
{
self.metadata = metadata
self.parsedResponse = parsedResponse
self.rawResponse = rawResponse
self.traceId = traceId
}
}
Expand Down Expand Up @@ -3160,17 +3168,25 @@ extension BedrockAgentRuntimeClientTypes {

/// The foundation model output from the pre-processing step.
public struct PreProcessingModelInvocationOutput: Swift.Sendable {
/// Provides details of the foundation model.
public var metadata: BedrockAgentRuntimeClientTypes.Metadata?
/// Details about the response from the Lambda parsing of the output of the pre-processing step.
public var parsedResponse: BedrockAgentRuntimeClientTypes.PreProcessingParsedResponse?
/// Contains the raw output from the foundation model.
public var rawResponse: BedrockAgentRuntimeClientTypes.RawResponse?
/// The unique identifier of the trace.
public var traceId: Swift.String?

public init(
metadata: BedrockAgentRuntimeClientTypes.Metadata? = nil,
parsedResponse: BedrockAgentRuntimeClientTypes.PreProcessingParsedResponse? = nil,
rawResponse: BedrockAgentRuntimeClientTypes.RawResponse? = nil,
traceId: Swift.String? = nil
)
{
self.metadata = metadata
self.parsedResponse = parsedResponse
self.rawResponse = rawResponse
self.traceId = traceId
}
}
Expand Down Expand Up @@ -3701,10 +3717,10 @@ extension BedrockAgentRuntimeClientTypes {
public struct ExternalSourcesRetrieveAndGenerateConfiguration: Swift.Sendable {
/// The prompt used with the external source wrapper object with the retrieveAndGenerate function.
public var generationConfiguration: BedrockAgentRuntimeClientTypes.ExternalSourcesGenerationConfiguration?
/// The modelArn used with the external source wrapper object in the retrieveAndGenerate function.
/// The model Amazon Resource Name (ARN) for the external source wrapper object in the retrieveAndGenerate function.
/// This member is required.
public var modelArn: Swift.String?
/// The document used with the external source wrapper object in the retrieveAndGenerate function.
/// The document for the external source wrapper object in the retrieveAndGenerate function.
/// This member is required.
public var sources: [BedrockAgentRuntimeClientTypes.ExternalSource]?

Expand Down Expand Up @@ -4220,11 +4236,11 @@ extension BedrockAgentRuntimeClientTypes {
///
/// * [RetrieveAndGenerate request](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax) – in the retrieveAndGenerateConfiguration field
public struct RetrieveAndGenerateConfiguration: Swift.Sendable {
/// The configuration used with the external source wrapper object in the retrieveAndGenerate function.
/// The configuration for the external source wrapper object in the retrieveAndGenerate function.
public var externalSourcesConfiguration: BedrockAgentRuntimeClientTypes.ExternalSourcesRetrieveAndGenerateConfiguration?
/// Contains details about the resource being queried.
/// Contains details about the knowledge base for retrieving information and generating responses.
public var knowledgeBaseConfiguration: BedrockAgentRuntimeClientTypes.KnowledgeBaseRetrieveAndGenerateConfiguration?
/// The type of resource that is queried by the request.
/// The type of resource that contains your data for retrieving information and generating responses. If you choose ot use EXTERNAL_SOURCES, then currently only Claude 3 Sonnet models for knowledge bases are supported.
/// This member is required.
public var type: BedrockAgentRuntimeClientTypes.RetrieveAndGenerateType?

Expand Down Expand Up @@ -5295,6 +5311,39 @@ extension BedrockAgentRuntimeClientTypes.PostProcessingModelInvocationOutput {
var value = BedrockAgentRuntimeClientTypes.PostProcessingModelInvocationOutput()
value.traceId = try reader["traceId"].readIfPresent()
value.parsedResponse = try reader["parsedResponse"].readIfPresent(with: BedrockAgentRuntimeClientTypes.PostProcessingParsedResponse.read(from:))
value.rawResponse = try reader["rawResponse"].readIfPresent(with: BedrockAgentRuntimeClientTypes.RawResponse.read(from:))
value.metadata = try reader["metadata"].readIfPresent(with: BedrockAgentRuntimeClientTypes.Metadata.read(from:))
return value
}
}

extension BedrockAgentRuntimeClientTypes.Metadata {

static func read(from reader: SmithyJSON.Reader) throws -> BedrockAgentRuntimeClientTypes.Metadata {
guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent }
var value = BedrockAgentRuntimeClientTypes.Metadata()
value.usage = try reader["usage"].readIfPresent(with: BedrockAgentRuntimeClientTypes.Usage.read(from:))
return value
}
}

extension BedrockAgentRuntimeClientTypes.Usage {

static func read(from reader: SmithyJSON.Reader) throws -> BedrockAgentRuntimeClientTypes.Usage {
guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent }
var value = BedrockAgentRuntimeClientTypes.Usage()
value.inputTokens = try reader["inputTokens"].readIfPresent()
value.outputTokens = try reader["outputTokens"].readIfPresent()
return value
}
}

extension BedrockAgentRuntimeClientTypes.RawResponse {

static func read(from reader: SmithyJSON.Reader) throws -> BedrockAgentRuntimeClientTypes.RawResponse {
guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent }
var value = BedrockAgentRuntimeClientTypes.RawResponse()
value.content = try reader["content"].readIfPresent()
return value
}
}
Expand Down Expand Up @@ -5373,37 +5422,6 @@ extension BedrockAgentRuntimeClientTypes.OrchestrationModelInvocationOutput {
}
}

extension BedrockAgentRuntimeClientTypes.Metadata {

static func read(from reader: SmithyJSON.Reader) throws -> BedrockAgentRuntimeClientTypes.Metadata {
guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent }
var value = BedrockAgentRuntimeClientTypes.Metadata()
value.usage = try reader["usage"].readIfPresent(with: BedrockAgentRuntimeClientTypes.Usage.read(from:))
return value
}
}

extension BedrockAgentRuntimeClientTypes.Usage {

static func read(from reader: SmithyJSON.Reader) throws -> BedrockAgentRuntimeClientTypes.Usage {
guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent }
var value = BedrockAgentRuntimeClientTypes.Usage()
value.inputTokens = try reader["inputTokens"].readIfPresent()
value.outputTokens = try reader["outputTokens"].readIfPresent()
return value
}
}

extension BedrockAgentRuntimeClientTypes.RawResponse {

static func read(from reader: SmithyJSON.Reader) throws -> BedrockAgentRuntimeClientTypes.RawResponse {
guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent }
var value = BedrockAgentRuntimeClientTypes.RawResponse()
value.content = try reader["content"].readIfPresent()
return value
}
}

extension BedrockAgentRuntimeClientTypes.Observation {

static func read(from reader: SmithyJSON.Reader) throws -> BedrockAgentRuntimeClientTypes.Observation {
Expand Down Expand Up @@ -5658,6 +5676,8 @@ extension BedrockAgentRuntimeClientTypes.PreProcessingModelInvocationOutput {
var value = BedrockAgentRuntimeClientTypes.PreProcessingModelInvocationOutput()
value.traceId = try reader["traceId"].readIfPresent()
value.parsedResponse = try reader["parsedResponse"].readIfPresent(with: BedrockAgentRuntimeClientTypes.PreProcessingParsedResponse.read(from:))
value.rawResponse = try reader["rawResponse"].readIfPresent(with: BedrockAgentRuntimeClientTypes.RawResponse.read(from:))
value.metadata = try reader["metadata"].readIfPresent(with: BedrockAgentRuntimeClientTypes.Metadata.read(from:))
return value
}
}
Expand Down
Loading

0 comments on commit 2d2160a

Please sign in to comment.