File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 17
17
from aworld .logs .util import logger
18
18
from aworld .output .base import StepOutput
19
19
from aworld .sandbox .base import Sandbox
20
- from aworld .utils .common import convert_to_snake , replace_env_variables
20
+ from aworld .utils .common import convert_to_snake , replace_env_variables , sync_exec
21
21
22
22
INPUT = TypeVar ('INPUT' )
23
23
OUTPUT = TypeVar ('OUTPUT' )
@@ -145,6 +145,13 @@ def desc(self) -> str:
145
145
def run (self , message : Message , ** kwargs ) -> Message :
146
146
self ._init_context (message .context )
147
147
observation = message .payload
148
+ sync_exec (send_message , Message (
149
+ category = Constants .OUTPUT ,
150
+ payload = StepOutput .build_start_output (name = f"{ self .id ()} " , alias_name = self .name (), step_num = 0 ),
151
+ sender = self .id (),
152
+ session_id = self .context .session_id ,
153
+ headers = {"context" : self .context }
154
+ ))
148
155
self .pre_run ()
149
156
result = self .policy (observation , message = message , ** kwargs )
150
157
final_result = self .post_run (result , observation )
You can’t perform that action at this time.
0 commit comments