File size: 2,873 Bytes
d6c1540
 
 
 
 
 
 
 
 
f63f438
 
 
 
 
 
 
d6c1540
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1c685a4
 
 
 
 
d6c1540
 
 
1c685a4
 
 
 
 
d6c1540
 
 
1c685a4
 
 
 
 
7a307f2
 
 
 
 
 
 
 
1c685a4
 
 
 
 
7a307f2
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
environment:
  name: farmrl-phase1
  version: 0.1.0
  description: Minimal FarmRL OpenEnv implementation for Round-1 Phase-1.
  api:
    reset: POST /reset
    step: POST /step
    state: GET /state

defaults:
  API_BASE_URL: https://api.openai.com/v1
  MODEL_NAME: gpt-4o-mini
  TASK_NAME: farm-yield-optimization
  BENCHMARK: farmrl
  PORT: 7860

observation_schema:
  type: object
  required:
    - soil_moisture
    - soil_ph
    - temperature
    - rainfall
    - crop_stage
    - day
  properties:
    soil_moisture:
      type: number
      minimum: 0
      maximum: 100
    soil_ph:
      type: number
      minimum: 4
      maximum: 9
    temperature:
      type: number
    rainfall:
      type: number
      minimum: 0
    crop_stage:
      type: integer
      minimum: 0
    day:
      type: integer
      minimum: 0

action_schema:
  type: object
  required:
    - water
    - fertilizer
    - pesticide
  properties:
    water:
      type: number
      minimum: 0
      maximum: 50
    fertilizer:
      type: number
      minimum: 0
      maximum: 20
    pesticide:
      type: number
      minimum: 0
      maximum: 10

reward_schema:
  type: number
  description: yield_score + sustainability_bonus - resource_penalty

tasks:
  - id: task_easy_yield
    difficulty: easy
    description: Maximize agronomic yield performance using normalized total reward.
    grader: tasks.graders:grade_yield_performance
    grader_fn: tasks.graders:grade_yield_performance
    grader_name: grade_yield_performance
    grader_endpoint: /grader
    grader_enabled: true
  - id: task_medium_chemical_efficiency
    difficulty: medium
    description: Minimize total fertilizer and pesticide while maintaining productivity.
    grader: tasks.graders:grade_chemical_efficiency
    grader_fn: tasks.graders:grade_chemical_efficiency
    grader_name: grade_chemical_efficiency
    grader_endpoint: /grader
    grader_enabled: true
  - id: task_hard_sustainability_balance
    difficulty: hard
    description: Optimize the long-term yield-to-chemical-use balance ratio.
    grader: tasks.graders:grade_sustainability_balance
    grader_fn: tasks.graders:grade_sustainability_balance
    grader_name: grade_sustainability_balance
    grader_endpoint: /grader
    grader_enabled: true
  - id: task_expert_soil_health
    difficulty: expert
    description: Maintain soil moisture and pH inside optimal agronomic bands.
    grader: tasks.graders:grade_soil_health
    grader_fn: tasks.graders:grade_soil_health
    grader_name: grade_soil_health
    grader_endpoint: /grader
    grader_enabled: true

graders:
  task_easy_yield: tasks.graders:grade_yield_performance
  task_medium_chemical_efficiency: tasks.graders:grade_chemical_efficiency
  task_hard_sustainability_balance: tasks.graders:grade_sustainability_balance
  task_expert_soil_health: tasks.graders:grade_soil_health