RL-Doc-Parser / openenv.yaml
MalG4850
Align tasks/graders and strict scoring with OpenEnv validator
d68d941
Raw History Blame Contribute Delete
1.75 kB
name: rl-documentation-parser
version: "1.0.0"
description: >
A Gymnasium environment where an agent navigates a mock filesystem
to answer user queries using technical documentation files.
Simulates a real-world developer task: searching docs to answer questions.
author: MalG4850
repository: https://github.com/MalG4850/RL-Documentation-Parser
observation_space:
type: Dict
keys:
current_path:
type: Text
max_length: 512
dir_contents:
type: Text
max_length: 2048
user_query:
type: Text
max_length: 512
action_space:
type: Discrete
n: 4
actions:
0: ls
1: cd
2: read
3: submit_answer
reward_range: [-20, 100]
max_steps: 20
tasks:
- id: 1
name: easy
description: >
Locate SSL/TLS configuration details from network documentation.
grader: root.graders:grade_find_ssl_config
score_range: [0.01, 0.99]
- id: 2
name: medium
description: >
Find PostgreSQL setup and optimization instructions from db documentation.
grader: root.graders:grade_find_postgres_setup
score_range: [0.01, 0.99]
- id: 3
name: hard
description: >
Retrieve OAuth 2.0 authentication steps from the API documentation.
grader: root.graders:grade_find_oauth_guide
score_range: [0.01, 0.99]
episode_boundaries:
done_on_correct_answer: true
done_on_wrong_answer: true
done_on_max_steps: true
partial_rewards:
- condition: "navigates to correct directory"
reward: 0
- condition: "reads correct file"
reward: 0
- condition: "correct answer submitted"
reward: 100
- condition: "wrong answer submitted"
reward: -20
- condition: "invalid action"
reward: -5
- condition: "per step"
reward: -1