Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
vblagoje committed Oct 28, 2024
1 parent 065a7bd commit 64aec9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ def _convert_tool_call_results_to_anthropic_format(
:param tool_call_results: The list of ToolCallResults to convert.
:param anthropic_msg: The Anthropic message to update.
"""
if "content" not in anthropic_msg:
anthropic_msg["content"] = []
anthropic_content = anthropic_msg.get("content", [])
if not anthropic_msg.get("content"):
anthropic_msg["content"] = anthropic_content

for tool_call_result in tool_call_results:
if tool_call_result.origin.id is None:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ lint = [
"pylint -ry -j 0 {args:haystack_experimental}",
]
test-cov = "coverage run -m pytest -m \"not unstable\" {args:test}"
cov-report = ["- coverage combine", "coverage xml", "coverage html"]
cov-report = ["- coverage combine", "coverage xml"]
cov = ["test-cov", "cov-report"]

[tool.hatch.envs.readme]
Expand Down

0 comments on commit 64aec9f

Please sign in to comment.