File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -67,16 +67,20 @@ def log_event_to_terminal(event: Event) -> None:
6767 if isinstance (data ["flow" ], dict ):
6868 data ["flow" ] = DictWrapper (data ["flow" ])
6969
70- logger .info (
71- f"🚀 { data ["flow" ].max_steps } max steps | { f"{ data ["flow" ].timeout } s timeout" if data ["flow" ].timeout else "no timeout" } | { data ["flow" ].actors [0 ].conv_window_strategy } "
72- )
70+ max_steps = data ["flow" ].max_steps
71+ timeout = f"{ data ["flow" ].timeout } s timeout" if data ["flow" ].timeout else "no timeout"
72+ conv_window_strategy = data ["flow" ].actors [0 ].conv_window_strategy
73+ logger .info (f"🚀 { max_steps } max steps | { timeout } | { conv_window_strategy } " )
7374
7475 elif event .name == "agent_created" :
7576 if isinstance (data ["agent" ], dict ):
7677 data ["agent" ] = DictWrapper (data ["agent" ])
77- logger .info (
78- f"🤖 { data ["agent" ].runtime .generator } | { data ["agent" ].runtime .name } v{ data ["agent" ].configuration .version } with { len (data ["agent" ].runtime .tools )} tools"
79- )
78+
79+ generator = data ["agent" ].runtime .generator
80+ name = data ["agent" ].runtime .name
81+ version = data ["agent" ].configuration .version
82+ tools = len (data ["agent" ].runtime .tools )
83+ logger .info (f"🤖 { generator } | { name } v{ version } with { tools } tools" )
8084
8185 elif event .name == "before_tool_called" :
8286 args_str = ", " .join ([f"{ k } ={ v } " for k , v in data ["args" ].items ()])
You can’t perform that action at this time.
0 commit comments