# frozen_string_literal: true # WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws::BedrockRuntime # @api private module ClientApi include Seahorse::Model AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException') AnyToolChoice = Shapes::StructureShape.new(name: 'AnyToolChoice') ApplyGuardrailRequest = Shapes::StructureShape.new(name: 'ApplyGuardrailRequest') ApplyGuardrailResponse = Shapes::StructureShape.new(name: 'ApplyGuardrailResponse') AutoToolChoice = Shapes::StructureShape.new(name: 'AutoToolChoice') Body = Shapes::BlobShape.new(name: 'Body') ContentBlock = Shapes::UnionShape.new(name: 'ContentBlock') ContentBlockDelta = Shapes::UnionShape.new(name: 'ContentBlockDelta') ContentBlockDeltaEvent = Shapes::StructureShape.new(name: 'ContentBlockDeltaEvent') ContentBlockStart = Shapes::UnionShape.new(name: 'ContentBlockStart') ContentBlockStartEvent = Shapes::StructureShape.new(name: 'ContentBlockStartEvent') ContentBlockStopEvent = Shapes::StructureShape.new(name: 'ContentBlockStopEvent') ContentBlocks = Shapes::ListShape.new(name: 'ContentBlocks') ConversationRole = Shapes::StringShape.new(name: 'ConversationRole') ConversationalModelId = Shapes::StringShape.new(name: 'ConversationalModelId') ConverseMetrics = Shapes::StructureShape.new(name: 'ConverseMetrics') ConverseOutput = Shapes::UnionShape.new(name: 'ConverseOutput') ConverseRequest = Shapes::StructureShape.new(name: 'ConverseRequest') ConverseRequestAdditionalModelResponseFieldPathsList = Shapes::ListShape.new(name: 'ConverseRequestAdditionalModelResponseFieldPathsList') ConverseRequestAdditionalModelResponseFieldPathsListMemberString = Shapes::StringShape.new(name: 'ConverseRequestAdditionalModelResponseFieldPathsListMemberString') ConverseResponse = Shapes::StructureShape.new(name: 'ConverseResponse') ConverseStreamMetadataEvent = Shapes::StructureShape.new(name: 'ConverseStreamMetadataEvent') ConverseStreamMetrics = Shapes::StructureShape.new(name: 'ConverseStreamMetrics') ConverseStreamOutput = Shapes::StructureShape.new(name: 'ConverseStreamOutput') ConverseStreamRequest = Shapes::StructureShape.new(name: 'ConverseStreamRequest') ConverseStreamRequestAdditionalModelResponseFieldPathsList = Shapes::ListShape.new(name: 'ConverseStreamRequestAdditionalModelResponseFieldPathsList') ConverseStreamRequestAdditionalModelResponseFieldPathsListMemberString = Shapes::StringShape.new(name: 'ConverseStreamRequestAdditionalModelResponseFieldPathsListMemberString') ConverseStreamResponse = Shapes::StructureShape.new(name: 'ConverseStreamResponse') ConverseStreamTrace = Shapes::StructureShape.new(name: 'ConverseStreamTrace') ConverseTrace = Shapes::StructureShape.new(name: 'ConverseTrace') Document = Shapes::DocumentShape.new(name: 'Document', document: true) DocumentBlock = Shapes::StructureShape.new(name: 'DocumentBlock') DocumentBlockNameString = Shapes::StringShape.new(name: 'DocumentBlockNameString') DocumentFormat = Shapes::StringShape.new(name: 'DocumentFormat') DocumentSource = Shapes::UnionShape.new(name: 'DocumentSource') DocumentSourceBytesBlob = Shapes::BlobShape.new(name: 'DocumentSourceBytesBlob') GuardrailAction = Shapes::StringShape.new(name: 'GuardrailAction') GuardrailAssessment = Shapes::StructureShape.new(name: 'GuardrailAssessment') GuardrailAssessmentList = Shapes::ListShape.new(name: 'GuardrailAssessmentList') GuardrailAssessmentListMap = Shapes::MapShape.new(name: 'GuardrailAssessmentListMap') GuardrailAssessmentMap = Shapes::MapShape.new(name: 'GuardrailAssessmentMap') GuardrailConfiguration = Shapes::StructureShape.new(name: 'GuardrailConfiguration') GuardrailContentBlock = Shapes::UnionShape.new(name: 'GuardrailContentBlock') GuardrailContentBlockList = Shapes::ListShape.new(name: 'GuardrailContentBlockList') GuardrailContentFilter = Shapes::StructureShape.new(name: 'GuardrailContentFilter') GuardrailContentFilterConfidence = Shapes::StringShape.new(name: 'GuardrailContentFilterConfidence') GuardrailContentFilterList = Shapes::ListShape.new(name: 'GuardrailContentFilterList') GuardrailContentFilterType = Shapes::StringShape.new(name: 'GuardrailContentFilterType') GuardrailContentPolicyAction = Shapes::StringShape.new(name: 'GuardrailContentPolicyAction') GuardrailContentPolicyAssessment = Shapes::StructureShape.new(name: 'GuardrailContentPolicyAssessment') GuardrailContentPolicyUnitsProcessed = Shapes::IntegerShape.new(name: 'GuardrailContentPolicyUnitsProcessed') GuardrailContentQualifier = Shapes::StringShape.new(name: 'GuardrailContentQualifier') GuardrailContentQualifierList = Shapes::ListShape.new(name: 'GuardrailContentQualifierList') GuardrailContentSource = Shapes::StringShape.new(name: 'GuardrailContentSource') GuardrailContextualGroundingFilter = Shapes::StructureShape.new(name: 'GuardrailContextualGroundingFilter') GuardrailContextualGroundingFilterScoreDouble = Shapes::FloatShape.new(name: 'GuardrailContextualGroundingFilterScoreDouble') GuardrailContextualGroundingFilterThresholdDouble = Shapes::FloatShape.new(name: 'GuardrailContextualGroundingFilterThresholdDouble') GuardrailContextualGroundingFilterType = Shapes::StringShape.new(name: 'GuardrailContextualGroundingFilterType') GuardrailContextualGroundingFilters = Shapes::ListShape.new(name: 'GuardrailContextualGroundingFilters') GuardrailContextualGroundingPolicyAction = Shapes::StringShape.new(name: 'GuardrailContextualGroundingPolicyAction') GuardrailContextualGroundingPolicyAssessment = Shapes::StructureShape.new(name: 'GuardrailContextualGroundingPolicyAssessment') GuardrailContextualGroundingPolicyUnitsProcessed = Shapes::IntegerShape.new(name: 'GuardrailContextualGroundingPolicyUnitsProcessed') GuardrailConverseContentBlock = Shapes::UnionShape.new(name: 'GuardrailConverseContentBlock') GuardrailConverseContentQualifier = Shapes::StringShape.new(name: 'GuardrailConverseContentQualifier') GuardrailConverseContentQualifierList = Shapes::ListShape.new(name: 'GuardrailConverseContentQualifierList') GuardrailConverseTextBlock = Shapes::StructureShape.new(name: 'GuardrailConverseTextBlock') GuardrailCustomWord = Shapes::StructureShape.new(name: 'GuardrailCustomWord') GuardrailCustomWordList = Shapes::ListShape.new(name: 'GuardrailCustomWordList') GuardrailIdentifier = Shapes::StringShape.new(name: 'GuardrailIdentifier') GuardrailManagedWord = Shapes::StructureShape.new(name: 'GuardrailManagedWord') GuardrailManagedWordList = Shapes::ListShape.new(name: 'GuardrailManagedWordList') GuardrailManagedWordType = Shapes::StringShape.new(name: 'GuardrailManagedWordType') GuardrailOutputContent = Shapes::StructureShape.new(name: 'GuardrailOutputContent') GuardrailOutputContentList = Shapes::ListShape.new(name: 'GuardrailOutputContentList') GuardrailOutputText = Shapes::StringShape.new(name: 'GuardrailOutputText') GuardrailPiiEntityFilter = Shapes::StructureShape.new(name: 'GuardrailPiiEntityFilter') GuardrailPiiEntityFilterList = Shapes::ListShape.new(name: 'GuardrailPiiEntityFilterList') GuardrailPiiEntityType = Shapes::StringShape.new(name: 'GuardrailPiiEntityType') GuardrailRegexFilter = Shapes::StructureShape.new(name: 'GuardrailRegexFilter') GuardrailRegexFilterList = Shapes::ListShape.new(name: 'GuardrailRegexFilterList') GuardrailSensitiveInformationPolicyAction = Shapes::StringShape.new(name: 'GuardrailSensitiveInformationPolicyAction') GuardrailSensitiveInformationPolicyAssessment = Shapes::StructureShape.new(name: 'GuardrailSensitiveInformationPolicyAssessment') GuardrailSensitiveInformationPolicyFreeUnitsProcessed = Shapes::IntegerShape.new(name: 'GuardrailSensitiveInformationPolicyFreeUnitsProcessed') GuardrailSensitiveInformationPolicyUnitsProcessed = Shapes::IntegerShape.new(name: 'GuardrailSensitiveInformationPolicyUnitsProcessed') GuardrailStreamConfiguration = Shapes::StructureShape.new(name: 'GuardrailStreamConfiguration') GuardrailStreamProcessingMode = Shapes::StringShape.new(name: 'GuardrailStreamProcessingMode') GuardrailTextBlock = Shapes::StructureShape.new(name: 'GuardrailTextBlock') GuardrailTopic = Shapes::StructureShape.new(name: 'GuardrailTopic') GuardrailTopicList = Shapes::ListShape.new(name: 'GuardrailTopicList') GuardrailTopicPolicyAction = Shapes::StringShape.new(name: 'GuardrailTopicPolicyAction') GuardrailTopicPolicyAssessment = Shapes::StructureShape.new(name: 'GuardrailTopicPolicyAssessment') GuardrailTopicPolicyUnitsProcessed = Shapes::IntegerShape.new(name: 'GuardrailTopicPolicyUnitsProcessed') GuardrailTopicType = Shapes::StringShape.new(name: 'GuardrailTopicType') GuardrailTrace = Shapes::StringShape.new(name: 'GuardrailTrace') GuardrailTraceAssessment = Shapes::StructureShape.new(name: 'GuardrailTraceAssessment') GuardrailUsage = Shapes::StructureShape.new(name: 'GuardrailUsage') GuardrailVersion = Shapes::StringShape.new(name: 'GuardrailVersion') GuardrailWordPolicyAction = Shapes::StringShape.new(name: 'GuardrailWordPolicyAction') GuardrailWordPolicyAssessment = Shapes::StructureShape.new(name: 'GuardrailWordPolicyAssessment') GuardrailWordPolicyUnitsProcessed = Shapes::IntegerShape.new(name: 'GuardrailWordPolicyUnitsProcessed') ImageBlock = Shapes::StructureShape.new(name: 'ImageBlock') ImageFormat = Shapes::StringShape.new(name: 'ImageFormat') ImageSource = Shapes::UnionShape.new(name: 'ImageSource') ImageSourceBytesBlob = Shapes::BlobShape.new(name: 'ImageSourceBytesBlob') InferenceConfiguration = Shapes::StructureShape.new(name: 'InferenceConfiguration') InferenceConfigurationMaxTokensInteger = Shapes::IntegerShape.new(name: 'InferenceConfigurationMaxTokensInteger') InferenceConfigurationStopSequencesList = Shapes::ListShape.new(name: 'InferenceConfigurationStopSequencesList') InferenceConfigurationTemperatureFloat = Shapes::FloatShape.new(name: 'InferenceConfigurationTemperatureFloat') InferenceConfigurationTopPFloat = Shapes::FloatShape.new(name: 'InferenceConfigurationTopPFloat') InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException') InvokeModelIdentifier = Shapes::StringShape.new(name: 'InvokeModelIdentifier') InvokeModelRequest = Shapes::StructureShape.new(name: 'InvokeModelRequest') InvokeModelResponse = Shapes::StructureShape.new(name: 'InvokeModelResponse') InvokeModelWithResponseStreamRequest = Shapes::StructureShape.new(name: 'InvokeModelWithResponseStreamRequest') InvokeModelWithResponseStreamResponse = Shapes::StructureShape.new(name: 'InvokeModelWithResponseStreamResponse') Long = Shapes::IntegerShape.new(name: 'Long') Message = Shapes::StructureShape.new(name: 'Message') MessageStartEvent = Shapes::StructureShape.new(name: 'MessageStartEvent') MessageStopEvent = Shapes::StructureShape.new(name: 'MessageStopEvent') Messages = Shapes::ListShape.new(name: 'Messages') MimeType = Shapes::StringShape.new(name: 'MimeType') ModelErrorException = Shapes::StructureShape.new(name: 'ModelErrorException') ModelNotReadyException = Shapes::StructureShape.new(name: 'ModelNotReadyException') ModelOutputs = Shapes::ListShape.new(name: 'ModelOutputs') ModelStreamErrorException = Shapes::StructureShape.new(name: 'ModelStreamErrorException') ModelTimeoutException = Shapes::StructureShape.new(name: 'ModelTimeoutException') NonBlankString = Shapes::StringShape.new(name: 'NonBlankString') NonEmptyString = Shapes::StringShape.new(name: 'NonEmptyString') NonNegativeInteger = Shapes::IntegerShape.new(name: 'NonNegativeInteger') PartBody = Shapes::BlobShape.new(name: 'PartBody') PayloadPart = Shapes::StructureShape.new(name: 'PayloadPart') ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException') ResponseStream = Shapes::StructureShape.new(name: 'ResponseStream') ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException') ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException') SpecificToolChoice = Shapes::StructureShape.new(name: 'SpecificToolChoice') StatusCode = Shapes::IntegerShape.new(name: 'StatusCode') StopReason = Shapes::StringShape.new(name: 'StopReason') String = Shapes::StringShape.new(name: 'String') SystemContentBlock = Shapes::UnionShape.new(name: 'SystemContentBlock') SystemContentBlocks = Shapes::ListShape.new(name: 'SystemContentBlocks') ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException') TokenUsage = Shapes::StructureShape.new(name: 'TokenUsage') TokenUsageInputTokensInteger = Shapes::IntegerShape.new(name: 'TokenUsageInputTokensInteger') TokenUsageOutputTokensInteger = Shapes::IntegerShape.new(name: 'TokenUsageOutputTokensInteger') TokenUsageTotalTokensInteger = Shapes::IntegerShape.new(name: 'TokenUsageTotalTokensInteger') Tool = Shapes::UnionShape.new(name: 'Tool') ToolChoice = Shapes::UnionShape.new(name: 'ToolChoice') ToolConfiguration = Shapes::StructureShape.new(name: 'ToolConfiguration') ToolConfigurationToolsList = Shapes::ListShape.new(name: 'ToolConfigurationToolsList') ToolInputSchema = Shapes::UnionShape.new(name: 'ToolInputSchema') ToolName = Shapes::StringShape.new(name: 'ToolName') ToolResultBlock = Shapes::StructureShape.new(name: 'ToolResultBlock') ToolResultContentBlock = Shapes::UnionShape.new(name: 'ToolResultContentBlock') ToolResultContentBlocks = Shapes::ListShape.new(name: 'ToolResultContentBlocks') ToolResultStatus = Shapes::StringShape.new(name: 'ToolResultStatus') ToolSpecification = Shapes::StructureShape.new(name: 'ToolSpecification') ToolUseBlock = Shapes::StructureShape.new(name: 'ToolUseBlock') ToolUseBlockDelta = Shapes::StructureShape.new(name: 'ToolUseBlockDelta') ToolUseBlockStart = Shapes::StructureShape.new(name: 'ToolUseBlockStart') ToolUseId = Shapes::StringShape.new(name: 'ToolUseId') Trace = Shapes::StringShape.new(name: 'Trace') ValidationException = Shapes::StructureShape.new(name: 'ValidationException') AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message")) AccessDeniedException.struct_class = Types::AccessDeniedException AnyToolChoice.struct_class = Types::AnyToolChoice ApplyGuardrailRequest.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, required: true, location: "uri", location_name: "guardrailIdentifier")) ApplyGuardrailRequest.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, required: true, location: "uri", location_name: "guardrailVersion")) ApplyGuardrailRequest.add_member(:source, Shapes::ShapeRef.new(shape: GuardrailContentSource, required: true, location_name: "source")) ApplyGuardrailRequest.add_member(:content, Shapes::ShapeRef.new(shape: GuardrailContentBlockList, required: true, location_name: "content")) ApplyGuardrailRequest.struct_class = Types::ApplyGuardrailRequest ApplyGuardrailResponse.add_member(:usage, Shapes::ShapeRef.new(shape: GuardrailUsage, required: true, location_name: "usage")) ApplyGuardrailResponse.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailAction, required: true, location_name: "action")) ApplyGuardrailResponse.add_member(:outputs, Shapes::ShapeRef.new(shape: GuardrailOutputContentList, required: true, location_name: "outputs")) ApplyGuardrailResponse.add_member(:assessments, Shapes::ShapeRef.new(shape: GuardrailAssessmentList, required: true, location_name: "assessments")) ApplyGuardrailResponse.struct_class = Types::ApplyGuardrailResponse AutoToolChoice.struct_class = Types::AutoToolChoice ContentBlock.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "text")) ContentBlock.add_member(:image, Shapes::ShapeRef.new(shape: ImageBlock, location_name: "image")) ContentBlock.add_member(:document, Shapes::ShapeRef.new(shape: DocumentBlock, location_name: "document")) ContentBlock.add_member(:tool_use, Shapes::ShapeRef.new(shape: ToolUseBlock, location_name: "toolUse")) ContentBlock.add_member(:tool_result, Shapes::ShapeRef.new(shape: ToolResultBlock, location_name: "toolResult")) ContentBlock.add_member(:guard_content, Shapes::ShapeRef.new(shape: GuardrailConverseContentBlock, location_name: "guardContent")) ContentBlock.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown')) ContentBlock.add_member_subclass(:text, Types::ContentBlock::Text) ContentBlock.add_member_subclass(:image, Types::ContentBlock::Image) ContentBlock.add_member_subclass(:document, Types::ContentBlock::Document) ContentBlock.add_member_subclass(:tool_use, Types::ContentBlock::ToolUse) ContentBlock.add_member_subclass(:tool_result, Types::ContentBlock::ToolResult) ContentBlock.add_member_subclass(:guard_content, Types::ContentBlock::GuardContent) ContentBlock.add_member_subclass(:unknown, Types::ContentBlock::Unknown) ContentBlock.struct_class = Types::ContentBlock ContentBlockDelta.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "text")) ContentBlockDelta.add_member(:tool_use, Shapes::ShapeRef.new(shape: ToolUseBlockDelta, location_name: "toolUse")) ContentBlockDelta.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown')) ContentBlockDelta.add_member_subclass(:text, Types::ContentBlockDelta::Text) ContentBlockDelta.add_member_subclass(:tool_use, Types::ContentBlockDelta::ToolUse) ContentBlockDelta.add_member_subclass(:unknown, Types::ContentBlockDelta::Unknown) ContentBlockDelta.struct_class = Types::ContentBlockDelta ContentBlockDeltaEvent.add_member(:delta, Shapes::ShapeRef.new(shape: ContentBlockDelta, required: true, location_name: "delta")) ContentBlockDeltaEvent.add_member(:content_block_index, Shapes::ShapeRef.new(shape: NonNegativeInteger, required: true, location_name: "contentBlockIndex")) ContentBlockDeltaEvent.struct_class = Types::ContentBlockDeltaEvent ContentBlockStart.add_member(:tool_use, Shapes::ShapeRef.new(shape: ToolUseBlockStart, location_name: "toolUse")) ContentBlockStart.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown')) ContentBlockStart.add_member_subclass(:tool_use, Types::ContentBlockStart::ToolUse) ContentBlockStart.add_member_subclass(:unknown, Types::ContentBlockStart::Unknown) ContentBlockStart.struct_class = Types::ContentBlockStart ContentBlockStartEvent.add_member(:start, Shapes::ShapeRef.new(shape: ContentBlockStart, required: true, location_name: "start")) ContentBlockStartEvent.add_member(:content_block_index, Shapes::ShapeRef.new(shape: NonNegativeInteger, required: true, location_name: "contentBlockIndex")) ContentBlockStartEvent.struct_class = Types::ContentBlockStartEvent ContentBlockStopEvent.add_member(:content_block_index, Shapes::ShapeRef.new(shape: NonNegativeInteger, required: true, location_name: "contentBlockIndex")) ContentBlockStopEvent.struct_class = Types::ContentBlockStopEvent ContentBlocks.member = Shapes::ShapeRef.new(shape: ContentBlock) ConverseMetrics.add_member(:latency_ms, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "latencyMs")) ConverseMetrics.struct_class = Types::ConverseMetrics ConverseOutput.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "message")) ConverseOutput.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown')) ConverseOutput.add_member_subclass(:message, Types::ConverseOutput::Message) ConverseOutput.add_member_subclass(:unknown, Types::ConverseOutput::Unknown) ConverseOutput.struct_class = Types::ConverseOutput ConverseRequest.add_member(:model_id, Shapes::ShapeRef.new(shape: ConversationalModelId, required: true, location: "uri", location_name: "modelId")) ConverseRequest.add_member(:messages, Shapes::ShapeRef.new(shape: Messages, required: true, location_name: "messages")) ConverseRequest.add_member(:system, Shapes::ShapeRef.new(shape: SystemContentBlocks, location_name: "system")) ConverseRequest.add_member(:inference_config, Shapes::ShapeRef.new(shape: InferenceConfiguration, location_name: "inferenceConfig")) ConverseRequest.add_member(:tool_config, Shapes::ShapeRef.new(shape: ToolConfiguration, location_name: "toolConfig")) ConverseRequest.add_member(:guardrail_config, Shapes::ShapeRef.new(shape: GuardrailConfiguration, location_name: "guardrailConfig")) ConverseRequest.add_member(:additional_model_request_fields, Shapes::ShapeRef.new(shape: Document, location_name: "additionalModelRequestFields")) ConverseRequest.add_member(:additional_model_response_field_paths, Shapes::ShapeRef.new(shape: ConverseRequestAdditionalModelResponseFieldPathsList, location_name: "additionalModelResponseFieldPaths")) ConverseRequest.struct_class = Types::ConverseRequest ConverseRequestAdditionalModelResponseFieldPathsList.member = Shapes::ShapeRef.new(shape: ConverseRequestAdditionalModelResponseFieldPathsListMemberString) ConverseResponse.add_member(:output, Shapes::ShapeRef.new(shape: ConverseOutput, required: true, location_name: "output")) ConverseResponse.add_member(:stop_reason, Shapes::ShapeRef.new(shape: StopReason, required: true, location_name: "stopReason")) ConverseResponse.add_member(:usage, Shapes::ShapeRef.new(shape: TokenUsage, required: true, location_name: "usage")) ConverseResponse.add_member(:metrics, Shapes::ShapeRef.new(shape: ConverseMetrics, required: true, location_name: "metrics")) ConverseResponse.add_member(:additional_model_response_fields, Shapes::ShapeRef.new(shape: Document, location_name: "additionalModelResponseFields")) ConverseResponse.add_member(:trace, Shapes::ShapeRef.new(shape: ConverseTrace, location_name: "trace")) ConverseResponse.struct_class = Types::ConverseResponse ConverseStreamMetadataEvent.add_member(:usage, Shapes::ShapeRef.new(shape: TokenUsage, required: true, location_name: "usage")) ConverseStreamMetadataEvent.add_member(:metrics, Shapes::ShapeRef.new(shape: ConverseStreamMetrics, required: true, location_name: "metrics")) ConverseStreamMetadataEvent.add_member(:trace, Shapes::ShapeRef.new(shape: ConverseStreamTrace, location_name: "trace")) ConverseStreamMetadataEvent.struct_class = Types::ConverseStreamMetadataEvent ConverseStreamMetrics.add_member(:latency_ms, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "latencyMs")) ConverseStreamMetrics.struct_class = Types::ConverseStreamMetrics ConverseStreamOutput.add_member(:message_start, Shapes::ShapeRef.new(shape: MessageStartEvent, event: true, location_name: "messageStart")) ConverseStreamOutput.add_member(:content_block_start, Shapes::ShapeRef.new(shape: ContentBlockStartEvent, event: true, location_name: "contentBlockStart")) ConverseStreamOutput.add_member(:content_block_delta, Shapes::ShapeRef.new(shape: ContentBlockDeltaEvent, event: true, location_name: "contentBlockDelta")) ConverseStreamOutput.add_member(:content_block_stop, Shapes::ShapeRef.new(shape: ContentBlockStopEvent, event: true, location_name: "contentBlockStop")) ConverseStreamOutput.add_member(:message_stop, Shapes::ShapeRef.new(shape: MessageStopEvent, event: true, location_name: "messageStop")) ConverseStreamOutput.add_member(:metadata, Shapes::ShapeRef.new(shape: ConverseStreamMetadataEvent, event: true, location_name: "metadata")) ConverseStreamOutput.add_member(:internal_server_exception, Shapes::ShapeRef.new(shape: InternalServerException, location_name: "internalServerException")) ConverseStreamOutput.add_member(:model_stream_error_exception, Shapes::ShapeRef.new(shape: ModelStreamErrorException, location_name: "modelStreamErrorException")) ConverseStreamOutput.add_member(:validation_exception, Shapes::ShapeRef.new(shape: ValidationException, location_name: "validationException")) ConverseStreamOutput.add_member(:throttling_exception, Shapes::ShapeRef.new(shape: ThrottlingException, location_name: "throttlingException")) ConverseStreamOutput.add_member(:service_unavailable_exception, Shapes::ShapeRef.new(shape: ServiceUnavailableException, location_name: "serviceUnavailableException")) ConverseStreamOutput.struct_class = Types::ConverseStreamOutput ConverseStreamRequest.add_member(:model_id, Shapes::ShapeRef.new(shape: ConversationalModelId, required: true, location: "uri", location_name: "modelId")) ConverseStreamRequest.add_member(:messages, Shapes::ShapeRef.new(shape: Messages, required: true, location_name: "messages")) ConverseStreamRequest.add_member(:system, Shapes::ShapeRef.new(shape: SystemContentBlocks, location_name: "system")) ConverseStreamRequest.add_member(:inference_config, Shapes::ShapeRef.new(shape: InferenceConfiguration, location_name: "inferenceConfig")) ConverseStreamRequest.add_member(:tool_config, Shapes::ShapeRef.new(shape: ToolConfiguration, location_name: "toolConfig")) ConverseStreamRequest.add_member(:guardrail_config, Shapes::ShapeRef.new(shape: GuardrailStreamConfiguration, location_name: "guardrailConfig")) ConverseStreamRequest.add_member(:additional_model_request_fields, Shapes::ShapeRef.new(shape: Document, location_name: "additionalModelRequestFields")) ConverseStreamRequest.add_member(:additional_model_response_field_paths, Shapes::ShapeRef.new(shape: ConverseStreamRequestAdditionalModelResponseFieldPathsList, location_name: "additionalModelResponseFieldPaths")) ConverseStreamRequest.struct_class = Types::ConverseStreamRequest ConverseStreamRequestAdditionalModelResponseFieldPathsList.member = Shapes::ShapeRef.new(shape: ConverseStreamRequestAdditionalModelResponseFieldPathsListMemberString) ConverseStreamResponse.add_member(:stream, Shapes::ShapeRef.new(shape: ConverseStreamOutput, eventstream: true, location_name: "stream")) ConverseStreamResponse.struct_class = Types::ConverseStreamResponse ConverseStreamResponse[:payload] = :stream ConverseStreamResponse[:payload_member] = ConverseStreamResponse.member(:stream) ConverseStreamTrace.add_member(:guardrail, Shapes::ShapeRef.new(shape: GuardrailTraceAssessment, location_name: "guardrail")) ConverseStreamTrace.struct_class = Types::ConverseStreamTrace ConverseTrace.add_member(:guardrail, Shapes::ShapeRef.new(shape: GuardrailTraceAssessment, location_name: "guardrail")) ConverseTrace.struct_class = Types::ConverseTrace DocumentBlock.add_member(:format, Shapes::ShapeRef.new(shape: DocumentFormat, required: true, location_name: "format")) DocumentBlock.add_member(:name, Shapes::ShapeRef.new(shape: DocumentBlockNameString, required: true, location_name: "name")) DocumentBlock.add_member(:source, Shapes::ShapeRef.new(shape: DocumentSource, required: true, location_name: "source")) DocumentBlock.struct_class = Types::DocumentBlock DocumentSource.add_member(:bytes, Shapes::ShapeRef.new(shape: DocumentSourceBytesBlob, location_name: "bytes")) DocumentSource.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown')) DocumentSource.add_member_subclass(:bytes, Types::DocumentSource::Bytes) DocumentSource.add_member_subclass(:unknown, Types::DocumentSource::Unknown) DocumentSource.struct_class = Types::DocumentSource GuardrailAssessment.add_member(:topic_policy, Shapes::ShapeRef.new(shape: GuardrailTopicPolicyAssessment, location_name: "topicPolicy")) GuardrailAssessment.add_member(:content_policy, Shapes::ShapeRef.new(shape: GuardrailContentPolicyAssessment, location_name: "contentPolicy")) GuardrailAssessment.add_member(:word_policy, Shapes::ShapeRef.new(shape: GuardrailWordPolicyAssessment, location_name: "wordPolicy")) GuardrailAssessment.add_member(:sensitive_information_policy, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationPolicyAssessment, location_name: "sensitiveInformationPolicy")) GuardrailAssessment.add_member(:contextual_grounding_policy, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingPolicyAssessment, location_name: "contextualGroundingPolicy")) GuardrailAssessment.struct_class = Types::GuardrailAssessment GuardrailAssessmentList.member = Shapes::ShapeRef.new(shape: GuardrailAssessment) GuardrailAssessmentListMap.key = Shapes::ShapeRef.new(shape: String) GuardrailAssessmentListMap.value = Shapes::ShapeRef.new(shape: GuardrailAssessmentList) GuardrailAssessmentMap.key = Shapes::ShapeRef.new(shape: String) GuardrailAssessmentMap.value = Shapes::ShapeRef.new(shape: GuardrailAssessment) GuardrailConfiguration.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, required: true, location_name: "guardrailIdentifier")) GuardrailConfiguration.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, required: true, location_name: "guardrailVersion")) GuardrailConfiguration.add_member(:trace, Shapes::ShapeRef.new(shape: GuardrailTrace, location_name: "trace")) GuardrailConfiguration.struct_class = Types::GuardrailConfiguration GuardrailContentBlock.add_member(:text, Shapes::ShapeRef.new(shape: GuardrailTextBlock, location_name: "text")) GuardrailContentBlock.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown')) GuardrailContentBlock.add_member_subclass(:text, Types::GuardrailContentBlock::Text) GuardrailContentBlock.add_member_subclass(:unknown, Types::GuardrailContentBlock::Unknown) GuardrailContentBlock.struct_class = Types::GuardrailContentBlock GuardrailContentBlockList.member = Shapes::ShapeRef.new(shape: GuardrailContentBlock) GuardrailContentFilter.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailContentFilterType, required: true, location_name: "type")) GuardrailContentFilter.add_member(:confidence, Shapes::ShapeRef.new(shape: GuardrailContentFilterConfidence, required: true, location_name: "confidence")) GuardrailContentFilter.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailContentPolicyAction, required: true, location_name: "action")) GuardrailContentFilter.struct_class = Types::GuardrailContentFilter GuardrailContentFilterList.member = Shapes::ShapeRef.new(shape: GuardrailContentFilter) GuardrailContentPolicyAssessment.add_member(:filters, Shapes::ShapeRef.new(shape: GuardrailContentFilterList, required: true, location_name: "filters")) GuardrailContentPolicyAssessment.struct_class = Types::GuardrailContentPolicyAssessment GuardrailContentQualifierList.member = Shapes::ShapeRef.new(shape: GuardrailContentQualifier) GuardrailContextualGroundingFilter.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingFilterType, required: true, location_name: "type")) GuardrailContextualGroundingFilter.add_member(:threshold, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingFilterThresholdDouble, required: true, location_name: "threshold")) GuardrailContextualGroundingFilter.add_member(:score, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingFilterScoreDouble, required: true, location_name: "score")) GuardrailContextualGroundingFilter.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingPolicyAction, required: true, location_name: "action")) GuardrailContextualGroundingFilter.struct_class = Types::GuardrailContextualGroundingFilter GuardrailContextualGroundingFilters.member = Shapes::ShapeRef.new(shape: GuardrailContextualGroundingFilter) GuardrailContextualGroundingPolicyAssessment.add_member(:filters, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingFilters, location_name: "filters")) GuardrailContextualGroundingPolicyAssessment.struct_class = Types::GuardrailContextualGroundingPolicyAssessment GuardrailConverseContentBlock.add_member(:text, Shapes::ShapeRef.new(shape: GuardrailConverseTextBlock, location_name: "text")) GuardrailConverseContentBlock.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown')) GuardrailConverseContentBlock.add_member_subclass(:text, Types::GuardrailConverseContentBlock::Text) GuardrailConverseContentBlock.add_member_subclass(:unknown, Types::GuardrailConverseContentBlock::Unknown) GuardrailConverseContentBlock.struct_class = Types::GuardrailConverseContentBlock GuardrailConverseContentQualifierList.member = Shapes::ShapeRef.new(shape: GuardrailConverseContentQualifier) GuardrailConverseTextBlock.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "text")) GuardrailConverseTextBlock.add_member(:qualifiers, Shapes::ShapeRef.new(shape: GuardrailConverseContentQualifierList, location_name: "qualifiers")) GuardrailConverseTextBlock.struct_class = Types::GuardrailConverseTextBlock GuardrailCustomWord.add_member(:match, Shapes::ShapeRef.new(shape: String, required: true, location_name: "match")) GuardrailCustomWord.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailWordPolicyAction, required: true, location_name: "action")) GuardrailCustomWord.struct_class = Types::GuardrailCustomWord GuardrailCustomWordList.member = Shapes::ShapeRef.new(shape: GuardrailCustomWord) GuardrailManagedWord.add_member(:match, Shapes::ShapeRef.new(shape: String, required: true, location_name: "match")) GuardrailManagedWord.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailManagedWordType, required: true, location_name: "type")) GuardrailManagedWord.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailWordPolicyAction, required: true, location_name: "action")) GuardrailManagedWord.struct_class = Types::GuardrailManagedWord GuardrailManagedWordList.member = Shapes::ShapeRef.new(shape: GuardrailManagedWord) GuardrailOutputContent.add_member(:text, Shapes::ShapeRef.new(shape: GuardrailOutputText, location_name: "text")) GuardrailOutputContent.struct_class = Types::GuardrailOutputContent GuardrailOutputContentList.member = Shapes::ShapeRef.new(shape: GuardrailOutputContent) GuardrailPiiEntityFilter.add_member(:match, Shapes::ShapeRef.new(shape: String, required: true, location_name: "match")) GuardrailPiiEntityFilter.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailPiiEntityType, required: true, location_name: "type")) GuardrailPiiEntityFilter.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationPolicyAction, required: true, location_name: "action")) GuardrailPiiEntityFilter.struct_class = Types::GuardrailPiiEntityFilter GuardrailPiiEntityFilterList.member = Shapes::ShapeRef.new(shape: GuardrailPiiEntityFilter) GuardrailRegexFilter.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name")) GuardrailRegexFilter.add_member(:match, Shapes::ShapeRef.new(shape: String, location_name: "match")) GuardrailRegexFilter.add_member(:regex, Shapes::ShapeRef.new(shape: String, location_name: "regex")) GuardrailRegexFilter.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationPolicyAction, required: true, location_name: "action")) GuardrailRegexFilter.struct_class = Types::GuardrailRegexFilter GuardrailRegexFilterList.member = Shapes::ShapeRef.new(shape: GuardrailRegexFilter) GuardrailSensitiveInformationPolicyAssessment.add_member(:pii_entities, Shapes::ShapeRef.new(shape: GuardrailPiiEntityFilterList, required: true, location_name: "piiEntities")) GuardrailSensitiveInformationPolicyAssessment.add_member(:regexes, Shapes::ShapeRef.new(shape: GuardrailRegexFilterList, required: true, location_name: "regexes")) GuardrailSensitiveInformationPolicyAssessment.struct_class = Types::GuardrailSensitiveInformationPolicyAssessment GuardrailStreamConfiguration.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, required: true, location_name: "guardrailIdentifier")) GuardrailStreamConfiguration.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, required: true, location_name: "guardrailVersion")) GuardrailStreamConfiguration.add_member(:trace, Shapes::ShapeRef.new(shape: GuardrailTrace, location_name: "trace")) GuardrailStreamConfiguration.add_member(:stream_processing_mode, Shapes::ShapeRef.new(shape: GuardrailStreamProcessingMode, location_name: "streamProcessingMode")) GuardrailStreamConfiguration.struct_class = Types::GuardrailStreamConfiguration GuardrailTextBlock.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "text")) GuardrailTextBlock.add_member(:qualifiers, Shapes::ShapeRef.new(shape: GuardrailContentQualifierList, location_name: "qualifiers")) GuardrailTextBlock.struct_class = Types::GuardrailTextBlock GuardrailTopic.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name")) GuardrailTopic.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailTopicType, required: true, location_name: "type")) GuardrailTopic.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailTopicPolicyAction, required: true, location_name: "action")) GuardrailTopic.struct_class = Types::GuardrailTopic GuardrailTopicList.member = Shapes::ShapeRef.new(shape: GuardrailTopic) GuardrailTopicPolicyAssessment.add_member(:topics, Shapes::ShapeRef.new(shape: GuardrailTopicList, required: true, location_name: "topics")) GuardrailTopicPolicyAssessment.struct_class = Types::GuardrailTopicPolicyAssessment GuardrailTraceAssessment.add_member(:model_output, Shapes::ShapeRef.new(shape: ModelOutputs, location_name: "modelOutput")) GuardrailTraceAssessment.add_member(:input_assessment, Shapes::ShapeRef.new(shape: GuardrailAssessmentMap, location_name: "inputAssessment")) GuardrailTraceAssessment.add_member(:output_assessments, Shapes::ShapeRef.new(shape: GuardrailAssessmentListMap, location_name: "outputAssessments")) GuardrailTraceAssessment.struct_class = Types::GuardrailTraceAssessment GuardrailUsage.add_member(:topic_policy_units, Shapes::ShapeRef.new(shape: GuardrailTopicPolicyUnitsProcessed, required: true, location_name: "topicPolicyUnits")) GuardrailUsage.add_member(:content_policy_units, Shapes::ShapeRef.new(shape: GuardrailContentPolicyUnitsProcessed, required: true, location_name: "contentPolicyUnits")) GuardrailUsage.add_member(:word_policy_units, Shapes::ShapeRef.new(shape: GuardrailWordPolicyUnitsProcessed, required: true, location_name: "wordPolicyUnits")) GuardrailUsage.add_member(:sensitive_information_policy_units, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationPolicyUnitsProcessed, required: true, location_name: "sensitiveInformationPolicyUnits")) GuardrailUsage.add_member(:sensitive_information_policy_free_units, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationPolicyFreeUnitsProcessed, required: true, location_name: "sensitiveInformationPolicyFreeUnits")) GuardrailUsage.add_member(:contextual_grounding_policy_units, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingPolicyUnitsProcessed, required: true, location_name: "contextualGroundingPolicyUnits")) GuardrailUsage.struct_class = Types::GuardrailUsage GuardrailWordPolicyAssessment.add_member(:custom_words, Shapes::ShapeRef.new(shape: GuardrailCustomWordList, required: true, location_name: "customWords")) GuardrailWordPolicyAssessment.add_member(:managed_word_lists, Shapes::ShapeRef.new(shape: GuardrailManagedWordList, required: true, location_name: "managedWordLists")) GuardrailWordPolicyAssessment.struct_class = Types::GuardrailWordPolicyAssessment ImageBlock.add_member(:format, Shapes::ShapeRef.new(shape: ImageFormat, required: true, location_name: "format")) ImageBlock.add_member(:source, Shapes::ShapeRef.new(shape: ImageSource, required: true, location_name: "source")) ImageBlock.struct_class = Types::ImageBlock ImageSource.add_member(:bytes, Shapes::ShapeRef.new(shape: ImageSourceBytesBlob, location_name: "bytes")) ImageSource.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown')) ImageSource.add_member_subclass(:bytes, Types::ImageSource::Bytes) ImageSource.add_member_subclass(:unknown, Types::ImageSource::Unknown) ImageSource.struct_class = Types::ImageSource InferenceConfiguration.add_member(:max_tokens, Shapes::ShapeRef.new(shape: InferenceConfigurationMaxTokensInteger, location_name: "maxTokens")) InferenceConfiguration.add_member(:temperature, Shapes::ShapeRef.new(shape: InferenceConfigurationTemperatureFloat, location_name: "temperature")) InferenceConfiguration.add_member(:top_p, Shapes::ShapeRef.new(shape: InferenceConfigurationTopPFloat, location_name: "topP")) InferenceConfiguration.add_member(:stop_sequences, Shapes::ShapeRef.new(shape: InferenceConfigurationStopSequencesList, location_name: "stopSequences")) InferenceConfiguration.struct_class = Types::InferenceConfiguration InferenceConfigurationStopSequencesList.member = Shapes::ShapeRef.new(shape: NonEmptyString) InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message")) InternalServerException.struct_class = Types::InternalServerException InvokeModelRequest.add_member(:body, Shapes::ShapeRef.new(shape: Body, required: true, location_name: "body")) InvokeModelRequest.add_member(:content_type, Shapes::ShapeRef.new(shape: MimeType, location: "header", location_name: "Content-Type")) InvokeModelRequest.add_member(:accept, Shapes::ShapeRef.new(shape: MimeType, location: "header", location_name: "Accept")) InvokeModelRequest.add_member(:model_id, Shapes::ShapeRef.new(shape: InvokeModelIdentifier, required: true, location: "uri", location_name: "modelId")) InvokeModelRequest.add_member(:trace, Shapes::ShapeRef.new(shape: Trace, location: "header", location_name: "X-Amzn-Bedrock-Trace")) InvokeModelRequest.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, location: "header", location_name: "X-Amzn-Bedrock-GuardrailIdentifier")) InvokeModelRequest.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, location: "header", location_name: "X-Amzn-Bedrock-GuardrailVersion")) InvokeModelRequest.struct_class = Types::InvokeModelRequest InvokeModelRequest[:payload] = :body InvokeModelRequest[:payload_member] = InvokeModelRequest.member(:body) InvokeModelResponse.add_member(:body, Shapes::ShapeRef.new(shape: Body, required: true, location_name: "body")) InvokeModelResponse.add_member(:content_type, Shapes::ShapeRef.new(shape: MimeType, required: true, location: "header", location_name: "Content-Type")) InvokeModelResponse.struct_class = Types::InvokeModelResponse InvokeModelResponse[:payload] = :body InvokeModelResponse[:payload_member] = InvokeModelResponse.member(:body) InvokeModelWithResponseStreamRequest.add_member(:body, Shapes::ShapeRef.new(shape: Body, required: true, location_name: "body")) InvokeModelWithResponseStreamRequest.add_member(:content_type, Shapes::ShapeRef.new(shape: MimeType, location: "header", location_name: "Content-Type")) InvokeModelWithResponseStreamRequest.add_member(:accept, Shapes::ShapeRef.new(shape: MimeType, location: "header", location_name: "X-Amzn-Bedrock-Accept")) InvokeModelWithResponseStreamRequest.add_member(:model_id, Shapes::ShapeRef.new(shape: InvokeModelIdentifier, required: true, location: "uri", location_name: "modelId")) InvokeModelWithResponseStreamRequest.add_member(:trace, Shapes::ShapeRef.new(shape: Trace, location: "header", location_name: "X-Amzn-Bedrock-Trace")) InvokeModelWithResponseStreamRequest.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, location: "header", location_name: "X-Amzn-Bedrock-GuardrailIdentifier")) InvokeModelWithResponseStreamRequest.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, location: "header", location_name: "X-Amzn-Bedrock-GuardrailVersion")) InvokeModelWithResponseStreamRequest.struct_class = Types::InvokeModelWithResponseStreamRequest InvokeModelWithResponseStreamRequest[:payload] = :body InvokeModelWithResponseStreamRequest[:payload_member] = InvokeModelWithResponseStreamRequest.member(:body) InvokeModelWithResponseStreamResponse.add_member(:body, Shapes::ShapeRef.new(shape: ResponseStream, required: true, eventstream: true, location_name: "body")) InvokeModelWithResponseStreamResponse.add_member(:content_type, Shapes::ShapeRef.new(shape: MimeType, required: true, location: "header", location_name: "X-Amzn-Bedrock-Content-Type")) InvokeModelWithResponseStreamResponse.struct_class = Types::InvokeModelWithResponseStreamResponse InvokeModelWithResponseStreamResponse[:payload] = :body InvokeModelWithResponseStreamResponse[:payload_member] = InvokeModelWithResponseStreamResponse.member(:body) Message.add_member(:role, Shapes::ShapeRef.new(shape: ConversationRole, required: true, location_name: "role")) Message.add_member(:content, Shapes::ShapeRef.new(shape: ContentBlocks, required: true, location_name: "content")) Message.struct_class = Types::Message MessageStartEvent.add_member(:role, Shapes::ShapeRef.new(shape: ConversationRole, required: true, location_name: "role")) MessageStartEvent.struct_class = Types::MessageStartEvent MessageStopEvent.add_member(:stop_reason, Shapes::ShapeRef.new(shape: StopReason, required: true, location_name: "stopReason")) MessageStopEvent.add_member(:additional_model_response_fields, Shapes::ShapeRef.new(shape: Document, location_name: "additionalModelResponseFields")) MessageStopEvent.struct_class = Types::MessageStopEvent Messages.member = Shapes::ShapeRef.new(shape: Message) ModelErrorException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message")) ModelErrorException.add_member(:original_status_code, Shapes::ShapeRef.new(shape: StatusCode, location_name: "originalStatusCode")) ModelErrorException.add_member(:resource_name, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "resourceName")) ModelErrorException.struct_class = Types::ModelErrorException ModelNotReadyException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message")) ModelNotReadyException.struct_class = Types::ModelNotReadyException ModelOutputs.member = Shapes::ShapeRef.new(shape: GuardrailOutputText) ModelStreamErrorException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message")) ModelStreamErrorException.add_member(:original_status_code, Shapes::ShapeRef.new(shape: StatusCode, location_name: "originalStatusCode")) ModelStreamErrorException.add_member(:original_message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "originalMessage")) ModelStreamErrorException.struct_class = Types::ModelStreamErrorException ModelTimeoutException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message")) ModelTimeoutException.struct_class = Types::ModelTimeoutException PayloadPart.add_member(:bytes, Shapes::ShapeRef.new(shape: PartBody, location_name: "bytes")) PayloadPart.struct_class = Types::PayloadPart ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message")) ResourceNotFoundException.struct_class = Types::ResourceNotFoundException ResponseStream.add_member(:chunk, Shapes::ShapeRef.new(shape: PayloadPart, event: true, location_name: "chunk")) ResponseStream.add_member(:internal_server_exception, Shapes::ShapeRef.new(shape: InternalServerException, location_name: "internalServerException")) ResponseStream.add_member(:model_stream_error_exception, Shapes::ShapeRef.new(shape: ModelStreamErrorException, location_name: "modelStreamErrorException")) ResponseStream.add_member(:validation_exception, Shapes::ShapeRef.new(shape: ValidationException, location_name: "validationException")) ResponseStream.add_member(:throttling_exception, Shapes::ShapeRef.new(shape: ThrottlingException, location_name: "throttlingException")) ResponseStream.add_member(:model_timeout_exception, Shapes::ShapeRef.new(shape: ModelTimeoutException, location_name: "modelTimeoutException")) ResponseStream.add_member(:service_unavailable_exception, Shapes::ShapeRef.new(shape: ServiceUnavailableException, location_name: "serviceUnavailableException")) ResponseStream.struct_class = Types::ResponseStream ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message")) ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message")) ServiceUnavailableException.struct_class = Types::ServiceUnavailableException SpecificToolChoice.add_member(:name, Shapes::ShapeRef.new(shape: ToolName, required: true, location_name: "name")) SpecificToolChoice.struct_class = Types::SpecificToolChoice SystemContentBlock.add_member(:text, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "text")) SystemContentBlock.add_member(:guard_content, Shapes::ShapeRef.new(shape: GuardrailConverseContentBlock, location_name: "guardContent")) SystemContentBlock.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown')) SystemContentBlock.add_member_subclass(:text, Types::SystemContentBlock::Text) SystemContentBlock.add_member_subclass(:guard_content, Types::SystemContentBlock::GuardContent) SystemContentBlock.add_member_subclass(:unknown, Types::SystemContentBlock::Unknown) SystemContentBlock.struct_class = Types::SystemContentBlock SystemContentBlocks.member = Shapes::ShapeRef.new(shape: SystemContentBlock) ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message")) ThrottlingException.struct_class = Types::ThrottlingException TokenUsage.add_member(:input_tokens, Shapes::ShapeRef.new(shape: TokenUsageInputTokensInteger, required: true, location_name: "inputTokens")) TokenUsage.add_member(:output_tokens, Shapes::ShapeRef.new(shape: TokenUsageOutputTokensInteger, required: true, location_name: "outputTokens")) TokenUsage.add_member(:total_tokens, Shapes::ShapeRef.new(shape: TokenUsageTotalTokensInteger, required: true, location_name: "totalTokens")) TokenUsage.struct_class = Types::TokenUsage Tool.add_member(:tool_spec, Shapes::ShapeRef.new(shape: ToolSpecification, location_name: "toolSpec")) Tool.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown')) Tool.add_member_subclass(:tool_spec, Types::Tool::ToolSpec) Tool.add_member_subclass(:unknown, Types::Tool::Unknown) Tool.struct_class = Types::Tool ToolChoice.add_member(:auto, Shapes::ShapeRef.new(shape: AutoToolChoice, location_name: "auto")) ToolChoice.add_member(:any, Shapes::ShapeRef.new(shape: AnyToolChoice, location_name: "any")) ToolChoice.add_member(:tool, Shapes::ShapeRef.new(shape: SpecificToolChoice, location_name: "tool")) ToolChoice.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown')) ToolChoice.add_member_subclass(:auto, Types::ToolChoice::Auto) ToolChoice.add_member_subclass(:any, Types::ToolChoice::Any) ToolChoice.add_member_subclass(:tool, Types::ToolChoice::Tool) ToolChoice.add_member_subclass(:unknown, Types::ToolChoice::Unknown) ToolChoice.struct_class = Types::ToolChoice ToolConfiguration.add_member(:tools, Shapes::ShapeRef.new(shape: ToolConfigurationToolsList, required: true, location_name: "tools")) ToolConfiguration.add_member(:tool_choice, Shapes::ShapeRef.new(shape: ToolChoice, location_name: "toolChoice")) ToolConfiguration.struct_class = Types::ToolConfiguration ToolConfigurationToolsList.member = Shapes::ShapeRef.new(shape: Tool) ToolInputSchema.add_member(:json, Shapes::ShapeRef.new(shape: Document, location_name: "json")) ToolInputSchema.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown')) ToolInputSchema.add_member_subclass(:json, Types::ToolInputSchema::Json) ToolInputSchema.add_member_subclass(:unknown, Types::ToolInputSchema::Unknown) ToolInputSchema.struct_class = Types::ToolInputSchema ToolResultBlock.add_member(:tool_use_id, Shapes::ShapeRef.new(shape: ToolUseId, required: true, location_name: "toolUseId")) ToolResultBlock.add_member(:content, Shapes::ShapeRef.new(shape: ToolResultContentBlocks, required: true, location_name: "content")) ToolResultBlock.add_member(:status, Shapes::ShapeRef.new(shape: ToolResultStatus, location_name: "status")) ToolResultBlock.struct_class = Types::ToolResultBlock ToolResultContentBlock.add_member(:json, Shapes::ShapeRef.new(shape: Document, location_name: "json")) ToolResultContentBlock.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "text")) ToolResultContentBlock.add_member(:image, Shapes::ShapeRef.new(shape: ImageBlock, location_name: "image")) ToolResultContentBlock.add_member(:document, Shapes::ShapeRef.new(shape: DocumentBlock, location_name: "document")) ToolResultContentBlock.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown')) ToolResultContentBlock.add_member_subclass(:json, Types::ToolResultContentBlock::Json) ToolResultContentBlock.add_member_subclass(:text, Types::ToolResultContentBlock::Text) ToolResultContentBlock.add_member_subclass(:image, Types::ToolResultContentBlock::Image) ToolResultContentBlock.add_member_subclass(:document, Types::ToolResultContentBlock::Document) ToolResultContentBlock.add_member_subclass(:unknown, Types::ToolResultContentBlock::Unknown) ToolResultContentBlock.struct_class = Types::ToolResultContentBlock ToolResultContentBlocks.member = Shapes::ShapeRef.new(shape: ToolResultContentBlock) ToolSpecification.add_member(:name, Shapes::ShapeRef.new(shape: ToolName, required: true, location_name: "name")) ToolSpecification.add_member(:description, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "description")) ToolSpecification.add_member(:input_schema, Shapes::ShapeRef.new(shape: ToolInputSchema, required: true, location_name: "inputSchema")) ToolSpecification.struct_class = Types::ToolSpecification ToolUseBlock.add_member(:tool_use_id, Shapes::ShapeRef.new(shape: ToolUseId, required: true, location_name: "toolUseId")) ToolUseBlock.add_member(:name, Shapes::ShapeRef.new(shape: ToolName, required: true, location_name: "name")) ToolUseBlock.add_member(:input, Shapes::ShapeRef.new(shape: Document, required: true, location_name: "input")) ToolUseBlock.struct_class = Types::ToolUseBlock ToolUseBlockDelta.add_member(:input, Shapes::ShapeRef.new(shape: String, required: true, location_name: "input")) ToolUseBlockDelta.struct_class = Types::ToolUseBlockDelta ToolUseBlockStart.add_member(:tool_use_id, Shapes::ShapeRef.new(shape: ToolUseId, required: true, location_name: "toolUseId")) ToolUseBlockStart.add_member(:name, Shapes::ShapeRef.new(shape: ToolName, required: true, location_name: "name")) ToolUseBlockStart.struct_class = Types::ToolUseBlockStart ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message")) ValidationException.struct_class = Types::ValidationException # @api private API = Seahorse::Model::Api.new.tap do |api| api.version = "2023-09-30" api.metadata = { "apiVersion" => "2023-09-30", "auth" => ["aws.auth#sigv4"], "endpointPrefix" => "bedrock-runtime", "protocol" => "rest-json", "protocols" => ["rest-json"], "serviceFullName" => "Amazon Bedrock Runtime", "serviceId" => "Bedrock Runtime", "signatureVersion" => "v4", "signingName" => "bedrock", "uid" => "bedrock-runtime-2023-09-30", } api.add_operation(:apply_guardrail, Seahorse::Model::Operation.new.tap do |o| o.name = "ApplyGuardrail" o.http_method = "POST" o.http_request_uri = "/guardrail/{guardrailIdentifier}/version/{guardrailVersion}/apply" o.input = Shapes::ShapeRef.new(shape: ApplyGuardrailRequest) o.output = Shapes::ShapeRef.new(shape: ApplyGuardrailResponse) o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException) o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) o.errors << Shapes::ShapeRef.new(shape: ThrottlingException) o.errors << Shapes::ShapeRef.new(shape: InternalServerException) o.errors << Shapes::ShapeRef.new(shape: ValidationException) o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException) end) api.add_operation(:converse, Seahorse::Model::Operation.new.tap do |o| o.name = "Converse" o.http_method = "POST" o.http_request_uri = "/model/{modelId}/converse" o.input = Shapes::ShapeRef.new(shape: ConverseRequest) o.output = Shapes::ShapeRef.new(shape: ConverseResponse) o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException) o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) o.errors << Shapes::ShapeRef.new(shape: ThrottlingException) o.errors << Shapes::ShapeRef.new(shape: ModelTimeoutException) o.errors << Shapes::ShapeRef.new(shape: InternalServerException) o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException) o.errors << Shapes::ShapeRef.new(shape: ValidationException) o.errors << Shapes::ShapeRef.new(shape: ModelNotReadyException) o.errors << Shapes::ShapeRef.new(shape: ModelErrorException) end) api.add_operation(:converse_stream, Seahorse::Model::Operation.new.tap do |o| o.name = "ConverseStream" o.http_method = "POST" o.http_request_uri = "/model/{modelId}/converse-stream" o.input = Shapes::ShapeRef.new(shape: ConverseStreamRequest) o.output = Shapes::ShapeRef.new(shape: ConverseStreamResponse) o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException) o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) o.errors << Shapes::ShapeRef.new(shape: ThrottlingException) o.errors << Shapes::ShapeRef.new(shape: ModelTimeoutException) o.errors << Shapes::ShapeRef.new(shape: InternalServerException) o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException) o.errors << Shapes::ShapeRef.new(shape: ValidationException) o.errors << Shapes::ShapeRef.new(shape: ModelNotReadyException) o.errors << Shapes::ShapeRef.new(shape: ModelErrorException) end) api.add_operation(:invoke_model, Seahorse::Model::Operation.new.tap do |o| o.name = "InvokeModel" o.http_method = "POST" o.http_request_uri = "/model/{modelId}/invoke" o.input = Shapes::ShapeRef.new(shape: InvokeModelRequest) o.output = Shapes::ShapeRef.new(shape: InvokeModelResponse) o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException) o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) o.errors << Shapes::ShapeRef.new(shape: ThrottlingException) o.errors << Shapes::ShapeRef.new(shape: ModelTimeoutException) o.errors << Shapes::ShapeRef.new(shape: InternalServerException) o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException) o.errors << Shapes::ShapeRef.new(shape: ValidationException) o.errors << Shapes::ShapeRef.new(shape: ModelNotReadyException) o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException) o.errors << Shapes::ShapeRef.new(shape: ModelErrorException) end) api.add_operation(:invoke_model_with_response_stream, Seahorse::Model::Operation.new.tap do |o| o.name = "InvokeModelWithResponseStream" o.http_method = "POST" o.http_request_uri = "/model/{modelId}/invoke-with-response-stream" o.input = Shapes::ShapeRef.new(shape: InvokeModelWithResponseStreamRequest) o.output = Shapes::ShapeRef.new(shape: InvokeModelWithResponseStreamResponse) o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException) o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) o.errors << Shapes::ShapeRef.new(shape: ThrottlingException) o.errors << Shapes::ShapeRef.new(shape: ModelTimeoutException) o.errors << Shapes::ShapeRef.new(shape: InternalServerException) o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException) o.errors << Shapes::ShapeRef.new(shape: ModelStreamErrorException) o.errors << Shapes::ShapeRef.new(shape: ValidationException) o.errors << Shapes::ShapeRef.new(shape: ModelNotReadyException) o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException) o.errors << Shapes::ShapeRef.new(shape: ModelErrorException) end) end end end