Skip to content

Commit b9c357a

Browse files
committed
chore: update
1 parent 7fd0057 commit b9c357a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/strands_env/core/environment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from typing import Any, ClassVar
2222

2323
from strands import Agent
24-
from strands.handlers.callback_handler import PrintingCallbackHandler
24+
from strands.handlers.callback_handler import PrintingCallbackHandler, null_callback_handler
2525
from strands.telemetry.metrics import EventLoopMetrics
2626
from 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:

0 commit comments

Comments
 (0)