DynamoDb class.
Usage
You need to provideaws_access_key_id and aws_secret_access_key parameters to the DynamoDb class.
dynamo_for_agent.py
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
DynamoDb class.
aws_access_key_id and aws_secret_access_key parameters to the DynamoDb class.
from agno.db.dynamo import DynamoDb
# AWS Credentials
AWS_ACCESS_KEY_ID = getenv("AWS_ACCESS_KEY_ID")
AWS_SECRET_ACCESS_KEY = getenv("AWS_SECRET_ACCESS_KEY")
db = DynamoDb(
region_name="us-east-1",
# aws_access_key_id: AWS access key id
aws_access_key_id=AWS_ACCESS_KEY_ID,
# aws_secret_access_key: AWS secret access key
aws_secret_access_key=AWS_SECRET_ACCESS_KEY,
)
# Add storage to the Agent
agent = Agent(db=db)
| Parameter | Type | Default | Description |
|---|---|---|---|
id | Optional[str] | - | The ID of the database instance. UUID by default. |
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. |
traces_table | optional[str] | - | The name of the traces table. |
spans_table | optional[str] | - | The name of the spans table. |
Was this page helpful?