Skip to content

Get Flow Version

bedrockagent_get_flow_version R Documentation

Retrieves information about a version of a flow

Description

Retrieves information about a version of a flow. For more information, see Deploy a flow in Amazon Bedrock in the Amazon Bedrock User Guide.

Usage

bedrockagent_get_flow_version(flowIdentifier, flowVersion)

Arguments

flowIdentifier

[required] The unique identifier of the flow for which to get information.

flowVersion

[required] The version of the flow for which to get information.

Value

A list with the following syntax:

list(
  arn = "string",
  createdAt = as.POSIXct(
    "2015-01-01"
  ),
  customerEncryptionKeyArn = "string",
  definition = list(
    connections = list(
      list(
        configuration = list(
          conditional = list(
            condition = "string"
          ),
          data = list(
            sourceOutput = "string",
            targetInput = "string"
          )
        ),
        name = "string",
        source = "string",
        target = "string",
        type = "Data"|"Conditional"
      )
    ),
    nodes = list(
      list(
        configuration = list(
          agent = list(
            agentAliasArn = "string"
          ),
          collector = list(),
          condition = list(
            conditions = list(
              list(
                expression = "string",
                name = "string"
              )
            )
          ),
          input = list(),
          iterator = list(),
          knowledgeBase = list(
            guardrailConfiguration = list(
              guardrailIdentifier = "string",
              guardrailVersion = "string"
            ),
            knowledgeBaseId = "string",
            modelId = "string"
          ),
          lambdaFunction = list(
            lambdaArn = "string"
          ),
          lex = list(
            botAliasArn = "string",
            localeId = "string"
          ),
          output = list(),
          prompt = list(
            guardrailConfiguration = list(
              guardrailIdentifier = "string",
              guardrailVersion = "string"
            ),
            sourceConfiguration = list(
              inline = list(
                additionalModelRequestFields = list(),
                inferenceConfiguration = list(
                  text = list(
                    maxTokens = 123,
                    stopSequences = list(
                      "string"
                    ),
                    temperature = 123.0,
                    topP = 123.0
                  )
                ),
                modelId = "string",
                templateConfiguration = list(
                  chat = list(
                    inputVariables = list(
                      list(
                        name = "string"
                      )
                    ),
                    messages = list(
                      list(
                        content = list(
                          list(
                            text = "string"
                          )
                        ),
                        role = "user"|"assistant"
                      )
                    ),
                    system = list(
                      list(
                        text = "string"
                      )
                    ),
                    toolConfiguration = list(
                      toolChoice = list(
                        any = list(),
                        auto = list(),
                        tool = list(
                          name = "string"
                        )
                      ),
                      tools = list(
                        list(
                          toolSpec = list(
                            description = "string",
                            inputSchema = list(
                              json = list()
                            ),
                            name = "string"
                          )
                        )
                      )
                    )
                  ),
                  text = list(
                    inputVariables = list(
                      list(
                        name = "string"
                      )
                    ),
                    text = "string"
                  )
                ),
                templateType = "TEXT"|"CHAT"
              ),
              resource = list(
                promptArn = "string"
              )
            )
          ),
          retrieval = list(
            serviceConfiguration = list(
              s3 = list(
                bucketName = "string"
              )
            )
          ),
          storage = list(
            serviceConfiguration = list(
              s3 = list(
                bucketName = "string"
              )
            )
          )
        ),
        inputs = list(
          list(
            expression = "string",
            name = "string",
            type = "String"|"Number"|"Boolean"|"Object"|"Array"
          )
        ),
        name = "string",
        outputs = list(
          list(
            name = "string",
            type = "String"|"Number"|"Boolean"|"Object"|"Array"
          )
        ),
        type = "Input"|"Output"|"KnowledgeBase"|"Condition"|"Lex"|"Prompt"|"LambdaFunction"|"Storage"|"Agent"|"Retrieval"|"Iterator"|"Collector"
      )
    )
  ),
  description = "string",
  executionRoleArn = "string",
  id = "string",
  name = "string",
  status = "Failed"|"Prepared"|"Preparing"|"NotPrepared",
  version = "string"
)

Request syntax

svc$get_flow_version(
  flowIdentifier = "string",
  flowVersion = "string"
)