Skip to content

Commit 3f4096d

Browse files
committed
fix(logging): add "Tool" type to message sender labeling (#1412)
Previously, messages of type "tool" were not distinctly labeled in the LoggingCallbackHandler output, causing them to be grouped under "System". This change adds explicit handling for "tool" messages, labeling them as "Tool" in the logs for improved clarity and debugging.
1 parent 9a8c910 commit 3f4096d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_callbacks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16+
from unittest.mock import patch
1617
from uuid import uuid4
1718

1819
import pytest

0 commit comments

Comments
 (0)