lib/aws-sdk-bedrockagent/client.rb in aws-sdk-bedrockagent-1.33.0 vs lib/aws-sdk-bedrockagent/client.rb in aws-sdk-bedrockagent-1.34.0
- old
+ new
@@ -1406,10 +1406,14 @@
# input: {
# },
# iterator: {
# },
# knowledge_base: {
+ # guardrail_configuration: {
+ # guardrail_identifier: "GuardrailIdentifier",
+ # guardrail_version: "GuardrailVersion",
+ # },
# knowledge_base_id: "KnowledgeBaseId", # required
# model_id: "KnowledgeBaseModelIdentifier",
# },
# lambda_function: {
# lambda_arn: "LambdaArn", # required
@@ -1419,10 +1423,14 @@
# locale_id: "LexBotLocaleId", # required
# },
# output: {
# },
# prompt: {
+ # guardrail_configuration: {
+ # guardrail_identifier: "GuardrailIdentifier",
+ # guardrail_version: "GuardrailVersion",
+ # },
# source_configuration: { # required
# inline: {
# additional_model_request_fields: {
# },
# inference_configuration: {
@@ -1433,20 +1441,65 @@
# top_p: 1.0,
# },
# },
# model_id: "PromptModelIdentifier", # required
# template_configuration: { # required
+ # chat: {
+ # input_variables: [
+ # {
+ # name: "PromptInputVariableName",
+ # },
+ # ],
+ # messages: [ # required
+ # {
+ # content: [ # required
+ # {
+ # text: "String",
+ # },
+ # ],
+ # role: "user", # required, accepts user, assistant
+ # },
+ # ],
+ # system: [
+ # {
+ # text: "NonEmptyString",
+ # },
+ # ],
+ # tool_configuration: {
+ # tool_choice: {
+ # any: {
+ # },
+ # auto: {
+ # },
+ # tool: {
+ # name: "ToolName", # required
+ # },
+ # },
+ # tools: [ # required
+ # {
+ # tool_spec: {
+ # description: "NonEmptyString",
+ # input_schema: { # required
+ # json: {
+ # },
+ # },
+ # name: "ToolName", # required
+ # },
+ # },
+ # ],
+ # },
+ # },
# text: {
# input_variables: [
# {
# name: "PromptInputVariableName",
# },
# ],
# text: "TextPrompt", # required
# },
# },
- # template_type: "TEXT", # required, accepts TEXT
+ # template_type: "TEXT", # required, accepts TEXT, CHAT
# },
# resource: {
# prompt_arn: "PromptArn", # required
# },
# },
@@ -1508,25 +1561,41 @@
# resp.definition.nodes #=> Array
# resp.definition.nodes[0].configuration.agent.agent_alias_arn #=> String
# resp.definition.nodes[0].configuration.condition.conditions #=> Array
# resp.definition.nodes[0].configuration.condition.conditions[0].expression #=> String
# resp.definition.nodes[0].configuration.condition.conditions[0].name #=> String
+ # resp.definition.nodes[0].configuration.knowledge_base.guardrail_configuration.guardrail_identifier #=> String
+ # resp.definition.nodes[0].configuration.knowledge_base.guardrail_configuration.guardrail_version #=> String
# resp.definition.nodes[0].configuration.knowledge_base.knowledge_base_id #=> String
# resp.definition.nodes[0].configuration.knowledge_base.model_id #=> String
# resp.definition.nodes[0].configuration.lambda_function.lambda_arn #=> String
# resp.definition.nodes[0].configuration.lex.bot_alias_arn #=> String
# resp.definition.nodes[0].configuration.lex.locale_id #=> String
+ # resp.definition.nodes[0].configuration.prompt.guardrail_configuration.guardrail_identifier #=> String
+ # resp.definition.nodes[0].configuration.prompt.guardrail_configuration.guardrail_version #=> String
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.max_tokens #=> Integer
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.stop_sequences #=> Array
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.stop_sequences[0] #=> String
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.temperature #=> Float
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.top_p #=> Float
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.model_id #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.input_variables #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.input_variables[0].name #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].content #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].content[0].text #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].role #=> String, one of "user", "assistant"
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.system #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.system[0].text #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tool_choice.tool.name #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools[0].tool_spec.description #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools[0].tool_spec.name #=> String
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.input_variables #=> Array
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.input_variables[0].name #=> String
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.text #=> String
- # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_type #=> String, one of "TEXT"
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_type #=> String, one of "TEXT", "CHAT"
# resp.definition.nodes[0].configuration.prompt.source_configuration.resource.prompt_arn #=> String
# resp.definition.nodes[0].configuration.retrieval.service_configuration.s3.bucket_name #=> String
# resp.definition.nodes[0].configuration.storage.service_configuration.s3.bucket_name #=> String
# resp.definition.nodes[0].inputs #=> Array
# resp.definition.nodes[0].inputs[0].expression #=> String
@@ -1708,25 +1777,41 @@
# resp.definition.nodes #=> Array
# resp.definition.nodes[0].configuration.agent.agent_alias_arn #=> String
# resp.definition.nodes[0].configuration.condition.conditions #=> Array
# resp.definition.nodes[0].configuration.condition.conditions[0].expression #=> String
# resp.definition.nodes[0].configuration.condition.conditions[0].name #=> String
+ # resp.definition.nodes[0].configuration.knowledge_base.guardrail_configuration.guardrail_identifier #=> String
+ # resp.definition.nodes[0].configuration.knowledge_base.guardrail_configuration.guardrail_version #=> String
# resp.definition.nodes[0].configuration.knowledge_base.knowledge_base_id #=> String
# resp.definition.nodes[0].configuration.knowledge_base.model_id #=> String
# resp.definition.nodes[0].configuration.lambda_function.lambda_arn #=> String
# resp.definition.nodes[0].configuration.lex.bot_alias_arn #=> String
# resp.definition.nodes[0].configuration.lex.locale_id #=> String
+ # resp.definition.nodes[0].configuration.prompt.guardrail_configuration.guardrail_identifier #=> String
+ # resp.definition.nodes[0].configuration.prompt.guardrail_configuration.guardrail_version #=> String
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.max_tokens #=> Integer
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.stop_sequences #=> Array
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.stop_sequences[0] #=> String
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.temperature #=> Float
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.top_p #=> Float
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.model_id #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.input_variables #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.input_variables[0].name #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].content #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].content[0].text #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].role #=> String, one of "user", "assistant"
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.system #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.system[0].text #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tool_choice.tool.name #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools[0].tool_spec.description #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools[0].tool_spec.name #=> String
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.input_variables #=> Array
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.input_variables[0].name #=> String
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.text #=> String
- # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_type #=> String, one of "TEXT"
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_type #=> String, one of "TEXT", "CHAT"
# resp.definition.nodes[0].configuration.prompt.source_configuration.resource.prompt_arn #=> String
# resp.definition.nodes[0].configuration.retrieval.service_configuration.s3.bucket_name #=> String
# resp.definition.nodes[0].configuration.storage.service_configuration.s3.bucket_name #=> String
# resp.definition.nodes[0].inputs #=> Array
# resp.definition.nodes[0].inputs[0].expression #=> String
@@ -2056,10 +2141,15 @@
# },
# variants: [
# {
# additional_model_request_fields: {
# },
+ # gen_ai_resource: {
+ # agent: {
+ # agent_identifier: "AgentAliasArn", # required
+ # },
+ # },
# inference_configuration: {
# text: {
# max_tokens: 1,
# stop_sequences: ["String"],
# temperature: 1.0,
@@ -2073,20 +2163,65 @@
# },
# ],
# model_id: "PromptModelIdentifier",
# name: "PromptVariantName", # required
# template_configuration: { # required
+ # chat: {
+ # input_variables: [
+ # {
+ # name: "PromptInputVariableName",
+ # },
+ # ],
+ # messages: [ # required
+ # {
+ # content: [ # required
+ # {
+ # text: "String",
+ # },
+ # ],
+ # role: "user", # required, accepts user, assistant
+ # },
+ # ],
+ # system: [
+ # {
+ # text: "NonEmptyString",
+ # },
+ # ],
+ # tool_configuration: {
+ # tool_choice: {
+ # any: {
+ # },
+ # auto: {
+ # },
+ # tool: {
+ # name: "ToolName", # required
+ # },
+ # },
+ # tools: [ # required
+ # {
+ # tool_spec: {
+ # description: "NonEmptyString",
+ # input_schema: { # required
+ # json: {
+ # },
+ # },
+ # name: "ToolName", # required
+ # },
+ # },
+ # ],
+ # },
+ # },
# text: {
# input_variables: [
# {
# name: "PromptInputVariableName",
# },
# ],
# text: "TextPrompt", # required
# },
# },
- # template_type: "TEXT", # required, accepts TEXT
+ # template_type: "TEXT", # required, accepts TEXT, CHAT
# },
# ],
# })
#
# @example Response structure
@@ -2098,24 +2233,37 @@
# resp.description #=> String
# resp.id #=> String
# resp.name #=> String
# resp.updated_at #=> Time
# resp.variants #=> Array
+ # resp.variants[0].gen_ai_resource.agent.agent_identifier #=> String
# resp.variants[0].inference_configuration.text.max_tokens #=> Integer
# resp.variants[0].inference_configuration.text.stop_sequences #=> Array
# resp.variants[0].inference_configuration.text.stop_sequences[0] #=> String
# resp.variants[0].inference_configuration.text.temperature #=> Float
# resp.variants[0].inference_configuration.text.top_p #=> Float
# resp.variants[0].metadata #=> Array
# resp.variants[0].metadata[0].key #=> String
# resp.variants[0].metadata[0].value #=> String
# resp.variants[0].model_id #=> String
# resp.variants[0].name #=> String
+ # resp.variants[0].template_configuration.chat.input_variables #=> Array
+ # resp.variants[0].template_configuration.chat.input_variables[0].name #=> String
+ # resp.variants[0].template_configuration.chat.messages #=> Array
+ # resp.variants[0].template_configuration.chat.messages[0].content #=> Array
+ # resp.variants[0].template_configuration.chat.messages[0].content[0].text #=> String
+ # resp.variants[0].template_configuration.chat.messages[0].role #=> String, one of "user", "assistant"
+ # resp.variants[0].template_configuration.chat.system #=> Array
+ # resp.variants[0].template_configuration.chat.system[0].text #=> String
+ # resp.variants[0].template_configuration.chat.tool_configuration.tool_choice.tool.name #=> String
+ # resp.variants[0].template_configuration.chat.tool_configuration.tools #=> Array
+ # resp.variants[0].template_configuration.chat.tool_configuration.tools[0].tool_spec.description #=> String
+ # resp.variants[0].template_configuration.chat.tool_configuration.tools[0].tool_spec.name #=> String
# resp.variants[0].template_configuration.text.input_variables #=> Array
# resp.variants[0].template_configuration.text.input_variables[0].name #=> String
# resp.variants[0].template_configuration.text.text #=> String
- # resp.variants[0].template_type #=> String, one of "TEXT"
+ # resp.variants[0].template_type #=> String, one of "TEXT", "CHAT"
# resp.version #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/CreatePrompt AWS API Documentation
#
# @overload create_prompt(params = {})
@@ -2194,24 +2342,37 @@
# resp.description #=> String
# resp.id #=> String
# resp.name #=> String
# resp.updated_at #=> Time
# resp.variants #=> Array
+ # resp.variants[0].gen_ai_resource.agent.agent_identifier #=> String
# resp.variants[0].inference_configuration.text.max_tokens #=> Integer
# resp.variants[0].inference_configuration.text.stop_sequences #=> Array
# resp.variants[0].inference_configuration.text.stop_sequences[0] #=> String
# resp.variants[0].inference_configuration.text.temperature #=> Float
# resp.variants[0].inference_configuration.text.top_p #=> Float
# resp.variants[0].metadata #=> Array
# resp.variants[0].metadata[0].key #=> String
# resp.variants[0].metadata[0].value #=> String
# resp.variants[0].model_id #=> String
# resp.variants[0].name #=> String
+ # resp.variants[0].template_configuration.chat.input_variables #=> Array
+ # resp.variants[0].template_configuration.chat.input_variables[0].name #=> String
+ # resp.variants[0].template_configuration.chat.messages #=> Array
+ # resp.variants[0].template_configuration.chat.messages[0].content #=> Array
+ # resp.variants[0].template_configuration.chat.messages[0].content[0].text #=> String
+ # resp.variants[0].template_configuration.chat.messages[0].role #=> String, one of "user", "assistant"
+ # resp.variants[0].template_configuration.chat.system #=> Array
+ # resp.variants[0].template_configuration.chat.system[0].text #=> String
+ # resp.variants[0].template_configuration.chat.tool_configuration.tool_choice.tool.name #=> String
+ # resp.variants[0].template_configuration.chat.tool_configuration.tools #=> Array
+ # resp.variants[0].template_configuration.chat.tool_configuration.tools[0].tool_spec.description #=> String
+ # resp.variants[0].template_configuration.chat.tool_configuration.tools[0].tool_spec.name #=> String
# resp.variants[0].template_configuration.text.input_variables #=> Array
# resp.variants[0].template_configuration.text.input_variables[0].name #=> String
# resp.variants[0].template_configuration.text.text #=> String
- # resp.variants[0].template_type #=> String, one of "TEXT"
+ # resp.variants[0].template_type #=> String, one of "TEXT", "CHAT"
# resp.version #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/CreatePromptVersion AWS API Documentation
#
# @overload create_prompt_version(params = {})
@@ -3066,25 +3227,41 @@
# resp.definition.nodes #=> Array
# resp.definition.nodes[0].configuration.agent.agent_alias_arn #=> String
# resp.definition.nodes[0].configuration.condition.conditions #=> Array
# resp.definition.nodes[0].configuration.condition.conditions[0].expression #=> String
# resp.definition.nodes[0].configuration.condition.conditions[0].name #=> String
+ # resp.definition.nodes[0].configuration.knowledge_base.guardrail_configuration.guardrail_identifier #=> String
+ # resp.definition.nodes[0].configuration.knowledge_base.guardrail_configuration.guardrail_version #=> String
# resp.definition.nodes[0].configuration.knowledge_base.knowledge_base_id #=> String
# resp.definition.nodes[0].configuration.knowledge_base.model_id #=> String
# resp.definition.nodes[0].configuration.lambda_function.lambda_arn #=> String
# resp.definition.nodes[0].configuration.lex.bot_alias_arn #=> String
# resp.definition.nodes[0].configuration.lex.locale_id #=> String
+ # resp.definition.nodes[0].configuration.prompt.guardrail_configuration.guardrail_identifier #=> String
+ # resp.definition.nodes[0].configuration.prompt.guardrail_configuration.guardrail_version #=> String
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.max_tokens #=> Integer
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.stop_sequences #=> Array
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.stop_sequences[0] #=> String
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.temperature #=> Float
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.top_p #=> Float
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.model_id #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.input_variables #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.input_variables[0].name #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].content #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].content[0].text #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].role #=> String, one of "user", "assistant"
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.system #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.system[0].text #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tool_choice.tool.name #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools[0].tool_spec.description #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools[0].tool_spec.name #=> String
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.input_variables #=> Array
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.input_variables[0].name #=> String
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.text #=> String
- # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_type #=> String, one of "TEXT"
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_type #=> String, one of "TEXT", "CHAT"
# resp.definition.nodes[0].configuration.prompt.source_configuration.resource.prompt_arn #=> String
# resp.definition.nodes[0].configuration.retrieval.service_configuration.s3.bucket_name #=> String
# resp.definition.nodes[0].configuration.storage.service_configuration.s3.bucket_name #=> String
# resp.definition.nodes[0].inputs #=> Array
# resp.definition.nodes[0].inputs[0].expression #=> String
@@ -3100,12 +3277,49 @@
# resp.id #=> String
# resp.name #=> String
# resp.status #=> String, one of "Failed", "Prepared", "Preparing", "NotPrepared"
# resp.updated_at #=> Time
# resp.validations #=> Array
+ # resp.validations[0].details.cyclic_connection.connection #=> String
+ # resp.validations[0].details.duplicate_condition_expression.expression #=> String
+ # resp.validations[0].details.duplicate_condition_expression.node #=> String
+ # resp.validations[0].details.duplicate_connections.source #=> String
+ # resp.validations[0].details.duplicate_connections.target #=> String
+ # resp.validations[0].details.incompatible_connection_data_type.connection #=> String
+ # resp.validations[0].details.malformed_condition_expression.cause #=> String
+ # resp.validations[0].details.malformed_condition_expression.condition #=> String
+ # resp.validations[0].details.malformed_condition_expression.node #=> String
+ # resp.validations[0].details.malformed_node_input_expression.cause #=> String
+ # resp.validations[0].details.malformed_node_input_expression.input #=> String
+ # resp.validations[0].details.malformed_node_input_expression.node #=> String
+ # resp.validations[0].details.mismatched_node_input_type.expected_type #=> String, one of "String", "Number", "Boolean", "Object", "Array"
+ # resp.validations[0].details.mismatched_node_input_type.input #=> String
+ # resp.validations[0].details.mismatched_node_input_type.node #=> String
+ # resp.validations[0].details.mismatched_node_output_type.expected_type #=> String, one of "String", "Number", "Boolean", "Object", "Array"
+ # resp.validations[0].details.mismatched_node_output_type.node #=> String
+ # resp.validations[0].details.mismatched_node_output_type.output #=> String
+ # resp.validations[0].details.missing_connection_configuration.connection #=> String
+ # resp.validations[0].details.missing_default_condition.node #=> String
+ # resp.validations[0].details.missing_node_configuration.node #=> String
+ # resp.validations[0].details.missing_node_input.input #=> String
+ # resp.validations[0].details.missing_node_input.node #=> String
+ # resp.validations[0].details.missing_node_output.node #=> String
+ # resp.validations[0].details.missing_node_output.output #=> String
+ # resp.validations[0].details.multiple_node_input_connections.input #=> String
+ # resp.validations[0].details.multiple_node_input_connections.node #=> String
+ # resp.validations[0].details.unfulfilled_node_input.input #=> String
+ # resp.validations[0].details.unfulfilled_node_input.node #=> String
+ # resp.validations[0].details.unknown_connection_condition.connection #=> String
+ # resp.validations[0].details.unknown_connection_source.connection #=> String
+ # resp.validations[0].details.unknown_connection_source_output.connection #=> String
+ # resp.validations[0].details.unknown_connection_target.connection #=> String
+ # resp.validations[0].details.unknown_connection_target_input.connection #=> String
+ # resp.validations[0].details.unreachable_node.node #=> String
+ # resp.validations[0].details.unsatisfied_connection_conditions.connection #=> String
# resp.validations[0].message #=> String
# resp.validations[0].severity #=> String, one of "Warning", "Error"
+ # resp.validations[0].type #=> String, one of "CyclicConnection", "DuplicateConnections", "DuplicateConditionExpression", "UnreachableNode", "UnknownConnectionSource", "UnknownConnectionSourceOutput", "UnknownConnectionTarget", "UnknownConnectionTargetInput", "UnknownConnectionCondition", "MalformedConditionExpression", "MalformedNodeInputExpression", "MismatchedNodeInputType", "MismatchedNodeOutputType", "IncompatibleConnectionDataType", "MissingConnectionConfiguration", "MissingDefaultCondition", "MissingEndingNodes", "MissingNodeConfiguration", "MissingNodeInput", "MissingNodeOutput", "MissingStartingNodes", "MultipleNodeInputConnections", "UnfulfilledNodeInput", "UnsatisfiedConnectionConditions", "Unspecified"
# resp.version #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/GetFlow AWS API Documentation
#
# @overload get_flow(params = {})
@@ -3217,25 +3431,41 @@
# resp.definition.nodes #=> Array
# resp.definition.nodes[0].configuration.agent.agent_alias_arn #=> String
# resp.definition.nodes[0].configuration.condition.conditions #=> Array
# resp.definition.nodes[0].configuration.condition.conditions[0].expression #=> String
# resp.definition.nodes[0].configuration.condition.conditions[0].name #=> String
+ # resp.definition.nodes[0].configuration.knowledge_base.guardrail_configuration.guardrail_identifier #=> String
+ # resp.definition.nodes[0].configuration.knowledge_base.guardrail_configuration.guardrail_version #=> String
# resp.definition.nodes[0].configuration.knowledge_base.knowledge_base_id #=> String
# resp.definition.nodes[0].configuration.knowledge_base.model_id #=> String
# resp.definition.nodes[0].configuration.lambda_function.lambda_arn #=> String
# resp.definition.nodes[0].configuration.lex.bot_alias_arn #=> String
# resp.definition.nodes[0].configuration.lex.locale_id #=> String
+ # resp.definition.nodes[0].configuration.prompt.guardrail_configuration.guardrail_identifier #=> String
+ # resp.definition.nodes[0].configuration.prompt.guardrail_configuration.guardrail_version #=> String
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.max_tokens #=> Integer
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.stop_sequences #=> Array
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.stop_sequences[0] #=> String
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.temperature #=> Float
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.top_p #=> Float
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.model_id #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.input_variables #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.input_variables[0].name #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].content #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].content[0].text #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].role #=> String, one of "user", "assistant"
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.system #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.system[0].text #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tool_choice.tool.name #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools[0].tool_spec.description #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools[0].tool_spec.name #=> String
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.input_variables #=> Array
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.input_variables[0].name #=> String
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.text #=> String
- # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_type #=> String, one of "TEXT"
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_type #=> String, one of "TEXT", "CHAT"
# resp.definition.nodes[0].configuration.prompt.source_configuration.resource.prompt_arn #=> String
# resp.definition.nodes[0].configuration.retrieval.service_configuration.s3.bucket_name #=> String
# resp.definition.nodes[0].configuration.storage.service_configuration.s3.bucket_name #=> String
# resp.definition.nodes[0].inputs #=> Array
# resp.definition.nodes[0].inputs[0].expression #=> String
@@ -3442,24 +3672,37 @@
# resp.description #=> String
# resp.id #=> String
# resp.name #=> String
# resp.updated_at #=> Time
# resp.variants #=> Array
+ # resp.variants[0].gen_ai_resource.agent.agent_identifier #=> String
# resp.variants[0].inference_configuration.text.max_tokens #=> Integer
# resp.variants[0].inference_configuration.text.stop_sequences #=> Array
# resp.variants[0].inference_configuration.text.stop_sequences[0] #=> String
# resp.variants[0].inference_configuration.text.temperature #=> Float
# resp.variants[0].inference_configuration.text.top_p #=> Float
# resp.variants[0].metadata #=> Array
# resp.variants[0].metadata[0].key #=> String
# resp.variants[0].metadata[0].value #=> String
# resp.variants[0].model_id #=> String
# resp.variants[0].name #=> String
+ # resp.variants[0].template_configuration.chat.input_variables #=> Array
+ # resp.variants[0].template_configuration.chat.input_variables[0].name #=> String
+ # resp.variants[0].template_configuration.chat.messages #=> Array
+ # resp.variants[0].template_configuration.chat.messages[0].content #=> Array
+ # resp.variants[0].template_configuration.chat.messages[0].content[0].text #=> String
+ # resp.variants[0].template_configuration.chat.messages[0].role #=> String, one of "user", "assistant"
+ # resp.variants[0].template_configuration.chat.system #=> Array
+ # resp.variants[0].template_configuration.chat.system[0].text #=> String
+ # resp.variants[0].template_configuration.chat.tool_configuration.tool_choice.tool.name #=> String
+ # resp.variants[0].template_configuration.chat.tool_configuration.tools #=> Array
+ # resp.variants[0].template_configuration.chat.tool_configuration.tools[0].tool_spec.description #=> String
+ # resp.variants[0].template_configuration.chat.tool_configuration.tools[0].tool_spec.name #=> String
# resp.variants[0].template_configuration.text.input_variables #=> Array
# resp.variants[0].template_configuration.text.input_variables[0].name #=> String
# resp.variants[0].template_configuration.text.text #=> String
- # resp.variants[0].template_type #=> String, one of "TEXT"
+ # resp.variants[0].template_type #=> String, one of "TEXT", "CHAT"
# resp.version #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/GetPrompt AWS API Documentation
#
# @overload get_prompt(params = {})
@@ -5254,10 +5497,14 @@
# input: {
# },
# iterator: {
# },
# knowledge_base: {
+ # guardrail_configuration: {
+ # guardrail_identifier: "GuardrailIdentifier",
+ # guardrail_version: "GuardrailVersion",
+ # },
# knowledge_base_id: "KnowledgeBaseId", # required
# model_id: "KnowledgeBaseModelIdentifier",
# },
# lambda_function: {
# lambda_arn: "LambdaArn", # required
@@ -5267,10 +5514,14 @@
# locale_id: "LexBotLocaleId", # required
# },
# output: {
# },
# prompt: {
+ # guardrail_configuration: {
+ # guardrail_identifier: "GuardrailIdentifier",
+ # guardrail_version: "GuardrailVersion",
+ # },
# source_configuration: { # required
# inline: {
# additional_model_request_fields: {
# },
# inference_configuration: {
@@ -5281,20 +5532,65 @@
# top_p: 1.0,
# },
# },
# model_id: "PromptModelIdentifier", # required
# template_configuration: { # required
+ # chat: {
+ # input_variables: [
+ # {
+ # name: "PromptInputVariableName",
+ # },
+ # ],
+ # messages: [ # required
+ # {
+ # content: [ # required
+ # {
+ # text: "String",
+ # },
+ # ],
+ # role: "user", # required, accepts user, assistant
+ # },
+ # ],
+ # system: [
+ # {
+ # text: "NonEmptyString",
+ # },
+ # ],
+ # tool_configuration: {
+ # tool_choice: {
+ # any: {
+ # },
+ # auto: {
+ # },
+ # tool: {
+ # name: "ToolName", # required
+ # },
+ # },
+ # tools: [ # required
+ # {
+ # tool_spec: {
+ # description: "NonEmptyString",
+ # input_schema: { # required
+ # json: {
+ # },
+ # },
+ # name: "ToolName", # required
+ # },
+ # },
+ # ],
+ # },
+ # },
# text: {
# input_variables: [
# {
# name: "PromptInputVariableName",
# },
# ],
# text: "TextPrompt", # required
# },
# },
- # template_type: "TEXT", # required, accepts TEXT
+ # template_type: "TEXT", # required, accepts TEXT, CHAT
# },
# resource: {
# prompt_arn: "PromptArn", # required
# },
# },
@@ -5354,25 +5650,41 @@
# resp.definition.nodes #=> Array
# resp.definition.nodes[0].configuration.agent.agent_alias_arn #=> String
# resp.definition.nodes[0].configuration.condition.conditions #=> Array
# resp.definition.nodes[0].configuration.condition.conditions[0].expression #=> String
# resp.definition.nodes[0].configuration.condition.conditions[0].name #=> String
+ # resp.definition.nodes[0].configuration.knowledge_base.guardrail_configuration.guardrail_identifier #=> String
+ # resp.definition.nodes[0].configuration.knowledge_base.guardrail_configuration.guardrail_version #=> String
# resp.definition.nodes[0].configuration.knowledge_base.knowledge_base_id #=> String
# resp.definition.nodes[0].configuration.knowledge_base.model_id #=> String
# resp.definition.nodes[0].configuration.lambda_function.lambda_arn #=> String
# resp.definition.nodes[0].configuration.lex.bot_alias_arn #=> String
# resp.definition.nodes[0].configuration.lex.locale_id #=> String
+ # resp.definition.nodes[0].configuration.prompt.guardrail_configuration.guardrail_identifier #=> String
+ # resp.definition.nodes[0].configuration.prompt.guardrail_configuration.guardrail_version #=> String
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.max_tokens #=> Integer
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.stop_sequences #=> Array
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.stop_sequences[0] #=> String
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.temperature #=> Float
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.inference_configuration.text.top_p #=> Float
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.model_id #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.input_variables #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.input_variables[0].name #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].content #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].content[0].text #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.messages[0].role #=> String, one of "user", "assistant"
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.system #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.system[0].text #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tool_choice.tool.name #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools #=> Array
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools[0].tool_spec.description #=> String
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.chat.tool_configuration.tools[0].tool_spec.name #=> String
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.input_variables #=> Array
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.input_variables[0].name #=> String
# resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_configuration.text.text #=> String
- # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_type #=> String, one of "TEXT"
+ # resp.definition.nodes[0].configuration.prompt.source_configuration.inline.template_type #=> String, one of "TEXT", "CHAT"
# resp.definition.nodes[0].configuration.prompt.source_configuration.resource.prompt_arn #=> String
# resp.definition.nodes[0].configuration.retrieval.service_configuration.s3.bucket_name #=> String
# resp.definition.nodes[0].configuration.storage.service_configuration.s3.bucket_name #=> String
# resp.definition.nodes[0].inputs #=> Array
# resp.definition.nodes[0].inputs[0].expression #=> String
@@ -5709,10 +6021,15 @@
# prompt_identifier: "PromptIdentifier", # required
# variants: [
# {
# additional_model_request_fields: {
# },
+ # gen_ai_resource: {
+ # agent: {
+ # agent_identifier: "AgentAliasArn", # required
+ # },
+ # },
# inference_configuration: {
# text: {
# max_tokens: 1,
# stop_sequences: ["String"],
# temperature: 1.0,
@@ -5726,20 +6043,65 @@
# },
# ],
# model_id: "PromptModelIdentifier",
# name: "PromptVariantName", # required
# template_configuration: { # required
+ # chat: {
+ # input_variables: [
+ # {
+ # name: "PromptInputVariableName",
+ # },
+ # ],
+ # messages: [ # required
+ # {
+ # content: [ # required
+ # {
+ # text: "String",
+ # },
+ # ],
+ # role: "user", # required, accepts user, assistant
+ # },
+ # ],
+ # system: [
+ # {
+ # text: "NonEmptyString",
+ # },
+ # ],
+ # tool_configuration: {
+ # tool_choice: {
+ # any: {
+ # },
+ # auto: {
+ # },
+ # tool: {
+ # name: "ToolName", # required
+ # },
+ # },
+ # tools: [ # required
+ # {
+ # tool_spec: {
+ # description: "NonEmptyString",
+ # input_schema: { # required
+ # json: {
+ # },
+ # },
+ # name: "ToolName", # required
+ # },
+ # },
+ # ],
+ # },
+ # },
# text: {
# input_variables: [
# {
# name: "PromptInputVariableName",
# },
# ],
# text: "TextPrompt", # required
# },
# },
- # template_type: "TEXT", # required, accepts TEXT
+ # template_type: "TEXT", # required, accepts TEXT, CHAT
# },
# ],
# })
#
# @example Response structure
@@ -5751,24 +6113,37 @@
# resp.description #=> String
# resp.id #=> String
# resp.name #=> String
# resp.updated_at #=> Time
# resp.variants #=> Array
+ # resp.variants[0].gen_ai_resource.agent.agent_identifier #=> String
# resp.variants[0].inference_configuration.text.max_tokens #=> Integer
# resp.variants[0].inference_configuration.text.stop_sequences #=> Array
# resp.variants[0].inference_configuration.text.stop_sequences[0] #=> String
# resp.variants[0].inference_configuration.text.temperature #=> Float
# resp.variants[0].inference_configuration.text.top_p #=> Float
# resp.variants[0].metadata #=> Array
# resp.variants[0].metadata[0].key #=> String
# resp.variants[0].metadata[0].value #=> String
# resp.variants[0].model_id #=> String
# resp.variants[0].name #=> String
+ # resp.variants[0].template_configuration.chat.input_variables #=> Array
+ # resp.variants[0].template_configuration.chat.input_variables[0].name #=> String
+ # resp.variants[0].template_configuration.chat.messages #=> Array
+ # resp.variants[0].template_configuration.chat.messages[0].content #=> Array
+ # resp.variants[0].template_configuration.chat.messages[0].content[0].text #=> String
+ # resp.variants[0].template_configuration.chat.messages[0].role #=> String, one of "user", "assistant"
+ # resp.variants[0].template_configuration.chat.system #=> Array
+ # resp.variants[0].template_configuration.chat.system[0].text #=> String
+ # resp.variants[0].template_configuration.chat.tool_configuration.tool_choice.tool.name #=> String
+ # resp.variants[0].template_configuration.chat.tool_configuration.tools #=> Array
+ # resp.variants[0].template_configuration.chat.tool_configuration.tools[0].tool_spec.description #=> String
+ # resp.variants[0].template_configuration.chat.tool_configuration.tools[0].tool_spec.name #=> String
# resp.variants[0].template_configuration.text.input_variables #=> Array
# resp.variants[0].template_configuration.text.input_variables[0].name #=> String
# resp.variants[0].template_configuration.text.text #=> String
- # resp.variants[0].template_type #=> String, one of "TEXT"
+ # resp.variants[0].template_type #=> String, one of "TEXT", "CHAT"
# resp.version #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/UpdatePrompt AWS API Documentation
#
# @overload update_prompt(params = {})
@@ -5776,10 +6151,244 @@
def update_prompt(params = {}, options = {})
req = build_request(:update_prompt, params)
req.send_request(options)
end
+ # Validates the definition of a flow.
+ #
+ # @option params [required, Types::FlowDefinition] :definition
+ # The definition of a flow to validate.
+ #
+ # @return [Types::ValidateFlowDefinitionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::ValidateFlowDefinitionResponse#validations #validations} => Array<Types::FlowValidation>
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.validate_flow_definition({
+ # definition: { # required
+ # connections: [
+ # {
+ # configuration: {
+ # conditional: {
+ # condition: "FlowConditionName", # required
+ # },
+ # data: {
+ # source_output: "FlowNodeOutputName", # required
+ # target_input: "FlowNodeInputName", # required
+ # },
+ # },
+ # name: "FlowConnectionName", # required
+ # source: "FlowNodeName", # required
+ # target: "FlowNodeName", # required
+ # type: "Data", # required, accepts Data, Conditional
+ # },
+ # ],
+ # nodes: [
+ # {
+ # configuration: {
+ # agent: {
+ # agent_alias_arn: "AgentAliasArn", # required
+ # },
+ # collector: {
+ # },
+ # condition: {
+ # conditions: [ # required
+ # {
+ # expression: "FlowConditionExpression",
+ # name: "FlowConditionName", # required
+ # },
+ # ],
+ # },
+ # input: {
+ # },
+ # iterator: {
+ # },
+ # knowledge_base: {
+ # guardrail_configuration: {
+ # guardrail_identifier: "GuardrailIdentifier",
+ # guardrail_version: "GuardrailVersion",
+ # },
+ # knowledge_base_id: "KnowledgeBaseId", # required
+ # model_id: "KnowledgeBaseModelIdentifier",
+ # },
+ # lambda_function: {
+ # lambda_arn: "LambdaArn", # required
+ # },
+ # lex: {
+ # bot_alias_arn: "LexBotAliasArn", # required
+ # locale_id: "LexBotLocaleId", # required
+ # },
+ # output: {
+ # },
+ # prompt: {
+ # guardrail_configuration: {
+ # guardrail_identifier: "GuardrailIdentifier",
+ # guardrail_version: "GuardrailVersion",
+ # },
+ # source_configuration: { # required
+ # inline: {
+ # additional_model_request_fields: {
+ # },
+ # inference_configuration: {
+ # text: {
+ # max_tokens: 1,
+ # stop_sequences: ["String"],
+ # temperature: 1.0,
+ # top_p: 1.0,
+ # },
+ # },
+ # model_id: "PromptModelIdentifier", # required
+ # template_configuration: { # required
+ # chat: {
+ # input_variables: [
+ # {
+ # name: "PromptInputVariableName",
+ # },
+ # ],
+ # messages: [ # required
+ # {
+ # content: [ # required
+ # {
+ # text: "String",
+ # },
+ # ],
+ # role: "user", # required, accepts user, assistant
+ # },
+ # ],
+ # system: [
+ # {
+ # text: "NonEmptyString",
+ # },
+ # ],
+ # tool_configuration: {
+ # tool_choice: {
+ # any: {
+ # },
+ # auto: {
+ # },
+ # tool: {
+ # name: "ToolName", # required
+ # },
+ # },
+ # tools: [ # required
+ # {
+ # tool_spec: {
+ # description: "NonEmptyString",
+ # input_schema: { # required
+ # json: {
+ # },
+ # },
+ # name: "ToolName", # required
+ # },
+ # },
+ # ],
+ # },
+ # },
+ # text: {
+ # input_variables: [
+ # {
+ # name: "PromptInputVariableName",
+ # },
+ # ],
+ # text: "TextPrompt", # required
+ # },
+ # },
+ # template_type: "TEXT", # required, accepts TEXT, CHAT
+ # },
+ # resource: {
+ # prompt_arn: "PromptArn", # required
+ # },
+ # },
+ # },
+ # retrieval: {
+ # service_configuration: { # required
+ # s3: {
+ # bucket_name: "S3BucketName", # required
+ # },
+ # },
+ # },
+ # storage: {
+ # service_configuration: { # required
+ # s3: {
+ # bucket_name: "S3BucketName", # required
+ # },
+ # },
+ # },
+ # },
+ # inputs: [
+ # {
+ # expression: "FlowNodeInputExpression", # required
+ # name: "FlowNodeInputName", # required
+ # type: "String", # required, accepts String, Number, Boolean, Object, Array
+ # },
+ # ],
+ # name: "FlowNodeName", # required
+ # outputs: [
+ # {
+ # name: "FlowNodeOutputName", # required
+ # type: "String", # required, accepts String, Number, Boolean, Object, Array
+ # },
+ # ],
+ # type: "Input", # required, accepts Input, Output, KnowledgeBase, Condition, Lex, Prompt, LambdaFunction, Storage, Agent, Retrieval, Iterator, Collector
+ # },
+ # ],
+ # },
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.validations #=> Array
+ # resp.validations[0].details.cyclic_connection.connection #=> String
+ # resp.validations[0].details.duplicate_condition_expression.expression #=> String
+ # resp.validations[0].details.duplicate_condition_expression.node #=> String
+ # resp.validations[0].details.duplicate_connections.source #=> String
+ # resp.validations[0].details.duplicate_connections.target #=> String
+ # resp.validations[0].details.incompatible_connection_data_type.connection #=> String
+ # resp.validations[0].details.malformed_condition_expression.cause #=> String
+ # resp.validations[0].details.malformed_condition_expression.condition #=> String
+ # resp.validations[0].details.malformed_condition_expression.node #=> String
+ # resp.validations[0].details.malformed_node_input_expression.cause #=> String
+ # resp.validations[0].details.malformed_node_input_expression.input #=> String
+ # resp.validations[0].details.malformed_node_input_expression.node #=> String
+ # resp.validations[0].details.mismatched_node_input_type.expected_type #=> String, one of "String", "Number", "Boolean", "Object", "Array"
+ # resp.validations[0].details.mismatched_node_input_type.input #=> String
+ # resp.validations[0].details.mismatched_node_input_type.node #=> String
+ # resp.validations[0].details.mismatched_node_output_type.expected_type #=> String, one of "String", "Number", "Boolean", "Object", "Array"
+ # resp.validations[0].details.mismatched_node_output_type.node #=> String
+ # resp.validations[0].details.mismatched_node_output_type.output #=> String
+ # resp.validations[0].details.missing_connection_configuration.connection #=> String
+ # resp.validations[0].details.missing_default_condition.node #=> String
+ # resp.validations[0].details.missing_node_configuration.node #=> String
+ # resp.validations[0].details.missing_node_input.input #=> String
+ # resp.validations[0].details.missing_node_input.node #=> String
+ # resp.validations[0].details.missing_node_output.node #=> String
+ # resp.validations[0].details.missing_node_output.output #=> String
+ # resp.validations[0].details.multiple_node_input_connections.input #=> String
+ # resp.validations[0].details.multiple_node_input_connections.node #=> String
+ # resp.validations[0].details.unfulfilled_node_input.input #=> String
+ # resp.validations[0].details.unfulfilled_node_input.node #=> String
+ # resp.validations[0].details.unknown_connection_condition.connection #=> String
+ # resp.validations[0].details.unknown_connection_source.connection #=> String
+ # resp.validations[0].details.unknown_connection_source_output.connection #=> String
+ # resp.validations[0].details.unknown_connection_target.connection #=> String
+ # resp.validations[0].details.unknown_connection_target_input.connection #=> String
+ # resp.validations[0].details.unreachable_node.node #=> String
+ # resp.validations[0].details.unsatisfied_connection_conditions.connection #=> String
+ # resp.validations[0].message #=> String
+ # resp.validations[0].severity #=> String, one of "Warning", "Error"
+ # resp.validations[0].type #=> String, one of "CyclicConnection", "DuplicateConnections", "DuplicateConditionExpression", "UnreachableNode", "UnknownConnectionSource", "UnknownConnectionSourceOutput", "UnknownConnectionTarget", "UnknownConnectionTargetInput", "UnknownConnectionCondition", "MalformedConditionExpression", "MalformedNodeInputExpression", "MismatchedNodeInputType", "MismatchedNodeOutputType", "IncompatibleConnectionDataType", "MissingConnectionConfiguration", "MissingDefaultCondition", "MissingEndingNodes", "MissingNodeConfiguration", "MissingNodeInput", "MissingNodeOutput", "MissingStartingNodes", "MultipleNodeInputConnections", "UnfulfilledNodeInput", "UnsatisfiedConnectionConditions", "Unspecified"
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/ValidateFlowDefinition AWS API Documentation
+ #
+ # @overload validate_flow_definition(params = {})
+ # @param [Hash] params ({})
+ def validate_flow_definition(params = {}, options = {})
+ req = build_request(:validate_flow_definition, params)
+ req.send_request(options)
+ end
+
# @!endgroup
# @param params ({})
# @api private
def build_request(operation_name, params = {})
@@ -5794,10 +6403,10 @@
params: params,
config: config,
tracer: tracer
)
context[:gem_name] = 'aws-sdk-bedrockagent'
- context[:gem_version] = '1.33.0'
+ context[:gem_version] = '1.34.0'
Seahorse::Client::Request.new(handlers, context)
end
# @api private
# @deprecated