From a8753784fdbf073cb4dcc8818777aabf405c36bf Mon Sep 17 00:00:00 2001 From: Tao Chen Date: Mon, 16 Dec 2024 14:44:12 -0800 Subject: [PATCH] Fix mypy --- .../semantic_kernel/connectors/ai/anthropic/services/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/semantic_kernel/connectors/ai/anthropic/services/utils.py b/python/semantic_kernel/connectors/ai/anthropic/services/utils.py index f64e890d2b9c..774d93615927 100644 --- a/python/semantic_kernel/connectors/ai/anthropic/services/utils.py +++ b/python/semantic_kernel/connectors/ai/anthropic/services/utils.py @@ -50,7 +50,7 @@ def _format_assistant_message(message: ChatMessageContent) -> dict[str, Any]: "type": "tool_use", "id": item.id or "", "name": item.name or "", - "input": item.arguments if isinstance(item.arguments, Mapping) else json.loads(item.arguments), + "input": item.arguments if isinstance(item.arguments, Mapping) else json.loads(item.arguments or ""), }) else: logger.warning(