File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2121from typing import Any , ClassVar
2222
2323from strands import Agent
24- from strands .handlers .callback_handler import PrintingCallbackHandler
24+ from strands .handlers .callback_handler import PrintingCallbackHandler , null_callback_handler
2525from strands .telemetry .metrics import EventLoopMetrics
2626from strands_sglang import TokenManager , ToolIterationLimiter
2727
@@ -76,7 +76,7 @@ async def step(self, action: Action) -> StepResult:
7676 tools = list (self .get_tools ()),
7777 system_prompt = self .system_prompt ,
7878 hooks = [tool_limiter ] + list (self .get_hooks ()),
79- callback_handler = PrintingCallbackHandler () if self .verbose else None ,
79+ callback_handler = PrintingCallbackHandler () if self .verbose else null_callback_handler ,
8080 )
8181 error = None
8282 try :
You can’t perform that action at this time.
0 commit comments