Skip to main content
DynamoDb stores Agent sessions and run history in DynamoDB.

Usage

Install the boto3 and openai packages:
Pass a configured DynamoDB client as db_client, or set all three environment variables:
  • AWS_REGION: The AWS region to connect to.
  • AWS_ACCESS_KEY_ID: Your AWS access key ID.
  • AWS_SECRET_ACCESS_KEY: Your AWS secret access key.
On first use, DynamoDb creates missing tables with provisioned capacity. The client or credentials must allow table creation and read/write operations.
dynamo_for_agent.py
region_name, aws_access_key_id, and aws_secret_access_key accept the same values directly.

Parameters