class

Ark::Config

Inherits Reference < Object

Constants

DEFAULT_AWS_REGION = "us-east-1"
DEFAULT_LOG_LEVEL = "info"
DEFAULT_SESSION_TTL_MINUTES = 55
ENV_FILE_PATH = ".env"
MAX_SESSION_TTL_MINUTES = 60
MIN_SESSION_TTL_MINUTES = 1
REQUIRED_VARS = ["SLACK_BOT_TOKEN", "SLACK_APP_TOKEN", "BEDROCK_AGENT_ID", "BEDROCK_AGENT_ALIAS_ID"] of ::String

Constructors

load
Source
new(slack_bot_token : String, slack_app_token : String, bedrock_agent_id : String, bedrock_agent_alias_id : String, firehose_stream_name : String | Nil, aws_region : String, aws_profile : String | Nil, aws_access_key_id : String | Nil, aws_secret_access_key : String | Nil, aws_session_token : String | Nil, log_level : String, session_ttl_minutes : Int32 = DEFAULT_SESSION_TTL_MINUTES)
Source

Class methods

load_env_file(path : String) : Nil
Source
parse_log_level(level : String) : Log::Severity
Source

Instance methods

analytics_enabled?
Source
aws_access_key_id
Source
aws_profile
Source
aws_region
Source
aws_secret_access_key
Source
aws_session_token
Source
bedrock_agent_alias_id
Source
bedrock_agent_id
Source
firehose_stream_name
Source
log_level
Source
session_ttl_minutes
Source
slack_app_token
Source
slack_bot_token
Source