DynamoDB is a class that implements the Db interface using Amazon DynamoDB as the backend storage system. It provides scalable, managed storage for agent sessions with support for indexing and efficient querying.Documentation Index
Fetch the complete documentation index at: https://agno-v2-shaloo-ai-support-link.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
| Parameter | Type | Default | Description |
|---|---|---|---|
db_client | None | - | The DynamoDB client to use. |
region_name | optional[str] | - | AWS region name. |
aws_access_key_id | optional[str] | - | AWS access key ID. |
aws_secret_access_key | optional[str] | - | AWS secret access key. |
session_table | optional[str] | - | The name of the session table. |
memory_table | optional[str] | - | The name of the memory table. |
metrics_table | optional[str] | - | The name of the metrics table. |
eval_table | optional[str] | - | The name of the eval table. |
knowledge_table | optional[str] | - | The name of the knowledge table. |
Methods
upsert_sessions
Bulk upsert multiple sessions for improved performance on large datasets.
Parameters:
sessions(List[Session]): List of sessions to upsertdeserialize(Optional[bool]): Whether to deserialize the sessions. Defaults toTrue
List[Union[Session, Dict[str, Any]]]
upsert_memories
Bulk upsert multiple memories for improved performance on large datasets.
Parameters:
memories(List[UserMemory]): List of memories to upsertdeserialize(Optional[bool]): Whether to deserialize the memories. Defaults toTrue
List[Union[UserMemory, Dict[str, Any]]]