(conversation_id, name, email)
| 242 | |
| 243 | # Store conversation details in DynamoDB |
| 244 | def save_session(conversation_id, name, email): |
| 245 | SESSION_TABLE_NAME = retrieve_environment_variables("SESSION_TABLE_NAME") |
| 246 | item = { |
| 247 | 'conversation_id': conversation_id, |
| 248 | 'user_name': name, |
| 249 | 'user_email': email, |
| 250 | 'session_start_time': datetime.datetime.now(tz=datetime.timezone.utc).strftime("%Y-%m-%d %H:%M:%S") |
| 251 | } |
| 252 | dynamodb_resource.Table(SESSION_TABLE_NAME).put_item(Item=item) |
| 253 | |
| 254 | |
| 255 | # Store conversation details in DynamoDB |
no test coverage detected