@@ -127,8 +127,10 @@ class Goal(Block):
127127
128128 goal_as_system_msg : bool = True
129129
130- def apply (self , llm , discussion : StructuredDiscussion , obs : dict ) -> dict :
131- system_message = llm .msg .system ().add_text (SYS_MSG )
130+ def apply (
131+ self , llm , discussion : StructuredDiscussion , obs : dict , sys_msg : str = SYS_MSG
132+ ) -> dict :
133+ system_message = llm .msg .system ().add_text (sys_msg )
132134 discussion .append (system_message )
133135
134136 if self .goal_as_system_msg :
@@ -441,7 +443,13 @@ def get_action(self, obs: Any) -> float:
441443 self .llm .reset_stats ()
442444 if not self .discussion .is_goal_set ():
443445 self .discussion .new_group ("goal" )
444- self .config .goal .apply (self .llm , self .discussion , obs )
446+
447+ if self .config .multiaction :
448+ sys_msg = SYS_MSG + "\n You can take multiple actions in a single step, if needed."
449+ else :
450+ sys_msg = SYS_MSG + "\n You can only take one action at a time."
451+ self .config .goal .apply (self .llm , self .discussion , obs , sys_msg )
452+
445453 self .config .summarizer .apply_init (self .llm , self .discussion )
446454 self .config .general_hints .apply (self .llm , self .discussion )
447455 self .task_hint .apply (self .llm , self .discussion , self .task_name )
@@ -489,7 +497,7 @@ def get_action(self, obs: Any) -> float:
489497 return action , agent_info
490498
491499
492- OPENAI_MODEL_CONFIG = OpenAIResponseModelArgs (
500+ GPT_4_1 = OpenAIResponseModelArgs (
493501 model_name = "gpt-4.1" ,
494502 max_total_tokens = 200_000 ,
495503 max_input_tokens = 200_000 ,
0 commit comments