BedrockAgentCoreClient.start_dataset_generation
rboto-bedrock-agentcore==0.4.0 · Service index · Types
Model summary (excerpt): Starts a dataset generation, which creates examples for an existing dataset from your agent's traces. The dataset must be ACTIVE . Each generation produces one scenario type, set by scenarioType . When the generation finishes, AgentCore adds the examples to the dataset's draft. Examples that duplicate each other, or that duplicate examples already in the draft, are left out. A dataset can have...
Install and imports
from rboto import BedrockAgentCoreClient
from rboto_bedrock_agentcore.types import (
GenerationSource,
ScenarioType,
StartDatasetGenerationOutput,
)
Signature
async def start_dataset_generation(
*,
dataset_id: str,
name: str,
source: GenerationSource,
description: str | None = None,
scenario_type: ScenarioType | None = None,
client_token: str | None = None,
) -> StartDatasetGenerationOutput: ...
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 to add the generated examples to. The dataset must be ACTIVE . |
name |
Yes | The name of the dataset generation. The generation ID starts with this name. |
source |
Yes | Where the generation reads sessions from, and how it selects, samples, labels and redacts them. |
description |
No | A description of the dataset generation. |
scenario_type |
No | The type of scenario to generate. If you don't specify a value, the generation produces DYNAMIC scenarios. |
client_token |
No | A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error. |
Output
StartDatasetGenerationOutput.
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 |
|---|---|---|---|
generation_id |
str |
Always present | — |
name |
str |
Always present | — |
dataset_id |
str |
Always present | — |
status |
DatasetGenerationStatusOutput |
Always present | DatasetGenerationStatusOutput |
created_at |
str |
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
GenerationSource, ScenarioType, StartDatasetGenerationOutput
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_bedrock_agentcore.exceptions:
AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, UnauthorizedError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.