Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/semantic_kernel/contents/chat_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def _prepare_for_add(
"""Prepare a message to be added to the history."""
kwargs["role"] = role

if role == AuthorRole.TOOL and content and not items:
if role == AuthorRole.TOOL and content is not None and not items:
tool_call_id = kwargs.pop("tool_call_id", None)
function_name = kwargs.pop("function_name", "unknown")
function_result_content = FunctionResultContent(
Expand Down
Loading