Feat: Final changes to prompt

This commit is contained in:
2025-10-22 16:44:01 -03:00
parent f2df55f0f9
commit 42f9d22c77
32 changed files with 1122 additions and 1607 deletions

25
agent/tools/secrets.py Normal file
View File

@@ -0,0 +1,25 @@
import boto3
from botocore.exceptions import ClientError
def get_secret():
secret_name = "dev/chatboteditais/apigateway/apikey"
region_name = "us-east-1"
# Create a Secrets Manager client
session = boto3.session.Session()
client = session.client(
service_name='secretsmanager',
region_name=region_name
)
try:
get_secret_value_response = client.get_secret_value(
SecretId=secret_name
)
except ClientError as e:
# For a list of exceptions thrown, see
# https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_GetSecretValue.html
raise e
secret = get_secret_value_response['SecretString']
return secret