File size: 2,350 Bytes
6c50d1f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# DEPRECATED CONFIG FORMAT

# Description: This file contains the configurations for AutoRestTest.
# Change the values for the variables as described in the README.

SPECIFICATION_LOCATION = "aratrl-openapi/market2.yaml"  # The location of the Specification file relative to the root directory.
# Note: Only .yaml and .json files are supported. The Specification file must be in the OpenAPI 3.0 format.
# The file extension must be specified in the path (e.g., .yaml or .json).

OPENAI_LLM_ENGINE = "gpt-4o-mini"  # The OpenAI language model engine to use for the value agent generation.
DEFAULT_TEMPERATURE = 0.7  # The default temperature for the OpenAI language model.
# Note: The OpenAI engine must be compatible with the JSON mode. Also, for the cost output to be accurate, the engine must be either "gpt-4o", "gpt-4o-mini", "o1", or "o1-mini".

ENABLE_HEADER_AGENT = (
    False  # Specifies whether to enable the Header Agent (True/False).
)
# Note: The header agent uses Basic tokens and is only beneficial for certain APIs that require such authorization.

# The following variables specify the caching configurations. Ensure that you have ran the program once on the specification before setting these values to true.
USE_CACHED_GRAPH = True  # Specifies whether to use the cached Semantic Operation Dependency Graph (true/false).
USE_CACHED_TABLE = True  # Specifies whether to use the cached Q-table for the Value Agent and optional Header Agent (true/false). This will avoid rerunning the LLM.
# Note: Assign the caching to False if you have made changes to the graph construction or table generation for the changes to take effect.

# The following variables are responsible for the Q-learning agent configurations.
LEARNING_RATE = 0.1  # The learning rate (alpha) for the Q-learning agent.
DISCOUNT_FACTOR = 0.9  # The discount factor (gamma) for the Q-learning agent.
MAX_EXPLORATION = 1  # The maximum exploration rate (epsilon) for the Q-learning agent action selection.
# Note: Epsilon-decay is implemented in the Q-learning agent such that the exploration rate decreases over time to 0.1.

# The following variables are responsible for the request generation configurations.
TIME_DURATION = 1200  # The time duration for the request generation process.
MUTATION_RATE = 0.2  # The mutation rate for the request generation process.