BedrockAgentCoreControlClient.list_dataset_examples
rboto-bedrock-agentcore-control==0.4.0 · Service index · Types
Model summary (excerpt): Returns paginated examples from the dataset. The server embeds the resolved version in the pagination token. Once pagination begins, all subsequent pages are pinned to that version regardless of concurrent mutations. A request with a pagination token can omit datasetVersion . If it sets a version that differs from the token's version, the request fails with a ValidationException .
Install and imports
from rboto import BedrockAgentCoreControlClient
from rboto_bedrock_agentcore_control.types import (
ListDatasetExamplesFilter,
ListDatasetExamplesOutput,
)
Signature
async def list_dataset_examples(
*,
dataset_id: str,
dataset_version: str | None = None,
filter: ListDatasetExamplesFilter | None = None,
max_results: int | None = None,
next_token: str | None = None,
) -> ListDatasetExamplesOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
dataset_id |
Yes | The unique identifier of the dataset. |
dataset_version |
No | Version to paginate: "DRAFT" or a version number. Defaults to DRAFT if absent on the first request. With a pagination token, the version comes from the token: you can omit this member, and a value that differs from the token's version is rejected with a ValidationException . |
filter |
No | A filter to apply to the examples. |
max_results |
No | Maximum number of examples to return per page. |
next_token |
No | The token for the next page of results. |
Output
ListDatasetExamplesOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
dataset_arn |
str |
Always present | — |
dataset_id |
str |
Always present | — |
dataset_version |
str |
Always present | — |
examples |
list[JSONValue] |
Always present | JSONValue |
next_token |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
ListDatasetExamplesFilter, ListDatasetExamplesOutput
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.list_dataset_examples(...) accepts the same arguments and returns AsyncIterator[ListDatasetExamplesOutput]. Direct calls return one page. Pages preserve the Output representation above.
Input cursors: next_token. Page-size argument: max_results.
No output stream.
Errors
Import from rboto_bedrock_agentcore_control.exceptions:
AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.