BedrockAgentCoreClient.ingest_data
rboto-bedrock-agentcore==0.4.0 · Service index · Types
Model summary (excerpt): Submits content directly for ingestion to generate long-term memory records in a AgentCore Memory resource. To use this operation, you must have the bedrock-agentcore:IngestData permission.
Install and imports
from rboto import BedrockAgentCoreClient
from rboto_bedrock_agentcore.types import (
ContentSource,
ExtractionConfig,
IngestDataOutput,
MetadataValue,
)
Signature
async def ingest_data(
*,
memory_id: str,
source: ContentSource,
content_timestamp: str,
actor_id: str,
session_id: str | None = None,
extraction_config: ExtractionConfig | None = None,
metadata: dict[str, MetadataValue] | None = None,
client_token: str | None = None,
) -> IngestDataOutput: ...
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) |
|---|---|---|
memory_id |
Yes | The identifier of the AgentCore Memory resource to ingest content into. |
source |
Yes | The content to ingest. Only inline content is supported. |
content_timestamp |
Yes | The timestamp of when the content occurred. |
actor_id |
Yes | The identifier of the actor associated with this content. An actor represents an entity that participates in sessions and generates content. |
session_id |
No | The identifier of the session that the content belongs to. If not provided, a session identifier is generated and returned in the response. |
extraction_config |
No | The extraction configuration for long-term memory records. Use this parameter to specify namespace variable keys and their values for namespace substitution during extraction. |
metadata |
No | The key-value metadata to attach to the content. |
client_token |
No | A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, AgentCore ignores the request, but does not return an error. |
Output
IngestDataOutput.
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 |
|---|---|---|---|
session_id |
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
ContentSource, ExtractionConfig, IngestDataOutput, MetadataValue
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, ResourceNotFoundError, ServiceError, ServiceQuotaExceededError, ThrottledError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.