Skip to content

aws.lexv2_models.list_test_set_records

Example SQL Queries

SELECT * FROM
aws.lexv2_models.list_test_set_records
WHERE
"test_set_id" = 'VALUE';

Description

The list of test set records.

Table Definition

Column NameColumn Data Type
test_set_id Required Input Column

The identifier of the test set to list its test set records.

VARCHAR
max_results Input Column

The maximum number of test set records to return in each page. If there are fewer records than the max page size, only the actual number of records are returned.

BIGINT
next_token Input Column

A token that indicates whether there are more records to return in a response to the ListTestSetRecords operation. If the nextToken field is present, you send the contents as the nextToken parameter of a ListTestSetRecords operation request to get the next page of records.

VARCHAR
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

test_set_records

The list of records from the test set.

STRUCT(
"record_number" BIGINT,
"conversation_id" VARCHAR,
"turn_number" BIGINT,
"turn_specification" STRUCT(
"agent_turn" STRUCT(
"agent_prompt" VARCHAR
),
"user_turn" STRUCT(
"input" STRUCT(
"utterance_input" STRUCT(
"text_input" VARCHAR,
"audio_input" STRUCT(
"audio_file_s3_location" VARCHAR
)
),
"request_attributes" MAP(VARCHAR, VARCHAR),
"session_state" STRUCT(
"session_attributes" MAP(VARCHAR, VARCHAR),
"active_contexts" STRUCT(
"name" VARCHAR
)[],
"runtime_hints" STRUCT(
"slot_hints" MAP(VARCHAR, MAP(VARCHAR, STRUCT(
"runtime_hint_values" STRUCT(
"phrase" VARCHAR
)[]
)))
)
)
),
"expected" STRUCT(
"intent" STRUCT(
"name" VARCHAR,
"slots" MAP(VARCHAR, STRUCT(
"value" VARCHAR
))
),
"active_contexts" STRUCT(
"name" VARCHAR
)[],
"transcript" VARCHAR
)
)
)
)[]
Show child fields
test_set_records[]
Show child fields
test_set_records[].conversation_id

The unique identifier for the conversation associated with the turn.

test_set_records[].record_number

The record number associated with the turn.

test_set_records[].turn_number

The number of turns that has elapsed up to that turn.

test_set_records[].turn_specification

Contains information about the agent or user turn depending upon type of turn.

Show child fields
test_set_records[].turn_specification.agent_turn

Contains information about the agent messages in the turn.

Show child fields
test_set_records[].turn_specification.agent_turn.agent_prompt

The agent prompt for the agent turn in a test set.

test_set_records[].turn_specification.user_turn

Contains information about the user messages in the turn.

Show child fields
test_set_records[].turn_specification.user_turn.expected

Contains results about the expected output for the user turn.

Show child fields
test_set_records[].turn_specification.user_turn.expected.active_contexts[]
Show child fields
test_set_records[].turn_specification.user_turn.expected.active_contexts[].name

The name of active context.

test_set_records[].turn_specification.user_turn.expected.intent

Contains information about the intent.

Show child fields
test_set_records[].turn_specification.user_turn.expected.intent.name

The name of the intent.

test_set_records[].turn_specification.user_turn.expected.intent.slots

The slots associated with the intent.

test_set_records[].turn_specification.user_turn.expected.transcript

The transcript that is output for the user turn by the test execution.

test_set_records[].turn_specification.user_turn.input

Contains information about the user messages in the turn in the input.

Show child fields
test_set_records[].turn_specification.user_turn.input.request_attributes

Request attributes of the user turn.

test_set_records[].turn_specification.user_turn.input.session_state

Contains information about the session state in the input.

Show child fields
test_set_records[].turn_specification.user_turn.input.session_state.active_contexts[]
Show child fields
test_set_records[].turn_specification.user_turn.input.session_state.active_contexts[].name

The name of active context.

test_set_records[].turn_specification.user_turn.input.session_state.runtime_hints

Runtime hints for the session state.

Show child fields
test_set_records[].turn_specification.user_turn.input.session_state.runtime_hints.slot_hints

A list of the slots in the intent that should have runtime hints added, and the phrases that should be added for each slot.

The first level of the slotHints map is the name of the intent. The second level is the name of the slot within the intent. For more information, see Using hints to improve accuracy.

The intent name and slot name must exist.

test_set_records[].turn_specification.user_turn.input.session_state.session_attributes

Session attributes for the session state.

test_set_records[].turn_specification.user_turn.input.utterance_input

The utterance input in the user turn.

Show child fields
test_set_records[].turn_specification.user_turn.input.utterance_input.audio_input

Contains information about the audio input for an utterance.

Show child fields
test_set_records[].turn_specification.user_turn.input.utterance_input.audio_input.audio_file_s3_location

Amazon S3 file pointing to the audio.

test_set_records[].turn_specification.user_turn.input.utterance_input.text_input

A text input transcription of the utterance. It is only applicable for test-sets containing text data.