File tree Expand file tree Collapse file tree 6 files changed +9
-9
lines changed
src/strands_env/environments Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 3333import click
3434from common import ModelConfig , SamplingParams
3535
36- from strands_env .environments .simple_math_env import SimpleMathEnv
36+ from strands_env .environments .calculator . env import CalculatorEnv
3737from strands_env .eval import AIMEEvaluator
3838from strands_env .rewards .math_reward import MathRewardFunction
3939
@@ -49,7 +49,7 @@ async def run_eval(
4949 reward_fn = MathRewardFunction ()
5050
5151 async def env_factory (_ ):
52- env = SimpleMathEnv (model_factory = model_factory , reward_fn = reward_fn , verbose = False )
52+ env = CalculatorEnv (model_factory = model_factory , reward_fn = reward_fn , verbose = False )
5353 env .system_prompt = None
5454 env .get_tools = lambda : []
5555 return env
Original file line number Diff line number Diff line change 3131from common import ModelConfig , SamplingParams
3232
3333from strands_env .core .types import Action , TaskContext
34- from strands_env .environments .simple_math_env import SimpleMathEnv
34+ from strands_env .environments .calculator . env import CalculatorEnv
3535from strands_env .rewards .math_reward import MathRewardFunction
3636
3737MATH_PROBLEMS = [
4343
4444async def run_math_env (config : ModelConfig , verbose : bool ) -> None :
4545 model_factory = config .create_factory ()
46- env = SimpleMathEnv (model_factory = model_factory , reward_fn = MathRewardFunction (), verbose = verbose )
46+ env = CalculatorEnv (model_factory = model_factory , reward_fn = MathRewardFunction (), verbose = verbose )
4747
4848 for question , ground_truth in MATH_PROBLEMS :
4949 click .echo (f"\n { '=' * 60 } " )
Original file line number Diff line number Diff line change 1414
1515"""Environments for strands-env."""
1616
17- from .simple_math_env import SimpleMathEnv
17+ from .calculator import CalculatorEnv
1818
19- __all__ = ["SimpleMathEnv " ]
19+ __all__ = ["CalculatorEnv " ]
Original file line number Diff line number Diff line change 1414
1515"""Simple math environment with a calculator tool."""
1616
17- from .env import SimpleMathEnv
17+ from .env import CalculatorEnv
1818
19- __all__ = ["SimpleMathEnv " ]
19+ __all__ = ["CalculatorEnv " ]
Original file line number Diff line number Diff line change 2121from strands_env .core .environment import Environment
2222
2323
24- class SimpleMathEnv (Environment ):
24+ class CalculatorEnv (Environment ):
2525 """Simple math environment using a calculator tool."""
2626
2727 default_system_prompt_path = Path (__file__ ).parent / "system_prompt.md"
File renamed without changes.
You can’t perform that action at this time.
0 commit comments